/* Custom styles for Elshazly Osama MD */

:root {
    --mint-50: #f0fdfa;
    --mint-100: #ccfbf1;
    --mint-200: #99f6e4;
    --mint-300: #5eead4;
    --mint-400: #2DD4BF;
    --mint-500: #14b8a6;
    --mint-600: #0D9488;
    --mint-700: #0f766e;
    --midnight-50: #f0f4f8;
    --midnight-100: #d9e2ec;
    --midnight-200: #bcccdc;
    --midnight-300: #9fb3c8;
    --midnight-400: #829ab1;
    --midnight-500: #627d98;
    --midnight-600: #486581;
    --midnight-700: #334e68;
    --midnight-800: #243b53;
    --midnight-900: #0A2540;
    --midnight-950: #051524;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navbar transition */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(10, 37, 64, 0.08);
}

/* Nav links */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #2DD4BF;
    border-radius: 1px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 60%;
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-nav-link {
    position: relative;
}

/* Hamburger animation */
#mobile-menu-btn.active #bar1 {
    transform: translateY(5px) rotate(45deg);
}

#mobile-menu-btn.active #bar2 {
    opacity: 0;
    transform: translateX(-10px);
}

#mobile-menu-btn.active #bar3 {
    transform: translateY(-5px) rotate(-45deg);
    width: 1.25rem;
}

/* Scroll reveal */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.grid > * {
    opacity: 1;
    transform: translateY(0);
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #2DD4BF;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection */
::selection {
    background: rgba(45, 212, 191, 0.2);
    color: #0A2540;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: none;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    #navbar, #mobile-menu-btn, .scroll-reveal {
        display: block !important;
        opacity: 1 !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
