/* --- Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.highlight {
    color: #ffeb3b; /* Yellow for emphasis */
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #2c3e50;
}

/* --- Buttons --- */
.btn-primary, .btn-secondary, .btn-small {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    display: inline-block;
}

.btn-primary {
    background-color: #9c27b0; /* Purple */
    color: white;
}

.btn-primary:hover {
    background-color: #e91e63; /* Pink */
    transform: scale(1.05);
}

.btn-secondary {
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: #9c27b0;
}

.btn-small {
    background-color: #2c3e50;
    color: white;
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* --- Header / Nav --- */
header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #9c27b0;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333;
    transition: 0.3s;
}

/* --- Hero Section (Responsive Video) --- */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    text-align: center;
    margin-top: 70px; /* Space for fixed header */
}

.back-video {
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
    object-fit: cover; /* Important for responsiveness */
}

/* Overlay for text readability */
.hero::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4); /* Dark overlay */
    top: 0;
    left: 0;
    z-index: 0;
}

.hero-content {
    z-index: 1; /* Above the overlay */
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

/* --- How It Works --- */
.how-it-works {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.step-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(156, 39, 176, 0.1);
}

.icon-big {
    font-size: 3rem;
    color: #9c27b0;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* --- Features (Image-Text Pairs) --- */
.features {
    padding: 80px 0;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text, .feature-image {
    flex: 1;
}

.feature-text h2 {
    text-align: left;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.feature-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- Testimonials --- */
.testimonials {
    padding: 80px 0;
    background-color: #f0f4f8;
}

.testimonial-grid {
    display: flex;
    justify-content: center;
}

.test-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 600px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    position: absolute;
    top: -40px;
    left: calc(50% - 40px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.test-card p {
    font-style: italic;
    margin: 40px 0 20px 0;
    font-size: 1.1rem;
}

/* --- Download Section --- */
.download {
    padding: 100px 0;
    background: linear-gradient(135deg, #9c27b0 0%, #e91e63 100%);
    color: white;
    text-align: center;
}

.download h2 {
    color: white;
    margin-bottom: 15px;
}

.download p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.store-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.store-btns img {
    height: 60px;
}

/* --- Footer --- */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 30px 0;
    text-align: center;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons i {
    font-size: 1.3rem;
}

/* =========================================
   --- Responsive Media Queries ---
   ========================================= */

/* Tablet & Smaller Laptops (1024px and below) */
@media (max-width: 1024px) {
    h2 { font-size: 2.2rem; }
    .hero h1 { font-size: 3.2rem; }
    .feature-row { gap: 30px; }
    .feature-text h2 { font-size: 2rem; }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    /* Nav Menu for Mobile */
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        padding-top: 50px;
        box-shadow: -2px 0 5px rgba(0,0,0,0.05);
    }

    .nav-links li {
        opacity: 0;
    }

    .menu-toggle {
        display: block; /* Show hamburger */
    }

    /* Hero */
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.2rem; }
    .hero-btns { flex-direction: column; gap: 10px; }

    /* Steps Grid */
    .steps-grid {
        grid-template-columns: 1fr; /* Stack vertically */
        gap: 20px;
    }

    /* Features */
    .feature-row, .feature-row.reverse {
        flex-direction: column; /* Stack vertically */
        text-align: center;
        margin-bottom: 40px;
    }

    .feature-text h2 { text-align: center; }

    /* Download */
    .store-btns {
        flex-direction: column;
        align-items: center;
    }

    /* Footer */
    footer .container {
        flex-direction: column;
        gap: 15px;
    }
}

/* Small Phones (480px and below) */
@media (max-width: 480px) {
    h2 { font-size: 1.8rem; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; }
}

/* Dynamic Classes for JS Toggle */
.nav-active {
    transform: translateX(0%);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.toggle .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .bar:nth-child(2) {
    opacity: 0;
}
.toggle .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}


/* ... baki sara purana code ... */

/* Sidebar Divider Line */
.menu-divider {
    width: 85%;
    border: 0;
    border-top: 1px solid #ddd;
    margin: 10px auto;
    display: none; 
}

.nav-btns {
    display: flex;
    gap: 10px;
}

.btn-login {
    color: #9c27b0 !important;
    border: 1px solid #9c27b0;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
}

.btn-signup {
    background-color: #9c27b0;
    color: white !important;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .menu-divider { display: block; } 
    
    .nav-links {
        padding-top: 60px;
        justify-content: flex-start;
        overflow-y: auto; 
    }

    .nav-btns {
        flex-direction: column;
        width: 80%;
        text-align: center;
    }
} /* <--- Yeh bracket check karein ki laga hai ya nahi */


/* --- SABSE NEECHE YEH PASTE KAREIN --- */

.menu-divider {
    width: 85%;
    border: 0;
    border-top: 1px solid #ddd;
    margin: 10px auto;
    display: none; 
}

.nav-btns {
    display: flex;
    gap: 10px;
}

.btn-login {
    color: #9c27b0 !important;
    border: 1px solid #9c27b0;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
}

.btn-signup {
    background-color: #9c27b0;
    color: white !important;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .menu-divider { display: block; } 
    .nav-links {
        padding-top: 60px;
        justify-content: flex-start;
        overflow-y: auto; 
    }
    .nav-btns {
        flex-direction: column;
        width: 80%;
        text-align: center;
        gap: 15px;
        margin: 10px 0;
    }
}
