/* ===================================
   CSS VARIABLES & RESET
   =================================== */
:root {
    /* Colors extracted from MCD Memorial Hospital logo */
    --primary-teal: #4a9b8e;
    --primary-blue: #1e5a9e;
    --accent-green: #5cb8a8;
    --dark-blue: #0d3b66;
    --light-teal: #7dd3c0;
    
    /* Neutral colors */
    --white: #ffffff;
    --off-white: #f8fafb;
    --light-gray: #e8ecef;
    --gray: #6b7c93;
    --dark-gray: #2d3748;
    --black: #0a0e27;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-blue) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-green) 0%, var(--primary-teal) 100%);
    --gradient-glow: linear-gradient(90deg, transparent, var(--light-teal), transparent);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Outfit', var(--font-primary);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 40px rgba(74, 155, 142, 0.3);
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0d1b2a 100%);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ===================================
   ANIMATED BACKGROUND
   =================================== */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

.circle-1 {
    width: 500px;
    height: 500px;
    background: var(--gradient-primary);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-accent);
    bottom: -10%;
    right: -10%;
    animation-delay: 5s;
}

.circle-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-green) 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Floating Particles */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--light-teal);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--light-teal);
    animation: particle-float 15s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; top: 80%; animation-delay: 2s; }
.particle:nth-child(3) { left: 30%; top: 40%; animation-delay: 4s; }
.particle:nth-child(4) { left: 50%; top: 60%; animation-delay: 1s; }
.particle:nth-child(5) { left: 70%; top: 30%; animation-delay: 3s; }
.particle:nth-child(6) { left: 80%; top: 70%; animation-delay: 5s; }
.particle:nth-child(7) { left: 60%; top: 90%; animation-delay: 2.5s; }
.particle:nth-child(8) { left: 90%; top: 50%; animation-delay: 4.5s; }

@keyframes particle-float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* ===================================
   MAIN CONTAINER
   =================================== */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ===================================
   LOGO SECTION
   =================================== */
.logo-container {
    margin-bottom: var(--spacing-xl);
    animation: fadeInDown 1s ease-out;
}

.logo {
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(74, 155, 142, 0.3));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   MAIN CONTENT
   =================================== */
.content {
    text-align: center;
    max-width: 900px;
    width: 100%;
}

.main-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.title-line {
    display: block;
    animation: fadeInUp 1s ease-out backwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.gradient-text::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
    animation: expandWidth 1s ease-out 0.6s backwards;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--light-gray);
    line-height: 1.6;
    margin-bottom: var(--spacing-2xl);
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

/* ===================================
   PROGRESS BAR
   =================================== */
.progress-container {
    margin-bottom: var(--spacing-2xl);
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

.progress-bar {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 0 auto var(--spacing-sm);
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    animation: progressLoad 2.5s ease-out infinite;
    box-shadow: 0 0 20px rgba(74, 155, 142, 0.6);
}

.progress-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressLoad {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}

@keyframes progressGlow {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.progress-text {
    font-size: 0.875rem;
    color: var(--accent-green);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ===================================
   FEATURE CARDS
   =================================== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--transition-base);
    animation: fadeInUp 1s ease-out backwards;
    position: relative;
    overflow: hidden;
}

.feature-card:nth-child(1) { animation-delay: 1s; }
.feature-card:nth-child(2) { animation-delay: 1.2s; }
.feature-card:nth-child(3) { animation-delay: 1.4s; }

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-green);
}

.feature-card:hover::before {
    opacity: 0.1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: var(--white);
    transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(74, 155, 142, 0.4);
}

.feature-icon svg {
    width: 30px;
    height: 30px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--white);
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--light-gray);
    line-height: 1.5;
}

/* ===================================
   CONTACT INFO
   =================================== */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 1s ease-out 1.6s backwards;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-green);
    transform: translateY(-2px);
}

.contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--accent-green);
}

.contact-item span {
    font-size: 0.9375rem;
    color: var(--light-gray);
}

/* ===================================
   SOCIAL LINKS
   =================================== */
.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 1s ease-out 1.8s backwards;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all var(--transition-base);
    text-decoration: none;
}

.social-link:hover {
    background: var(--gradient-primary);
    border-color: var(--accent-green);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(74, 155, 142, 0.4);
}

.social-link svg {
    width: 22px;
    height: 22px;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    margin-top: auto;
    padding-top: var(--spacing-xl);
    text-align: center;
    animation: fadeInUp 1s ease-out 2s backwards;
}

.footer p {
    font-size: 0.875rem;
    color: var(--gray);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    .container {
        padding: var(--spacing-md);
    }
    
    .logo {
        max-width: 280px;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-item {
        width: 100%;
        max-width: 350px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 220px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .social-link svg {
        width: 20px;
        height: 20px;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 4px;
}
