/* ========================================
   Garbarini Stephen C PHD — Custom Styles
   Clean Minimalist | Charcoal + Coral
======================================== */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: #ff6b3f;
    color: #ffffff;
}

/* ========================================
   Navbar
======================================== */
#navbar {
    background: rgba(255, 255, 255, 0.0);
    backdrop-filter: none;
    transition: background 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(26, 27, 30, 0.06);
}

/* ========================================
   Scroll Reveal Animations
   Progressive enhancement: content is visible by default,
   JS adds the animated state.
======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .reveal.revealed {
        opacity: 0;
        transform: translateY(32px);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ========================================
   Mobile Menu
======================================== */
#mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

#mobile-menu.open .mobile-link {
    animation: fadeDown 0.4s ease forwards;
    opacity: 0;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menu button animation */
.menu-btn-active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}
.menu-btn-active .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-btn-active .menu-line:nth-child(3) {
    width: 20px;
    transform: rotate(-45deg) translate(3px, -3px);
}

/* ========================================
   Service Cards
======================================== */
.service-card {
    border: 1px solid rgba(26, 27, 30, 0.06);
}

.service-card:hover {
    border-color: rgba(255, 107, 63, 0.15);
}

/* ========================================
   Testimonial Cards
======================================== */
.testimonial-card {
    border: 1px solid rgba(26, 27, 30, 0.04);
}

/* ========================================
   Smooth hover transitions
======================================== */
a, button {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========================================
   Custom scrollbar
======================================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f6f6f7;
}

::-webkit-scrollbar-thumb {
    background: #c7c8cc;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a3aa;
}

/* ========================================
   Focus visible for accessibility
======================================== */
:focus-visible {
    outline: 2px solid #ff6b3f;
    outline-offset: 2px;
}

/* ========================================
   Print styles
======================================== */
@media print {
    nav, #contact-form, .scroll-indicator {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-charcoal-900 {
        background: #1a1b1e !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
