﻿/* ===== CRITICAL CSS - LOAD IMMEDIATELY ===== */

/* Updated Medical Color Theme - All other elements unchanged */
:root {
    /* New Medical Color Palette */
    --medical-blue: #0066CC;
    --trust-green: #00A86B;
    --pakistan-green: #01411C;
    --clean-white: #FFFFFF;
    --dark-grey: #333333;
    
    /* Mapped to existing variable names - ONLY COLORS CHANGED */
    --primary: var(--medical-blue);          /* Medical Blue */
    --secondary: var(--trust-green);         /* Trust Green */
    --accent: var(--pakistan-green);         /* Pakistan Green (CTA, Highlights) */
    --accent-hover: #013A14;                /* Darker Pakistan Green */
    --warning: #80D3B5;                     /* Light Trust Green variant */
    --bg: var(--clean-white);               /* Clean White */
    --card-bg: #ffffff;                     /* White */
    --text: var(--dark-grey);               /* Dark Grey */
    --heading: var(--dark-grey);            /* Dark Grey */
    --footer-bg: var(--pakistan-green);     /* Pakistan Green */
    --light-text: #ffffff;                  /* White */
    --border-color: rgba(0, 102, 204, 0.2); /* Light Medical Blue */
    
    /* Updated Gradient Combinations with new colors */
    --gradient-primary: linear-gradient(135deg, #0066CC 0%, #01411C 100%);
    --gradient-secondary: linear-gradient(135deg, #00A86B 0%, #0066CC 100%);
    --gradient-accent: linear-gradient(135deg, #01411C 0%, #00A86B 100%);
    --gradient-natural: linear-gradient(135deg, #FFFFFF 0%, #F0F8FF 100%);
    --gradient-forest: linear-gradient(135deg, #00A86B 0%, #01411C 100%);
}

/* ===== GLOBAL STYLES ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    padding-top: 4rem; /* Adjust based on your nav height */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    margin: 0;
    overflow-x: hidden;
    width: 100%;
}

@supports not (font-variation-settings: normal) {
  body {
    font-family: 'Inter', sans-serif;
  }
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    margin-top: 0;
    color: var(--heading);
    line-height: 1.4;
}

h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.2rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ===== IMAGES ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Rounded Images */
.natural-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 102, 204, 0.1);
}

/* ===== BUTTONS ===== */
.cta-btn {
    background: var(--accent);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-hover);
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(1, 65, 28, 0.2);
}

.cta-btn:hover::before {
    left: 0;
}

/* ===== NAVIGATION ===== */
nav {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0, 102, 204, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 5px 25px rgba(0, 102, 204, 0.15);
    background-color: rgba(255, 255, 255, 0.98);
    padding: 0.8rem 5%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    padding: 0.75rem 1.2rem;
    border-radius: 8px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--secondary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 4rem 5% 3rem;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(255, 255, 255, 1) 100%);
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
    margin-bottom:1rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.hero-contents {
    flex: 1 1 60%;
    min-width: 300px;
    text-align: left;
    position: relative;
    z-index: 1;
}

.hero-contents h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.hero-contents h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 1rem;
    color: var(--text);
    line-height: 1.8;
}

.hero-img-wrapper {
    flex: 0 0 35%;
    max-width: 520px;
    border-radius: 10px;
    overflow: hidden;
    animation: heroImageReveal 1.2s ease-out forwards;
    box-shadow: 0 25px 50px rgba(0, 102, 204, 0.15);
    position: relative;
    z-index: 1;
    border: 8px solid var(--card-bg);
}

.hero-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
    object-fit: cover;
}

@keyframes heroImageReveal {
    0% {
        opacity: 0;
        transform: scale(0.9) translateX(50px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

/* ===== MOBILE NAVIGATION ===== */
#menu-toggle, .hamburger, .nav-overlay {
    display: none;
}

/* ===== MOBILE RESPONSIVE (Above-the-fold only) ===== */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
        padding: 4rem 5%;
    }

    .hero-contents {
        text-align: center;
    }

    .hero-contents h1 {
        font-size: 2.5rem;
    }

    .hero p {
        margin: 0 auto 2.5rem;
    }

    .hero-img-wrapper {
        max-width: 400px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    nav {
        padding: 0.8rem 5%;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
    
    .hero {
        padding: 6rem 5% 4rem;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        padding: 8px;
        z-index: 1002;
    }
    
    .hamburger span {
        width: 30px;
        height: 3px;
        background: var(--secondary);
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    
    /* Mobile Menu */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding-top: 100px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0,0,0,0.15);
        z-index: 1001;
        align-items: stretch;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    #menu-toggle:checked ~ .nav-links {
        right: 0;
    }
    
    .nav-links a {
        width: 100%;
        display: block;
        padding: 1.2rem 2rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links a::after {
        display: none;
    }
    
    /* Hamburger Animation */
    #menu-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
        background: var(--secondary);
    }
    
    #menu-toggle:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
    }
    
    #menu-toggle:checked ~ .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
        background: var(--secondary);
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
}