/* General Body Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f9f9f9; /* Light background color */
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(to bottom right, #5a67d8, #4c51bf); /* Updated gradient background */
    overflow: hidden; /* Hide overflow */
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    color: #fff;
    padding: 2rem;
    border-radius: 15px; /* Rounded corners for the content box */
    background: rgba(0, 0, 0, 0.6); /* Slightly darker background for better text readability */
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); /* Subtle shadow for more depth */
    position: relative;
    z-index: 2;
}

/* H1 Typing Effect */
.typing-effect {
    font-size: 3.5rem; /* Increased size for hero title */
    margin-bottom: 1rem;
    line-height: 1.4;
    overflow: hidden;
    white-space: nowrap;
    border-right: .15em solid #fff; /* Cursor effect */
    animation: typing 4s steps(40, end) 0.5s forwards, blink-caret .75s step-end infinite, text-bounce 2s ease-in-out infinite;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Text shadow for better readability */
    font-family: 'Poppins', sans-serif; /* Font style */
}

/* Typing Animation */
@keyframes typing {
    0% { width: 0; }
    50% { width: 100%; }
    100% { width: 100%; }
}

/* Blink Caret Animation */
@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #fff; }
}

/* Text Bounce Animation */
@keyframes text-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Second Phrase Animation */
.new-word {
    display: block; /* Ensure it appears on a new line */
    opacity: 0;
    font-size: 2rem; /* Adjust size for the new phrase */
    margin-top: 1rem;
    color: #e2e8f0; /* Light text color */
    animation: fadeIn 1s ease 5s forwards, typing 4s steps(30, end) 5s 1 normal both;
}

/* Fade-in Effect for the Second Phrase */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Hero Text */
.hero h1 {
    margin-bottom: 1rem;
    font-weight: bold;
    font-family: 'Poppins', sans-serif; /* Font style for heading */
    color: #ffffff;
    text-transform: uppercase; /* Capitalize text */
    letter-spacing: 1px; /* Add letter spacing */
}

/* Hero Paragraph */
.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-family: 'Roboto', sans-serif; /* Font style for paragraph */
    color: #e2e8f0; /* Light text color */
}

/* Main Button */
.btn-main {
    padding: 12px 24px;
    font-size: 1.5rem;
    color: #fff;
    background-color: #38a169; /* Green background color */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-family: 'Roboto', sans-serif; /* Font style */
}

.btn-main:hover {
    background-color: #2f855a; /* Darker green on hover */
    transform: scale(1.05); /* Slightly scale up on hover */
}

.btn-main:focus {
    outline: none;
    box-shadow: none;
}

/* Features Section */
.features {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    background-color: #ffffff;
}

.feature {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px; /* Rounded corners for feature boxes */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); /* More pronounced shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 250px;
    margin: 0 auto;
    overflow: hidden; /* Hide overflow for cleaner visuals */
    position: relative; /* For positioning the hover effect */
}

/* Hover effect for feature boxes */
.feature:hover {
    transform: scale(1.1); /* Slightly increase the size */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2); /* Add a larger shadow */
}

/* Feature Icon */
.feature-icon {
    margin-bottom: 1rem;
    background-color: #f0f4f8; /* Light background for icons */
    padding: 10px;
    border-radius: 50%;
}

/* Feature Titles and Text */
.feature h2 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem; /* Slightly larger font size */
    color: #4a5568; /* Darker text color */
    font-family: 'Poppins', sans-serif; /* Font style for headings */
}

.feature p {
    margin-bottom: 1rem;
    color: #4a5568; /* Darker text color */
    font-family: 'Roboto', sans-serif; /* Font style for paragraph */
}

/* Buttons */
.btn {
    padding: 10px 15px;
    font-size: 0.9rem;
    color: #fff;
    background-color: #48bb78; /* New color for buttons */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-family: 'Roboto', sans-serif; /* Font style */
}

.btn:hover {
    background-color: #38a169; /* Darker green on hover */
    transform: scale(1.05); /* Slightly scale up on hover */
}

.btn:focus {
    outline: none;
    box-shadow: none;
}

/* Quick Navigation */
.quick-nav {
    margin-top: 2rem;
    text-align: center;
}

.quick-nav button {
    padding: 12px 18px;
    font-size: 1rem;
    color: #fff;
    background-color: #4c51bf; /* Darker blue background */
    border: 2px solid #4c51bf;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 5px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    font-family: 'Roboto', sans-serif; /* Font style */
}

.quick-nav button:hover {
    background-color: #434190;
    color: #fff;
    transform: scale(1.05); /* Slightly scale up on hover */
}

.quick-nav button:focus {
    outline: none;
    box-shadow: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Slightly darker overlay */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 12px; /* Rounded corners for the modal */
    width: 90%;
    max-width: 600px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Shadow for depth */
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #e53e3e; /* Red color for close button */
}

.close-btn:hover {
    color: #c53030; /* Darker red on hover */
}


/* Cancel Button */
.btn-cancel {
    padding: 10px 20px;
    font-size: 1rem;
    color: #fff; /* White text color */
    background-color: #a0aec0; /* Grey background color */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-family: 'Roboto', sans-serif; /* Font style */
}

.btn-cancel:hover {
    background-color: #718096; /* Darker grey on hover */
    transform: scale(1.05); /* Slightly scale up on hover */
}

.btn-cancel:focus {
    outline: none;
    box-shadow: none;
}


@media (min-width: 768px) {
    .features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

/* Specific Styles for Android */
@media screen and (max-width: 768px) {
    .btn-main {
        font-size: 2rem;
        padding: 15px 30px; /* Larger padding for better touch target */
    }

    .features {
        padding: 1rem;
        gap: 1.5rem; /* Increase gap between features */
    }

    .feature {
        max-width: 100%; /* Full width on mobile */
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); /* Softer shadow */
    }
}

/* Back Button */
.back-button {
    padding: 10px 20px;
    font-size: 1rem;
    color: #fff;
    background-color: #4c51bf; /* Same as other buttons */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin: 0 10px;
    font-family: 'Roboto', sans-serif; /* Font style */
}

.back-button:hover {
    background-color: #434190; /* Darker blue on hover */
    transform: scale(1.05); /* Slightly scale up on hover */
}

.back-button:focus {
    outline: none;
    box-shadow: none;
}


/* Footer styling */
footer {
    background-color: #2c3e50; /* Dark background color */
    color: #ecf0f1; /* Light text color */
    padding: 20px 0; /* Space around the text */
    text-align: center; /* Center align the text */
    position: relative; /* Ensures the footer’s position is managed within its parent */
    width: 100%; /* Full width */
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
    bottom: 0;
  }
  
  /* Paragraph styling */
  footer p {
    margin: 0; /* Remove default margin */
    font-size: 16px; /* Font size for readability */
    line-height: 1.5; /* Space between lines for readability */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Clean and modern font */
    letter-spacing: 0.5px; /* Slight letter spacing for improved legibility */
    transition: color 0.3s ease; /* Smooth color transition */
  }
  
  /* Hover effect for the paragraph */
  footer p:hover {
    color: #3498db; /* Change color on hover */
    text-decoration: underline; /* Add underline on hover */
  }
  
  /* Responsive design */
  @media (max-width: 768px) {
    footer p {
      font-size: 14px; /* Slightly smaller font size for tablets */
    }
  }
  
  @media (max-width: 480px) {
    footer p {
      font-size: 12px; /* Further smaller font size for mobile phones */
      line-height: 1.4; /* Adjust line height for very small screens */
    }
  }
  