:root {
    --primary: #0A192F;
    --secondary: #FFD700;
    --light: #F8F9FA;
    --dark: #112240;
    --text: #333333;
    --light-text: #666666;
    --accent: #B28247;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #0A192F 0%, #112240 100%);
    --shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--white);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    line-height: 1.2;
}

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

.subtitle {
    display: inline-block;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 0.8rem;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(178, 130, 71, 0.4);
}

.full-width {
    width: 100%;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    transition: var(--transition);
    background: transparent;
}

#navbar.scrolled {
    padding: 15px 0;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
}

.logo {
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
}

#navbar.scrolled .logo {
    color: var(--white);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary);
}

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

/* Hero Section with Animation */
#hero {
    height: 250vh;
    /* Increased height to make animation last until covered */
    position: relative;
    background: var(--dark);
    overflow: hidden;
}

#hero::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle, rgba(10, 25, 47, 0) 0%, rgba(10, 25, 47, 0.4) 100%);
    z-index: 1;
    pointer-events: none;
}

#animation-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 2;
    padding: 0 20px;
    pointer-events: none;
    /* Allows scrolling on content */
}

.hero-content h1 {
    font-size: clamp(2rem, 10vw, 5rem);
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 0, 0, 0.4);
    font-weight: 700;
    padding: 0 10px;
}

.hero-content p {
    font-size: clamp(1rem, 4vw, 1.3rem);
    color: var(--white);
    max-width: 700px;
    margin-bottom: 40px;
    padding: 0 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    font-weight: 600;
}

/* Simple animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--white);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.mouse-icon {
    width: 25px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
}

.mouse-icon::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--secondary);
    border-radius: 2px;
    animation: scrollMove 2s infinite;
}

@keyframes scrollMove {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 25px;
        opacity: 0;
    }
}

/* Sections General */
#about,
#infrastructure,
#services,
#testimonials,
#contact,
#faq {
    position: relative;
    z-index: 20;
    /* High z-index to cover hero */
    padding: 100px 0;
    background: var(--white);
    /* Ensure solid background */
}

#map {
    position: relative;
    z-index: 20;
}

footer {
    position: relative;
    z-index: 20;
}

#about {
    background: var(--white);
}

.infra-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.infra-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.infra-text h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
}

.infra-list {
    list-style: none;
    margin-top: 30px;
}

.infra-list li {
    margin-bottom: 20px;
    font-size: 1.1rem;
    padding-left: 30px;
    position: relative;
}

.infra-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

/* Testimonials Section */
#testimonials {
    padding: 120px 0;
    background: var(--dark);
    color: var(--white);
}

#testimonials h2,
#testimonials .subtitle {
    color: var(--white);
}

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 25px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
}

.patient-info strong {
    display: block;
    color: var(--secondary);
    font-size: 1.1rem;
}

.patient-info span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
}

.whatsapp-tooltip {
    position: absolute;
    right: 80px;
    background: white;
    color: #333;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Enhanced Footer Styles */
.footer-contact-fast {
    margin-top: 25px;
    font-size: 0.9rem;
}

.footer-contact-fast p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer-form input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 5px;
    color: white;
    width: 100%;
}

.btn-small {
    background: var(--secondary);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-small:hover {
    background: white;
}

.footer-legal p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 992px) {

    .infra-grid,
    .testimonials-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

#about h2 {
    font-size: 3rem;
    margin-bottom: 30px;
}

#about p {
    margin-bottom: 25px;
    color: var(--light-text);
    font-size: 1.1rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.feature {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature .icon {
    font-size: 1.5rem;
    background: rgba(255, 215, 0, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.feature h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.feature p {
    font-size: 0.9rem !important;
    margin: 0 !important;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 20px 20px 0px var(--primary);
}

/* Services Section */
#services {
    padding: 100px 0;
    background: var(--light);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(255, 215, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--light-text);
}

/* Contact Section */
#contact {
    padding: 100px 0;
    background: var(--white);
}

.contact-card {
    background: var(--primary);
    border-radius: 20px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    overflow: hidden;
    color: var(--white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.contact-info {
    padding: 70px;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
}

.contact-info h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-details {
    list-style: none;
    margin-top: 40px;
}

.contact-details li {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
}

.contact-form-placeholder {
    padding: 70px;
    background: var(--white);
}

.contact-form-placeholder input,
.contact-form-placeholder textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

/* FAQ Section */
#faq {
    padding: 100px 0;
    background: var(--light);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--accent);
}

/* Map Section */
#map {
    height: 400px;
    width: 100%;
    background: #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    filter: grayscale(100%) invert(90%);
}

/* Footer Enhanced */
footer {
    padding: 80px 0 30px;
    background: var(--primary);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--secondary);
    margin-bottom: 25px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
    display: flex;
    gap: 30px;
}

.social-links a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease;
        z-index: 1050;
    }

    .nav-links.active {
        right: 0;
    }

    #navbar .btn-primary {
        display: none;
        /* Hide button in nav, put in menu if needed */
    }

    .about-grid,
    .contact-card,
    .infra-grid,
    .testimonials-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text h2,
    .infra-text h2,
    #services .section-header h2 {
        font-size: 2.2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .about-image img {
        box-shadow: 10px 10px 0px var(--primary);
    }
}

@media (max-width: 600px) {
    #hero {
        height: 200vh;
        /* Shorter scroll for mobile */
    }

    .footer-grid {
        text-align: center;
    }

    .footer-form {
        flex-direction: column;
    }
}