/* General Body and Typography */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    background-color: #f8f8f8;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scroll due to animations */
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 700;
}

p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navbar */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    align-items: center;
    padding: 15px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #DE6902;
    margin-right: 30px;
}

.logo img {
    height: 40px;
    margin-right: 10px;
    border-radius: 8px;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    margin-right: auto;
}

.nav-links li {
    margin-right: 30px;
}

.nav-links a {
    color: #555;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: #DE6902;
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #DE6902;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.google-play-button-nav {
    margin-left: 20px;
}

.google-play-button-nav img {
    height: 35px;
    transition: transform 0.3s ease;
}

.google-play-button-nav:hover img {
    transform: scale(1.05);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: 20px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* Language Dropdown Styles */
.language-selector {
    position: relative;
    display: inline-block;
    margin-left: 20px;
    z-index: 10;
}

.language-selector button {
    background-color: #DE6902;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.language-selector button:hover {
    background-color: #FB8C00;
}

.language-selector button i {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.language-dropdown {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 120px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    overflow: hidden;
    top: 100%;
    left: 0;
    margin-top: 5px;
}

.language-dropdown button {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: left;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.language-dropdown button:hover {
    background-color: #DE6902;
    color: white;
}

.language-dropdown button.active {
    background-color: #DE6902;
    color: white;
    font-weight: 700;
}

.language-selector.open .language-dropdown {
    display: block;
}

.language-selector.open button i {
    transform: rotate(180deg);
}

.modal-body p {
    white-space: pre-wrap;
    word-break: break-word;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 90vh;
    background: url('assets/hero-background.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding-top: 100px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h1 .highlight {
    color: #DE6902;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.google-play-button img {
    height: 70px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
}

.google-play-button:hover img {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(222, 105, 2, 0.4);
}

/* Animations for Hero Content */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.animate-fade-in-up.delay-1 { animation-delay: 0.3s; }
.animate-fade-in-up.delay-2 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styling */
section {
    padding: 80px 40px;
    text-align: center;
    background-color: #fff;
    border-bottom: 1px solid #eee;

    transition: all 0.8s ease-out;
}

section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.8rem;
    color: #333;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background-color: #DE6902;
    border-radius: 5px;
}

/* Features Section */
.features-section {
    background-color: #f8f8f8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.feature-item img {
    height: 100px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.feature-item .feature-icon {
    font-size: 80px;
    color: #DE6902;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.6rem;
    color: #DE6902;
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0;
}

/* About Section */
.about-section {
    background-color: #fff;
    text-align: left;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #555;
}

/* Testimonials Section */
.testimonials-section {
    background: linear-gradient(135deg, #DE6902, #FFC107);
    color: #fff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-item {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: background-color 0.3s ease;
}

.testimonial-item:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.testimonial-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid rgba(255, 255, 255, 0.5);
}

.testimonial-item p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.testimonial-item h4 {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 600;
}

/* Contact Section */
.contact-section {
    background-color: #fff;
    text-align: left;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #555;
}

.contact-info {
    margin-bottom: 30px;
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    color: #444;
}

.contact-info i {
    color: #DE6902;
    margin-right: 10px;
    font-size: 1.3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #DE6902;
    box-shadow: 0 0 0 3px rgba(222, 105, 2, 0.2);
    outline: none;
}

.submit-button {
    background-color: #DE6902;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-button:hover {
    background-color: #FB8C00;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: #222;
    color: #eee;
    padding: 40px 20px;
    text-align: center;
    font-size: 0.9rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: #DE6902;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #FFC107;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border-radius: 15px;
    width: 80%;
    max-width: 900px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    text-align: left;
    color: #333;
}

.modal-title {
    color: #DE6902;
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    position: sticky;
    top: -30px;
    background-color: #fefefe;
    padding-bottom: 10px;
    z-index: 100;
    padding-top: 30px;
}

.modal-subtitle {
    font-size: 1.8rem;
    color: #333;
    margin-top: 40px;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.modal-body h3 {
    font-size: 1.4rem;
    color: #DE6902;
    margin-top: 25px;
    margin-bottom: 10px;
}

.modal-body p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 10px;
    color: #555;
}

.modal-body p.last-updated {
    text-align: right;
    font-style: italic;
    color: #888;
    margin-top: 30px;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: #DE6902;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .features-grid, .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .navbar {
        padding: 15px 20px;
    }
    .nav-links li {
        margin-right: 20px;
    }
    .language-selector {
        margin-left: 15px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #ffffff;
        position: absolute;
        top: 70px;
        left: 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        border-top: 1px solid #eee;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .nav-links a {
        padding: 10px 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Adjust navbar to fit elements better on a single line */
    .navbar {
        display: flex; /* Use flexbox for better control on a single row */
        flex-wrap: nowrap; /* Prevent wrapping onto next line */
        justify-content: space-between; /* Space out items */
        align-items: center;
        padding: 10px 15px; /* Reduce padding to save space */
    }

    .navbar .logo {
        margin-right: 10px; /* Reduce margin */
    }

    /* Push the core nav items to the right to manage space with logo */
    .navbar .google-play-button-nav {
        display: none; /* Hide Google Play button on mobile to save space */
        order: 3; /* Order it after language selector but before hamburger */
    }
    .navbar .language-selector {
        order: 2; /* Place language selector after logo */
        margin-left: auto; /* Push to the right to fill space */
    }
    .navbar .hamburger {
        order: 4; /* Place hamburger last */
        margin-left: 15px; /* Add some space before hamburger */
    }


    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .google-play-button img {
        height: 60px;
    }

    section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .feature-item, .testimonial-item {
        padding: 20px;
    }
    .feature-item h3 {
        font-size: 1.4rem;
    }
    .feature-item p, .testimonial-item p {
        font-size: 0.95rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
    .footer-links {
        margin-top: 10px;
    }
    .footer-links a {
        margin: 0 10px;
    }
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    .modal-title {
        font-size: 1.8rem;
    }
    .modal-body h3 {
        font-size: 1.2rem;
    }
    .modal-body p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .logo span {
        font-size: 1.3rem;
    }
    .logo img {
        height: 35px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 0.9rem;
    }
    .google-play-button img {
        height: 50px;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .features-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    /* Re-evaluate navbar for extra small screens if needed,
       but the 768px changes should cover most cases by hiding elements. */
    .navbar {
        padding: 10px 10px; /* Further reduce padding */
    }
    .language-selector {
        /* Keep display as inline-block or flex as determined by larger media query */
        margin-left: auto; /* Ensure it stays right-aligned if it's the main flexible item */
    }
    .hamburger {
        margin-left: 10px; /* Reduce spacing */
    }
}