/* Main CSS - MassiveMaw Website */

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

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: transparent;
    color: black !important;
    line-height: 1.4;
    position: relative;
    overflow-x: hidden;
}

/* GSAP Mask Mouse Effect - Targeted Text Reveal */
.gsap-mask-hidden-content {
    --x: 0px;
    --y: 0px;
    --size: 5px;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgb(251, 156, 132);
    background: -moz-linear-gradient(
        180deg,
        rgba(251, 156, 132, 1) 0%,
        rgba(240, 102, 128, 1) 50%,
        rgba(129, 36, 112, 1) 100%
    );
    background: -webkit-linear-gradient(
        180deg,
        rgba(251, 156, 132, 1) 0%,
        rgba(240, 102, 128, 1) 50%,
        rgba(129, 36, 112, 1) 100%
    );
    background: linear-gradient(
        180deg,
        rgba(251, 156, 132, 1) 0%,
        rgba(240, 102, 128, 1) 50%,
        rgba(129, 36, 112, 1) 100%
    );
    --mask: radial-gradient(
        circle at var(--x) var(--y),
        black var(--size),
        transparent 0
    );
    -webkit-mask-image: var(--mask);
    mask-image: var(--mask);
    pointer-events: none;
    visibility: hidden;
    z-index: 1000;
}

.mask-text-container {
    position: absolute;
    top: 547px;
    left: 463px;
    width: 100%;
    height: 100vh;
}

.mask-headline {
    font-size: 4rem;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    text-align: left;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

/* Full-screen background video */
.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -10;
    pointer-events: none;
    opacity: 1;
}

/* Dynamic video overlay with scroll-based colors */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.60) 0%,
            rgba(250, 250, 250, 0.65) 30%,
            rgba(245, 245, 245, 0.70) 70%,
            rgba(240, 240, 240, 0.75) 100%
        );
    backdrop-filter: blur(0.8px);
    pointer-events: none;
    z-index: -9;
    transition: background 0.8s ease;
}

/* Brightness dimmer overlay - controlled by nav dot control */
/* Darkens entire page background as brightness increases */
.brightness-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--brightness-overlay-color, rgba(0, 0, 0, 0));
    pointer-events: none;
    z-index: -8;
    transition: background var(--theme-transition);
}


/* Text Background Overlays for Visibility */
.text-bg-overlay {
    padding: 15px 25px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.85); /* Light white background */
    transition: background-color 1.2s ease-in-out;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

/* Brand text styling */
.brand-headline {
    font-weight: 700;
}

.brand-name,
.brand-subheading {
    color: var(--theme-fg, black);
    font-weight: 600;
}

/* Specific text background sections */
.homepage-hero-text {
    background-color: rgba(255, 140, 0, 0.25) !important; /* Warm orange */
}

.works-hero-text {
    background-color: rgba(139, 69, 19, 0.28) !important; /* Rich brown */
}

/* Global Theme System - Controlled by Brightness Dot Control */
/* Affects TEXT and PAGE BACKGROUND - Boxes/circles unaffected */
/* Exception: SVG ad section shapes DO respond to brightness */
:root {
  --theme-fg: #000000;
  --theme-transition: 0.5s ease;
  --brightness-overlay-opacity: 0;
  --svgad-shape-r: 255;  /* SVG shapes: white at low brightness */
  --svgad-shape-g: 255;
  --svgad-shape-b: 255;
}

[data-theme="dark"] {
  --theme-fg: #ffffff;
}

[data-theme="light"] {
  --theme-fg: #000000;
}

/* Apply theme to major elements */
body {
  color: var(--theme-fg);
  transition: background-color var(--theme-transition), color var(--theme-transition);
}

/* Force ALL text to use theme color - no exceptions */
*, *::before, *::after {
  color: var(--theme-fg) !important;
  fill: var(--theme-fg) !important;  /* For SVG text elements */
  -webkit-text-fill-color: var(--theme-fg) !important;  /* For webkit gradient text */
  transition: color var(--theme-transition) !important;
}

/* Targeted overrides for special classes with hardcoded colors */
.shimmer-text,
.shimmer-button,
.course-title,
.course-description,
.course-tag,
.logo-link,
.brand-headline,
.nav-link,
.nav-action-btn,
.filter-button,
.nav-dotctrl-control-label,
.nav-dotctrl-mobile-label {
  color: var(--theme-fg) !important;
  -webkit-text-fill-color: var(--theme-fg) !important;
}

/* Force SVG text elements to use theme color */
svg text,
svg tspan {
  fill: var(--theme-fg) !important;
}

/* SVG ad section - Both shapes and text respond to brightness control */
/* Text uses global --theme-fg variable (inverse of shapes) */
/* Shapes use --svgad-shape-* variables (inverse of text) */

/* SVG rectangles: white at 0% brightness → black at 100% brightness */
#svgad-container rect[fill*="rgba(255, 255, 255"] {
  fill: rgba(var(--svgad-shape-r), var(--svgad-shape-g), var(--svgad-shape-b), 0.7) !important;
  stroke: rgba(var(--svgad-shape-r), var(--svgad-shape-g), var(--svgad-shape-b), 0.8) !important;
  transition: fill var(--theme-transition), stroke var(--theme-transition);
}

/* SVG rectangles with lower opacity */
#svgad-container rect[fill*="rgba(255, 255, 255, 0.5)"] {
  fill: rgba(var(--svgad-shape-r), var(--svgad-shape-g), var(--svgad-shape-b), 0.5) !important;
}

/* SVG rectangles with black stroke */
#svgad-container rect[stroke*="rgba(0, 0, 0"] {
  stroke: rgba(calc(255 - var(--svgad-shape-r)), calc(255 - var(--svgad-shape-g)), calc(255 - var(--svgad-shape-b)), 0.2) !important;
}

/* Circle strokes: white at 0% brightness → black at 100% brightness */
#svgad-container circle[stroke="#E5E4E2"],
#svgad-container circle[fill="#E5E4E2"] {
  stroke: rgb(var(--svgad-shape-r), var(--svgad-shape-g), var(--svgad-shape-b)) !important;
  fill: rgb(var(--svgad-shape-r), var(--svgad-shape-g), var(--svgad-shape-b)) !important;
  transition: stroke var(--theme-transition), fill var(--theme-transition);
}

/* Arrow path: white at 0% brightness → black at 100% brightness */
#svgad-container path[fill="#E5E4E2"] {
  fill: rgb(var(--svgad-shape-r), var(--svgad-shape-g), var(--svgad-shape-b)) !important;
  transition: fill var(--theme-transition);
}

/* SVG text: uses global --theme-fg (black → white as brightness increases) */
#svgad-container svg text,
#svgad-container svg tspan {
  fill: var(--theme-fg) !important;
  transition: fill var(--theme-transition);
}

/* Navigation Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
}

.nav-banner {
    padding: 20px 40px 0 40px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    height: 70px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    /* color now controlled by global theme system */
    text-decoration: none;
}

.logo-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

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

/* Navigation Links - Enhanced Visibility */
.nav-link {
    --inset: 40px;

    position: relative;
    isolation: isolate;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.66em;
    scale: 1;
    transition: all var(--shimmer-spring-duration) var(--shimmer-spring-easing);
    cursor: pointer;
    color: #ffffff !important;
    text-decoration: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 4px 12px rgba(0, 0, 0, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
                0 2px 4px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.nav-link:hover:not(:active),
.nav-link.active {
    transition-duration: calc(var(--shimmer-spring-duration)*0.5);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.9), 0 6px 16px rgba(0, 0, 0, 0.7);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2),
                0 4px 8px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-link:active {
    transition-duration: calc(var(--shimmer-spring-duration)*0.5);
}

/* Navigation Action Button - Shimmer Button Framework */
.nav-action-btn {
    --inset: 40px;

    position: relative;
    isolation: isolate;
    padding: 0.75rem 1.5rem;
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.66em;
    scale: 1;
    transition: all var(--shimmer-spring-duration) var(--shimmer-spring-easing);
    cursor: pointer;
    color: #ffffff;
    text-decoration: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 4px 12px rgba(0, 0, 0, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
                0 2px 4px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.nav-action-btn:hover:not(:active),
.nav-action-btn.active {
    transition-duration: calc(var(--shimmer-spring-duration)*0.5);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.9), 0 6px 16px rgba(0, 0, 0, 0.7);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2),
                0 4px 8px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-action-btn:active {
    transition-duration: calc(var(--shimmer-spring-duration)*0.5);
}

/* Login Button - Green Accent */
.nav-login-btn {
    --shimmer-glow-hue: 142deg; /* Green hue for shimmer */
}

.nav-login-btn .shimmer-text {
    color: #10B981 !important; /* Emerald green */
    -webkit-text-fill-color: #10B981 !important;
    font-weight: 600;
}

.nav-login-btn:hover,
.nav-login-btn.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
}

/* Green shimmer effects for login button */
.nav-login-btn .shimmer-shimmer::before {
    box-shadow: 0 0 calc(var(--inset) * 0.1) 2px hsl(142deg 76% 36%),
        0 0 calc(var(--inset) * 0.18) 4px hsl(142deg 76% 45%),
        0 0 calc(var(--inset) * 0.33) 4px hsl(142deg 76% 55%),
        0 0 calc(var(--inset) * 0.66) 5px hsl(142deg 76% 65%);
}

.nav-login-btn .shimmer-shimmer::after {
    box-shadow: inset 0 0 0 1px hsl(142deg 76% 70%),
        inset 0 0 2px 1px hsl(142deg 76% 60%),
        inset 0 0 5px 2px hsl(142deg 76% 55%);
}

/* Course Slider Section - Full Width */
.course-slider-section {
    width: 100vw;
    padding: 90px 0 40px;
    background: none;
    color: black !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Carousel Navigation Buttons */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    /* Glassmorphism Effect */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.carousel-nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.carousel-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
    background: rgba(255, 255, 255, 0.3);
}

.carousel-nav-left {
    left: 20px;
}

.carousel-nav-right {
    right: 20px;
}

/* Popover Styles */
.popover {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.popover.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Info popover styles (About/Contact) - NOT for read-along books */
.info-popover-content {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 8px 24px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.info-popover-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-popover-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.info-popover-content h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
}

.info-popover-content p {
    margin: 0 0 1rem 0;
    line-height: 1.6;
    color: #333;
}

.info-popover-content p:last-of-type {
    margin-bottom: 0;
}

/* Contact Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.form-group label {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(0, 123, 255, 0.5);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit-btn {
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.form-submit-btn:active {
    transform: translateY(0);
}

.carousel-nav-btn svg {
    color: white;
    transition: color 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.carousel-nav-btn:hover svg {
    color: white;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.7));
}

/* Carousel Parallax Depth Cards - Custom easing variables */
:root {
  --carousel-pdcards-hover-easing: cubic-bezier(0.23, 1, 0.32, 1);
  --carousel-pdcards-return-easing: cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

/* Homepage Hero Section */
.homepage-hero {
    min-height: 80vh;
    padding: 40px 40px;
    background: none;
    color: black !important;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(80vh - 80px);
    align-items: center;
    position: relative;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: left;
}

.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video-container {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f5f5f5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e0e0;
    color: #666;
    font-size: 1.1rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-left {
        text-align: center;
    }
}


/* GSAP Mask Mouse Effect for Headlines */
:root {
    --mask-x: 50%;
    --mask-y: 50%;
    --mask-size: 0;
}

.headline-container {
    position: relative;
    display: inline-block;
}

.brand-headline {
    position: relative;
    z-index: 1;
}

.brand-headline .headline-line {
    color: black;
}

.hidden-headline {
    --gsap-mask-x: 50%;
    --gsap-mask-y: 50%;
    --gsap-mask-size: 0px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: rgb(251, 156, 132);
    background: linear-gradient(
        180deg,
        rgba(251, 156, 132, 1) 0%,
        rgba(240, 102, 128, 1) 50%,
        rgba(129, 36, 112, 1) 100%
    );
    --gsap-mask-gradient: radial-gradient(
        circle at var(--gsap-mask-x) var(--gsap-mask-y),
        black var(--gsap-mask-size),
        transparent 0
    );
    -webkit-mask-image: var(--gsap-mask-gradient);
    mask-image: var(--gsap-mask-gradient);
    pointer-events: none;
    visibility: hidden;
}

.hidden-headline .brand-headline {
    margin: 0;
}

.hidden-headline .headline-line {
    color: #121212;
}

/* Normal text styling for non-fluid elements - brightness responsive */
.brand-name {
    color: var(--theme-fg, black) !important;
    -webkit-text-fill-color: var(--theme-fg, black) !important;
    -webkit-text-stroke: none;
    text-stroke: none;
    background: none;
}

.brand-subheading {
    color: var(--theme-fg, black) !important;
    -webkit-text-fill-color: var(--theme-fg, black) !important;
    -webkit-text-stroke: none;
    text-stroke: none;
    background: none;
}

.cta-text {
    color: var(--theme-fg, black) !important;
    -webkit-text-fill-color: var(--theme-fg, black) !important;
    -webkit-text-stroke: none;
    text-stroke: none;
    background: none;
}

.works-hero h4 {
    color: black !important;
    -webkit-text-fill-color: black !important;
    -webkit-text-stroke: none;
    text-stroke: none;
    background: none;
}

/* Course Showcase - Full Width Slider */
.course-showcase {
    overflow-x: hidden;
    overflow-y: visible;
    width: 100%;
    padding: 50px 40px;
}

.works-slider {
    display: flex;
    will-change: transform;
    /* GSAP handles all transforms, no CSS transitions needed */
}

.work-slide {
    flex: 0 0 300px;
    margin-right: 20px;
}

/* Carousel Parallax Depth Cards Styles */
.carousel-pdcards-card-wrap {
    transform: perspective(800px);
    transform-style: preserve-3d;
    cursor: pointer;
    background-color: transparent;
    transition: all 300ms var(--carousel-pdcards-return-easing);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}

.carousel-pdcards-card-wrap:hover .carousel-pdcards-card-info {
    transform: translateY(0);
}

.carousel-pdcards-card-wrap:hover .carousel-pdcards-card-info h5 {
    opacity: 1;
}

.carousel-pdcards-card {
    position: relative;
    width: 280px;
    height: 200px;
    border-radius: 8px;
    border: none;
    background: none;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all 300ms var(--carousel-pdcards-hover-easing);
}

.carousel-pdcards-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: all 300ms var(--carousel-pdcards-hover-easing);
}

.carousel-pdcards-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: none;
    transform: translateY(40%);
    transition: all 300ms var(--carousel-pdcards-hover-easing);
}

.course-link {
    text-decoration: none;
    display: block;
    transition: opacity 0.3s ease;
}

.course-link:hover {
    opacity: 1;
}

.work-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white !important;
    margin: 0;
    line-height: 1.3;
    text-shadow: rgba(0, 0, 0, 0.8) 0px 2px 4px;
    transition: all 300ms var(--carousel-pdcards-hover-easing);
}

/* Responsive design for carousel cards */
@media (max-width: 768px) {
    .carousel-pdcards-card {
        width: 240px;
        height: 180px;
    }

    .work-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .carousel-pdcards-card {
        width: 200px;
        height: 160px;
    }

    .carousel-pdcards-card-info {
        padding: 12px;
    }
}

/* Right Side - Brand Messaging */
.brand-messaging {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    text-align: center;
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
}


.brand-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    text-align: center;
    padding: 40px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--theme-fg, black) !important;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.brand-headline {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: black !important;
    margin: 0;
    line-height: 0.9;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.headline-line {
    display: block;
}

.brand-subheading {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--theme-fg, black) !important;
    margin: 0;
    line-height: 1.3;
}

.explore-cta {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.explore-cta:hover {
    opacity: 0.7;
}

.cta-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--theme-fg, black) !important;
    margin: 0;
    text-decoration: underline;
}

/* Interactive Controls */
.interactive-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.scroll-instruction {
    font-size: 0.9rem;
    font-weight: 300;
    color: #666 !important;
    margin: 0;
}

.media-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.control-btn {
    font-size: 1rem;
    font-weight: 400;
    color: black !important;
    margin: 0;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.control-btn:hover {
    opacity: 0.7;
}

/* Works Hero Section */
.works-hero {
    padding: 80px 40px;
    min-height: 100vh;
    background: none;
    color: black !important;
}

.works-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

/* Left Side - Headlines */
.works-headline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.works-headline h4 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 400;
    color: black !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.works-headline h2 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: black !important;
    line-height: 0.9;
    text-transform: uppercase;
    text-align: left;
}

/* Right Side - Filters */
.works-filters {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.filter-form {
    width: 100%;
    max-width: 500px;
}

.filter-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-row {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    flex-wrap: wrap;
}

.filter-row:first-child {
    justify-content: flex-end;
}

.filter-btn {
    background: white !important;
    border: 1px solid black;
    border-radius: 0;
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #666 !important;
    cursor: pointer;
    text-align: center;
    padding: 15px 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.6);
    min-width: 120px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-btn:hover {
    color: white !important;
    font-weight: 700;
    background: black !important;
    box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.6);
}

.filter-btn.active {
    color: black !important;
    font-weight: 700;
    background: white !important;
    box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.6);
}

/* Subcategory Styles */
.subcategory-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-top: none;
    padding: 10px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-top: 2px;
}

.subcategory-list.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.subcategory-item {
    display: inline-block;
    padding: 5px 12px;
    margin: 3px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 15px;
    font-size: 0.85rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
}

.subcategory-item:hover {
    background: #e9ecef;
    color: #212529;
    border-color: #adb5bd;
}

.subcategory-item.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.filter-row {
    position: relative;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
/* Hamburger Menu (Hidden on Desktop) */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    /* Glassmorphism effect */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.66em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
                0 2px 4px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 1001;
}

.hamburger-menu:hover {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2),
                0 4px 8px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: #000000; /* Black bars for visibility */
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-banner {
        padding: 0 20px;
    }

    .nav-container {
        height: 60px;
    }

    .logo-link {
        font-size: 1.2rem;
    }

    .logo-icon {
        width: 48px;
        height: 48px;
    }

    /* Show hamburger menu on mobile */
    .hamburger-menu {
        display: flex;
    }

    /* Hide nav menu by default on mobile */
    .nav-menu {
        position: fixed;
        top: 60px;
        right: 0;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 60px);
        /* Glassmorphism effect - matching site aesthetic */
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-left: 1px solid rgba(255, 255, 255, 0.2);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        padding: 20px 0;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2),
                    inset 1px 0 0 rgba(255, 255, 255, 0.1);
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-link,
    .nav-action-btn {
        width: 100%;
        padding: 15px 30px;
        font-size: 1rem;
        text-align: left;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }

    /* Glassmorphism hover effect for nav links */
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-left: 3px solid rgba(255, 255, 255, 0.4);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    /* Active nav link state */
    .nav-link.active {
        background: rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-left: 3px solid rgba(255, 255, 255, 0.6);
    }

    .nav-action-btn {
        background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
        margin: 10px 20px;
        width: calc(100% - 40px);
        border-radius: 8px;
        text-align: center;
        border-bottom: none;
    }

    /* Glassmorphism hover effect for action button */
    .nav-action-btn:hover {
        background: linear-gradient(135deg, #5ba0f2 0%, #4688cd 100%);
        box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4),
                    0 4px 12px rgba(0, 0, 0, 0.15);
        transform: translateY(-2px);
    }

    /* Homepage Hero */
    .homepage-hero {
        padding: 90px 20px 40px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        min-height: calc(100vh - 130px);
    }

    .brand-messaging {
        align-items: flex-start;
        text-align: left;
        min-height: 300px;
    }

    .brand-content {
        align-items: flex-start;
        text-align: left;
        padding: 30px 20px;
        margin: 10px;
    }

    .brand-headline {
        text-align: left;
    }

    .interactive-controls {
        position: relative;
        bottom: auto;
        right: auto;
        align-items: flex-start;
        margin-top: 40px;
    }

    .media-controls {
        align-items: flex-start;
    }

    /* Works Hero */
    .works-hero {
        padding: 40px 20px;
    }

    .works-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .works-filters {
        align-items: flex-start;
    }

    .filter-row {
        justify-content: flex-start;
        gap: 20px;
    }

    .filter-row:first-child {
        justify-content: flex-start;
    }

    .filter-btn {
        text-align: left;
    }
}

/* Works-Hero Morphing Text Effect */
/* Unique naming with 'workshero-morph-' prefix to prevent conflicts */

#workshero-morph-container {
    /* Apply the morphing magic filter effect */
    filter: url(#workshero-morph-threshold) blur(0.6px);

    /* Flexbox centering for vertical alignment */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    /* Position relative for text positioning */
    position: relative;
    width: 100%;
    height: auto;
    min-height: 200px; /* Reduced height for smaller text */
}

/* Styling for both morphing text elements */
#workshero-morph-text1, #workshero-morph-text2 {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;

    /* Smaller typography optimized for two lines max */
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    /* color now controlled by global theme system */
    line-height: 1.1;
    text-transform: uppercase;
    text-align: left;

    /* Morphing effect properties */
    opacity: 0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;

    /* Typography matching existing styles */
    font-family: Arial, sans-serif;
    letter-spacing: -0.02em;

    /* Ensure text is visible and follows theme */
    -webkit-text-fill-color: var(--theme-fg) !important;
    color: var(--theme-fg) !important;
    -webkit-text-stroke: none;
    text-stroke: none;
    background: none;
    transition: color var(--theme-transition), -webkit-text-fill-color var(--theme-transition);

    /* Ensure text wraps properly and stays within two lines */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-height: calc(1.1em * 2); /* Maximum height for two lines */
    overflow: hidden;
}

/* Hide the SVG filters from view */
#workshero-morph-filters {
    position: absolute;
    top: -1000px;
    left: -1000px;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    #workshero-morph-container {
        min-height: 120px;
        gap: 15px;
    }

    #workshero-morph-text1, #workshero-morph-text2 {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
        line-height: 1.2;
        max-height: calc(1.2em * 2); /* Adjust for mobile line height */
    }
}

@media (max-width: 480px) {
    #workshero-morph-container {
        min-height: 100px;
        gap: 10px;
    }

    #workshero-morph-text1, #workshero-morph-text2 {
        font-size: clamp(1.2rem, 3.5vw, 2rem);
        line-height: 1.3;
        max-height: calc(1.3em * 2); /* Adjust for smaller mobile line height */
    }
}

/* ========================================
   STUDIO NUTS STYLE FILTER SYSTEM
   ======================================== */

/* Studio Nuts Style Filter Buttons */
.filter-list-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.filter-item {
    display: block;
}

/* Filter Buttons - Full Shimmer Implementation */
.filter-btn-nuts {
    --inset: 30px;

    position: relative;
    isolation: isolate;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.66em; /* Changed from 30px pill to box with small radius like nav */
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--shimmer-spring-duration) var(--shimmer-spring-easing);
    white-space: nowrap;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
                0 2px 4px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    scale: 1;
}

.filter-btn-nuts:hover {
    transition-duration: calc(var(--shimmer-spring-duration)*0.5);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2),
                0 4px 8px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.filter-btn-nuts.active {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #000000;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.3),
                0 4px 12px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* ===== DIFFICULTY LEVEL FILTERS ===== */

/* Difficulty filter row positioning */
.filter-list-difficulty {
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* 30% smaller buttons (70% of original size) */
.filter-btn-nuts.filter-btn-small {
    font-size: 0.7em;
    padding: 0.525rem 1.05rem;
}

/* All Levels - Blue Theme */
.filter-btn-small:not(.filter-btn-beginner):not(.filter-btn-intermediate):not(.filter-btn-advanced) {
    background: rgba(96, 165, 250, 0.2);
    border-color: rgba(96, 165, 250, 0.4);
    color: #ffffff;
}

.filter-btn-small:not(.filter-btn-beginner):not(.filter-btn-intermediate):not(.filter-btn-advanced):hover {
    background: rgba(96, 165, 250, 0.3);
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow: 0 8px 20px rgba(96, 165, 250, 0.25),
                0 4px 8px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(96, 165, 250, 0.4);
}

.filter-btn-small:not(.filter-btn-beginner):not(.filter-btn-intermediate):not(.filter-btn-advanced).active {
    background: rgba(96, 165, 250, 0.45);
    border-color: rgba(96, 165, 250, 0.9);
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(96, 165, 250, 0.5),
                0 4px 12px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(96, 165, 250, 0.6);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Beginner - Green Theme */
.filter-btn-beginner {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
    color: #ffffff;
}

.filter-btn-beginner:hover {
    background: rgba(34, 197, 94, 0.3);
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.25),
                0 4px 8px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(34, 197, 94, 0.4);
}

.filter-btn-beginner.active {
    background: rgba(34, 197, 94, 0.45);
    border-color: rgba(34, 197, 94, 0.9);
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.5),
                0 4px 12px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(34, 197, 94, 0.6);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Intermediate - Yellow Theme */
.filter-btn-intermediate {
    background: rgba(234, 179, 8, 0.2);
    border-color: rgba(234, 179, 8, 0.4);
    color: #ffffff;
}

.filter-btn-intermediate:hover {
    background: rgba(234, 179, 8, 0.3);
    border-color: rgba(234, 179, 8, 0.6);
    box-shadow: 0 8px 20px rgba(234, 179, 8, 0.25),
                0 4px 8px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(234, 179, 8, 0.4);
}

.filter-btn-intermediate.active {
    background: rgba(234, 179, 8, 0.45);
    border-color: rgba(234, 179, 8, 0.9);
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(234, 179, 8, 0.5),
                0 4px 12px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(234, 179, 8, 0.6);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Advanced - Red Theme */
.filter-btn-advanced {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ffffff;
}

.filter-btn-advanced:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.25),
                0 4px 8px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(239, 68, 68, 0.4);
}

.filter-btn-advanced.active {
    background: rgba(239, 68, 68, 0.45);
    border-color: rgba(239, 68, 68, 0.9);
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.5),
                0 4px 12px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(239, 68, 68, 0.6);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Colored shimmers for difficulty buttons */
/* Beginner shimmer - no background needed, effect comes from pseudo-elements */

/* Beginner shimmer glow effects */
.filter-btn-beginner .shimmer-shimmer::before {
    transition: all 0.5s ease;
    opacity: 0;
    content: "";
    border-radius: inherit;
    position: absolute;
    mix-blend-mode: color;
    inset: var(--inset);
    pointer-events: none;
    box-shadow: 0 0 calc(var(--inset) * 0.1) 2px hsl(142deg 76% 36%),
        0 0 calc(var(--inset) * 0.18) 4px hsl(142deg 76% 45%),
        0 0 calc(var(--inset) * 0.33) 4px hsl(142deg 76% 55%),
        0 0 calc(var(--inset) * 0.66) 5px hsl(142deg 76% 65%);
    z-index: -1;
}

.filter-btn-beginner .shimmer-shimmer::after {
    transition: all 0.5s ease;
    opacity: 0;
    content: "";
    border-radius: inherit;
    position: absolute;
    mix-blend-mode: color;
    inset: var(--inset);
    pointer-events: none;
    box-shadow: inset 0 0 0 1px hsl(142deg 76% 70%),
        inset 0 0 2px 1px hsl(142deg 76% 60%),
        inset 0 0 5px 2px hsl(142deg 76% 55%);
    z-index: 2;
}

/* Intermediate shimmer - no background needed, effect comes from pseudo-elements */

/* Intermediate shimmer glow effects */
.filter-btn-intermediate .shimmer-shimmer::before {
    transition: all 0.5s ease;
    opacity: 0;
    content: "";
    border-radius: inherit;
    position: absolute;
    mix-blend-mode: color;
    inset: var(--inset);
    pointer-events: none;
    box-shadow: 0 0 calc(var(--inset) * 0.1) 2px hsl(43deg 96% 56%),
        0 0 calc(var(--inset) * 0.18) 4px hsl(43deg 96% 65%),
        0 0 calc(var(--inset) * 0.33) 4px hsl(43deg 96% 70%),
        0 0 calc(var(--inset) * 0.66) 5px hsl(43deg 96% 75%);
    z-index: -1;
}

.filter-btn-intermediate .shimmer-shimmer::after {
    transition: all 0.5s ease;
    opacity: 0;
    content: "";
    border-radius: inherit;
    position: absolute;
    mix-blend-mode: color;
    inset: var(--inset);
    pointer-events: none;
    box-shadow: inset 0 0 0 1px hsl(43deg 96% 80%),
        inset 0 0 2px 1px hsl(43deg 96% 70%),
        inset 0 0 5px 2px hsl(43deg 96% 65%);
    z-index: 2;
}

/* Advanced shimmer - no background needed, effect comes from pseudo-elements */

/* Advanced shimmer glow effects */
.filter-btn-advanced .shimmer-shimmer::before {
    transition: all 0.5s ease;
    opacity: 0;
    content: "";
    border-radius: inherit;
    position: absolute;
    mix-blend-mode: color;
    inset: var(--inset);
    pointer-events: none;
    box-shadow: 0 0 calc(var(--inset) * 0.1) 2px hsl(0deg 84% 60%),
        0 0 calc(var(--inset) * 0.18) 4px hsl(0deg 84% 68%),
        0 0 calc(var(--inset) * 0.33) 4px hsl(0deg 84% 72%),
        0 0 calc(var(--inset) * 0.66) 5px hsl(0deg 84% 78%);
    z-index: -1;
}

.filter-btn-advanced .shimmer-shimmer::after {
    transition: all 0.5s ease;
    opacity: 0;
    content: "";
    border-radius: inherit;
    position: absolute;
    mix-blend-mode: color;
    inset: var(--inset);
    pointer-events: none;
    box-shadow: inset 0 0 0 1px hsl(0deg 84% 82%),
        inset 0 0 2px 1px hsl(0deg 84% 75%),
        inset 0 0 5px 2px hsl(0deg 84% 70%);
    z-index: 2;
}

/* All Levels - Blue shimmer - no background needed, effect comes from pseudo-elements */

/* All Levels shimmer glow effects */
.filter-btn-small:not(.filter-btn-beginner):not(.filter-btn-intermediate):not(.filter-btn-advanced) .shimmer-shimmer::before {
    transition: all 0.5s ease;
    opacity: 0;
    content: "";
    border-radius: inherit;
    position: absolute;
    mix-blend-mode: color;
    inset: var(--inset);
    pointer-events: none;
    box-shadow: 0 0 calc(var(--inset) * 0.1) 2px hsl(213deg 94% 58%),
        0 0 calc(var(--inset) * 0.18) 4px hsl(213deg 94% 65%),
        0 0 calc(var(--inset) * 0.33) 4px hsl(213deg 94% 72%),
        0 0 calc(var(--inset) * 0.66) 5px hsl(213deg 94% 80%);
    z-index: -1;
}

.filter-btn-small:not(.filter-btn-beginner):not(.filter-btn-intermediate):not(.filter-btn-advanced) .shimmer-shimmer::after {
    transition: all 0.5s ease;
    opacity: 0;
    content: "";
    border-radius: inherit;
    position: absolute;
    mix-blend-mode: color;
    inset: var(--inset);
    pointer-events: none;
    box-shadow: inset 0 0 0 1px hsl(213deg 94% 85%),
        inset 0 0 2px 1px hsl(213deg 94% 75%),
        inset 0 0 5px 2px hsl(213deg 94% 68%);
    z-index: 2;
}

/* Courses Grid Section */
.courses-grid-section {
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.courses-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin: 0;
    padding: 0;
}

.course-item {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.course-item.course-hidden {
    display: none;
}

.course-link {
    text-decoration: none;
    color: var(--theme-fg) !important;  /* Explicitly use theme color */
    display: block;
    transition: transform 0.3s ease, color var(--theme-transition);
}

.course-link:hover {
    transform: translateY(-5px);
}

.course-image {
    width: 100%;
    height: 250px;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.course-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.course-link:hover .course-placeholder {
    transform: scale(1.05);
}

/* Button course links (for read-along books) */
button.course-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.course-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--theme-fg) !important;  /* Explicitly use theme color */
    -webkit-text-fill-color: var(--theme-fg) !important;
    line-height: 1.3;
    margin: 0;
    transition: color var(--theme-transition);
}

.course-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
}

.course-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.course-tag {
    --inset: 30px;

    position: relative;
    isolation: isolate;
    font-size: 0.8rem;
    font-weight: 500;
    color: #ffffff; /* Changed from rgba(255, 255, 255, 0.7) for better visibility */
    background: rgba(255, 255, 255, 0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 0.66em; /* Changed from 15px pill to box with small radius like nav */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1),
                0 1px 2px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all var(--shimmer-spring-duration) var(--shimmer-spring-easing);
    cursor: pointer;
}

.course-tag:hover {
    transition-duration: calc(var(--shimmer-spring-duration)*0.5);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
                0 2px 6px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Shimmer effect for course tags */
.course-tag .shimmer-shimmer {
    position: absolute;
    inset: calc(var(--inset) * -1);
    border-radius: inherit;
    pointer-events: none;
    mask-image: conic-gradient(
        from var(--shimmer-shimmer, 0deg),
        transparent 0%,
        transparent 20%,
        black 36%,
        black 45%,
        transparent 50%,
        transparent 70%,
        black 85%,
        black 95%,
        transparent 100%
    );
    mask-size: cover;
    mix-blend-mode: plus-lighter;
    animation: shimmer-shimmer 1s linear infinite both;
}

.course-tag:hover .shimmer-shimmer::before,
.course-tag:hover .shimmer-shimmer::after {
    opacity: 1;
    animation: shimmer-shine 1.2s ease-in 1 forwards;
}

.course-tag .shimmer-shimmer::before,
.course-tag .shimmer-shimmer::after {
    transition: all 0.5s ease;
    opacity: 0;
    content: "";
    border-radius: inherit;
    position: absolute;
    mix-blend-mode: color;
    inset: var(--inset);
    pointer-events: none;
}

.course-tag .shimmer-shimmer::before {
    box-shadow: 0 0 calc(var(--inset) * 0.1)  2px hsl(var(--shimmer-glow-hue) 20% 95%),
        0 0 calc(var(--inset) * 0.18)  4px hsl(var(--shimmer-glow-hue) 20% 80%),
        0 0 calc(var(--inset) * 0.33)  4px hsl(var(--shimmer-glow-hue) 50% 70%),
        0 0 calc(var(--inset) * 0.66) 5px hsl(var(--shimmer-glow-hue) 100% 70%);
    z-index: -1;
}

.course-tag .shimmer-shimmer::after {
    box-shadow: inset 0 0 0 1px hsl(var(--shimmer-glow-hue) 70% 95%),
        inset 0 0 2px 1px hsl(var(--shimmer-glow-hue) 100% 80%),
        inset 0 0 5px 2px hsl(var(--shimmer-glow-hue) 100% 70%);
    z-index: 2;
}

.course-tag .shimmer-text {
    color: #ffffff;
    background-clip: text;
    background-color: #ffffff;
    background-image: linear-gradient(120deg, #ffffff, rgba(255, 255, 255, 1) 40%, rgba(230, 230, 255, 1) 50%, #ffffff 52%);
    background-repeat: no-repeat;
    background-size: 300% 300%;
    background-position: 0% center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.course-tag:hover .shimmer-text {
    animation: shimmer-text .66s ease-in 1 both;
}

/* Difficulty level tag colors - match filter button themes */

/* Beginner - Green */
.course-tag-beginner {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
    color: #ffffff;
}

.course-tag-beginner:hover {
    background: rgba(34, 197, 94, 0.3);
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25),
                0 2px 4px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(34, 197, 94, 0.4);
}

/* Intermediate - Yellow */
.course-tag-intermediate {
    background: rgba(234, 179, 8, 0.2);
    border-color: rgba(234, 179, 8, 0.4);
    color: #ffffff;
}

.course-tag-intermediate:hover {
    background: rgba(234, 179, 8, 0.3);
    border-color: rgba(234, 179, 8, 0.6);
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.25),
                0 2px 4px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(234, 179, 8, 0.4);
}

/* Advanced - Red */
.course-tag-advanced {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ffffff;
}

.course-tag-advanced:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25),
                0 2px 4px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(239, 68, 68, 0.4);
}

/* Difficulty tag shimmer effects */

/* Beginner shimmer - green glow */
.course-tag-beginner .shimmer-shimmer::before {
    transition: all 0.5s ease;
    opacity: 0;
    content: "";
    border-radius: inherit;
    position: absolute;
    mix-blend-mode: color;
    inset: var(--inset);
    pointer-events: none;
    box-shadow: 0 0 calc(var(--inset) * 0.1) 2px hsl(142deg 76% 36%),
        0 0 calc(var(--inset) * 0.18) 4px hsl(142deg 76% 45%),
        0 0 calc(var(--inset) * 0.33) 4px hsl(142deg 76% 55%),
        0 0 calc(var(--inset) * 0.66) 5px hsl(142deg 76% 65%);
    z-index: -1;
}

.course-tag-beginner .shimmer-shimmer::after {
    transition: all 0.5s ease;
    opacity: 0;
    content: "";
    border-radius: inherit;
    position: absolute;
    mix-blend-mode: color;
    inset: var(--inset);
    pointer-events: none;
    box-shadow: inset 0 0 0 1px hsl(142deg 76% 70%),
        inset 0 0 2px 1px hsl(142deg 76% 60%),
        inset 0 0 5px 2px hsl(142deg 76% 55%);
    z-index: 2;
}

/* Intermediate shimmer - yellow glow */
.course-tag-intermediate .shimmer-shimmer::before {
    transition: all 0.5s ease;
    opacity: 0;
    content: "";
    border-radius: inherit;
    position: absolute;
    mix-blend-mode: color;
    inset: var(--inset);
    pointer-events: none;
    box-shadow: 0 0 calc(var(--inset) * 0.1) 2px hsl(43deg 96% 56%),
        0 0 calc(var(--inset) * 0.18) 4px hsl(43deg 96% 65%),
        0 0 calc(var(--inset) * 0.33) 4px hsl(43deg 96% 70%),
        0 0 calc(var(--inset) * 0.66) 5px hsl(43deg 96% 75%);
    z-index: -1;
}

.course-tag-intermediate .shimmer-shimmer::after {
    transition: all 0.5s ease;
    opacity: 0;
    content: "";
    border-radius: inherit;
    position: absolute;
    mix-blend-mode: color;
    inset: var(--inset);
    pointer-events: none;
    box-shadow: inset 0 0 0 1px hsl(43deg 96% 80%),
        inset 0 0 2px 1px hsl(43deg 96% 70%),
        inset 0 0 5px 2px hsl(43deg 96% 65%);
    z-index: 2;
}

/* Advanced shimmer - red glow */
.course-tag-advanced .shimmer-shimmer::before {
    transition: all 0.5s ease;
    opacity: 0;
    content: "";
    border-radius: inherit;
    position: absolute;
    mix-blend-mode: color;
    inset: var(--inset);
    pointer-events: none;
    box-shadow: 0 0 calc(var(--inset) * 0.1) 2px hsl(0deg 84% 60%),
        0 0 calc(var(--inset) * 0.18) 4px hsl(0deg 84% 68%),
        0 0 calc(var(--inset) * 0.33) 4px hsl(0deg 84% 72%),
        0 0 calc(var(--inset) * 0.66) 5px hsl(0deg 84% 78%);
    z-index: -1;
}

.course-tag-advanced .shimmer-shimmer::after {
    transition: all 0.5s ease;
    opacity: 0;
    content: "";
    border-radius: inherit;
    position: absolute;
    mix-blend-mode: color;
    inset: var(--inset);
    pointer-events: none;
    box-shadow: inset 0 0 0 1px hsl(0deg 84% 82%),
        inset 0 0 2px 1px hsl(0deg 84% 75%),
        inset 0 0 5px 2px hsl(0deg 84% 70%);
    z-index: 2;
}

/* Animation for filtering */
.courses-grid.courses-filtering {
    pointer-events: none;
}

.courses-grid.courses-filtering .course-item {
    transition: all 0.3s ease;
}

/* Responsive Design for Courses */
@media (max-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2.5rem;
    }

    .course-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .courses-grid-section {
        padding: 2rem 1rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .course-image {
        height: 200px;
    }

    .course-title {
        font-size: 1.25rem;
    }

    .filter-list-horizontal {
        gap: 0.5rem;
    }

    .filter-btn-nuts {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .course-title {
        font-size: 1.1rem;
    }

    .course-image {
        height: 180px;
    }

    .filter-btn-nuts {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* ===== SHIMMER BUTTON FRAMEWORK ===== */
:root {
    --shimmer-glow-hue: 222deg;
    --shimmer-shadow-hue: 180deg;
    --shimmer-spring-easing: linear(
    0, 0.002, 0.01 0.9%, 0.038 1.8%, 0.156, 0.312 5.8%, 0.789 11.1%, 1.015 14.2%,
    1.096, 1.157, 1.199, 1.224 20.3%, 1.231, 1.231, 1.226, 1.214 24.6%,
    1.176 26.9%, 1.057 32.6%, 1.007 35.5%, 0.984, 0.968, 0.956, 0.949 42%,
    0.946 44.1%, 0.95 46.5%, 0.998 57.2%, 1.007, 1.011 63.3%, 1.012 68.3%,
    0.998 84%, 1
  );
    --shimmer-spring-duration: 1.33s;

    /* Fallback variables for non-Chromium browsers */
    --fallback-spring-easing: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --fallback-spring-duration: 0.6s;
}

@property --shimmer-shimmer {
    syntax: "<angle>";
    inherits: false;
    initial-value: 33deg;
}

@keyframes shimmer-shimmer {
    0% {
        --shimmer-shimmer: 0deg;
    }
    100% {
        --shimmer-shimmer: 360deg;
    }
}

@keyframes shimmer-shine {
    0% {
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    55% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes shimmer-text {
    0% {
        background-position: 100% center;
    }
    100% {
        background-position: -100% center;
    }
}

/* Universal Shimmer Button Base */
.shimmer-button {
    --inset: 40px;

    position: relative;
    isolation: isolate;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.66em;
    scale: 1;
    transition: all var(--shimmer-spring-duration) var(--shimmer-spring-easing);
    cursor: pointer;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
                0 2px 4px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.shimmer-button:hover:not(:active),
.shimmer-button.active {
    transition-duration: calc(var(--shimmer-spring-duration)*0.5);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2),
                0 4px 8px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.shimmer-button:active {
    transition-duration: calc(var(--shimmer-spring-duration)*0.5);
}

.shimmer-shimmer {
    position: absolute;
    inset: calc(var(--inset) * -1);
    border-radius: inherit;
    pointer-events: none;
    mask-image: conic-gradient(
        from var(--shimmer-shimmer, 0deg),
        transparent 0%,
        transparent 20%,
        black 36%,
        black 45%,
        transparent 50%,
        transparent 70%,
        black 85%,
        black 95%,
        transparent 100%
    );
    mask-size: cover;
    mix-blend-mode: plus-lighter;
    animation: shimmer-shimmer 1s linear infinite both;
}

.shimmer-button:hover .shimmer-shimmer::before,
.shimmer-button:hover .shimmer-shimmer::after,
.shimmer-button.active .shimmer-shimmer::before,
.shimmer-button.active .shimmer-shimmer::after {
    opacity: 1;
    animation: shimmer-shine 1.2s ease-in 1 forwards;
}

.shimmer-shimmer::before,
.shimmer-shimmer::after {
    transition: all 0.5s ease;
    opacity: 0;
    content: "";
    border-radius: inherit;
    position: absolute;
    mix-blend-mode: color;
    inset: var(--inset);
    pointer-events: none;
}

.shimmer-shimmer::before {
    box-shadow: 0 0 calc(var(--inset) * 0.1)  2px hsl(var(--shimmer-glow-hue) 20% 95%),
        0 0 calc(var(--inset) * 0.18)  4px hsl(var(--shimmer-glow-hue) 20% 80%),
        0 0 calc(var(--inset) * 0.33)  4px hsl(var(--shimmer-glow-hue) 50% 70%),
        0 0 calc(var(--inset) * 0.66) 5px hsl(var(--shimmer-glow-hue) 100% 70%);
    z-index: -1;
}

.shimmer-shimmer::after {
    box-shadow: inset 0 0 0 1px hsl(var(--shimmer-glow-hue) 70% 95%),
        inset 0 0 2px 1px hsl(var(--shimmer-glow-hue) 100% 80%),
        inset 0 0 5px 2px hsl(var(--shimmer-glow-hue) 100% 70%);
    z-index: 2;
}

.shimmer-text {
    color: #ffffff;
    background-clip: text;
    background-color: #ffffff;
    background-image: linear-gradient(120deg, #ffffff, rgba(255, 255, 255, 1) 40%, rgba(230, 230, 255, 1) 50%, #ffffff 52%);
    background-repeat: no-repeat;
    background-size: 300% 300%;
    background-position: 0% center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.shimmer-button:hover .shimmer-text,
.shimmer-button.active .shimmer-text {
    animation: shimmer-text .66s ease-in 1 both;
}

/* Navigation Action Button Shimmer Effects */
.nav-action-btn:hover .shimmer-shimmer::before,
.nav-action-btn:hover .shimmer-shimmer::after,
.nav-action-btn.active .shimmer-shimmer::before,
.nav-action-btn.active .shimmer-shimmer::after {
    opacity: 1;
    animation: shimmer-shine 1.2s ease-in 1 forwards;
}

.nav-action-btn:hover .shimmer-text,
.nav-action-btn.active .shimmer-text {
    animation: shimmer-text .66s ease-in 1 both;
}

/* Navigation Link Shimmer Effects */
.nav-link:hover .shimmer-shimmer::before,
.nav-link:hover .shimmer-shimmer::after,
.nav-link.active .shimmer-shimmer::before,
.nav-link.active .shimmer-shimmer::after {
    opacity: 1;
    animation: shimmer-shine 1.2s ease-in 1 forwards;
}

.nav-link:hover .shimmer-text,
.nav-link.active .shimmer-text {
    animation: shimmer-text .66s ease-in 1 both;
}

/* Filter Button Shimmer Effects */
.filter-btn-nuts:hover .shimmer-shimmer::before,
.filter-btn-nuts:hover .shimmer-shimmer::after,
.filter-btn-nuts.active .shimmer-shimmer::before,
.filter-btn-nuts.active .shimmer-shimmer::after {
    opacity: 1;
    animation: shimmer-shine 1.2s ease-in 1 forwards;
}

.filter-btn-nuts:hover .shimmer-text,
.filter-btn-nuts.active .shimmer-text {
    animation: shimmer-text .66s ease-in 1 both;
}

/* ===== BROWSER FALLBACKS ===== */

/* Fallback for browsers without @property support (Firefox, Safari) */
@supports not (background: paint(worklet)) {
    /* Hide shimmer overlay in non-Chromium browsers */
    .shimmer-shimmer {
        display: none;
    }

    /* Enhanced fallback button styles */
    .shimmer-button,
    .nav-action-btn,
    .filter-btn-nuts {
        transition: all var(--fallback-spring-duration) var(--fallback-spring-easing) !important;
    }

    .shimmer-button:hover,
    .nav-action-btn:hover,
    .filter-btn-nuts:hover {
        transition-duration: calc(var(--fallback-spring-duration) * 0.8) !important;
        background: rgba(255, 255, 255, 0.3) !important;
        border-color: rgba(255, 255, 255, 0.4) !important;
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25),
                    0 6px 12px rgba(0, 0, 0, 0.2),
                    inset 0 2px 0 rgba(255, 255, 255, 0.5) !important;
        transform: scale(1.15) translateY(-2px) !important;
        scale: 1 !important; /* Override scale property for older browsers */
    }

    /* Enhanced active state for fallback */
    .filter-btn-nuts.active {
        background: rgba(255, 255, 255, 0.95) !important;
        color: #1a1a2e !important;
        border-color: rgba(255, 255, 255, 0.8) !important;
        box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3),
                    0 4px 8px rgba(0, 0, 0, 0.15),
                    inset 0 2px 0 rgba(255, 255, 255, 0.9) !important;
        transform: scale(1.05) translateY(-1px) !important;
        scale: 1 !important;
    }

    /* Fallback text animations */
    .shimmer-text {
        background-image: none !important;
        background-clip: initial !important;
        transition: color var(--fallback-spring-duration) ease !important;
    }

    .shimmer-button:hover .shimmer-text,
    .nav-action-btn:hover .shimmer-text,
    .filter-btn-nuts:hover .shimmer-text {
        color: rgba(255, 255, 255, 0.95) !important;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.6),
                     0 2px 4px rgba(0, 0, 0, 0.4) !important;
        animation: none !important;
    }

    /* Navigation link fallbacks */
    .nav-link:hover {
        transform: scale(1.03) !important;
        scale: 1 !important;
        background: rgba(255, 255, 255, 0.25) !important;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2),
                    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    }
}

/* ===== COMING SOON SECTION ===== */
/* Section wrapper for liquid text effect */
.coming-soon-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 0;
    background-color: transparent;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Override standalone styles for integration */
.coming-soon-section .liquidtext-container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coming-soon-section #liquidtext-canvas {
    max-width: 90%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

/* Responsive adjustments for coming soon section */
@media (max-width: 768px) {
    .coming-soon-section {
        min-height: 50vh;
    }

    .coming-soon-section .liquidtext-container {
        height: 50vh;
    }

    .coming-soon-section #liquidtext-canvas {
        max-width: 95%;
    }
}

/* ===== SVG AD POPOUT SECTION STYLES ===== */

/* SVG Ad Popout Section */
.svgad-section {
    width: 100%;
    background-color: transparent;  /* Keep transparent so page background shows through */
    padding: 0;
}

#svgad-container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    z-index: 1;  /* Sits above brightness-overlay (z-index -8) */
    isolation: isolate;  /* Creates new stacking context to isolate from overlay */
}

#svgad-container svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Hide elements initially for animation */
#svgad-Ellipse65 circle,
#svgad-arrow,
.svgad-page,
.svgad-text {
    visibility: hidden;
}

/* Arrow drop shadow for better visibility */
#svgad-arrow {
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 2px rgba(0, 0, 0, 0.6));
}

/* 3D perspective for animation */
#svgad-LeadNurturing {
    perspective: 100;
}

/* Shimmer effect for cards */
@property --svgad-shimmer-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 33deg;
}

@keyframes svgad-shimmer-rotate {
    0% {
        --svgad-shimmer-angle: 0deg;
    }
    100% {
        --svgad-shimmer-angle: 360deg;
    }
}

@keyframes svgad-shimmer-shine {
    0% {
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    55% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.svgad-shimmer-wrapper {
    --svgad-shimmer-inset: 40px;
    --svgad-shimmer-glow-hue: 222deg;

    position: absolute;
    width: 180px;
    height: 300px;
    pointer-events: none;
    border-radius: 5px;
    overflow: visible;
}

.svgad-shimmer-effect {
    position: absolute;
    inset: calc(var(--svgad-shimmer-inset) * -1);
    border-radius: inherit;
    pointer-events: none;
    mask-image: conic-gradient(
        from var(--svgad-shimmer-angle, 0deg),
        transparent 0%,
        transparent 20%,
        black 36%,
        black 45%,
        transparent 50%,
        transparent 70%,
        black 85%,
        black 95%,
        transparent 100%
    );
    mask-size: cover;
    mix-blend-mode: plus-lighter;
    animation: svgad-shimmer-rotate 1s linear infinite both;
}

.svgad-shimmer-effect::before {
    transition: all 0.5s ease;
    opacity: 0;
    content: "";
    border-radius: inherit;
    position: absolute;
    mix-blend-mode: color;
    inset: var(--svgad-shimmer-inset);
    pointer-events: none;
    box-shadow:
        0 0 calc(var(--svgad-shimmer-inset) * 0.1) 2px hsl(var(--svgad-shimmer-glow-hue) 20% 95%),
        0 0 calc(var(--svgad-shimmer-inset) * 0.18) 4px hsl(var(--svgad-shimmer-glow-hue) 20% 80%),
        0 0 calc(var(--svgad-shimmer-inset) * 0.33) 4px hsl(var(--svgad-shimmer-glow-hue) 50% 70%),
        0 0 calc(var(--svgad-shimmer-inset) * 0.66) 5px hsl(var(--svgad-shimmer-glow-hue) 100% 70%);
    z-index: -1;
}

.svgad-shimmer-wrapper.svgad-shimmer-active .svgad-shimmer-effect::before {
    opacity: 1;
    animation: svgad-shimmer-shine 1.2s ease-in 1 forwards;
}

.svgad-page {
    cursor: pointer;
}

/* Timeline Controls */
#timeline-controls {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.controls-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

#timeline-controls button {
    background: #E5E4E2;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
    min-width: 35px;
}

#timeline-controls button:hover {
    background: #d0cfcd;
}

#timeline-scrubber {
    flex: 1;
    height: 5px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: #E5E4E2;
    border-radius: 3px;
    outline: none;
}

#timeline-scrubber::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: #8c8b89;
    border-radius: 50%;
    cursor: pointer;
}

#timeline-scrubber::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #8c8b89;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

#time-display {
    font-family: Arial, sans-serif;
    font-size: 12px;
    min-width: 90px;
    text-align: center;
}

#speed-control {
    padding: 5px 8px;
    border-radius: 4px;
    border: 1px solid #E5E4E2;
    background: white;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 12px;
}
