:root {
    --bg-color: #F9F4E8;
    --text-color: #1A2C42;
    /* Deep Navy */
    --accent-color: #D35400;
    /* Burnt Orange/Red */
    --secondary-accent: #27AE60;
    /* Fresh Green */
    --font-heading: 'Shrikhand', cursive;
    --font-body: 'Open Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    /* 1950s Diner Vibe: Subtle Checkerboard Pattern */
    background-image:
        linear-gradient(45deg, #eaddcf 25%, transparent 25%, transparent 75%, #eaddcf 75%, #eaddcf),
        linear-gradient(45deg, #eaddcf 25%, transparent 25%, transparent 75%, #eaddcf 75%, #eaddcf);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal scroll from floating elements */
    padding-top: 100px;
    /* Space for fixed navbar */
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: center;
    /* Center the menu */
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-heading);
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--accent-color);
}

/* Navbar Pizza Animation */
.nav-pizza {
    height: 50px;
    width: auto;
    position: absolute;
    left: 50%;
    /* Start from center to calculate offset relative to menu */
    margin-left: -350px;
    /* Adjust to sit to the left of the menu items */
    transform: translateX(-100vw) rotate(-360deg);
    /* Start off-screen */
    animation: slideInPizza 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
    /* Bouncy finish */
    z-index: 1001;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.1));
}

@keyframes slideInPizza {
    0% {
        transform: translateX(-100vw) rotate(-360deg);
        opacity: 0;
    }

    100% {
        transform: translateX(0) rotate(0deg);
        opacity: 1;
    }
}

.nav-btn {
    padding: 8px 20px;
    font-size: 1rem;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes float-reverse {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(-5deg);
    }
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    80% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.relative {
    position: relative;
}

.hero-sponsor-logo {
    height: 1.8rem;
    width: auto;
    vertical-align: middle;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.2));
}

/* Food Decoration */
.food-decor {
    position: absolute;
    width: 150px;
    height: auto;
    z-index: 1;
    opacity: 0.9;
    filter: drop-shadow(5px 5px 0px rgba(0, 0, 0, 0.1));
    animation: float 6s ease-in-out infinite;
}

.burger {
    top: 10%;
    left: -5%;
    animation-delay: 0s;
    width: 180px;
}

.chips {
    bottom: 15%;
    right: -5%;
    animation-delay: 1s;
    animation-name: float-reverse;
    width: 160px;
}

.ice-cream {
    top: 15%;
    right: 5%;
    animation-delay: 2s;
    width: 120px;
}

.pizza {
    bottom: 20%;
    left: 5%;
    animation-delay: 3s;
    width: 170px;
}

/* Responsive removal of decorations */
@media (max-width: 900px) {
    .food-decor {
        opacity: 0.3;
        width: 80px !important;
    }
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    /* Display fonts often don't need bold */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.btn:hover {
    transform: translateY(-3px) rotate(-2deg);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 3px solid var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* Sections */
.section {
    padding: 80px 0;
    text-align: center;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    text-shadow: 2px 2px 0px var(--text-color);
}

.section-text {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #fffdf5 0%, #F9F4E8 100%);
    position: relative;
    overflow: hidden;
}

.hero-logo {
    max-width: 80%;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(4px 4px 0px var(--text-color));
    transform: rotate(-3deg);
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 10px;
    /* Reduced margin since it's now above the logo */
    text-transform: uppercase;
    letter-spacing: 2px;
}

.event-details {
    font-family: var(--font-heading);
    /* Apply retro font */
    font-size: 1.8rem;
    font-weight: 400;
    /* Shrikhand is implicitly bold */
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    letter-spacing: 1px;
}

.date {
    color: var(--accent-color);
    font-size: 2.5rem;
    /* Make the date bigger */
    text-shadow: 2px 2px 0px var(--text-color);
    /* Add retro shadow */
    transform: rotate(-2deg);
    /* Slight rotation for fun */
}

.location a {
    color: var(--text-color) !important;
    text-decoration: none;
    border-bottom: 3px dashed var(--accent-color) !important;
    /* Fun dashed underline */
    transition: all 0.2s ease;
}

.location a:hover {
    color: var(--accent-color) !important;
    border-bottom-style: solid !important;
    transform: scale(1.05);
    display: inline-block;
}

/* Gallery Grid */
/* Gallery Grid - Polaroid Style */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
    padding: 20px;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    background: white;
    padding: 15px;
    padding-bottom: 50px;
    /* Polaroid bottom */
    border-radius: 2px;
    border: none;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:nth-child(odd) {
    transform: rotate(2deg);
}

.gallery-item:nth-child(even) {
    transform: rotate(-2deg);
}

.gallery-item:nth-child(3n) {
    transform: rotate(1deg);
}

.gallery-item:hover {
    transform: scale(1.1) rotate(0deg) !important;
    z-index: 10;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid #eee;
}

/* Vendors Section */
.vendors {
    background-color: #ffecd1;
    /* Light orange tint */
}

/* Past Vendors Grid */
.past-vendors h3 {
    font-size: 2rem;
    font-family: var(--font-heading);
    color: var(--secondary-accent);
    margin-bottom: 20px;
}

.vendor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    text-align: left;
}

.vendor-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.vendor-card h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.vendor-card a {
    text-decoration: none;
    color: var(--secondary-accent);
    transition: color 0.3s;
}

.vendor-card a:hover {
    color: var(--primary-accent);
}

.vendor-card:hover {
    transform: translateY(-5px);
    background: white;
}

.vendor-card h4 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.vendor-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
    margin-bottom: 0;
}

.vendor-details {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 30px;
    border-radius: 4px;
    max-width: 800px;
    margin: 30px auto;
    border: 2px dashed var(--accent-color);
}

.vendor-details h3 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.fees-list {
    list-style: none;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--text-color);
}

.fees-list li {
    margin-bottom: 10px;
}

.small-text {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 5px;
}

/* Sponsor Section */
/* Sponsor Section */
.sponsor {
    background-color: #fff;
    padding: 60px 0;
}

.sponsor-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .sponsor-content {
        flex-direction: row;
        justify-content: center;
        text-align: left;
        gap: 40px;
    }
}

.sponsor-logo {
    max-width: 280px;
    height: auto;
    transition: transform 0.3s;
}

.sponsor-logo:hover {
    transform: scale(1.05);
}

.sponsor-text h4 {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    color: var(--text-color);
    margin-bottom: 10px;
}

.sponsor-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.btn-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.btn-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    background-color: var(--text-color);
    color: var(--bg-color);
}

.social-links {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-links a {
    color: var(--bg-color);
    text-decoration: none;
    font-size: 2rem;
    /* Larger icons */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    /* Subtle circle background */
}

.social-links a:hover {
    color: var(--accent-color);
    background-color: #fff;
    transform: translateY(-5px);
}

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

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