/* ========================================
   BUDDY'S BURGERS — 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;
}

/* --- Floating Background Shapes --- */
.floating-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.04;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    background: #047857;
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float1 20s ease-in-out infinite;
}

.shape-square-1 {
    width: 200px;
    height: 200px;
    background: #F59E0B;
    bottom: 20%;
    left: -50px;
    transform: rotate(15deg);
    animation: float2 15s ease-in-out infinite;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #047857;
    top: 50%;
    right: 5%;
    animation: float3 18s ease-in-out infinite;
}

.shape-circle-2 {
    width: 150px;
    height: 150px;
    background: #F59E0B;
    border-radius: 50%;
    bottom: 10%;
    right: 10%;
    animation: float1 22s ease-in-out infinite reverse;
}

.shape-ring-1 {
    width: 120px;
    height: 120px;
    border: 8px solid #047857;
    border-radius: 50%;
    top: 30%;
    left: 8%;
    animation: float2 16s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-3deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(15deg); }
    50% { transform: translate(25px, -25px) rotate(25deg); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-15px, 15px) rotate(10deg); }
}

/* --- Navigation --- */
.nav {
    background: rgba(245, 240, 232, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(4, 120, 87, 0.1);
}

.nav.scrolled {
    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: #047857;
    transition: width 0.3s ease;
}

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

/* Mobile Menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-menu.open {
    max-height: 400px;
}

.mobile-menu-link {
    padding: 8px 0;
    border-bottom: 1px solid rgba(4, 120, 87, 0.1);
}

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

/* --- Hero --- */
.hero {
    position: relative;
}

.hero-gradient {
    background: linear-gradient(135deg, #047857 0%, #065F46 40%, #1A2E2A 100%);
}

.hero-shapes {
    pointer-events: none;
}

.hero-shape {
    position: absolute;
}

.hero-shape-1 {
    width: 300px;
    height: 300px;
    background: rgba(245, 158, 11, 0.15);
    border-radius: 50%;
    top: 10%;
    left: 5%;
    animation: heroFloat 8s ease-in-out infinite;
}

.hero-shape-2 {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    top: 20%;
    right: 35%;
    transform: rotate(45deg);
    animation: heroFloat 10s ease-in-out infinite reverse;
}

.hero-shape-3 {
    width: 80px;
    height: 80px;
    background: rgba(245, 158, 11, 0.2);
    border-radius: 50%;
    bottom: 20%;
    left: 15%;
    animation: heroFloat 6s ease-in-out infinite;
}

.hero-shape-4 {
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    bottom: 10%;
    right: 25%;
    animation: heroFloat 12s ease-in-out infinite;
}

.hero-shape-5 {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.06);
    top: 40%;
    left: 2%;
    transform: rotate(30deg);
    animation: heroFloat 7s ease-in-out infinite reverse;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, -20px) rotate(5deg); }
}

.hero-photo {
    animation: heroPhotoFloat 6s ease-in-out infinite;
}

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

.hero-photo-accent {
    animation: accentPulse 3s ease-in-out infinite;
}

@keyframes accentPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Hero Content Animations */
.hero-badge {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.2s;
}

.hero-title {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.4s;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.6s;
}

.hero-cta {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.8s;
}

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

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

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

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: #F59E0B;
    color: #1A2E2A;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 16px 32px;
    border-radius: 60px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.btn-primary:hover {
    background: #D97706;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 16px 32px;
    border-radius: 60px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* --- Marquee --- */
.marquee-strip {
    position: relative;
    overflow: hidden;
}

.marquee-track {
    animation: marquee 25s linear infinite;
}

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

/* --- Section Styles --- */
.section {
    position: relative;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #047857;
    background: rgba(4, 120, 87, 0.1);
    padding: 8px 16px;
    border-radius: 60px;
    margin-bottom: 16px;
}

.section-title {
    color: #1A2E2A;
}

.section-desc {
    color: rgba(26, 46, 42, 0.6);
}

/* --- Menu Cards --- */
.menu-grid {
    position: relative;
}

.menu-card {
    position: relative;
}

.menu-card-inner {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-card:hover .menu-card-inner {
    transform: translateY(-4px);
}

.menu-card-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- Why Cards --- */
.why-card {
    position: relative;
}

/* --- Info Cards --- */
.info-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.info-icon {
    flex-shrink: 0;
}

/* --- Form --- */
.form-input {
    font-family: 'Inter', sans-serif;
}

.form-input:focus {
    border-color: #047857;
    box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.1);
}

/* --- Footer --- */
.footer {
    position: relative;
}

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

.reveal.revealed {
    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; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 3rem;
    }

    .about-photo-secondary {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: -40px;
        margin-left: auto;
        margin-right: auto;
    }

    .about-photos {
        order: -1;
    }

    .menu-card-inner {
        padding: 1.5rem;
    }

    .menu-card-img {
        width: 60px;
        height: 60px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
