/* ============================
   CSS Variables — Light Theme
   ============================ */
:root {
    --bg: #fdfbf7;
    --bg-secondary: #f7f2eb;
    --bg-card: #ffffff;
    --text: #3a2a1a;
    --text-secondary: #7a6b5a;
    --text-muted: #a09080;
    --primary: #6b4226;
    --primary-light: #8b6f47;
    --primary-dark: #4a2d1a;
    --accent: #e8927c;
    --accent-soft: #f0d9c4;
    --border: #e8ddd0;
    --card-shadow: rgba(107, 66, 38, 0.10);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;
    --transition: 0.3s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================
   Dark Theme
   ============================ */
[data-theme="dark"] {
    --bg: #1a1410;
    --bg-secondary: #241d16;
    --bg-card: #2a2118;
    --text: #e8ddd0;
    --text-secondary: #b0a090;
    --text-muted: #706050;
    --primary: #d4956a;
    --primary-light: #e0a97e;
    --primary-dark: #c17f59;
    --accent: #e8927c;
    --accent-soft: #3a2e24;
    --border: #3a2e24;
    --card-shadow: rgba(0, 0, 0, 0.35);
}

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

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), color var(--transition);
    overflow: hidden;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================
   Interactive Canvas Background
   ============================ */
.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* ============================
   Card Wrapper (center)
   ============================ */
.card-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 580px;
    padding: 24px;
}

.business-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px 36px 36px;
    box-shadow:
        0 8px 32px var(--card-shadow),
        0 1px 4px var(--card-shadow);
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}

/* Subtle gradient accent stripe at the top */
.business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* ============================
   Header
   ============================ */
.card-header {
    text-align: center;
    margin-bottom: 36px;
}

.logo-emoji {
    font-size: 3.2rem;
    margin-bottom: 12px;
    animation: bounce-in 0.6s ease-out;
}

@keyframes bounce-in {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.08);
    }

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

.brand-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 6px;
    font-weight: 400;
}

/* ============================
   Carousel
   ============================ */
.carousel-section {
    margin-bottom: 28px;
}

.carousel {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px 4px 16px;
    cursor: grab;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

/* Individual carousel card */
.carousel-card {
    flex: 0 0 85%;
    min-width: 0;
    scroll-snap-align: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

.carousel-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    background: linear-gradient(135deg, rgba(232, 146, 124, 0.08), rgba(107, 66, 38, 0.05));
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.carousel-card:hover::after {
    opacity: 1;
}

.carousel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px var(--card-shadow);
    border-color: var(--accent);
}

.card-coming-soon {
    opacity: 0.65;
    cursor: default;
}

.card-coming-soon:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
}

.card-coming-soon:hover::after {
    opacity: 0;
}

.card-icon {
    font-size: 2.8rem;
    margin-bottom: 14px;
    line-height: 1;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 14px;
    flex: 1;
}

.card-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.carousel-card:hover .card-link {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.card-link-muted {
    color: var(--text-muted);
    border-color: transparent;
}

/* Carousel dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
}

.carousel-dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

/* ============================
   Footer
   ============================ */
.card-footer {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.card-footer p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ============================
   Theme Toggle
   ============================ */
.theme-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    box-shadow: 0 4px 16px var(--card-shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s, border-color 0.3s;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px var(--card-shadow);
}

/* Icon visibility */
.theme-icon-moon {
    display: inline;
}

.theme-icon-sun {
    display: none;
}

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

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

/* ============================
   Music Toggle
   ============================ */
.music-toggle {
    position: fixed;
    bottom: 80px;
    right: 24px;
    z-index: 100;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    box-shadow: 0 4px 16px var(--card-shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s, border-color 0.3s;
}

.music-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px var(--card-shadow);
}

/* Music is off by default — show the off icon */
.music-icon-on {
    display: none;
}

.music-icon-off {
    display: inline;
}

/* When music is playing */
.music-toggle.playing .music-icon-on {
    display: inline;
}

.music-toggle.playing .music-icon-off {
    display: none;
}

.music-toggle.playing {
    animation: pulse-music 2s ease-in-out infinite;
}

@keyframes pulse-music {

    0%,
    100% {
        box-shadow: 0 4px 16px var(--card-shadow);
    }

    50% {
        box-shadow: 0 4px 24px var(--accent);
    }
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 480px) {
    .business-card {
        padding: 36px 20px 28px;
        border-radius: var(--radius-lg);
    }

    .brand-title {
        font-size: 1.5rem;
    }

    .carousel-card {
        flex: 0 0 90%;
        padding: 22px 18px;
    }

    .card-icon {
        font-size: 2.2rem;
    }

    .theme-toggle {
        bottom: 16px;
        right: 16px;
        width: 42px;
        height: 42px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .carousel-card {
        flex: 0 0 80%;
    }
}