/* ============================================
   Laura Blanck OpenStudio — Custom Styles
   Classic & Elegant | Midnight Blue + Mint
   ============================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #2d5fa0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4ade80;
}

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

@keyframes scrollLine {
    0% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }
    51% {
        transform-origin: bottom;
    }
    100% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

/* --- Section Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .section-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    }
    .section-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: always visible if JS disabled or reduced motion */
@media (prefers-reduced-motion: reduce) {
    .section-reveal {
        opacity: 1;
        transform: none;
    }
}

/* --- Service Card Hover --- */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.service-card:hover {
    transform: translateY(-4px);
}

/* --- Navbar Scroll State --- */
.navbar-scrolled {
    box-shadow: 0 4px 30px rgba(10, 22, 40, 0.1);
}

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

/* --- Form Focus Styles --- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* --- Selection Color --- */
::selection {
    background: #4ade80;
    color: #0a1628;
}

/* --- Print Styles --- */
@media print {
    header, footer, #contact-form, .animate-scroll-line {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
