/* 
   Duh-Lish-Us Treatery - Modern Website Redesign
   A clean, modern design for the Duh-Lish-Us Treatery Company
*/

/* ====== Global Reset & Box Sizing ====== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ====== Fun Text Styles ====== */


.curve-text {
    display: flex;
    justify-content: center;
    transform: perspective(400px) rotateX(15deg);
    margin: 15px 0; /* Reduce vertical margin */
}

.logo-container .rainbow-text {
    font-family: 'Fredoka One', cursive;
    display: inline-block;
    font-size: clamp(1.8rem, 6vw, 2.7rem);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.2; /* Add line-height for wrapped text */
    text-align: center;
    margin: 20px 0;
    text-shadow: 
        /* Outline */
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000,
        -1px  0   0 #000,
         1px  0   0 #000,
         0   -1px 0 #000,
         0    1px 0 #000,
        /* 3D Shadow */
        2px 2px 2px rgba(0,0,0,0.25);
}

.rainbow-text .char {
    display: inline-block;
    padding: 0 1px;
    position: relative;
    animation: bounce 1.15s infinite alternate;
}

/* Color cycle for the letters */
.rainbow-text .char:nth-child(6n+1) { color: #EF4DB6; } /* Hot Pink */
.rainbow-text .char:nth-child(6n+2) { color: #FEEA3E; } /* Bright Yellow */
.rainbow-text .char:nth-child(6n+3) { color: #00C136; } /* Bright Green */
.rainbow-text .char:nth-child(6n+4) { color: #00CFFF; } /* Sky Blue */
.rainbow-text .char:nth-child(6n+5) { color: #1DD2D0; } /* Turquoise */
.rainbow-text .char:nth-child(6n)   { color: #AA42E1; } /* Purple */

/* Staggered animation delay */
.rainbow-text .char:nth-child(1) { animation-delay: 0.05s; }
.rainbow-text .char:nth-child(2) { animation-delay: 0.10s; }
.rainbow-text .char:nth-child(3) { animation-delay: 0.15s; }
.rainbow-text .char:nth-child(4) { animation-delay: 0.20s; }
.rainbow-text .char:nth-child(5) { animation-delay: 0.25s; }
.rainbow-text .char:nth-child(6) { animation-delay: 0.30s; }
.rainbow-text .char:nth-child(7) { animation-delay: 0.35s; }
.rainbow-text .char:nth-child(8) { animation-delay: 0.40s; }
.rainbow-text .char:nth-child(9) { animation-delay: 0.45s; }
.rainbow-text .char:nth-child(10) { animation-delay: 0.50s; }
.rainbow-text .char:nth-child(11) { animation-delay: 0.55s; }
.rainbow-text .char:nth-child(12) { animation-delay: 0.60s; }
.rainbow-text .char:nth-child(13) { animation-delay: 0.65s; }
.rainbow-text .char:nth-child(14) { animation-delay: 0.70s; }
.rainbow-text .char:nth-child(15) { animation-delay: 0.75s; }
.rainbow-text .char:nth-child(16) { animation-delay: 0.80s; }
.rainbow-text .char:nth-child(17) { animation-delay: 0.85s; }
.rainbow-text .char:nth-child(18) { animation-delay: 0.90s; }
.rainbow-text .char:nth-child(19) { animation-delay: 0.95s; }
.rainbow-text .char:nth-child(20) { animation-delay: 1.00s; }
.rainbow-text .char:nth-child(21) { animation-delay: 1.05s; }
.rainbow-text .char:nth-child(22) { animation-delay: 1.10s; }
.rainbow-text .char:nth-child(23) { animation-delay: 1.15s; }
.rainbow-text .char:nth-child(24) { animation-delay: 1.20s; }
.rainbow-text .char:nth-child(25) { animation-delay: 1.25s; }

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-8px); } /* Adjusted bounce height */
}

/* ====== CSS Variables ====== */
:root {
    --header-height: 15rem;

    /* Main Colors - Playful Ice Cream Palette */
    --primary: #FF85A2; /* Sweet Pink */
    --primary-dark: #ff6b8e;
    --primary-light: #ffb7c5;
    --secondary: #64D2FF; /* Sky Blue */
    --secondary-dark: #41b0db;
    --secondary-light: #a1e3ff;
    --accent: #FFDE59; /* Vanilla Yellow */
    --accent-dark: #ffd026;
    --accent-light: #ffea91;
    --mint: #92D5BC; /* Mint Green */
    --mint-dark: #73c6a7;
    --mint-light: #b5e4d4;
    --berry: #9867FF; /* Berry Purple */
    --berry-dark: #8144ff;
    --berry-light: #b594ff;
    
    /* Neutral Colors */
    --dark: #333333;
    --gray-dark: #666666;
    --gray: #999999;
    --gray-light: #dddddd;
    --light: #f8f9fa;
    --white: #ffffff;
    
    /* UI Elements */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.12);
    --shadow-inset: inset 0 2px 5px rgba(0, 0, 0, 0.05);
    --border-radius-sm: 8px;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    --border-radius-full: 999px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* System */
    --text-color: #333;
    --text-light: #777;
    --bg-color: #ffffff;
    --bg-alt-color: #f8f8f8;
    --header-bg: rgba(255, 255, 255, 0.97);
    --card-bg: #ffffff;
    --border-color: #eee;
    --success-color: #4CAF50;
    --error-color: #F44336;
    --warning-color: #FFC107;
    --info-color: #2196F3;
    --gradient-primary: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    --gradient-mint: linear-gradient(135deg, var(--mint-light) 0%, var(--mint) 100%);
    --gradient-berry: linear-gradient(135deg, var(--berry-light) 0%, var(--berry) 100%);
}

/* ====== Dark Theme Variables ====== */
[data-theme="dark"] {
    --text-color: #f0f0f0;
    --text-light: #aaa;
    --bg-color: #121212;
    --bg-alt-color: #1f1f1f;
    --header-bg: rgba(18, 18, 18, 0.97);
    --card-bg: #1f1f1f;
    --border-color: #333;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* ====== Reset & Base Styles ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 10px = 1rem */
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: var(--transition);
    position: relative;
    padding-top: var(--header-height); /* Offset for fixed header */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2rem;
}

h1, .h1 {
    font-size: 4.8rem;
    letter-spacing: -0.03em;
}

h2, .h2 {
    font-size: 3.6rem;
    letter-spacing: -0.02em;
}

h3, .h3 {
    font-size: 2.4rem;
}

h4, .h4 {
    font-size: 2rem;
}

p {
    margin-bottom: 1.6rem;
    font-weight: 400;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

/* ====== Layout ====== */
.container {
    width: 100%;
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
    position: relative;
}

section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 8rem;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 100"%3E%3Cpath fill="%23ffffff" fill-opacity="1" d="M0,32L80,42.7C160,53,320,75,480,69.3C640,64,800,32,960,21.3C1120,11,1280,21,1360,26.7L1440,32L1440,100L1360,100C1280,100,1120,100,960,100C800,100,640,100,480,100C320,100,160,100,80,100L0,100Z"%3E%3C/path%3E%3C/svg%3E');
    background-size: cover;
    background-position: center;
    z-index: 5;
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 7rem;
    position: relative;
    z-index: 10;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    font-family: 'Pacifico', cursive;
    font-weight: 400;
    font-size: 4.2rem;
}

.section-title span {
    color: var(--primary);
    position: relative;
}

.section-title span::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 0;
    width: 100%;
    height: 1rem;
    background-color: var(--accent-light);
    z-index: -1;
    opacity: 0.6;
    border-radius: 1rem;
}

.section-subtitle {
    color: var(--gray-dark);
    font-size: 1.8rem;
    max-width: 60rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* ====== Buttons ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3.2rem;
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    border-radius: var(--border-radius-full);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--shadow);
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn:active {
    transform: translateY(2px);
}

/* General Section Styling */
.section-bg {
    background-color: #f5f5f5; /* Light Grey */
}

/* Global button styles */
.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    font-size: 1.6rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--primary) !important;
    color: white !important;
    border: 2px solid var(--primary) !important;
    box-shadow: var(--shadow);
}

.btn:hover {
    background-color: white !important;
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 133, 162, 0.4);
}

/* This covers all button variations */
.btn-primary, .hero-buttons .btn-primary,
.btn-outline, .hero-buttons .btn-outline,
.contact-form .btn-primary,
.booking-form .btn-primary,
.signup-form .btn-primary,
.request-visit-btn,
.view-more-btn {
    background-color: var(--primary) !important;
    color: white !important;
    border: 2px solid var(--primary) !important;
    font-weight: 600;
}

.btn-primary:hover, .hero-buttons .btn-primary:hover,
.btn-outline:hover, .hero-buttons .btn-outline:hover,
.contact-form .btn-primary:hover,
.booking-form .btn-primary:hover,
.signup-form .btn-primary:hover,
.request-visit-btn:hover,
.view-more-btn:hover {
    background-color: white !important;
    color: var(--primary) !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 133, 162, 0.4);
    border-color: var(--primary) !important;
}

.btn-icon {
    margin-left: 1rem;
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(3px);
}

/* ====== Header & Navigation ====== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    -webkit-backdrop-filter: blur(10px);
}

.header.scrolled {
    padding: 1rem 0;
    box-shadow: var(--shadow);
    background-color: rgba(255, 255, 255, 0.98);
}

.header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: relative; /* Needed for absolute positioning of nav-toggle */
}

.logo-container {
    flex: 1;
    min-width: 0; /* Prevent content from breaking flexbox */
    display: flex;
    justify-content: center;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.logo h1 {
    display: none;
}

.logo span {
    color: var(--primary);
    position: relative;
}

.logo span::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath fill="%23FFDE59" d="M12,1L9,9L1,12L9,15L12,23L15,15L23,12L15,9Z"%3E%3C/path%3E%3C/svg%3E');
    background-size: contain;
    background-repeat: no-repeat;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 2;
}

.nav-toggle span {
    display: block;
    width: 2.6rem;
    height: 0.3rem;
    background-color: var(--primary);
    margin: 0.5rem 0;
    border-radius: 0.3rem;
    transition: transform 0.3s ease-in-out, opacity 0.2s ease-in-out;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.6rem, 0.7rem);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.6rem, -0.7rem);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 3.5rem;
}

.nav-link {
    color: var(--dark);
    font-weight: 500;
    font-size: 1.6rem;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0.3rem;
    background-color: var(--primary);
    transition: width 0.3s cubic-bezier(0.65, 0, 0.35, 1);
    border-radius: 0.3rem;
}

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

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

.nav-link.active {
    color: var(--primary);
}

/* ====== Hero Section ====== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--light);
    padding: 15rem 0 5rem;
    margin-top: -7rem;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 3;
}

.hero-content {
    min-width: 0; /* Allow column to shrink to prevent overflow */
    overflow-wrap: break-word; /* Force long words to wrap */
}

.hero-title {
    font-size: 5.6rem;
    margin-bottom: 2.4rem;
    line-height: 1.2;
    letter-spacing: normal; /* Reset letter-spacing */

}

.hero-title span {
    color: var(--primary);
    position: relative;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 0;
    width: 100%;
    height: 0.8rem;
    background-color: var(--accent);
    z-index: -1;
    opacity: 0.7;
}

.hero-text {
    font-size: 1.8rem;
    margin-bottom: 3.2rem;
    color: var(--gray-dark);
}

.hero-buttons {
    display: flex;
    gap: 2rem;
}

.hero-extra-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.hero-extra-images img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.hero-extra-images img:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 30px rgba(0,0,0,0.15);
}

.hero-image {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0; /* Allow column to shrink to prevent overflow */
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    transform: rotate(3deg);
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -2rem;
    right: -2rem;
    width: 60%;
    height: 60%;
    background-color: var(--primary-light);
    border-radius: var(--border-radius-lg);
    z-index: -1;
}

.hero-image::after {
    content: '';
    position: absolute;
    bottom: -2rem;
    left: -2rem;
    width: 40%;
    height: 40%;
    background-color: var(--accent);
    border-radius: var(--border-radius-lg);
    z-index: -1;
}

.hero-shape {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 2;
}

.hero-shape svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ====== Menu Section ====== */
.menu {
    background-color: var(--bg-alt-color);
    position: relative;
    z-index: 2;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem;
}

/* ====== Menu Supplier Info ====== */
.menu-supplier-info {
    text-align: center;
    margin-bottom: 4rem;
}

.supplier-logo-main {
    display: block;
    max-width: 250px;
    margin: 0 auto 1.5rem;
}

.supplier-serving {
    color: var(--primary);
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.supplier-price {
    color: #00C136; /* Bright Green */
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.supplier-tagline {
    font-size: 1.6rem;
    color: var(--gray-dark);
}

.menu-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ====== About Section ====== */
.about {
    background-color: var(--light);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile-first: single column */
    gap: 4rem;
    align-items: center; /* Vertically center the columns */
}



.about-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns for a balanced grid */
    gap: 1.5rem;
}

.about-image-grid img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image-grid img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: var(--shadow-lg);
}

@media (min-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr 1fr; /* Equal width for maximum image size */
        gap: 6rem;
    }
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.product-highlights .supplier-logo {
    display: block;
    margin: 2rem auto 0;
    max-width: 350px;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: -2rem;
    width: 40%;
    height: 40%;
    background-color: var(--primary-light);
    border-radius: var(--border-radius-lg);
    z-index: -1;
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    width: 30%;
    height: 30%;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature i {
    font-size: 3.2rem;
    color: var(--primary);
    margin-bottom: 1.6rem;
}

.feature h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.feature p {
    color: var(--gray-dark);
    font-size: 1.4rem;
    margin-bottom: 0;
}

/* ====== Events Section ====== */
.events {
    background-color: var(--white);
    position: relative;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.event-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.event-image {
    height: 20rem;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

.event-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-date {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.event-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.event-location {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gray-dark);
    margin-bottom: 1.6rem;
}


.testimonial-slider {
    display: flex;
    overflow: hidden;
}

.testimonial-slide {
    min-width: 100%;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide .quote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}



.find-us-cta, .event-booking-teaser {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fff9fb;
    border-radius: 10px;
    text-align: center;
}

.find-us-cta p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.event-booking-teaser h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.event-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.event-icon {
    text-align: center;
}

.event-icon i {
    font-size: 2.5rem;
    color: #FF85A2;
    margin-bottom: 0.5rem;
}

.event-icon span {
    display: block;
    font-weight: 500;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact {
    background-color: var(--light);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
    gap: 2rem;
}

.contact-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-card i {
    font-size: 3.2rem;
    color: var(--primary);
    margin-bottom: 1.6rem;
}

.contact-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
}

.contact-form-container {
    background-color: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form {
    display: grid;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-group label {
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    padding: 1.2rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 1.6rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 133, 162, 0.2);
}

/* ====================
   7. Modern Footer
   ==================== */
.site-footer {
    background-color: #ffffff;
    color: #555;
    padding: 5rem 0 2rem;
    border-top: 1px solid #e9e9e9;
    font-family: 'Poppins', sans-serif;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-branding .footer-logo-img {
    max-width: 180px;
    margin-bottom: 1rem;
}

.footer-branding h4 {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.footer-branding p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-nav ul, .footer-contact p {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 0.8rem;
}

.footer-nav a, .footer-contact a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-nav a:hover, .footer-contact a:hover {
    color: #FF85A2;
    transform: translateX(3px);
}

.footer-contact i {
    color: #FF85A2;
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.btn-footer-cta {
    margin-top: 1rem;
    width: 100%;
    text-align: center;
    background-color: #FF85A2;
    color: white;
    font-weight: 600;
    padding: 0.8rem 1rem;
}

.btn-footer-cta:hover {
    background-color: #E67691;
    transform: translateY(-2px);
}

.footer-social-newsletter .social-icons {
    margin-bottom: 2rem;
}

.social-icons a {
    color: #333;
    font-size: 1.8rem;
    margin-right: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: #FF85A2;
    transform: translateY(-3px);
}


.footer-bottom {
    border-top: 1px solid #e9e9e9;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #888;
}

.footer-legal-links a {
    color: #888;
    text-decoration: none;
    margin-left: 1rem;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: #FF85A2;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-branding .footer-logo-img {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-nav a:hover, .footer-contact a:hover {
        transform: none;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}
/* ====== Back to Top Button ====== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 4.5rem;
    height: 4.5rem;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* ====== Loading Spinner ====== */
.loading-spinner {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 0;
}

.spinner {
    width: 5rem;
    height: 5rem;
    border: 4px solid rgba(255, 133, 162, 0.2);
    border-left-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 2rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ====== Responsive Design ====== */
@media screen and (max-width: 1200px) {
    html {
        font-size: 60%;
    }
}

@media screen and (max-width: 992px) {
    .nav-toggle {
        display: none;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        position: static;
        background: none;
        box-shadow: none;
        width: auto;
        padding: 0;
    }

    :root {
        --header-height: 14rem;
    }

    html {
        font-size: 58%;
    }
    
    .hero .container,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        order: -1;
    }


}

@media screen and (max-width: 768px) {
    .header .container {
        justify-content: center; /* Center the logo container on mobile */
    }

    .nav-toggle {
        display: block; /* Show hamburger on mobile */
        position: absolute;
        right: 2rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .curve-text {
        transform: none; /* Disable 3D effect on mobile for readability */
    }

    :root {
        --header-height: 12rem;
    }

    html {
        font-size: 56%;
    }
    
    .nav-toggle {
        display: block; /* Show hamburger menu on mobile */
    }
    
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 40rem;
        height: 100vh;
        background-color: var(--white);
        padding: 8rem 2rem 2rem;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        z-index: 1;
    }
    
    .nav-menu.show {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.8rem;
    }
    
    .about-features,
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }

}

@media screen and (max-width: 576px) {
    :root {
        --header-height: 11rem;
    }

    html {
        font-size: 54%;
    }
    
    section {
        padding: 7rem 0;
    }
    
    .flavor-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Theme Toggle */
.theme-toggle {
    margin-left: 15px;
}

.theme-toggle button {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle button:hover {
    background-color: rgba(255, 133, 162, 0.1);
    color: var(--primary-color);
}

[data-theme="dark"] .theme-toggle .fa-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .fa-sun {
    display: inline-block;
}

.theme-toggle .fa-sun {
    display: none;
}

.theme-toggle .fa-moon {
    display: inline-block;
}

/* Event Map */
.event-map-container {
    margin-top: 2rem;
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: var(--transition);
}

.map-title {
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.map-title i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.event-map {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
}

.event-card {
    position: relative;
    transition: var(--transition);
}

.event-card .map-btn {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(10px);
}

.event-card:hover .map-btn {
    opacity: 1;
    transform: translateY(0);
}

.event-card .map-btn:hover {
    background-color: var(--text-color);
}

/* Admin Styles */
.admin-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1000;
    width: 380px;
    max-width: 90%;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.admin-modal.active {
    display: block;
    opacity: 1;
}

.admin-modal h2 {
    margin: 0 0 1.5rem;
    color: #333;
    font-size: 1.75rem;
    font-weight: 600;
    text-align: center;
}

.admin-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #888;
    border-radius: 50%;
    transition: all 0.2s ease;
    background: #f5f5f5;
    line-height: 0;
    padding-bottom: 2px;
}

.admin-modal-close:hover {
    background: #eee;
    color: #333;
    transform: rotate(90deg);
}

.admin-login-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.admin-login-form .form-group {
    margin-bottom: 1.2rem;
}

.admin-login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #444;
    font-size: 0.95rem;
}

.admin-login-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #f9f9f9;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.admin-login-form input:focus {
    outline: none;
    border-color: #3498db;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.admin-login-btn {
    background: #3498db;
    color: white;
    padding: 0.9rem 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-login-btn:hover {
    background: #2980b9;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.admin-login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-image img {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 1rem;    
    }

    .admin-modal {
        width: 85%;
        padding: 2rem;
    }
    
    .admin-modal h2 {
        font-size: 1.5rem;
    }
    
    .admin-login-form input {
        font-size: 16px;
    }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--card-bg);
    margin: 15% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px var(--shadow-color);
    position: relative;
    transition: var(--transition);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    background-color: var(--bg-alt-color);
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: var(--transition);
}

.btn:hover {
    background: var(--primary-dark);
}

.error-message {
    color: var(--error-color);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-image img {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    .modal-content {
        margin: 10% auto;
    }
    
    .form-group input {
        font-size: 0.9rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
    }
}

.admin-controls {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    background-color: var(--bg-alt-color);
    padding: 0.75rem;
    border-radius: 5px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-controls button {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    background-color: var(--bg-color);
    color: var(--text-color);
}

.admin-controls .approve-btn {
    background-color: #4CAF50;
    color: white;
}

.admin-controls .reject-btn,
.admin-controls .delete-event-btn,
.admin-controls .delete-flavor-btn {
    background-color: #F44336;
    color: white;
}

.admin-controls .edit-event-btn,
.admin-controls .edit-flavor-btn {
    background-color: #2196F3;
    color: white;
}

.admin-controls button:hover {
    opacity: 0.9;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.status-badge.approved {
    background-color: #e1f7e1;
    color: #2a9d2a;
}

.status-badge.pending {
    background-color: #fff3e0;
    color: #ff9800;
}

.status-badge.rejected {
    background-color: #ffebee;
    color: #f44336;
}

.status-tag {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    z-index: 5;
}

.status-tag.pending {
    background-color: #ff9800;
}

.status-tag.approved {
    background-color: #4CAF50;
}

.status-tag.rejected {
    background-color: #F44336;
}

.admin-section-title {
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-color);
}

.add-flavor-btn {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    height: auto;
}

/* Modal animations */
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-content {
    animation: modalFadeIn 0.3s ease;
}

.cart-status-indicator {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    text-align: center;
}

.cart-status-indicator.online {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.cart-status-indicator.offline {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Dark mode styles for various components */
[data-theme="dark"] .header {
    background-color: var(--header-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .nav-menu {
    background-color: var(--bg-color);
}

[data-theme="dark"] .flavor-card,
[data-theme="dark"] .event-card,
[data-theme="dark"] .about-content,
[data-theme="dark"] .feature,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .contact-form-container {
    background-color: var(--card-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .footer {
    background-color: var(--secondary-color);
}

[data-theme="dark"] .flavor-filters button {
    background-color: var(--card-bg);
}

[data-theme="dark"] .flavor-filters button.active {
    background-color: var(--primary-color);
    color: white;
}

[data-theme="dark"] .back-to-top {
    background-color: var(--card-bg);
    color: var(--text-color);
}

[data-theme="dark"] .back-to-top:hover {
    background-color: var(--primary-color);
    color: white;
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background-color: var(--bg-alt-color);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
    border-color: var(--primary-color);
}

/* Responsive adjustments for header on smaller screens */
@media (max-width: 992px) {
    .header .container {
        justify-content: space-between; /* Pushes logo and nav toggle to edges */
    }

    .logo-container {
        flex-grow: 1; /* Allows the logo container to fill available space */
        text-align: center; /* Centers the text within the container */
        margin-right: 1rem; /* Adds some space next to the nav toggle */
    }

    .logo-container .rainbow-text {
        margin-left: auto;
        margin-right: auto;
    }
}
