@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0b1c48;
    --primary-light: #162d6b;
    --accent: #2563EB;
    --accent-glow: rgba(37, 99, 235, 0.18);
    --secondary: #00A2C7;
    --secondary-glow: rgba(0, 162, 199, 0.15);
    --brand-orange: #E07A24;
    --brand-orange-glow: rgba(224, 122, 36, 0.15);
    --brand-pink: #EC4899;
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    --bg-dark: #050d24;
    --bg-card: rgba(11, 28, 72, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(11, 28, 72, 0.75);
    --glass-border: rgba(255, 255, 255, 0.05);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Background Animated Gradient Grid */
.bg-glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.bg-glow-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(0,0,0,0) 70%);
    top: -200px;
    right: -100px;
    animation: floatGlow 15s infinite ease-in-out alternate;
}

.bg-glow-2 {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 162, 199, 0.08) 0%, rgba(0,0,0,0) 70%);
    bottom: -300px;
    left: -200px;
    animation: floatGlow 25s infinite ease-in-out alternate-reverse;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 50px) scale(1.1); }
}

/* Grid Lines Overlay */
.grid-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    pointer-events: none;
}

/* Layout Header (Navbar) */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 48px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

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

.contact-btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    color: white;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-smooth);
}

/* Common UI Elements */
.section {
    padding: 6rem 2rem;
    position: relative;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 3rem;
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(37, 99, 235, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background: var(--primary-light);
    border-top: 1px solid var(--border-color);
    padding: 5rem 2rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-cols: 1.25fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand-info p {
    color: var(--text-muted);
    margin-top: 1.25rem;
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-link {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.footer-contact-item svg {
    margin-top: 3px;
    color: var(--accent);
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(3deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulseBorder {
    0% { border-color: rgba(37, 99, 235, 0.15); }
    50% { border-color: rgba(0, 162, 199, 0.4); }
    100% { border-color: rgba(37, 99, 235, 0.15); }
}

    /* Pillars of Principled Healthcare */
    .pillars-grid {
        display: grid;
        grid-template-cols: repeat(3, 1fr);
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .pillar-card {
        cursor: pointer;
        padding: 2.5rem 2rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        transition: var(--transition-smooth);
        border: 1px solid var(--border-color);
        background: var(--bg-card);
    }
    
    .pillar-card:hover {
        border-color: var(--accent);
        transform: translateY(-5px);
        box-shadow: 0 10px 30px var(--accent-glow);
    }
    
    .pillar-icon-wrapper {
        width: 60px;
        height: 60px;
        border-radius: 12px;
        background: rgba(37, 99, 235, 0.1);
        color: var(--accent);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1.5rem;
        transition: var(--transition-smooth);
    }
    
    .pillar-card:hover .pillar-icon-wrapper {
        background: var(--accent);
        color: white;
        transform: scale(1.1) rotate(5deg);
    }
    
    .pillar-card h3 {
        font-size: 1.25rem;
        font-weight: 800;
        margin-bottom: 0.75rem;
    }
    
    .pillar-card p {
        font-size: 0.95rem;
        color: var(--text-muted);
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .pillar-details {
        max-height: 0;
        overflow: hidden;
        width: 100%;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .pillar-card[data-expanded="true"] .pillar-details {
        max-height: 200px;
        margin-top: 1rem;
        margin-bottom: 1rem;
        border-top: 1px dashed var(--border-color);
        padding-top: 1rem;
    }
    
    .pillar-checklist {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pillar-checklist li {
        font-size: 0.85rem;
        color: var(--text-main);
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .pillar-checklist li::before {
        content: '✓';
        color: var(--secondary);
        font-weight: bold;
    }
    
    .pillar-expand-btn {
        margin-top: auto;
        display: flex;
        align-items: center;
        gap: 0.35rem;
        font-size: 0.8rem;
        font-weight: 700;
        color: var(--accent);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding-top: 1rem;
    }
    
    .pillar-expand-btn svg {
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .pillar-card[data-expanded="true"] .pillar-expand-btn svg {
        transform: rotate(180deg);
    }


    /* Premium Preloader */
    #preloader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #050d24;
        z-index: 99999;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
    }
    
    #preloader.fade-out {
        opacity: 0;
        visibility: hidden;
    }
    
    .preloader-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }
    
    .preloader-logo {
        width: 95px;
        height: 95px;
        object-fit: contain;
        z-index: 2;
        animation: logoPulse 2s infinite ease-in-out;
    }
    
    .preloader-logo-ring {
        position: absolute;
        width: 125px;
        height: 125px;
        border: 2px solid transparent;
        border-top-color: var(--accent);
        border-bottom-color: var(--secondary);
        border-radius: 50%;
        top: -15px;
        z-index: 1;
        animation: spinRing 2s infinite linear;
    }
    
    .preloader-bar {
        width: 180px;
        height: 3px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 3px;
        overflow: hidden;
        margin-top: 2.5rem;
    }
    
    .preloader-bar-fill {
        width: 0;
        height: 100%;
        background: linear-gradient(90deg, var(--accent), var(--secondary));
        animation: fillBar 1.8s forwards cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .preloader-text {
        font-family: var(--font-heading);
        font-size: 0.85rem;
        font-weight: 700;
        color: white;
        letter-spacing: 3px;
        text-transform: uppercase;
        margin-top: 1.25rem;
        opacity: 0;
        animation: fadeInText 1s forwards ease-out;
        animation-delay: 0.4s;
    }
    
    @keyframes logoPulse {
        0% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(37,99,235,0.2)); }
        50% { transform: scale(1.05); filter: drop-shadow(0 0 25px rgba(37,99,235,0.5)); }
        100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(37,99,235,0.2)); }
    }
    
    @keyframes spinRing {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    
    @keyframes fillBar {
        0% { width: 0; }
        100% { width: 100%; }
    }
    
    @keyframes fadeInText {
        0% { opacity: 0; transform: translateY(5px); }
        100% { opacity: 1; transform: translateY(0); }
    }
    
    /* Reveal animations on page elements */
    .reveal-hidden {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .reveal-visible {
        opacity: 1;
        transform: translateY(0);
    }

/* Responsive Styles */
@media (max-width: 1024px) {
    .pillars-grid {
        grid-template-cols: 1fr 1fr;
    }
    .packaging-grid {
        grid-template-cols: 1fr;
        gap: 2.5rem;
    }
    .footer-grid {
        grid-template-cols: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .pillars-grid {
        grid-template-cols: 1fr;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .section {
        padding: 4rem 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-grid {
        grid-template-cols: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
