/* ===================================
   MCG Healthcare - Landing Page CSS
   Royal Blue + White Premium Theme
   =================================== */

:root {
    --royal-blue: #0A2463;
    --blue-mid: #1E3A8A;
    --blue-light: #3B82F6;
    --blue-accent: #60A5FA;
    --blue-glow: #93C5FD;
    --white: #FFFFFF;
    --off-white: #F8FAFC;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --gold: #C9A84C;
    --gold-light: #E5D5A0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--off-white);
    color: var(--gray-800);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ---- LOADER ---- */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-fade {
    opacity: 0;
    visibility: hidden;
}

.loader-inner {
    text-align: center;
}

.loader-logo {
    margin-bottom: 40px;
    animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-gif {
    max-width: 450px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--blue-accent), var(--white));
    border-radius: 10px;
    animation: loaderBar 2s ease-in-out forwards;
}

@keyframes loaderBar {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

@keyframes loaderPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.02); }
}

/* ---- LANDING PAGE ---- */
.landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.landing-visible {
    opacity: 1;
}

/* Animated Background */
.landing-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.04;
}

.bg-circle-1 {
    width: 800px;
    height: 800px;
    background: var(--royal-blue);
    top: -200px;
    right: -200px;
    animation: bgFloat 20s ease-in-out infinite;
}

.bg-circle-2 {
    width: 600px;
    height: 600px;
    background: var(--blue-light);
    bottom: -150px;
    left: -150px;
    animation: bgFloat 15s ease-in-out infinite reverse;
}

.bg-circle-3 {
    width: 400px;
    height: 400px;
    background: var(--blue-mid);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: bgFloat 25s ease-in-out infinite;
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(10,36,99,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10,36,99,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

/* Top Bar */
.landing-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 30px 40px;
    text-align: center;
    z-index: 2;
    animation: fadeInDown 0.8s ease 0.3s both;
}

.landing-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.landing-logo-img {
    max-height: 40px;
    width: auto;
    display: block;
}

.landing-tagline {
    font-size: 13px;
    color: var(--gray-400);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 6px;
}

/* Main Content */
.landing-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    padding: 120px 30px 60px;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.landing-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Landing Boxes */
.landing-box {
    position: relative;
    display: block;
    text-decoration: none;
    color: var(--gray-800);
    background: var(--white);
    border-radius: 20px;
    padding: 50px 40px 45px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.landing-box:hover {
    transform: translateY(-8px);
    border-color: var(--blue-light);
    box-shadow: var(--shadow-2xl), 0 0 40px rgba(59,130,246,0.1);
}

.box-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--royal-blue), var(--blue-light), var(--blue-accent));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.landing-box:hover .box-glow {
    opacity: 1;
}

.box-inner {
    position: relative;
    z-index: 1;
}

.box-logo-area {
    margin-bottom: 24px;
}

.box-logo-img {
    max-height: 45px;
    width: auto;
    display: block;
    transition: transform 0.5s ease;
}

.landing-box:hover .box-logo-img {
    transform: scale(1.08);
}

.box-title {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--royal-blue);
    margin-bottom: 8px;
    line-height: 1.2;
}

.box-tagline {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 400;
    line-height: 1.5;
}

.box-divider {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--royal-blue), var(--blue-light));
    margin: 20px 0;
    transition: width 0.4s ease;
}

.landing-box:hover .box-divider {
    width: 80px;
}

.box-desc {
    font-size: 13px;
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 20px;
}

.box-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.partner-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.partner-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    padding: 4px 10px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.landing-box:hover .partner-logo-img {
    border-color: var(--blue-accent);
    background: var(--white);
}

.box-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: var(--royal-blue);
    color: var(--white);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
}

.landing-box:hover .box-btn {
    background: var(--blue-mid);
    gap: 14px;
    box-shadow: 0 4px 15px rgba(10,36,99,0.3);
}

.box-btn svg {
    transition: transform 0.3s ease;
}

.landing-box:hover .box-btn svg {
    transform: translateX(4px);
}

/* Box Variants */
.box-chemicals .box-icon {
    color: var(--blue-mid);
}

.box-chemicals .box-title {
    color: var(--blue-mid);
}

/* Bottom */
.landing-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    text-align: center;
    z-index: 2;
}

.landing-bottom p {
    font-size: 12px;
    color: var(--gray-400);
    letter-spacing: 0.5px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive */
@media (max-width: 768px) {
    .landing-boxes {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .landing-box {
        padding: 35px 28px;
    }

    .box-title {
        font-size: 24px;
    }

    .landing-content {
        padding: 100px 20px 60px;
    }

    .loader-gif {
        max-width: 120px;
    }

    .landing-logo-img {
        max-height: 45px;
    }
}

@media (max-width: 480px) {
    .landing-top {
        padding: 20px;
    }

    .landing-logo-img {
        max-height: 38px;
    }

    .landing-tagline {
        font-size: 11px;
    }
}
