/* ─── 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: #ff5a4a;
    color: white;
}

/* ─── Navbar ─── */
#navbar {
    color: rgba(255, 255, 255, 0.85);
}

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

.nav-link {
    position: relative;
}

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

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

/* ─── Mobile Menu Toggle ─── */
#menu-toggle.open #menu-line-1 {
    transform: rotate(45deg) translate(3px, 3px);
}

#menu-toggle.open #menu-line-2 {
    opacity: 0;
}

#menu-toggle.open #menu-line-3 {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

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

/* ─── Hero Circles ─── */
.hero-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #ff7f6b, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ffad9e, transparent 70%);
    bottom: -50px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

.circle-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #ffd6ce, transparent 70%);
    top: 40%;
    left: 30%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ─── Hero Animations ─── */
.hero-eyebrow {
    animation: fadeDown 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-eyebrow span:nth-child(2) {
    animation: fadeDown 0.8s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

h1 span:nth-child(1) {
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

h1 span:nth-child(2) {
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

h1 span:nth-child(3) {
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

.hero p {
    animation: fadeUp 1s ease forwards;
    animation-delay: 1s;
    opacity: 0;
}

.hero ~ [class*="flex"] {
    animation: fadeUp 1s ease forwards;
    animation-delay: 1.2s;
    opacity: 0;
}

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

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

/* ─── Scroll Line ─── */
.scroll-line {
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, transparent, white);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(200%); opacity: 0; }
}

/* ─── Scroll Reveal ─── */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ─── Menu Tabs ─── */
.menu-tab {
    color: rgba(45, 45, 45, 0.5);
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-tab.active {
    background: #ff3d2e;
    color: white;
    border-radius: 2px;
}

.menu-tab:hover:not(.active) {
    color: #ff3d2e;
}

/* ─── Menu Items ─── */
.menu-item {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.menu-item:last-child {
    border-bottom: none;
}

/* ─── Input Floating Labels ─── */
input:focus ~ label,
input:not(:placeholder-shown) ~ label,
textarea:focus ~ label,
textarea:not(:placeholder-shown) ~ label {
    top: -0.5rem;
    font-size: 0.75rem;
}

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

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .hero-circle {
        filter: blur(60px);
        opacity: 0.3;
    }
    
    .circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .circle-2 {
        width: 250px;
        height: 250px;
    }
    
    .circle-3 {
        width: 150px;
        height: 150px;
    }
}
