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

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

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: #FFD4D4;
    color: #1F1F1F;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFF8F0;
}
::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

/* ─── Navigation ─── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 248, 240, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav-logo-text {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    text-decoration: none;
}

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

.nav-link:hover {
    color: #1F1F1F;
}

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

/* ─── Buttons ─── */
.btn-coral {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #FF6B6B;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.875rem 1.75rem;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-coral:hover {
    background: #FF4F4F;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.btn-coral:active {
    transform: translateY(0);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #3A3A3A;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.875rem 1.75rem;
    border-radius: 100px;
    border: 1.5px solid #e0e0e0;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: #FF6B6B;
    color: #FF6B6B;
    transform: translateY(-2px);
}

/* ─── Section Labels ─── */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #FF6B6B;
    background: #FFECEC;
    padding: 0.4rem 1rem;
    border-radius: 100px;
}

/* ─── Logo Mark ─── */
.logo-mark {
    color: #FF6B6B;
    display: flex;
    align-items: center;
}

/* ─── Hero Badge ─── */
.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
}

/* ─── Hero Text ─── */
h1 {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

h1 p {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

/* ─── Buttons Animation ─── */
.btn-coral, .btn-outline {
    animation: fadeInUp 0.8s ease 0.5s forwards;
    opacity: 0;
}

/* ─── Quick Info ─── */
.hero-badge ~ * + * {
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

/* ─── Scroll Indicator ─── */
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #b0b0b0, transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ─── Menu Tabs ─── */
.menu-tab {
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-tab.active {
    background: #FF6B6B;
    color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.menu-tab:not(.active):hover {
    color: #3A3A3A !important;
}

.menu-content {
    animation: fadeIn 0.4s ease;
}

/* ─── Mobile Menu ─── */
.hamburger {
    position: relative;
    width: 24px;
    height: 18px;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #3A3A3A;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { top: 16px; }

.hamburger.active span:nth-child(1) {
    top: 8px;
    transform: rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    top: 8px;
    transform: rotate(-45deg);
}

.mobile-nav-link {
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: #FF6B6B;
}

/* ─── Scroll Reveal ─── */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal-up.visible,
    .reveal-left.visible,
    .reveal-right.visible {
        opacity: 1;
        transform: none;
    }
}

/* ─── Keyframes ─── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .font-display.text-5xl,
    .font-display.text-6xl,
    .font-display.text-7xl,
    .font-display.text-8xl {
        font-size: 2.75rem;
    }
    
    .font-display.text-4xl,
    .font-display.text-5xl {
        font-size: 2.25rem;
    }
}
