/* 
   EisFavorite Premium 2026 
   Modern, Glassmorphism, Vibrant.
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Playfair+Display:ital,wght@0,600;1,600&family=Great+Vibes&family=Alex+Brush&display=swap');

:root {
    /* Brand Colors */
    --primary: #0066CC;
    /* Vibrant Ocean Blue */
    --primary-dark: #004C99;
    /* Deep Sea */
    --accent: #FFD700;
    /* Gold */
    --accent-gradient: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);

    /* Backgrounds */
    --bg-body: #F4F9FF;
    /* Ice White */
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-card: #FFFFFF;

    /* Text */
    --text-main: #0A192F;
    /* Almost Black Blue */
    --text-muted: #485E75;
    /* Blue Grey */
    --text-light: #FFFFFF;

    /* Metrics */
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 40px;

    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(0, 50, 100, 0.05);
    --shadow-md: 0 12px 30px rgba(0, 50, 100, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 50, 100, 0.12);
    --shadow-glow: 0 0 30px rgba(0, 102, 204, 0.3);

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    --header-height: 90px;
    --container-width: 1280px;
}

/* --- Scroll Progress Bar --- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--accent-gradient);
    z-index: 2000;

}

/* --- Premium Selection & Scrollbar --- */
::selection {
    background: var(--primary);
    color: rgb(255, 255, 255);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
    border: 3px solid var(--bg-body);
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    font-family: var(--font-heading);
}

h2 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    color: var(--primary);
    font-family: var(--font-heading);
}

h3 {
    font-size: 1.8rem;
    font-family: var(--font-heading);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-family: var(--font-body);
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    width: 88%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.8rem;
    background: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-weight: 600;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-body);
    letter-spacing: 0.5px;
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.3);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.4);
}

.btn:hover::before {
    opacity: 1;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    box-shadow: none;
}

.btn-ghost:hover {
    background: white;
    color: var(--primary);
}

.btn-video {
    background: var(--accent-gradient);
    color: var(--text-main);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
}

.btn-video:hover {
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.3);
    color: var(--text-main);
}

/* --- Header & Nav --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
    /* Base for logo centering */
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 50;
    position: relative;
    left: 0;
}

header.scrolled .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scale(1.05);
}

/* Ensure nav and mobile toggle stay on the right when logo is absolute */
header.scrolled #main-nav,
header.scrolled .mobile-toggle {
    margin-left: auto;
}

.logo img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

header.scrolled .logo img {
    height: 45px;
    width: 45px;
}

header.scrolled #cms-logo-text {
    font-size: 1.2rem;
    transition: all 0.5s ease;
}

nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

nav a {
    font-weight: 500;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--text-main);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 100%;
}

.btn-nav {
    background: var(--primary);
    color: white !important;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.25);
}

.btn-nav::after {
    display: none;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.35);
}

/* --- Weather Widget --- */
.weather-widget {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-left: auto;
    margin-right: 2rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: default;
    box-shadow: var(--shadow-sm);
    z-index: 15;
}

.weather-widget:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

header.scrolled .weather-widget {
    background: rgba(0, 102, 204, 0.05);
    border-color: rgba(0, 102, 204, 0.1);
    margin-right: 1.5rem;
}

.weather-icon {
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@media (max-width: 968px) {
    .weather-widget {
        margin-right: 1rem;
    }
}

@media (max-width: 580px) {
    .weather-city {
        display: none;
    }

    .weather-widget {
        padding: 6px 12px;
        font-size: 0.85rem;
        margin-right: 0.5rem;
    }
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-main);
}

@media (max-width: 968px) {
    .mobile-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        height: 100vh;
        background: white;
        padding: 8rem 2rem;
        transform: translateX(100%);
        transition: transform 0.4s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    header.nav-open nav {
        transform: translateX(0);
    }

    nav ul {
        flex-direction: column;
        gap: 2rem;
    }

    nav a {
        font-size: 1.5rem;
    }
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: no-repeat center/cover;
    /* Image inline */
    position: relative;
    text-align: center;
    color: white;
    padding-top: var(--header-height);
}

/* Dark Overlay Gradient */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 45, 90, 0.4), rgba(0, 45, 90, 0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    animation: fadeIn 1.2s ease-out;
}

/* Waves */
.waves-container {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 2;
    line-height: 0;
}

.waves {
    width: 100%;
    height: 15vw;
    min-height: 100px;
    max-height: 200px;
}

.parallax>use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax>use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.parallax>use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.parallax>use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.parallax>use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}

/* --- Sections Common --- */
section {
    padding: 8rem 0;
    position: relative;
}

.section-light {
    background: var(--bg-body);
}

.section-white {
    background: white;
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.testimonial-card {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.testimonial-card::before {
    content: '“';
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.1;
    font-family: var(--font-heading);
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    font-family: var(--font-body);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info h4 {
    margin: 0;
    font-size: 1rem;
    font-family: var(--font-heading);
    color: var(--primary-dark);
}

.author-info p {
    margin: 0;
    font-size: 0.85rem;
    font-family: var(--font-body);
    color: var(--text-muted);
}

/* --- FAQ --- */
.faq-container {
    max-width: 800px;
    margin: 4rem auto 0;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--primary-dark);
    transition: background 0.3s;
}

.faq-question:hover {
    background: #fdfdfd;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0, 1, 0, 1);
    background: #fafafa;
}

.faq-item.active .faq-answer {
    padding: 1.5rem 2rem;
    max-height: 500px;
}

/* --- Intro (Glass Card) --- */
.intro-content {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid white;
    padding: 4rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-item {
    padding: 2rem;
    background: white;
    border-radius: var(--radius-md);
    text-align: left;
    transition: transform 0.3s;
    box-shadow: var(--shadow-sm);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

/* --- Services (Grid) --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 0 1rem;
}

@media (min-width: 769px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 850px;
        margin: 0 auto;
    }
}

.card {
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.card::top {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 4px 0px rgba(0, 0, 0, 0.1));
}

/* --- Gallery (Bento Grid) --- */
#gallery {
    background: white;
    transition: background 1s ease;
    overflow: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 cols */
    grid-auto-rows: 250px;
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Random sizes via child indexes for Bento Look (Generic) */
.gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item:nth-child(4) {
    grid-column: span 2;
}

.gallery-item:nth-child(5) {
    grid-row: span 2;
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .gallery-item:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
    }
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    color: white;
    margin: 0;
    font-size: 1.4rem;
    font-family: var(--font-heading);
}


/* --- Gallery Modes --- */
.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.gallery-btn {
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--border);
    background: white;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    font-family: var(--font-body);
}

.gallery-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Mode: Grid */
.gallery-mode-grid .gallery-spinner {
    transform-style: flat !important;
    animation: none !important;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%;
    height: auto;
    transform: none !important;
}

.gallery-mode-grid .gallery-item {
    position: relative !important;
    transform: none !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 300px;
    /* Fixed height for grid items */
    left: auto !important;
    top: auto !important;
    margin-bottom: 1rem;
}

/* Mode: Slider (Marquee) */
.gallery-mode-slider {
    overflow: hidden;
    white-space: nowrap;
}

.gallery-mode-slider .gallery-spinner {
    transform-style: flat !important;
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scrollGallery 40s linear infinite !important;
    transform: none !important;
}

.gallery-mode-slider .gallery-item {
    position: relative !important;
    transform: none !important;
    opacity: 1 !important;
    width: 300px !important;
    height: 400px !important;
    flex-shrink: 0;
    left: auto !important;
    top: auto !important;
}

@keyframes scrollGallery {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Assumes duplicated content or handled via JS reset, but simple scroll is ok for now. For endless loop, we ideally need double items. */
}

/* Weather Widget Responsiveness Fix */
@media (max-width: 1100px) {
    .weather-widget {
        margin-right: 0.5rem;
    }

    header.scrolled .weather-widget {
        /* Prevent overlap with centered logo */
        display: none;
    }
}

/* Music Button inside Gallery */
.gallery-music-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 100;
}


/* --- 3D Gallery --- */
.gallery-perspective {
    perspective: 2000px;
    height: 750px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    background: radial-gradient(circle at center, rgba(0, 102, 204, 0.05) 0%, transparent 70%);
    margin-top: 2rem;
    position: relative;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
}

.music-toggle-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.music-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    transform: scale(1.1);
}

.music-toggle-btn.playing {
    background: var(--accent);
    color: #000;
    animation: pulse-beat 2s infinite;
}

@keyframes pulse-beat {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

.gallery-spinner {
    position: relative;
    width: 200px;
    /* Reduced center size */
    height: 200px;
    transform-style: preserve-3d;
    /* remove animation, handled by JS */
}


/* Multi-Axis Rotation */
@keyframes rotateSphere {
    0% {
        transform: rotate3d(0, 1, 0, 0deg) rotate3d(1, 0, 0, 0deg);
    }

    100% {
        transform: rotate3d(0, 1, 0, 360deg) rotate3d(1, 0, 0, 360deg);
    }
}

/* Base item styles */
.gallery-item {
    position: absolute !important;
    top: 50%;
    left: 50%;
    width: 360px;
    height: 240px;
    margin-left: -180px;
    margin-top: -120px;

    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);

    transition: opacity 0.6s ease, border 0.6s ease, filter 0.6s ease, box-shadow 0.6s ease;
    will-change: transform, opacity, filter;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.5));
    opacity: 0.5;
    transition: opacity 0.4s;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover {
    z-index: 1000 !important;
    cursor: pointer;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4), 0 0 50px rgba(255, 215, 0, 0.3);
}

/* --- Gallery Modes --- */

/* Classic Grid Mode */
.gallery-perspective.gallery-mode-grid {
    perspective: none !important;
    height: auto !important;
    min-height: 600px;
    overflow: visible !important;
    padding: 4rem 0 !important;
}

.gallery-perspective.gallery-mode-grid .gallery-spinner {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 25px !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
}

.gallery-perspective.gallery-mode-grid .gallery-item {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    width: 100% !important;
    height: 280px !important;
    transform: none !important;
    opacity: 1 !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.gallery-perspective.gallery-mode-grid .gallery-item:hover {
    transform: translateY(-12px) scale(1.03) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
    z-index: 10 !important;
}

/* Normal Rotation (Horizontal 3D Carousel) */
.gallery-perspective.gallery-mode-slider {
    perspective: 1500px !important;
    height: 550px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.gallery-perspective.gallery-mode-slider .gallery-spinner {
    position: relative !important;
    width: 320px !important;
    height: 220px !important;
    transform-style: preserve-3d !important;
    display: block !important;
}

.gallery-perspective.gallery-mode-slider .gallery-item {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 320px !important;
    height: 220px !important;
    margin: 0 !important;
    border-radius: 16px !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3) !important;
    transition: transform 0.1s linear, opacity 0.5s ease !important;
    /* Smooth but responsive to JS */
    backface-visibility: hidden !important;
}

.gallery-perspective.gallery-mode-slider .gallery-item:hover {
    transform: scale(1.1) !important;
    filter: brightness(1.1) !important;
    box-shadow: 0 0 40px var(--accent) !important;
    z-index: 100 !important;
}

/* Flying Mode (Fills Screen) */
.gallery-perspective.gallery-mode-flying {
    perspective: 2500px !important;
    height: 95vh !important;
    min-height: 800px;
    background: #000 !important;
    overflow: hidden;
}

.gallery-perspective.gallery-mode-flying::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 20px 30px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 40px 70px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 50px 160px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 80px 120px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 110px 10px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 150px 150px, #fff, rgba(0, 0, 0, 0));
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.3;
    pointer-events: none;
}

.gallery-perspective.gallery-mode-flying .gallery-item {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 102, 204, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-perspective.gallery-mode-flying .gallery-item:hover {
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 102, 204, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.gallery-btn {
    padding: 0.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 102, 204, 0.2);
    border-radius: 50px;
    font-weight: 600;
    color: var(--primary-dark);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.gallery-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.15);
}

.gallery-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}


/* --- Black Week --- */
.section-blackweek {
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    color: white;
    padding: 10rem 0;
    text-align: center;
}

.blackweek-badge {
    background: var(--accent-gradient);
    color: #000;
    padding: 0.5rem 1.5rem;
    font-weight: 800;
    font-family: var(--font-body);
    border-radius: 50px;
    letter-spacing: 2px;
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Multi-Step Form */
.steps-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    gap: 0.5rem;
}

.step-indicator {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f0f0f0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid #eee;
}

.step-indicator.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 102, 204, 0.3);
}

.step-indicator.completed {
    background: var(--accent);
    color: var(--text-main);
    border-color: var(--accent);
}

.step-line {
    width: 40px;
    height: 2px;
    background: #eee;
    transition: all 0.3s ease;
}

.step-line.active {
    background: var(--primary);
}

.form-step {
    display: none;
    animation: fadeInStep 0.5s ease forwards;
}

.form-step.active {
    display: block;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.shake {
    animation: shakeAnim 0.4s ease-in-out;
}

@keyframes shakeAnim {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.form-navigation .btn {
    flex: 1;
}

/* Modal Adjustments */
.modal-content {
    background: white;
    width: 95%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s ease;
}

.close-modal {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: #f0f0f0;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-modal:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Inputs */
input,
select,
textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    margin-top: 0.5rem;
    background: #fdfdfd;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.05);
}

label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

@media (max-width: 600px) {
    .modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        padding: 4rem 1.5rem 2rem;
    }

    .modal-content h2 {
        font-size: 1.8rem;
    }

    .steps-progress {
        margin-bottom: 2rem;
        gap: 0.25rem;
    }

    .step-indicator {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .step-line {
        width: 20px;
    }

    .form-navigation {
        flex-direction: column-reverse;
        gap: 0.8rem;
    }

    .form-navigation .btn {
        width: 100%;
        padding: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .close-modal {
        top: 1rem;
        right: 1rem;
        width: 34px;
        height: 34px;
        background: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--text-main) 0%, #1a2a44 100%);
    color: white;
    padding: 6rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    border-color: rgba(255, 255, 255, 0.1);
}

footer h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

footer a:hover {
    color: var(--accent) !important;
}

.footer-wave svg {
    filter: drop-shadow(0 -10px 15px rgba(0, 0, 0, 0.1));
}

@media (max-width: 768px) {
    footer {
        padding-bottom: 120px !important;
        /* Extra space for floating CTA and bottom bars */
    }

    .footer-grid {
        gap: 3rem !important;
    }
}

/* Floaty Decos */
.floaty {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 4rem;
}

/* --- Natural Badge & Mobile Fixes --- */
.natural-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: var(--accent-gradient);
    padding: 1.2rem 2.5rem;
    border-radius: 100px;
    font-weight: 800;
    color: #000;
    box-shadow: var(--shadow-md);
    z-index: 10;
    white-space: nowrap;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .natural-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin: 2rem auto 0;
        display: inline-block;
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
        transform: translateY(0);
        box-shadow: var(--shadow-sm);
    }

    /* Grid Centering for Mobile */
    .features-grid,
    .cards-grid,
    .testimonials-grid,
    .footer-grid,
    .workflow .features-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 2rem !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .feature-item,
    .card,
    .testimonial-card {
        width: 90% !important;
        max-width: 450px !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    .feature-item p {
        text-align: center !important;
    }

    .intro-content {
        padding: 2.5rem 1.5rem !important;
    }

    .hero-content h1 {
        font-size: 2.8rem !important;
    }

    .footer-grid div {
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #cms-social-links {
        justify-content: center !important;
    }
}

/* --- Floating CTA --- */
@keyframes bounce-highlight {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) scale(1);
    }

    40% {
        transform: translateY(-20px) scale(1.1);
    }

    60% {
        transform: translateY(-10px) scale(1.05);
    }
}

.bounce-animation {
    animation: bounce-highlight 1.2s ease;
}

.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    /* Sehr hoch setzen */
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    /* Etwas größer für bessere Sichtbarkeit */
    background: #0066CC;
    /* Direkte Farbe zur Sicherheit */
    background: linear-gradient(135deg, #0066CC 0%, #004C99 100%);
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.floating-cta.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.floating-cta:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.5);
}

.cta-icon {
    font-size: 1.4rem;
}


/* --- Flavors Dropdown --- */
.flavors-list {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
}

.flavors-list.visible {
    display: grid !important;
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.flavors-list span {
    padding: 0.4rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.flavors-list span:hover {
    background: rgba(0, 102, 204, 0.05);
    color: var(--primary);
}

@media (max-width: 768px) {
    .floating-cta {
        bottom: 80px;
        right: 20px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}