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

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(255, 107, 63, 0.2);
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #111111;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ff6b3f;
    transition: width 0.3s ease;
}

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

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

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

#bar1.open {
    transform: translateY(6px) rotate(45deg);
}

#bar2.open {
    opacity: 0;
}

#bar3.open {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.5rem;
}

/* Hero animations */
.hero-sub {
    animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-headline {
    animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero-body {
    animation: fadeUp 0.8s ease forwards 0.7s;
}

.hero-cta {
    animation: fadeUp 0.8s ease forwards 0.9s;
}

#scroll-indicator {
    animation: fadeIn 0.8s ease forwards 1.2s;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* Parallax hero image */
#hero-img {
    transition: transform 0.1s linear;
}

/* Menu hover lines */
#menu ul li {
    position: relative;
    padding-bottom: 0.5rem;
}

#menu ul li::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 107, 63, 0.4), transparent);
    transition: width 0.3s ease;
}

#menu ul li:hover::after {
    width: 100%;
}

/* Image hover containers */
.reveal img {
    display: block;
    width: 100%;
    height: 100%;
}

/* Smooth section transitions */
section {
    position: relative;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 1px solid rgba(255, 107, 63, 0.5);
    outline-offset: 4px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-sub,
    .hero-headline,
    .hero-body,
    .hero-cta {
        animation: none;
        opacity: 1;
    }
    #scroll-indicator {
        animation: none;
        opacity: 0.5;
    }
    .reveal img:hover,
    .reveal img {
        transform: none;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.15;
    }
}

/* Large screens */
@media (min-width: 1920px) {
    html {
        font-size: 18px;
    }
}
