/* (START — original style.css contents) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 50px;
    height: 50px;
    position: relative;
}

.wave {
    position: absolute;
    border: 2px solid #1976d2;
    border-radius: 50%;
    animation: wave 1.2s ease-in-out infinite;
}

.wave:nth-child(2) { animation-delay: -1s; }
.wave:nth-child(3) { animation-delay: -0.5s; }

@keyframes wave {
    0%, 100% { transform: scale(0); opacity: 1; }
    50% { transform: scale(1); opacity: 0.5; }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: #1976d2;
}

.logo span {
    color: #ff6b6b;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #1976d2;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 5rem;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #ff6b6b;
    color: white;
}

.btn-primary:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

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

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

.floating-card {
    position: absolute;
    border-radius: 20px;
    animation: float 6s ease-in-out infinite;
}

.floating-card.blue { background: rgba(102, 126, 234, 0.2); width: 150px; height: 150px; top: 20%; right: 10%; animation-delay: 0s; }
.floating-card.purple { background: rgba(118, 75, 162, 0.2); width: 120px; height: 120px; top: 50%; right: 20%; animation-delay: 2s; }
.floating-card.teal { background: rgba(78, 205, 196, 0.2); width: 180px; height: 100px; top: 70%; right: 15%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Conditions Section */
.conditions-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 400;
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.condition-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
    opacity: 0;
    transform: translateY(30px);
    overflow: hidden;
}

.condition-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.condition-card:nth-child(1):hover { border-top-color: #ff6b6b; }
.condition-card:nth-child(2):hover { border-top-color: #4ecdc4; }
.condition-card:nth-child(3):hover { border-top-color: #45b7d1; }
.condition-card:nth-child(4):hover { border-top-color: #96ceb4; }
.condition-card:nth-child(5):hover { border-top-color: #feca57; }
.condition-card:nth-child(6):hover { border-top-color: #ff9ff3; }

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.hindi {
    color: #1976d2;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-content p {
    color: #666;
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 2rem;
    color: #1976d2;
    width: 50px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #1976d2;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #1976d2;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .conditions-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .card-image {
        height: 150px;
    }
}

/* (END — original style.css contents) */

/* ========================= */
/* ✅ Mobile-overlap fixes (ADDED) */
/* ========================= */

/* 🔧 Fix overlapping in mobile view */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        gap: 1.5rem;
        padding-top: 80px; /* Navbar overlap fix */
    }

    .hero-text {
        text-align: center;
        z-index: 2;
    }

    .hero-visual {
        position: relative;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .floating-card {
        position: static;
        width: 80px !important;
        height: 80px !important;
        margin: 5px;
        animation: none; /* Stop overlapping animation on small screens */
    }
}

/* Extra small devices (phones <480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .conditions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}



/* ===== Reviews section styles ===== */
.reviews-section {
    padding: 80px 0;
    background: #fff;
}

.reviews-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.reviews-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 1rem;
    width: 100%;
    overflow: hidden;
    scroll-behavior: smooth;
    align-items: stretch;
}

/* Each visible "frame" will hold 3 cards side-by-side on large screens */
.review-card {
    background: #f7f9fc;
    border-radius: 14px;
    padding: 1.6rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    min-width: 0; /* allow grid item shrinking */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-text {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-meta {
    font-size: 0.95rem;
    color: #666;
}

/* Nav buttons */
.reviews-nav {
    background: transparent;
    border: 2px solid #ddd;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.6rem;
    display: grid;
    place-items: center;
    cursor: pointer;
}

/* dots */
.reviews-dots {
    margin-top: 1rem;
    text-align: center;
}

/* ===== Conditions grid: force 3 columns on larger screens ===== */
.conditions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 per row on wide screens */
    gap: 2rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .conditions-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 per row on tablets */
    }

    /* Make review track show 2 cards per view */
    .reviews-track {
        grid-auto-columns: 50%;
    }
}

@media (max-width: 600px) {
    .conditions-grid {
        grid-template-columns: 1fr; /* 1 per row on small screens */
    }

    .reviews-wrap {
        gap: 0.5rem;
    }

    .reviews-track {
        grid-auto-columns: 100%; /* each card full width (mobile swipe) */
    }

    .reviews-nav {
        display: none; /* hide prev/next on very small screens, use swipe */
    }
}

/* ===== Footer overlap / bottom overlap fix ===== */
/* Ensure main sections never get hidden under fixed footer/navbar */
body {
    /* add safe bottom space so footer doesn't overlap content on small screens */
    padding-bottom: 80px;
}

/* If footer still overlays due to z-index, keep footer above but spaced */
.footer {
    position: relative;
    z-index: 10;
}
