/* ==========================================
   THE BLUE PLATE FOOD TRUCK — Custom Styles
   ========================================== */

/* Reset & Base */
*, *::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;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1A1A1A;
}
::-webkit-scrollbar-thumb {
    background: #E05A4A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #F07060;
}

/* Selection */
::selection {
    background: #E05A4A;
    color: white;
}

/* ==========================================
   HERO GEOMETRIC SHAPES
   ========================================== */
.hero-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-1 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 90, 74, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float-shape 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 90, 74, 0.06) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
    animation: float-shape 10s ease-in-out infinite reverse;
}

.shape-rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(224, 90, 74, 0.05);
    border-radius: 20px;
    top: 25%;
    left: 45%;
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(224, 90, 74, 0.04);
    bottom: 20%;
    right: 10%;
    animation: float-shape 7s ease-in-out infinite;
}

/* ==========================================
   ABOUT GEOMETRIC SHAPES
   ========================================== */
.about-shape {
    position: absolute;
    pointer-events: none;
}

.shape-geo-1 {
    width: 400px;
    height: 400px;
    border: 2px solid rgba(224, 90, 74, 0.1);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    animation: float-shape 12s ease-in-out infinite;
}

.shape-geo-2 {
    width: 200px;
    height: 200px;
    background: rgba(224, 90, 74, 0.05);
    border-radius: 30px;
    bottom: 10%;
    right: 5%;
    transform: rotate(30deg);
    animation: spin-slow 15s linear infinite;
}

.shape-geo-3 {
    width: 100px;
    height: 100px;
    border: 2px solid rgba(224, 90, 74, 0.08);
    border-radius: 20px;
    top: 40%;
    right: 15%;
    transform: rotate(60deg);
    animation: float-shape 9s ease-in-out infinite reverse;
}

/* ==========================================
   EVENTS GEOMETRIC SHAPES
   ========================================== */
.events-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-3 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    bottom: -200px;
    right: -200px;
    animation: float-shape 11s ease-in-out infinite;
}

.shape-rect-2 {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    top: 10%;
    left: 5%;
    transform: rotate(20deg);
    animation: spin-slow 18s linear infinite;
}

/* ==========================================
   CONTACT GEOMETRIC SHAPES
   ========================================== */
.contact-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-4 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 90, 74, 0.06) 0%, transparent 70%);
    top: -150px;
    right: -150px;
    animation: float-shape 13s ease-in-out infinite;
}

.shape-rect-3 {
    width: 180px;
    height: 180px;
    background: rgba(224, 90, 74, 0.03);
    border-radius: 28px;
    bottom: 5%;
    left: 3%;
    transform: rotate(45deg);
    animation: float-shape 8s ease-in-out infinite reverse;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes float-shape {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(5deg);
    }
    66% {
        transform: translateY(10px) rotate(-3deg);
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* ==========================================
   MARQUEE
   ========================================== */
.marquee-track {
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================
   SCROLL REVEAL
   ========================================== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered delays */
.scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.15s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.25s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.3s; }

/* ==========================================
   NAVBAR
   ========================================== */
#navbar {
    background: rgba(250, 247, 245, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#navbar.scrolled {
    background: rgba(250, 247, 245, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

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

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

.mobile-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ==========================================
   BUTTONS
   ========================================== */
button, a[role="button"] {
    cursor: pointer;
}

input:focus, select:focus, textarea:focus {
    outline: none;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 300px;
        height: 300px;
    }

    .shape-circle-2 {
        width: 200px;
        height: 200px;
    }

    .shape-rect-1 {
        width: 80px;
        height: 80px;
    }

    .shape-triangle {
        border-left: 40px solid transparent;
        border-right: 40px solid transparent;
        border-bottom: 66px solid rgba(224, 90, 74, 0.04);
    }

    .about-shape {
        display: none;
    }

    .events-shape {
        display: none;
    }

    .contact-shape {
        display: none;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 3.5rem;
    }
}
