@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --nav-height: 80px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Dark theme default */
    --primary: #2b2217;
    --text-main: #f5f5f5;
    --accent: #d4af37;
    --accent-dark: #b58c23;
    --glass-bg: rgba(0, 0, 0, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Hero styling */
.hero-header {
    position: relative;
    /* use hero bg image from folder, center cover for clean look */
    background: url('../../images/herobg.png') center/cover no-repeat fixed;
    background-position: center center;
    background-attachment: fixed;
}

.hero-logo {
    max-width: 300px;
    /* allow larger logo in hero */
}

@keyframes fadein {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadein {
    animation: fadein 1s ease forwards;
}


body {
    /* Use a very deep rich brown as the base */
    background-color: #1a130c;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;

    /* A luxurious dynamic moving gradient background */
    background-image:
        radial-gradient(at 0% 0%, rgba(212, 175, 55, 0.08) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(230, 126, 34, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(181, 140, 35, 0.08) 0px, transparent 50%);
    background-size: 150% 150%;
    animation: luxuriousBg 15s ease infinite alternate;
}

@keyframes luxuriousBg {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 100%;
    }
}

/* Three.js-style Ambient Animated Blobs using CSS */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
    animation: floatBlobs 25s infinite ease-in-out alternate;
}

body::before {
    top: -15%;
    left: -15%;
    width: 50vw;
    height: 50vw;
    background: rgba(212, 175, 55, 0.12);
    /* Gold */
}

body::after {
    bottom: -15%;
    right: -15%;
    width: 60vw;
    height: 60vw;
    background: rgba(230, 126, 34, 0.12);
    /* Orange/Amber */
    animation-delay: -12s;
    animation-duration: 30s;
}

@keyframes floatBlobs {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(8%, 8%) scale(1.1);
    }

    66% {
        transform: translate(-5%, 12%) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Particles Background Container */
#tsparticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Three.js Canvas - fixed background */
.hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Ensure all content appears above the canvas */
main,
footer,
#back-to-top {
    position: relative;
    z-index: 10;
}

/* Footer glass effect */
.footer-glass {
    background: rgba(8, 8, 8, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Section spacing */
.section-padding {
    padding: 100px 0;
}

/* About text styling */
.about-text {
    /* ensure paragraphs are dark in light mode and light in dark mode */
    color: var(--text-main);
    line-height: 1.8;
}

/* Hero overlay to improve contrast against background image */
.hero-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    /* Shadow overlay so content is visible */
    pointer-events: none;
    z-index: 1;
}

/* Sipo logo sizing */
.sipo-logo {
    height: 2.5rem;
}

/* Back to top button */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
    display: none;
}

/* Floating Order Now Button */
.floating-order {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--accent);
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 100px;
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(230, 126, 34, 0.4);
    transition: var(--transition);
    animation: pulse-glow 2s ease-in-out infinite;
}

.floating-order:hover {
    background: var(--accent-dark);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(230, 126, 34, 0.6);
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 8px 32px rgba(230, 126, 34, 0.4);
    }

    50% {
        box-shadow: 0 8px 48px rgba(230, 126, 34, 0.6);
    }
}

/* Gallery - no gaps */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.gallery-grid .gallery-item {
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
    border-radius: 24px;
}

.gallery-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-grid .gallery-item:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Event card styling */
.event-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5);
}

.event-card .overflow-hidden img {
    transition: transform 0.7s ease;
}

.event-card:hover .overflow-hidden img {
    transform: scale(1.1);
}


/* Page Load Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth link transitions */
a {
    transition: color 0.3s ease, opacity 0.3s ease;
}

/* Chef section */
.chef-image {
    border-radius: 32px;
    object-fit: cover;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

h1,
h2,
h3,
h4,
.font-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Modern Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    transition: var(--transition);
}

.glass:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Dynamic Navbar */
.glass-nav {
    height: var(--nav-height);
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.glass-nav.scrolled {
    background: rgba(8, 8, 8, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    height: 70px;
}

/* Smooth Buttons */
.btn-modern {
    padding: 12px 32px;
    border-radius: 100px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(230, 126, 34, 0.2);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: white;
    color: black;
    transform: translateY(-2px);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

/* Custom Hamburger */
.hamburger {
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    margin: 5px 0;
    transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Refinements */
.hero-overlay {
    background: radial-gradient(circle at center, transparent, var(--primary));
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .glass-nav {
        height: 70px;
    }

    .section-padding {
        padding: 60px 0;
    }

    /* Hero section mobile adjustments */
    .hero-header {
        background-attachment: scroll;
        /* Fix parallax jitter on mobile */
    }

    .hero-logo {
        max-width: 180px;
    }

    /* Floating buttons: stack vertically, smaller on mobile */
    .floating-order {
        padding: 10px 20px;
        font-size: 0.75rem;
        bottom: 1rem;
        left: 1rem;
    }

    #back-to-top {
        bottom: 1rem;
        right: 1rem;
        padding: 10px;
    }

    /* Footer grid: 2 columns on tablet, 1 on small */
    footer .grid {
        gap: 2rem;
    }

    /* Glass panels: reduce padding on mobile */
    .glass {
        border-radius: 16px;
    }

    /* Gallery: 2 columns on mobile */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .hero-logo {
        max-width: 140px;
    }

    /* Ensure mobile menu overlay covers everything */
    #mobile-menu {
        z-index: 9999;
        padding: 2rem;
    }

    /* Hamburger above everything */
    .hamburger {
        z-index: 10000;
        position: relative;
    }
}