
:root {
    /* Z-Index Scale */
    --z-base: 1;
    --z-gallery: 2;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-sticker: 900;
    --z-navbar: 1000;
    --z-modal: 1000000; /* Increased significantly to override all other elements */
    --z-toast: 3000;
    --z-preloader: 200000;
    
    /* Image Scale Factor for Responsive Scaling */
    --image-scale-factor: 1; /* По умолчанию 100% */
    
    /* Fluid Typography */
    --font-xs: clamp(0.75rem, 0.5vw + 0.6rem, 0.875rem);
    --font-sm: clamp(0.875rem, 0.5vw + 0.75rem, 1rem);
    --font-base: clamp(1rem, 0.5vw + 0.875rem, 1.125rem);
    --font-md: clamp(1.125rem, 1vw + 0.875rem, 1.5rem);
    --font-lg: clamp(1.5rem, 2vw + 1rem, 2.5rem);
    --font-xl: clamp(2rem, 4vw + 1rem, 4rem);
    --font-2xl: clamp(2.5rem, 5vw + 1.5rem, 5rem);
    
    /* Mobile-optimized spacing */
    --mobile-padding: 1rem;
    --mobile-gap: 1rem;
    --mobile-section-padding: 3rem 0;
    
    /* Touch-friendly sizes */
    --touch-target: 44px;
    --mobile-nav-height: 70px;
    
    /* Mobile typography */
    --mobile-h1: clamp(2rem, 8vw, 2.5rem);
    --mobile-h2: clamp(1.5rem, 6vw, 2rem);
    --mobile-h3: clamp(1.25rem, 5vw, 1.5rem);
    --mobile-body: clamp(0.9rem, 4vw, 1rem);
    
    /* Accessibility - Better contrast */
    --text-secondary-accessible: #475569;
    --text-muted-accessible: #64748b;
    
    --bg-primary: #F5F5F5;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #e2e8f0;
    --text-primary: #1e293b;
    
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --accent-color: #228B22; /* Forest Green */
    --accent-hover: #196b19;
    --border-color: #e2e8f0;
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #228B22 0%, #196b19 100%);
    --gradient-secondary: linear-gradient(135deg, #2fbf2f 0%, #228B22 100%);
    
    /* Image Scale Factor for Responsive Scaling (optional, use carefully) */
    --image-scale-factor: 1; /* По умолчанию 100% - не применяем масштабирование */
}

/* Адаптивное масштабирование для разных размеров экрана */
@media (max-width: 480px) {
    :root {
        --image-scale-factor: 0.4; /* 40% от оригинала на очень маленьких экранах */
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    :root {
        --image-scale-factor: 0.6; /* 60% от оригинала на мобильных */
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    :root {
        --image-scale-factor: 0.8; /* 80% от оригинала на планшетах */
    }
}

[data-theme="dark"] {
    --text-secondary-accessible: #cbd5e1; /* Brighter for dark mode */
    --text-muted-accessible: #a8b8cc; /* More contrast */
    
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc; /* Improved contrast */
    --text-secondary: #e2e8f0; /* More contrast */
    --text-muted: #94a3b8;
    --accent-color: #FFD700; /* Gold */
    --accent-hover: #e6c200;
    --border-color: #334155;
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, #020617 0%, #000000 100%);
    --gradient-secondary: linear-gradient(135deg, #FFD700 0%, #e6c200 100%);
}


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

/* ===================================
   SCROLLBAR (WEBKIT / MODERN BROWSERS)
   Красивая полоса прокрутки с круглыми углами
   =================================== */

html {
    /* Возвращаем почти системный скроллбар без зелёных линий */
    overflow-y: auto;
    /* Для Firefox – нейтральные цвета */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

/* Для Chrome / Edge (WebKit) - нейтральный серый скролл, без зелёного */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 999px;
    border: 2px solid transparent;
}


/* Оптимизированные переходы для смены темы - только для элементов, которые меняют цвет */
html,
body {
    transition: background-color 0.35s ease-out, color 0.35s ease-out !important;
    will-change: background-color, color;
}

/* Основные контейнеры и секции */
.navbar,
.footer,
.hero,
section,
.container {
    transition: background-color 0.35s ease-out, color 0.35s ease-out, border-color 0.35s ease-out !important;
}

/* Карточки и интерактивные элементы */
.card,
.btn-primary,
.btn-secondary,
.social-card,
.link-card,
.timeline-item {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* Текст */
.nav-link,
.hero-title,
.hero-title .title-line,
.hero-subtitle,
h1, h2, h3, h4, h5, h6,
p, span, a, li {
    transition: color 0.35s ease-out !important;
}

/* Иконки и SVG */
i,
.fas,
.fab,
.far,
.icon,
svg {
    transition: color 0.35s ease-out, fill 0.35s ease-out, stroke 0.35s ease-out !important;
}

svg path,
svg rect,
svg circle {
    transition: fill 0.35s ease-out, stroke 0.35s ease-out !important;
}

/* Performance Optimization - Image loading */
img {
    max-width: 100%;
    height: auto;
    display: block;
    content-visibility: auto;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

/* Accessibility - Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Accessibility - Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* EXCEPTION: Keep ticker animation slow even with reduced motion */
    .ticker-track,
    .ticker-track * {
        animation-duration: 400s !important;
        animation-iteration-count: infinite !important;
    }
    
    @media (max-width: 768px) {
        .ticker-track,
        .ticker-track * {
            animation-duration: 200s !important;
        }
    }
}


/* Mobile UX Improvements - Touch Target Sizes */
@media (max-width: 768px) {
    /* Hero Image - Move content down to show face fully visible on mobile */
    .hero .hero-image .hero-photo,
    .hero .hero-image .image-container .hero-photo,
    section.hero .hero-image img.hero-photo,
    .hero-image .image-container img.hero-photo,
    .hero-image img.hero-photo,
    img.hero-photo {
        object-position: center 50% !important;
        transform: translateY(20%) !important; /* Shift image content DOWN to show face */
    }
    
    .nav-link,
    .btn-primary,
    .btn-secondary,
    .social-card,
    .link-card,
    .hamburger {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .theme-toggle,
    #theme-toggle {
        min-height: 36px;
        min-width: 36px;
        width: 36px !important;
        height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        margin: 0 !important;
        aspect-ratio: 1 / 1 !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-link {
        padding: 12px 16px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 14px 24px;
    }
}

html {
    scroll-behavior: smooth;
    scrollbar-color: var(--accent-color) var(--bg-secondary);
    background-color: var(--bg-primary);
    -webkit-text-size-adjust: 100%; /* Prevent text inflation on iOS */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight */
    touch-action: manipulation; /* Improve touch response */
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* Prevent rubber-band scroll on iOS */
    position: relative;
    overflow-x: hidden;
    max-width: 100vw;
    overscroll-behavior-y: none;
}

body.fonts-loaded {
    font-family: 'Inter', sans-serif;
}

/* Font Loading - Prevent FOUT/FOIT */
/* Note: Font is loaded via Google Fonts link, font-display: swap is handled there */

/* Only apply opacity: 0 to body if preloader exists on the page */
body:has(#preloader) {
    opacity: 0;
}

body.fade-in {
    animation: fadeInPage 0.8s ease-out forwards;
    opacity: 1;
}

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

body.preloader-active {
    overflow: hidden !important;
    height: 100vh;
    opacity: 1 !important;
}

html.preloader-active {
    overflow: hidden !important;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: var(--z-preloader) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    overflow: visible;
    opacity: 1 !important;
    visibility: visible !important;
}

[data-theme="dark"] .preloader {
    background: #0f172a;
}

@keyframes changePreloaderBackground {
    0% {
        background: #ffffff;
    }
    100% {
        background: #008000;
    }
}

@keyframes changePreloaderBackgroundDark {
    0% {
        background: #0f172a;
    }
    100% {
        background: #008000;
    }
}

@keyframes changePreloaderBackground2 {
    0% {
        background: #008000;
    }
    100% {
        background: #4896c0;
    }
}

@keyframes changePreloaderBackground2_5 {
    0% {
        background: #4896c0;
    }
    100% {
        background: #885231;
    }
}

@keyframes changePreloaderBackground2_75 {
    0% {
        background: #885231;
    }
    100% {
        background: #F5F5F5;
    }
}

@keyframes changePreloaderBackground3 {
    0% {
        background: #F5F5F5;
    }
    100% {
        background: #000000;
    }
}

@keyframes changePreloaderBackground4 {
    0% {
        background: #F5F5F5;
    }
    100% {
        background: #ffffff;
    }
}

@keyframes changePreloaderBackground4Dark {
    0% {
        background: #F5F5F5;
    }
    100% {
        background: #0f172a;
    }
}

@keyframes preloaderBackground {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


.preloader-logo {
    position: relative;
    z-index: var(--z-preloader);
    width: 100%;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-logo h2 {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 700;
    color: #000000;
    letter-spacing: 0.1em;
    margin: 0;
    opacity: 1;
    visibility: visible;
    display: inline-block;
    white-space: nowrap;
    animation: slideInFromLeft 1s ease-out, fadeOutText 0.4s ease-out 2s forwards;
}

[data-theme="dark"] .preloader-logo h2 {
    color: #FFD700;
    animation: slideInFromLeft 1s ease-out, fadeOutText 0.4s ease-out 2s forwards;
}

@keyframes changeTextColor {
    0% {
        color: #000000;
    }
    100% {
        color: #FFE77A;
    }
}

@keyframes changeTextColorDark {
    0% {
        color: #FFD700;
    }
    100% {
        color: #FFE77A;
    }
}

@keyframes changeTextColor2 {
    0% {
        color: #FFE77A;
    }
    100% {
        color: #000000;
    }
}

@keyframes changeTextColor2_5 {
    0% {
        color: #000000;
    }
    100% {
        color: #ffffff;
    }
}

@keyframes changeTextColor2_75 {
    0% {
        color: #ffffff;
    }
    100% {
        color: #000080;
    }
}

@keyframes changeTextColor3 {
    0% {
        color: #000080;
    }
    100% {
        color: #ffffff;
    }
}

@keyframes changeTextColor4 {
    0% {
        color: #000080;
    }
    100% {
        color: #000000;
    }
}

@keyframes changeTextColor4Dark {
    0% {
        color: #000080;
    }
    100% {
        color: #FFD700;
    }
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes fadeOutText {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

[data-theme="dark"] .preloader {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    background-size: 200% 200%;
    animation: preloaderBackground 2s ease-in-out infinite;
}

[data-theme="dark"] .preloader-logo h2 {
    color: #FFD700;
}

@keyframes preloaderBackground {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

[data-theme="light"] html,
[data-theme="light"] body {
    background-color: var(--bg-primary);
}

::-webkit-scrollbar {
    width: 8px;
}

/* (удалено повторное переопределение скроллбара с зелёным цветом,
   чтобы не было зелёных линий внутри блоков) */


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


/* Utility animations */
.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.timeline-animate {
    animation: slideInFromLeft 0.8s ease-out forwards;
}

.highlighted .marker-dot {
    background: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-color);
}

.highlighted .timeline-content {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}


.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 10000 !important;
    transition: background 0.35s ease-out, background-color 0.35s ease-out, border-color 0.35s ease-out, box-shadow 0.35s ease-out !important;
}

@supports not (backdrop-filter: blur(10px)) {
    .navbar {
        background: rgba(255, 255, 255, 0.98);
        transition: background 0.35s ease-out, background-color 0.35s ease-out, border-color 0.35s ease-out, box-shadow 0.35s ease-out !important;
    }
    
    [data-theme="dark"] .navbar {
        background: rgba(15, 23, 42, 0.98);
        transition: background 0.35s ease-out, background-color 0.35s ease-out, border-color 0.35s ease-out, box-shadow 0.35s ease-out !important;
    }
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.95);
    transition: background 0.35s ease-out, background-color 0.35s ease-out, border-color 0.35s ease-out, box-shadow 0.35s ease-out !important;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: background 0.35s ease-out, background-color 0.35s ease-out, border-color 0.35s ease-out, box-shadow 0.35s ease-out !important;
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
    transition: background 0.35s ease-out, background-color 0.35s ease-out, border-color 0.35s ease-out, box-shadow 0.35s ease-out !important;
}

.nav-container {
    width: 100%;
    padding: 0 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
}

.nav-logo {
    margin-left: 0;
    padding-right: 2.5rem;
}

.nav-logo h2 {
    font-size: 1.7rem;
    color: var(--text-primary);
    font-weight: 700;
    cursor: pointer;
    padding-top: 0.1rem;
    font-family: 'Playfair Display', serif;
    transition: color 0.35s ease-out !important;
}

.nav-menu {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 4rem;
    margin-left: 8rem;
}

.nav-item {
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    padding-bottom: 0.3rem;
    transition: all 0.3s ease;
    position: relative;
    outline: none; /* Remove default focus outline */
}

.nav-link:focus,
.nav-link:active {
    outline: none;
    box-shadow: none;
}

.nav-logo a,
.nav-logo a:focus,
.nav-logo a:active {
    outline: none;
    box-shadow: none;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

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

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

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 0;
    margin-left: 2.5rem;
}

.nav-right .hamburger {
    margin: 0;
}

/* Critical: Force hamburger and theme toggle visibility on mobile */
@media (max-width: 992px) {
    /* Force nav-right visibility */
    .nav-right {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important; /* Changed from 0.75rem to 4px - very close */
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 1000 !important;
    }
    
    /* Force theme switcher visibility */
    .theme-switcher {
        display: flex !important;
        align-items: center !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Force theme toggle button visibility - PERFECTLY ROUND */
    #theme-toggle,
    .theme-toggle,
    button#theme-toggle,
    button.theme-toggle,
    .nav-right #theme-toggle,
    .nav-right .theme-toggle,
    .theme-switcher #theme-toggle,
    .theme-switcher .theme-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        z-index: 1000 !important;
        background: var(--bg-secondary) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 50% !important;
        -webkit-border-radius: 50% !important;
        -moz-border-radius: 50% !important;
        padding: 0 !important;
        margin: 0 !important;
        aspect-ratio: 1 / 1 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        cursor: pointer !important;
    }
    
    /* Remove underline from logo on mobile - AGGRESSIVE */
    .nav-logo a,
    .nav-logo a:hover,
    .nav-logo a:focus,
    .nav-logo a:active,
    .nav-logo a:visited,
    .nav-container .nav-logo a,
    .navbar .nav-container .nav-logo a {
        text-decoration: none !important;
        border-bottom: none !important;
        border: none !important;
        outline: none !important;
        /* Disable long press menu on mobile - prevents link context menu */
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
        pointer-events: auto !important;
    }
    
    .nav-logo,
    .nav-logo h2 {
        /* Disable long press menu and text selection on mobile */
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
    }
    
    .nav-logo a::after,
    .nav-logo a::before,
    .nav-logo h2::after,
    .nav-logo h2::before,
    .nav-container .nav-logo a::after,
    .nav-container .nav-logo a::before,
    .navbar .nav-container .nav-logo a::after,
    .navbar .nav-container .nav-logo a::before {
        display: none !important;
        content: none !important;
        width: 0 !important;
        height: 0 !important;
        border: none !important;
        background: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    #theme-toggle i,
    .theme-toggle i {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 0.9rem !important;
    }
    
    /* Force hamburger visibility */
    .hamburger,
    .nav-right .hamburger,
    button.hamburger {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        position: relative !important;
        z-index: 1001 !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Ensure hamburger box is visible */
    .hamburger-box {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 32px !important;
        height: 26px !important;
        position: relative !important;
    }
    
    /* Ensure hamburger inner elements are visible */
    .hamburger-inner {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 32px !important;
        height: 3.5px !important;
        background-color: var(--text-primary) !important;
        position: absolute !important;
        top: 50% !important;
        margin-top: -1.75px !important;
        border-radius: 3px !important;
    }
    
    .hamburger-inner::before {
        content: "" !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 32px !important;
        height: 3.5px !important;
        background-color: var(--text-primary) !important;
        position: absolute !important;
        top: -11px !important;
        border-radius: 3px !important;
    }
    
    .hamburger-inner::after {
        content: "" !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 32px !important;
        height: 3.5px !important;
        background-color: var(--text-primary) !important;
        position: absolute !important;
        bottom: -11px !important;
        border-radius: 3px !important;
    }
}


.theme-switcher {
    display: flex;
    align-items: center;
}

#theme-toggle,
.theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    color: var(--text-primary);
    will-change: transform, background-color;
    font-size: 0.9rem;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    aspect-ratio: 1 / 1 !important;
}

#theme-toggle:hover,
.theme-toggle:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1);
}


/* Hamburger Menu - Based on hamburgers.js library style */
.hamburger {
    display: none;
    padding: 0;
    cursor: pointer;
    transition-property: opacity, filter;
    transition-duration: 0.15s;
    transition-timing-function: linear;
    font: inherit;
    color: inherit;
    text-transform: none;
    background-color: transparent;
    border: 0;
    margin: 0;
    overflow: visible;
    position: relative;
    z-index: 1001;
}

.hamburger:hover {
    opacity: 0.7;
}

.hamburger.is-active:hover {
    opacity: 1;
}

.hamburger.is-active .hamburger-inner,
.hamburger.is-active .hamburger-inner::before,
.hamburger.is-active .hamburger-inner::after {
    background-color: var(--accent-color);
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -1.5px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 30px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease;
    z-index: 1;
}

/* Ensure hamburger is visible */
.hamburger {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Mobile hamburger - larger and more visible */
@media (max-width: 992px) {
    .hamburger {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        z-index: 1001 !important;
        background: transparent !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .hamburger-box {
        width: 32px;
        height: 26px;
        display: inline-block !important;
        position: relative;
        z-index: 1;
    }
    
    .hamburger-inner,
    .hamburger-inner::before,
    .hamburger-inner::after {
        width: 32px !important;
        height: 3.5px !important;
        background-color: var(--text-primary) !important;
        display: block !important;
        position: absolute !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .hamburger-inner::before {
        top: -11px;
    }
    
    .hamburger-inner::after {
        bottom: -11px;
    }
    
    /* Ensure nav-right shows hamburger */
    .nav-right {
        display: flex !important;
        align-items: center;
        gap: 0.75rem;
    }
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    bottom: -10px;
}

/* Squeeze Style - Ultra smooth animation */
.hamburger--squeeze .hamburger-inner {
    transition-duration: 0.4s;
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-property: transform, opacity;
}

.hamburger--squeeze .hamburger-inner::before {
    transition: top 0.2s 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.2s 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hamburger--squeeze .hamburger-inner::after {
    transition: bottom 0.2s 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hamburger--squeeze.is-active .hamburger-inner {
    transform: rotate(45deg);
    transition-delay: 0.15s;
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hamburger--squeeze.is-active .hamburger-inner::before {
    top: 0;
    opacity: 0;
    transition: top 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hamburger--squeeze.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
    transition: bottom 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.4s 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Dark mode */
[data-theme="dark"] .hamburger-inner,
[data-theme="dark"] .hamburger-inner::before,
[data-theme="dark"] .hamburger-inner::after {
    background-color: var(--text-primary);
}

[data-theme="dark"] .hamburger.is-active .hamburger-inner,
[data-theme="dark"] .hamburger.is-active .hamburger-inner::before,
[data-theme="dark"] .hamburger.is-active .hamburger-inner::after {
    background-color: var(--accent-color);
}


.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem 0;
    overflow-x: hidden; /* Hide horizontal overflow */
    overflow-y: visible; /* Allow vertical overflow for scroll indicator */
}

.hero-video {
    color: #ffffff;
    background: #01060a;
}

.hero-video .container {
    position: relative;
    z-index: 2;
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.hero-video-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
}

.hero-video-bg__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(110%) contrast(105%);
}

.animated-gradient {
    background: linear-gradient(45deg, #ffffff, #008000, #ffffff);
    background-size: 250% 250%;
    animation: heroGradientShift 10s ease-in-out infinite;
    will-change: background-position;
}

.animated-gradient .hero-animate-color {
    animation: heroTextShift 10s ease-in-out infinite;
    will-change: color;
}

@keyframes heroGradientShift {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 100%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 0%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes heroTextShift {
    0% {
        color: #008000;
    }
    25% {
        color: #ffffff;
    }
    50% {
        color: #ffffff;
    }
    75% {
        color: #ffffff;
    }
    100% {
        color: #008000;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Удалено - SVG паттерн с точками */
    background: none !important;
    opacity: 0;
    animation: none !important;
    will-change: auto;
}



.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Desktop: text first (left), image second (right) - reverse HTML order for desktop */
@media (min-width: 769px) {
    .hero-content {
        display: grid !important;
    }
    
    .hero-image {
        order: 2;
    }
    
    .hero-text {
        order: 1;
    }
}

.hero-text {
    animation: fadeInUp 1.2s ease-out;
}

.gallery-spinner {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    z-index: 3;
    pointer-events: none;
}

.spinner-text {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--accent-color);
    animation: rotate 8s linear infinite;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.7;
    will-change: transform;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    transition: color 0.35s ease-out !important;
    animation: titleFadeInUp 1s ease-out;
}

.hero-title .title-line {
    display: block;
    animation: slideInFromLeft 0.8s ease-out both;
    will-change: transform, opacity;
    backface-visibility: hidden;
    color: #000000 !important;
    transition: color 0.35s ease-out !important;
}

.hero-title .title-line:nth-child(2) {
    animation-delay: 0.15s;
    color: var(--accent-color) !important;
    transition: color 0.35s ease-out !important;
}

[data-theme="dark"] .hero-title .title-line {
    color: #ffffff !important;
    transition: color 0.35s ease-out !important;
}

[data-theme="dark"] .hero-title .title-line:nth-child(2) {
    color: var(--accent-color) !important;
    transition: color 0.35s ease-out !important;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s ease-out 0.4s both;
    transition: color 0.35s ease-out !important;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1.2s ease-out 0.6s both;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

/* Кнопка Listen Now - светлая тема: зеленый фон, белый текст */
.btn-primary {
    background: #228B22 !important; /* Зеленый цвет для светлой темы */
    color: #FFFFFF !important; /* Белый текст */
    border: none;
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Убеждаемся, что в светлой теме (без data-theme="dark") фон зеленый */
:not([data-theme="dark"]) .btn-primary,
:not([data-theme="dark"]) .hero-buttons .btn-primary,
:not([data-theme="dark"]) .hero .btn-primary,
:not([data-theme="dark"]) .btn-primary.smart-link-btn {
    background: #228B22 !important; /* Зеленый фон для светлой темы */
    color: #FFFFFF !important; /* Белый текст */
}

.btn-primary:hover {
    background: #196b19 !important; /* Темнее зеленый при наведении */
    color: #FFFFFF !important; /* Белый текст */
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

:not([data-theme="dark"]) .btn-primary:hover,
:not([data-theme="dark"]) .hero-buttons .btn-primary:hover,
:not([data-theme="dark"]) .hero .btn-primary:hover,
:not([data-theme="dark"]) .btn-primary.smart-link-btn:hover {
    background: #196b19 !important; /* Темнее зеленый при наведении в светлой теме */
    color: #FFFFFF !important; /* Белый текст */
}

/* Кнопка Listen Now - темная тема: желтый фон, белый текст */
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .hero-buttons .btn-primary,
[data-theme="dark"] .hero .btn-primary,
[data-theme="dark"] .btn-primary.smart-link-btn {
    background: #FFD700 !important; /* Желтый цвет для темной темы */
    color: #FFFFFF !important; /* Белый текст */
}

[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] .hero-buttons .btn-primary:hover,
[data-theme="dark"] .hero .btn-primary:hover,
[data-theme="dark"] .btn-primary.smart-link-btn:hover {
    background: #e6c200 !important; /* Темнее желтый при наведении */
    color: #FFFFFF !important; /* Белый текст */
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* REMOVED - CONFLICTING ANIMATION - Now using fadeInFromTop instead
.hero-image {
    animation: fadeInRight 0.6s ease-out 0.4s both;
}
*/

.image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-large);
}

.hero-photo {
    display: block;
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: center bottom;
    transition: transform 0.3s ease;
}

/* Mobile override - must be after base rule */
@media (max-width: 768px) {
    .hero-photo {
        object-position: center 50% !important;
        transform: translateY(20%) !important; /* Shift image content DOWN to show face */
    }
}

.about-image .hero-photo {
    width: 100%;
    height: 350px;
    object-position: center 30% !important; /* Slightly lower content position */
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    opacity: 0;
    transition: none;
    pointer-events: none;
}

.image-container:hover .hero-photo {
    transform: none;
}

.image-container:hover .image-overlay { opacity: 0; }

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-primary);
    animation: bounce 2s infinite;
    z-index: 2;
    pointer-events: none;
    transition: color 0.35s ease-out !important;
}

.scroll-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
    display: block;
}

.scroll-arrow {
    font-size: 1.5rem;
    display: block;
}


.career-timeline {
    padding: 6rem 0;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 4rem;
    color: var(--text-primary);
    position: relative;
    transition: color 0.35s ease-out !important;
}

/* Responsive section titles */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.biography-timeline {
    position: relative;
    overflow: visible;
    width: 100%;
    padding: 0;
}

.biography-timeline .container {
    position: relative;
    z-index: 2;
}

.biography-timeline .container .section-title {
    position: relative;
    z-index: 3;
}

.timeline-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    min-height: 2400px;
}

.timeline-connector {
    position: absolute;
    top: 8rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% - 12rem);
    pointer-events: none;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.timeline-line-vertical {
    width: 2px;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        var(--accent-color) 5%,
        var(--accent-color) 95%,
        transparent 100%
    );
    opacity: 0.3;
    position: relative;
    animation: drawLine 2s ease-out forwards;
    transform-origin: top;
    transform: scaleY(0);
}

@keyframes drawLine {
    to {
        transform: scaleY(1);
    }
}

.timeline-line-vertical::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--accent-color);
    opacity: 0;
    animation: pulseLine 3s ease-in-out infinite;
    transition: opacity 0.3s ease, box-shadow 0.3s ease;
}

@keyframes pulseLine {
    0%, 100% {
        opacity: 0;
        box-shadow: 0 0 0 0 rgba(34, 139, 34, 0);
    }
    50% {
        opacity: 0.6;
        box-shadow: 0 0 20px 4px rgba(34, 139, 34, 0.3);
    }
}

.timeline-item:hover ~ .timeline-connector .timeline-line-vertical::before,
.timeline-item:hover .timeline-connector .timeline-line-vertical::before {
    opacity: 0.8;
    box-shadow: 0 0 25px 6px rgba(34, 139, 34, 0.5);
}

[data-theme="dark"] .timeline-line-vertical::before {
    box-shadow: 0 0 20px 4px rgba(255, 215, 0, 0.3);
}

.timeline-line {
    display: none;
}

.timeline-item {
    display: flex;
    position: relative;
    width: 100%;
    max-width: 550px;
    opacity: 0;
    transform: translateY(30px) rotate(-2deg);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.timeline-item:nth-child(odd) {
    align-self: flex-start;
    margin-right: auto;
    margin-left: 5%;
    transform: translateY(30px) rotate(3deg);
}

.timeline-item:nth-child(even) {
    align-self: flex-end;
    margin-left: auto;
    margin-right: 5%;
    transform: translateY(30px) rotate(-3deg);
}

.timeline-item:nth-child(1) {
    max-width: 480px;
    transform: translateY(30px) rotate(4deg);
}

.timeline-item:nth-child(2) {
    max-width: 520px;
    transform: translateY(30px) rotate(-4deg);
}

.timeline-item:nth-child(3) {
    max-width: 500px;
    transform: translateY(30px) rotate(2deg);
}

.timeline-item:nth-child(4) {
    max-width: 540px;
    transform: translateY(30px) rotate(-5deg);
}

.timeline-item:nth-child(5) {
    max-width: 490px;
    transform: translateY(30px) rotate(3deg);
}

.timeline-item.animate-in {
    opacity: 1;
}

.timeline-item.animate-in:nth-child(odd) {
    transform: translateY(0) rotate(3deg);
}

.timeline-item.animate-in:nth-child(even) {
    transform: translateY(0) rotate(-3deg);
}

.timeline-item.animate-in:nth-child(1) {
    transform: translateY(0) rotate(4deg);
}

.timeline-item.animate-in:nth-child(2) {
    transform: translateY(0) rotate(-4deg);
}

.timeline-item.animate-in:nth-child(3) {
    transform: translateY(0) rotate(2deg);
}

.timeline-item.animate-in:nth-child(4) {
    transform: translateY(0) rotate(-5deg);
}

.timeline-item.animate-in:nth-child(5) {
    transform: translateY(0) rotate(3deg);
}

.timeline-marker {
    position: absolute;
    top: -1.5rem;
    margin-bottom: 0;
    z-index: 4;
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -2rem;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -2rem;
    text-align: left;
}

.marker-dot {
    display: none;
}

.marker-year {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.6rem;
    letter-spacing: 0.05em;
    margin-bottom: 0;
    display: inline-block;
    position: relative;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), 0 0 0 2px var(--accent-color);
    z-index: 3;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotate(-2deg);
}

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

.timeline-item:hover .marker-year {
    transform: rotate(0deg) scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 0 3px var(--accent-color);
}

.timeline-item::before {
    display: none;
}


.timeline-item.animate-in::before {
    opacity: 1;
    animation: pulseDot 2.5s ease-in-out infinite;
}

.timeline-item:hover::before {
    transform: translateX(-50%) translateY(-50%) scale(1.3);
    box-shadow: 0 0 0 3px var(--accent-color), 0 0 25px rgba(34, 139, 34, 0.6);
}

@keyframes pulseDot {
    0%, 100% {
        transform: translateX(-50%) translateY(-50%) scale(1);
        box-shadow: 0 0 0 2px var(--accent-color), 0 0 15px rgba(34, 139, 34, 0.4);
    }
    50% {
        transform: translateX(-50%) translateY(-50%) scale(1.15);
        box-shadow: 0 0 0 4px var(--accent-color), 0 0 25px rgba(34, 139, 34, 0.6);
    }
}

[data-theme="dark"] .timeline-item::before {
    border-color: var(--bg-primary);
    box-shadow: 0 0 0 2px var(--accent-color), 0 0 15px rgba(255, 215, 0, 0.4);
}

[data-theme="dark"] .timeline-item:hover::before {
    box-shadow: 0 0 0 3px var(--accent-color), 0 0 25px rgba(255, 215, 0, 0.6);
}

@keyframes pulseDotDark {
    0%, 100% {
        transform: translateX(-50%) translateY(-50%) scale(1);
        box-shadow: 0 0 0 2px var(--accent-color), 0 0 15px rgba(255, 215, 0, 0.4);
    }
    50% {
        transform: translateX(-50%) translateY(-50%) scale(1.15);
        box-shadow: 0 0 0 4px var(--accent-color), 0 0 25px rgba(255, 215, 0, 0.6);
    }
}

[data-theme="dark"] .timeline-item.animate-in::before {
    animation: pulseDotDark 2.5s ease-in-out infinite;
}

.timeline-content {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    width: 100%;
    border: 2px solid var(--border-color);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem;
    backdrop-filter: blur(10px);
}

.timeline-content::before {
    display: none;
}

.timeline-item:hover {
    z-index: 10;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px var(--accent-color);
    border-color: var(--accent-color);
}

.timeline-item:nth-child(odd):hover {
    transform: translateY(-12px) rotate(5deg) scale(1.02);
}

.timeline-item:nth-child(even):hover {
    transform: translateY(-12px) rotate(-5deg) scale(1.02);
}

.timeline-item:hover .timeline-content::before {
    display: none;
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transition: color 0.35s ease-out !important;
    text-align: center;
}

.timeline-text {
    position: absolute;
    top: 0;
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    z-index: 1;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.timeline-item:nth-child(odd) .timeline-text {
    left: calc(100% + 6rem);
    text-align: left;
    justify-content: flex-start;
}

.timeline-item:nth-child(even) .timeline-text {
    right: calc(100% + 6rem);
    text-align: right;
    justify-content: flex-end;
}

.timeline-text p {
    color: var(--text-primary);
    font-size: 1.15rem;
    line-height: 1.9;
    margin: 0;
    transition: none;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    pointer-events: none;
}

/* Disable hover on timeline text completely */
.timeline-text,
.timeline-text * {
    pointer-events: none !important;
}

.timeline-text:hover,
.timeline-text:hover p,
.timeline-item:hover .timeline-text,
.timeline-item:hover .timeline-text p {
    color: var(--text-primary) !important;
    transform: none !important;
    transition: none !important;
    pointer-events: none !important;
}

.timeline-image {
    border-radius: 12px;
    overflow: hidden;
    margin-top: 0;
    position: relative;
    aspect-ratio: 16 / 9;
}

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

.timeline-item:hover .timeline-image img {
    transform: scale(1.05);
}

.timeline-message {
    width: 100%;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 10rem;
}

.timeline-message p {
    font-size: 2.2rem;
    color: var(--text-primary);
    font-weight: 500;
    font-style: italic;
    margin: 0;
    transition: color 0.35s ease-out !important;
}

/* Timeline Responsive */
@media (max-width: 768px) {
    .timeline-item {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: translateY(30px) rotate(0deg) !important;
    }
    
    .timeline-item.animate-in {
        transform: translateY(0) rotate(0deg) !important;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        align-self: center;
    }
    
    .timeline-item:nth-child(odd) .timeline-marker,
    .timeline-item:nth-child(even) .timeline-marker {
        position: relative;
        left: 0;
        right: 0;
        text-align: left;
        margin-bottom: 1rem;
        top: 0;
    }
    
    .timeline-item:hover {
        transform: translateY(-12px) rotate(0deg) scale(1.02) !important;
    }
    
    .marker-year {
        transform: rotate(0deg) !important;
    }
    
    .timeline-item:hover .marker-year {
        transform: rotate(0deg) scale(1.1) !important;
    }
    
    .timeline-text {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        max-width: 100% !important;
        padding: 1.5rem 0 !important;
        margin-top: 1.5rem;
        text-align: left !important;
    }
    
    .timeline-connector {
        left: 2rem;
    }
    
    .timeline-item::before {
        left: 2rem;
    }
}


.quick-links {
    padding: 6rem 0;
    background: var(--bg-primary);
    transition: background-color 0.35s ease-out, color 0.35s ease-out !important;
}

.quick-links .container {
    max-width: 1400px;
    padding: 0 1rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem; /* чуть больше расстояние между блоками */
    margin-top: 3rem;
    justify-items: stretch;
}

.link-card {
    background: var(--bg-primary);
    padding: 2.25rem 3rem;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* чтобы заголовки начинались на одной высоте */
    gap: 0.75rem;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.link-card:hover::before {
    left: 100%;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
    border-color: var(--accent-color);
}

.card-icon {
    font-size: 3.4rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease !important;
}

.card-icon i {
    transition: color 0.3s ease !important;
}

.link-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease !important;
    /* фиксированная высота заголовка, чтобы все были на одной линии */
    min-height: 2.1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-card p {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    transition: color 0.3s ease !important;
    /* одинаковая высота описания для всех карточек */
    min-height: 3.2em;
}


.social-integration {
    padding: 6rem 0;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease !important;
}

.social-integration .container {
    max-width: 1400px;
    padding: 0 1rem;
}

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

.social-card {
    background: var(--bg-primary);
    padding: 2.5rem 4rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.social-card:hover::before {
    transform: scaleX(1);
}

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

.social-card.instagram::before {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-card.tiktok::before {
    background: #000000;
}

[data-theme="dark"] .social-card.tiktok::before {
    background: #ffffff;
}

.social-card.youtube::before {
    background: #ff0000;
}

.social-card.facebook::before {
    background: #1877f2;
}

.social-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease !important;
}

.social-icon i {
    transition: color 0.3s ease !important;
}

.social-card.instagram .social-icon {
    color: #e4405f;
}

.social-card.tiktok .social-icon {
    color: #000000;
}

[data-theme="dark"] .social-card.tiktok .social-icon {
    color: #ffffff;
}

.social-card.youtube .social-icon {
    color: #ff0000;
}

.social-card.facebook .social-icon {
    color: #1877f2;
}

.social-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.1rem !important;
    color: var(--text-primary);
    transition: color 0.35s ease-out !important;
}

.social-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem !important;
    margin-top: 0 !important;
    transition: color 0.35s ease-out !important;
}

.social-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem !important;
    margin-top: 1.5rem !important;
    transition: color 0.35s ease-out !important;
}

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

.social-link.pending {
    color: var(--text-muted);
    pointer-events: none;
}


.footer {
    background: var(--bg-tertiary);
    padding: 3rem 0 1.5rem;
    padding-left: 0;
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: visible;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-sticker {
    display: none !important; /* Removed from main page */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 1.75rem;
    position: relative;
    min-height: 75px;
}

.footer .container {
    padding-left: 0;
    padding-right: 0;
    margin: 0;
    max-width: 100%;
    position: relative;
    width: 100%;
    padding-right: 2rem;
}

.footer-logo {
    position: absolute;
    left: 0;
    top: 90%;
    transform: translateY(-50%);
    padding-left: 5rem;
}

.footer-logo h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-logo p {
    color: var(--text-secondary);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    position: absolute;
    left: 50%;
    top: 70%;
    transform: translate(-50%, -50%);
    justify-content: center;
    width: auto;
    margin: 0;
}

.footer-links a {
    color: #64748b !important;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.25rem;
}

/* White color for dark mode */
[data-theme="dark"] .footer-links a {
    color: #ffffff !important;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    flex-shrink: 0;
    position: absolute;
    right: 0;
    top: 70%;
    transform: translateY(-50%);
    padding-right: 8rem;
    align-items: center;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    text-decoration: none;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    position: relative;
    overflow: visible;
}

/* Single color for all icons - black in light mode */
.footer-social a i {
    color: #000000;
    transition: color 0.4s ease-out;
    position: relative;
    z-index: 2;
}

/* White color for dark mode */
[data-theme="dark"] .footer-social a i {
    color: #ffffff;
}

/* Soft, smooth hover animation with gradual color change */
.footer-social a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease-out;
    z-index: 1;
}

/* Dark mode hover - golden background with dark icons */
[data-theme="dark"] .footer-social a::before {
    background: #FFD700;
}

.footer-social a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-social a:hover::before {
    opacity: 1;
}

.footer-social a:hover i {
    color: white !important;
}

/* Dark mode hover - dark icons on golden background */
[data-theme="dark"] .footer-social a:hover i {
    color: #0f172a !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: color 0.3s ease, border-color 0.3s ease;
}


.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    z-index: var(--z-navbar);
    will-change: transform, opacity;
}

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

.back-to-top:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}


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

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

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translate3d(-30px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}


@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@media (max-width: 1200px) {
    .nav-container {
        padding: 0 2rem;
    }

    .nav-menu {
        gap: 3rem;
    }

    .nav-logo {
        padding-right: 1.5rem;
    }

    .nav-right {
        margin-left: 1.5rem;
    }

    .hero-content {
        gap: 3rem;
    }
}

@media (max-width: 1100px) {
    .hero {
        padding: 0 1.5rem;
    }

    .hero-content {
        gap: 2.5rem;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-buttons {
        gap: 0.75rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.9rem 1.8rem;
        font-size: 1.05rem;
    }

    .hero-photo {
        height: 520px;
    }

    .about-intro-photo {
        height: 520px;
    }

    .links-grid {
        gap: 2rem;
    }
    
    .quick-links .container {
        max-width: 1200px;
        padding: 0 1.5rem;
    }
    
    .social-integration .container {
        max-width: 1200px;
        padding: 0 1.5rem;
    }
    
    .social-grid {
        gap: 5rem;
    }

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

@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    .nav-logo h2 {
        font-size: 1.9rem;
    }

    .nav-menu {
        gap: 2.5rem;
    }

    .hero-title {
        font-size: 2.9rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-wrap: wrap;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.85rem 1.6rem;
        font-size: 1rem;
    }

    .hero-photo {
        height: 480px;
    }

    .about-intro-photo {
        height: 480px;
    }

    .links-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    .links-grid .link-card {
        padding: 2rem 2.5rem;
    }
    
    .card-icon {
        font-size: 3.5rem;
    }
    
    .link-card h3 {
        font-size: 1.6rem;
    }

    .quick-links .container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .social-integration .container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .social-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    .social-card {
        padding: 2rem 3rem;
    }
    
    .social-card h3 {
        font-size: 1.6rem;
    }
    
    .social-icon {
        font-size: 3.5rem;
    }

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

    .footer-links {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 2rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    .nav-menu {
        display: none;
        flex: initial;
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .nav-right {
        display: flex !important;
        align-items: center !important;
        gap: 0.75rem !important;
        margin-left: 0;
        flex-shrink: 0;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 1000 !important;
    }
    
    /* Force hamburger visibility on all pages */
    .nav-right .hamburger {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }
    
    /* Force theme toggle visibility on all pages */
    .theme-switcher {
        display: flex !important;
        align-items: center !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    #theme-toggle,
    .theme-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        z-index: 1000 !important;
        background: var(--bg-secondary) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 50% !important;
        cursor: pointer !important;
    }
    
    #theme-toggle i,
    .theme-toggle i {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 0.9rem !important;
    }

    .nav-logo {
        padding-right: 0;
    }
}

/* ============================================
   MODERN MOBILE OPTIMIZATION - 2025 BEST PRACTICES
   ============================================ */

/* Base Mobile Improvements */
@media (max-width: 768px) {
    /* Safe area insets for modern devices */
    :root {
        --safe-area-inset-top: env(safe-area-inset-top, 0px);
        --safe-area-inset-right: env(safe-area-inset-right, 0px);
        --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
        --safe-area-inset-left: env(safe-area-inset-left, 0px);
    }
    
    /* Improved container spacing */
    .container {
        padding-left: max(1.5rem, var(--safe-area-inset-left));
        padding-right: max(1.5rem, var(--safe-area-inset-right));
    }
    
    /* Hero Section - Modern Mobile Design */
    .hero {
        padding: 2rem max(1.5rem, var(--safe-area-inset-left)) 3rem max(1.5rem, var(--safe-area-inset-right));
        min-height: auto;
    }
    
    .hero-content {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        text-align: center;
        gap: 2.5rem;
        padding: 0;
    }
    
    /* Mobile: Image first, text second (natural HTML order) - FORCE */
    .hero-content .hero-image {
        order: 1 !important;
        width: 100% !important;
        display: block !important;
    }
    
    .hero-content .hero-text {
        order: 2 !important;
        width: 100% !important;
        display: block !important;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        line-height: 1.2;
        margin-bottom: 1.25rem;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
        margin-bottom: 2rem;
        line-height: 1.6;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        width: 100%;
    }
    
    .btn-primary, .btn-secondary {
        padding: 1rem 2rem;
        font-size: 1rem;
        min-width: 140px;
        justify-content: center;
    }
    
    .hero-photo, .hero-image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        border-radius: 20px;
        aspect-ratio: 3/4;
        object-fit: cover;
    }
    
    .about-intro-photo,
    .about-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 16px;
        aspect-ratio: 4/3;
        object-fit: cover;
    }
    
    /* Navigation - Enhanced Mobile */
    .navbar {
        padding-top: max(0.75rem, var(--safe-area-inset-top));
        padding-bottom: 0.75rem;
    }
    
    .nav-container {
        padding-left: max(1.5rem, var(--safe-area-inset-left));
        padding-right: max(1.5rem, var(--safe-area-inset-right));
    }
    
    /* Timeline - Mobile Optimized */
    .timeline-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 max(1.5rem, var(--safe-area-inset-left));
    }
    
    .timeline-content {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .marker-year {
        font-size: clamp(1.25rem, 5vw, 1.5rem);
    }
    
    .timeline-line {
        display: none;
    }
    
    /* Cards Grid - Modern Mobile Layout - 2x2 grid */
    .links-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        justify-items: stretch;
        padding: 0 max(1.5rem, var(--safe-area-inset-left));
    }

    .links-grid .link-card {
        width: 100%;
        max-width: 100%;
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .card-icon {
        font-size: clamp(2.5rem, 8vw, 3rem);
        margin-bottom: 0.15rem !important;
        margin-top: 0 !important;
    }
    
    .link-card h3 {
        font-size: clamp(1.25rem, 5vw, 1.4rem);
        margin-bottom: 0.8rem !important;
        margin-top: 0 !important;
    }
    
    .link-card p {
        font-size: clamp(0.9rem, 3vw, 1rem);
        margin: 0 !important;
        margin-top: 0.5rem !important;
    }
    
    .link-card {
        gap: 0 !important;
    }
    
    /* Social Grid - Mobile */
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 max(1.5rem, var(--safe-area-inset-left));
    }
    
    .social-card {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    
    /* Footer - Mobile Optimized */
    .footer {
        padding-top: 3rem;
        padding-bottom: max(2rem, var(--safe-area-inset-bottom));
        padding-left: max(1.5rem, var(--safe-area-inset-left));
        padding-right: max(1.5rem, var(--safe-area-inset-right));
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-logo {
        position: relative;
        padding-left: 0;
        margin-bottom: 1.5rem;
    }
    
    .footer-links {
        position: relative;
        left: auto;
        transform: none;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .footer-social {
        position: relative;
        right: auto;
        top: auto;
        padding-right: 0;
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-sticker {
        display: none; /* Hide on mobile for cleaner look */
    }
    
    /* Section Titles - Fluid Typography */
    .section-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 2rem;
    }
    
    /* Gallery - Mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 max(1.5rem, var(--safe-area-inset-left));
    }
    
    /* Forms - Mobile Optimized */
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 1rem;
        border-radius: 12px;
    }
    
    /* Touch Targets - Minimum 44x44px */
    button, a, input, select, textarea {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improved scrolling */
    html {
        scroll-padding-top: max(80px, var(--safe-area-inset-top));
    }
}

/* Small Mobile Devices - Enhanced */
@media (max-width: 480px) {
    .container {
        padding-left: max(1rem, var(--safe-area-inset-left));
        padding-right: max(1rem, var(--safe-area-inset-right));
    }
    
    .hero {
        padding: 1.5rem max(1rem, var(--safe-area-inset-left)) 2rem max(1rem, var(--safe-area-inset-right));
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 10vw, 2.5rem);
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: clamp(0.95rem, 4.5vw, 1.15rem);
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        max-width: 100%;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
        margin-bottom: 1.5rem;
    }
    
    .timeline-content {
        padding: 1.5rem 1.25rem;
    }
    
    .link-card, .social-card {
        padding: 1.5rem 1.25rem;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    /* Compact navigation */
    .nav-logo h2 {
        font-size: clamp(1.25rem, 5vw, 1.5rem);
    }
    
    /* Improved spacing */
    section {
        padding: 3rem max(1rem, var(--safe-area-inset-left)) 3rem max(1rem, var(--safe-area-inset-right));
    }
}

/* Landscape Mobile - Optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 2rem max(1.5rem, var(--safe-area-inset-left));
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    .nav-menu {
        max-height: 70vh;
    }
}

/* Very Small Screens */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
}


.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}


@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    /* EXCEPTION: Keep ticker animation slow even with reduced motion */
    .ticker-track,
    .ticker-track * {
        animation-duration: 400s !important;
        animation-iteration-count: infinite !important;
    }
    
    @media (max-width: 768px) {
        .ticker-track,
        .ticker-track * {
            animation-duration: 200s !important;
        }
    }
}


.spotify-section {
    background: var(--card-bg);
    padding-inline: -2rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px var(--shadow-color);
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.spotify-section:hover {
    transform: none;
    box-shadow: none;
}

.spotify-section h3 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.8rem;
    transition: color 0.3s ease;
}

.spotify-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.scroll-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease, background-color 0.3s ease;
    font-size: 1.2rem;
    z-index: 100 !important;
    flex-shrink: 0;
    position: relative;
}

.scroll-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
}

.scroll-btn:active {
    transform: scale(0.95);
}

.spotify-players {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.spotify-players::-webkit-scrollbar {
    display: none;
}

.spotify-player {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    flex: 0 0 460px;
    min-width: 460px;
    scroll-snap-align: start;
}

.spotify-player:hover {
    transform: none;
    box-shadow: none;
}

.spotify-player h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: center;
    transition: color 0.3s ease;
}

.spotify-player iframe {
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    min-height: 352px;
    border: none;
}


[data-theme="dark"] .spotify-section {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.4);
}

[data-theme="dark"] .spotify-player:hover {
    box-shadow: none;
}


@media (max-width: 768px) {
    .spotify-players {
        gap: 1rem;
        padding: 0.5rem 0;
    }
    
    .spotify-player {
        flex: 0 0 280px;
        min-width: 280px;
        padding: 1rem;
    }
    
    .spotify-player h4 {
        font-size: 1rem;
    }
}



.about-hero {
    padding: 6rem 0 3rem 0;
    background: var(--bg-secondary);
    margin-left: 0;
    padding-left: 0;
    transition: background-color 0.3s ease;
}

.about-hero-content {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr; /* Narrower picture column */
    gap: 3rem;
    align-items: start;
}

/* Desktop - большие экраны (1280px+) */
@media (min-width: 1280px) {
    /* КРИТИЧНО: Переопределяем desktop.css grid правила с максимальной специфичностью */
    section.about-hero .container .about-hero-content,
    .about-hero .container .about-hero-content,
    .about-hero-content {
        display: block !important; /* Вместо grid - позволяет обтекание */
        grid-template-columns: none !important; /* Убрать grid колонки */
        grid-template-rows: none !important;
        grid-auto-flow: unset !important;
        gap: 0 !important;
        align-items: unset !important;
        align-content: unset !important;
        justify-items: unset !important;
        justify-content: unset !important;
    }
    
    .about-hero {
        padding: 10rem 0 3rem 0 !important;
    }
    
    /* КРИТИЧНО: Переопределяем ВСЕ конфликтующие правила с максимальной специфичностью */
    /* Картинка - ПОСТОЯННЫЙ РАЗМЕР, полностью видимая */
    section.about-hero .container .about-hero-content .about-image,
    section.about-hero .about-hero-content .about-image,
    .about-hero .container .about-hero-content .about-image,
    .about-hero .about-hero-content .about-image,
    .about-hero-content .about-image,
    .about-image {
        float: left !important;
        margin-right: 2rem !important;
        margin-bottom: 1rem !important;
        height: 500px !important; /* ФИКСИРОВАННАЯ высота */
        max-height: 500px !important;
        min-height: 500px !important;
        margin-top: -4rem !important;
        width: 420px !important; /* ФИКСИРОВАННАЯ ширина в пикселях - переопределяет desktop.css width: 100% */
        max-width: 420px !important;
        min-width: 420px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0 !important;
        position: relative !important;
        overflow: visible !important; /* Показываем всё изображение */
    }
    
    /* Изображение внутри контейнера - полностью видимое */
    section.about-hero .container .about-hero-content .about-image .hero-photo,
    section.about-hero .about-hero-content .about-image .hero-photo,
    .about-hero .container .about-hero-content .about-image .hero-photo,
    .about-hero .about-hero-content .about-image .hero-photo,
    .about-hero-content .about-image .hero-photo,
    .about-image .hero-photo,
    section.about-hero .container .about-hero-content .about-image img,
    section.about-hero .about-hero-content .about-image img,
    .about-hero .container .about-hero-content .about-image img,
    .about-hero .about-hero-content .about-image img,
    .about-hero-content .about-image img,
    .about-image img {
        height: 500px !important; /* ФИКСИРОВАННАЯ высота */
        max-height: 500px !important;
        min-height: 500px !important;
        width: 420px !important; /* ФИКСИРОВАННАЯ ширина - переопределяет width: 100% */
        max-width: 420px !important;
        min-width: 420px !important;
        object-fit: contain !important; /* ПОЛНОСТЬЮ ВИДИМОЕ - без обрезки, переопределяет cover */
        object-position: center !important;
        display: block !important;
        visibility: visible !important;
        position: relative !important;
    }
    
    /* Picture элемент тоже нужно контролировать */
    section.about-hero .container .about-hero-content .about-image picture,
    section.about-hero .about-hero-content .about-image picture,
    .about-hero .container .about-hero-content .about-image picture,
    .about-hero .about-hero-content .about-image picture,
    .about-hero-content .about-image picture,
    .about-image picture {
        width: 420px !important;
        max-width: 420px !important;
        min-width: 420px !important;
        height: 500px !important;
        max-height: 500px !important;
        min-height: 500px !important;
        position: relative !important;
    }
    
    /* Текст обтекает картинку - УБИРАЕМ overflow: hidden! */
    .about-intro {
        /* overflow: hidden УДАЛЕНО - мешает обтеканию! */
        display: block !important;
        width: auto !important;
        min-width: 0 !important; /* Разрешаем сжатие */
        padding-left: 0.5rem !important;
        padding-right: 2rem !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: visible !important; /* Явно разрешаем видимость */
        position: relative !important;
    }
    
    /* КРИТИЧНО: Убеждаемся, что wrapper видим и имеет правильный display */
    section.about-hero .container .about-hero-content .about-intro .about-description-wrapper,
    section.about-hero .about-hero-content .about-intro .about-description-wrapper,
    .about-hero .about-hero-content .about-intro .about-description-wrapper,
    .about-hero .container .about-hero-content .about-intro .about-description-wrapper,
    .about-intro .about-description-wrapper,
    .about-description-wrapper {
        display: block !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: visible !important;
        position: relative !important;
    }
    
    /* Заголовок начинается справа от картинки */
    .about-title {
        margin-left: 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Текст обтекает картинку - убираем ограничения ширины для float */
    section.about-hero .container .about-hero-content .about-intro .about-description-wrapper #typewriter-text.about-description,
    section.about-hero .about-hero-content .about-intro .about-description-wrapper #typewriter-text,
    .about-hero .about-hero-content .about-intro .about-description-wrapper #typewriter-text,
    .about-description-wrapper #typewriter-text.about-description,
    #typewriter-text.about-description,
    .about-intro #typewriter-text,
    .about-description-wrapper .about-description,
    .about-intro .about-description,
    #typewriter-text {
        max-width: none !important; /* Убираем ограничение для обтекания */
        width: auto !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        line-height: 1.9 !important;
        text-align: left !important;
        box-sizing: border-box !important;
        color: var(--text-primary) !important;
        font-size: 1.1rem !important;
        contain: none !important; /* Убираем contain который может мешать рендерингу */
        position: relative !important;
        z-index: 1 !important;
    }
}

/* Очень большие экраны (1440px+) */
@media (min-width: 1440px) {
    /* КРИТИЧНО: Переопределяем desktop.css grid правила с максимальной специфичностью */
    section.about-hero .container .about-hero-content,
    .about-hero .container .about-hero-content,
    .about-hero-content {
        display: block !important; /* Продолжаем использовать block для обтекания */
        grid-template-columns: none !important; /* Убрать grid колонки */
        grid-template-rows: none !important;
        grid-auto-flow: unset !important;
        gap: 0 !important;
        align-items: unset !important;
        align-content: unset !important;
        justify-items: unset !important;
        justify-content: unset !important;
    }
    
    .about-hero {
        padding: 12rem 0 3rem 0 !important;
    }
    
    /* КРИТИЧНО: ТА ЖЕ логика - ПОСТОЯННЫЙ размер, полностью видимое изображение */
    section.about-hero .container .about-hero-content .about-image,
    section.about-hero .about-hero-content .about-image,
    .about-hero .container .about-hero-content .about-image,
    .about-hero .about-hero-content .about-image,
    .about-hero-content .about-image,
    .about-image {
        float: left !important;
        margin-right: 2rem !important;
        margin-bottom: 1rem !important;
        height: 500px !important; /* ТА ЖЕ высота - ПОСТОЯННЫЙ размер */
        max-height: 500px !important;
        min-height: 500px !important;
        margin-top: -4rem !important;
        width: 420px !important; /* ТА ЖЕ ширина - ПОСТОЯННЫЙ размер */
        max-width: 420px !important;
        min-width: 420px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0 !important;
        position: relative !important;
        overflow: visible !important;
    }
    
    /* Изображение внутри контейнера - полностью видимое */
    section.about-hero .container .about-hero-content .about-image .hero-photo,
    section.about-hero .about-hero-content .about-image .hero-photo,
    .about-hero .container .about-hero-content .about-image .hero-photo,
    .about-hero .about-hero-content .about-image .hero-photo,
    .about-hero-content .about-image .hero-photo,
    .about-image .hero-photo,
    section.about-hero .container .about-hero-content .about-image img,
    section.about-hero .about-hero-content .about-image img,
    .about-hero .container .about-hero-content .about-image img,
    .about-hero .about-hero-content .about-image img,
    .about-hero-content .about-image img,
    .about-image img {
        height: 500px !important; /* ТА ЖЕ высота - ПОСТОЯННЫЙ размер */
        max-height: 500px !important;
        min-height: 500px !important;
        width: 420px !important; /* ТА ЖЕ ширина - ПОСТОЯННЫЙ размер */
        max-width: 420px !important;
        min-width: 420px !important;
        object-fit: contain !important; /* ПОЛНОСТЬЮ ВИДИМОЕ - без обрезки */
        object-position: center !important;
        display: block !important;
        visibility: visible !important;
        position: relative !important;
    }
    
    /* Picture элемент тоже нужно контролировать */
    section.about-hero .container .about-hero-content .about-image picture,
    section.about-hero .about-hero-content .about-image picture,
    .about-hero .container .about-hero-content .about-image picture,
    .about-hero .about-hero-content .about-image picture,
    .about-hero-content .about-image picture,
    .about-image picture {
        width: 420px !important;
        max-width: 420px !important;
        min-width: 420px !important;
        height: 500px !important;
        max-height: 500px !important;
        min-height: 500px !important;
        position: relative !important;
    }
    
    .about-intro {
        display: block !important;
        width: auto !important;
        min-width: 0 !important;
        padding-left: 0.5rem !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: visible !important;
        position: relative !important;
    }
    
    /* КРИТИЧНО: Убеждаемся, что wrapper видим и имеет правильный display */
    section.about-hero .container .about-hero-content .about-intro .about-description-wrapper,
    section.about-hero .about-hero-content .about-intro .about-description-wrapper,
    .about-hero .about-hero-content .about-intro .about-description-wrapper,
    .about-hero .container .about-hero-content .about-intro .about-description-wrapper,
    .about-intro .about-description-wrapper,
    .about-description-wrapper {
        display: block !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: visible !important;
        position: relative !important;
    }
    
    .about-title {
        margin-left: 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Текст обтекает картинку - убираем ограничения ширины для float */
    section.about-hero .container .about-hero-content .about-intro .about-description-wrapper #typewriter-text.about-description,
    section.about-hero .about-hero-content .about-intro .about-description-wrapper #typewriter-text,
    .about-hero .about-hero-content .about-intro .about-description-wrapper #typewriter-text,
    .about-description-wrapper #typewriter-text.about-description,
    #typewriter-text.about-description,
    .about-intro #typewriter-text,
    .about-description-wrapper .about-description,
    .about-intro .about-description,
    #typewriter-text {
        max-width: none !important; /* Убираем ограничение для обтекания */
        width: auto !important;
        line-height: 2 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: var(--text-primary) !important;
        font-size: 1.1rem !important;
        contain: none !important; /* Убираем contain который может мешать рендерингу */
        position: relative !important;
        z-index: 1 !important;
    }
}

.about-hero .container {
    padding-left: 0;
    margin-left: 0;
    max-width: 100%;
    width: 100%;
}

.about-image {
    position: relative;
    border-radius: 0 20px 20px 0;
    overflow: hidden;
    box-shadow: var(--shadow-large);
    margin-left: 0;
    margin-top: 2rem;
    width: 100%;
    padding-left: 0;
    height: 350px;
    max-height: 350px;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: center 30%; /* Slightly lower content position */
}

.about-image .light-theme-img {
    object-position: center 30%; /* Slightly lower content position */
    display: block;
}

.about-image .dark-theme-img {
    display: none;
}

[data-theme="dark"] .about-image .light-theme-img {
    display: none;
}

[data-theme="dark"] .about-image .dark-theme-img {
    display: block;
}

.about-intro {
    animation: fadeInUp 1s ease-out;
}

.about-intro-image {
    margin-top: 5rem;
    width: calc(50vw + 50%);
    margin-left: 0;
    margin-right: calc(-50vw + 50%);
    border-radius: 12px 0 0 12px;
    overflow: hidden;
    box-shadow: var(--shadow-large);
}

.about-intro-photo {
    display: block;
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: center bottom;
    transition: transform 0.3s ease;
}

/* Music page wave animation - light theme */
:root .wave {
    border-color: white !important;
}

:root .freq-bar {
    background: white !important;
}

/* Music page wave animation - dark theme */
[data-theme="dark"] .wave {
    border-color: var(--accent-color) !important;
}

[data-theme="dark"] .freq-bar {
    background: var(--accent-color) !important;
}

/* Dark mode styles for Featured Tracks text */
[data-theme="dark"] .track-info h3 {
    color: #ffffff !important;
}

[data-theme="dark"] .track-description {
    color: #ffffff !important;
}

/* Dark mode styles for Song Stories text */
[data-theme="dark"] .story-content h3 {
    color: #ffffff !important;
}

[data-theme="dark"] .story-content p {
    color: #ffffff !important;
}

[data-theme="dark"] .story-meta {
    color: #ffffff !important;
}

.about-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.about-subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.about-description-wrapper {
    position: relative;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    transition: color 0.3s ease;
    display: inline; /* Будет переопределено на block для больших экранов */
}

.read-more-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.read-more-dots {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.read-more-link {
    display: inline-block;
    margin-left: 0.5rem;
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInFromLeft 0.6s ease-out forwards;
}

@keyframes fadeInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#typewriter-text {
    will-change: contents;
    contain: layout style paint;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

#typewriter-text::after {
    content: '|';
    color: var(--accent-color);
    font-weight: bold;
}

#typewriter-text.typing-complete::after {
    display: none;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.biography-timeline {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.personal-info {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

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

.info-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
    border-color: var(--accent-color);
}

.info-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.info-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.info-card p {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}


.gallery-hero {
    position: relative;
    padding: 0;
    min-height: 300px;
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 0 !important;
    margin-top: 75px; /* Account for fixed navbar */
    visibility: visible !important;
    opacity: 1 !important;
}

.gallery-ticker-wrapper {
    position: absolute;
    top: 0 !important;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden !important;
    z-index: 1;
    margin: 0 !important;
    padding: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

/* Ensure navbar is above gallery hero on gallery page */
.gallery-hero {
    z-index: 0 !important;
}

.gallery-hero-overlay {
    z-index: 2 !important;
}

.gallery-ticker {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.ticker-track {
    display: flex;
    gap: 0 !important;
    height: 100%;
    width: max-content;
    animation: ticker-scroll 400s linear infinite !important;
    animation-duration: 400s !important;
    will-change: transform;
    margin: 0 !important;
    padding: 0 !important;
}

.ticker-item {
    flex-shrink: 0;
    width: 200px;
    height: 100%;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
}

.ticker-item img {
    width: 100%;
    height: 120% !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block !important;
    margin-top: -5% !important;
    transform: translateY(0) !important;
    position: relative !important;
    visibility: visible !important;
    opacity: 1 !important;
    content-visibility: auto !important;
}

/* Скрываем alt-текст до загрузки изображения */
.ticker-item img:not([src]),
.ticker-item img[src=""],
.ticker-item img:not(.ticker-image-loaded) {
    color: transparent !important;
    font-size: 0 !important;
    text-indent: -9999px !important;
}

/* Показываем только загруженные изображения */
.ticker-item img.ticker-image-loaded {
    color: inherit !important;
    font-size: inherit !important;
    text-indent: 0 !important;
}

.ticker-item img[src*="Tali pics(58)"] {
    object-fit: cover !important;
    object-position: center center !important;
    background: var(--bg-secondary);
}

.ticker-item img[src*="Tali pics(99)"] {
    object-fit: cover !important;
    object-position: center center !important;
    background: #87CEEB;
    display: block !important;
}

.ticker-item img[src*="Tali pics(55)"],
.ticker-item img[src*="dancing alone"],
.ticker-item img[alt*="Tali"][src*="55"],
.gallery-ticker .ticker-item img[src*="55"] {
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
}

.ticker-item:has(img[src*="Tali pics(90)"]) {
    overflow: visible !important;
}

.ticker-item:has(img[src*="not incld"]) {
    overflow: visible !important;
}

.gallery-item img[src*="Tali pics(90)"] {
    object-fit: cover !important;
    object-position: center top !important;
    margin-top: -30px !important;
    height: calc(100% + 30px) !important;
}

.gallery-item img[src*="not incld"] {
    object-fit: cover !important;
    object-position: center top !important;
    margin-top: -30px !important;
    height: calc(100% + 30px) !important;
}

.story-gallery .gallery-item img[src*="90"] {
    object-fit: cover !important;
    object-position: center top !important;
    margin-top: -30px !important;
    height: calc(100% + 30px) !important;
}

.ticker-item img[src*="Tali pics(78)"] {
    object-fit: cover !important;
    object-position: center center !important;
    background: #000000;
}

/* Скрываем элементы тикера с ошибками загрузки */
.gallery-ticker .ticker-item[style*="display: none"],
.gallery-ticker .ticker-item:has(img:not(.ticker-image-loaded)[naturalWidth="0"]) {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Помечаем успешно загруженные изображения */
.ticker-image-loaded {
    opacity: 1;
}

.ticker-item-loaded {
    opacity: 1;
}

@keyframes ticker-scroll {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-50%, 0, 0);
    }
}

.gallery-hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    pointer-events: none;
}

.gallery-hero-content {
    text-align: center;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.gallery-hero .gallery-title {
    color: #ffffff !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: normal;
    text-transform: none;
    animation: titleFadeInUp 1s ease-out;
}

.gallery-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--accent-color);
    z-index: 3;
}

.gallery-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-primary);
    animation: titleFadeInUp 1s ease-out;
}

.gallery-subtitle {
    font-size: 1.5rem;
    color: #000000;
}

.photo-stories {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.photo-stories .container {
    max-width: 100%;
    padding: 0;
}

.story-section {
    margin-bottom: 5rem;
    position: relative;
}

.photo-stories .story-section:first-child {
    margin-top: -1rem;
}

.photo-stories .story-section:nth-child(2) {
    margin-top: -20rem;
    margin-bottom: -10rem;
}

.story-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding: 2rem 0;
}

.story-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.story-header h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

.story-header h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    transition: background 0.3s ease;
}

.story-date {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    margin-top: 0.5rem;
    display: block;
    transition: color 0.3s ease;
}

.story-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 180px;
    gap: 1rem;
    padding: 2rem 1.5rem;
    width: 100%;
}

.gallery-item {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 0 8px var(--bg-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, border-color 0.3s ease;
    background: var(--bg-primary);
    border: 3px solid #ffffff;
    cursor: pointer;
}

[data-theme="dark"] .gallery-item {
    border-color: #1e293b;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.1));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::before {
    opacity: 1;
}

/* Gallery grid layout - varied sizes and positions */
.gallery-item:nth-child(1) {
    grid-column: 1 / span 5;
    grid-row: span 3;
    transform: rotate(-2deg);
}

.gallery-item:nth-child(2) {
    grid-column: 6 / span 4;
    grid-row: span 2;
    transform: rotate(2deg);
}

.gallery-item:nth-child(3) {
    grid-column: 10 / span 3;
    grid-row: span 2;
    transform: rotate(-1.5deg);
}

.gallery-item:nth-child(4) {
    grid-column: 1 / span 4;
    grid-row: span 1;
    transform: rotate(1.2deg);
}

.gallery-item:nth-child(5) {
    grid-column: 5 / span 5;
    grid-row: span 2;
    transform: rotate(-0.8deg);
}

.gallery-item:nth-child(6) {
    grid-column: 10 / span 3;
    grid-row: span 3;
    transform: rotate(1.8deg);
}

.gallery-item:nth-child(7) {
    grid-column: 1 / span 4;
    grid-row: span 2;
    transform: rotate(-1.2deg);
}

.gallery-item:nth-child(8) {
    grid-column: 5 / span 5;
    grid-row: span 1;
    transform: rotate(0.5deg);
}

.gallery-item:nth-child(9) {
    grid-column: 1 / span 3;
    grid-row: span 2;
    transform: rotate(-1.8deg);
}

.gallery-item:nth-child(10) {
    grid-column: 4 / span 4;
    grid-row: span 2;
    transform: rotate(1.5deg);
}

.gallery-item:nth-child(11) {
    grid-column: 8 / span 5;
    grid-row: span 2;
    transform: rotate(-1.3deg);
}

.gallery-item:nth-child(12) {
    grid-column: 1 / span 3;
    grid-row: span 1;
    transform: rotate(1.7deg);
}

.gallery-item:nth-child(13) {
    grid-column: 4 / span 3;
    grid-row: span 3;
    transform: rotate(-0.9deg);
}

.gallery-item:nth-child(14) {
    grid-column: 7 / span 6;
    grid-row: span 1;
    transform: rotate(1.1deg);
}

.gallery-item:nth-child(15) {
    grid-column: 1 / span 6;
    grid-row: span 2;
    transform: rotate(-1.6deg);
}

.gallery-item:nth-child(16) {
    grid-column: 7 / span 3;
    grid-row: span 2;
    transform: rotate(0.8deg);
}

.gallery-item:nth-child(17) {
    grid-column: 10 / span 3;
    grid-row: span 1;
    transform: rotate(-1.4deg);
}

.gallery-item:nth-child(18):not(.wander-item) {
    grid-column: 1 / span 4;
    grid-row: span 1;
    transform: rotate(1.3deg);
}

.gallery-item:nth-child(19) {
    grid-column: 5 / span 4;
    grid-row: span 3;
    transform: rotate(-0.7deg);
}

.gallery-item:nth-child(20):not(.echterlive-item) {
    grid-column: 9 / span 4;
    grid-row: span 2;
    transform: rotate(1.6deg);
}

.gallery-item.echterlive-item {
    grid-column: 1 / span 6 !important;
    grid-row: span 2 !important;
    min-height: 480px !important;
    transform: rotate(-1.1deg) !important;
}

.gallery-item.echterlive-item img {
    object-position: center 20% !important;
    object-fit: cover !important;
}

.gallery-item.echterlive-item ~ .gallery-item:nth-child(22) {
    grid-column: 6 / span 3;
    grid-row: span 2;
    transform: rotate(0.9deg);
}

.gallery-item.echterlive-item ~ .gallery-item:nth-child(23) {
    grid-column: 9 / span 4;
    grid-row: span 1;
    transform: rotate(-1.5deg);
}

/* Special effects for different gallery elements */
.gallery-item:nth-child(1):not(.echterlive-item) {
    border: 3px solid #ffffff;
}

[data-theme="dark"] .gallery-item:nth-child(1):not(.echterlive-item) {
    border-color: #1e293b;
}

.gallery-item:nth-child(1):not(.echterlive-item):hover {
    border-color: var(--accent-color) !important;
}

.gallery-item:nth-child(3) {
    filter: brightness(1.05);
}

.gallery-item:nth-child(6) {
    border: 3px solid transparent !important;
}

.gallery-item:nth-child(9) {
    filter: contrast(1.1);
}

.gallery-item:nth-child(11) {
    border: 3px solid transparent !important;
}

.gallery-item:nth-child(13) {
    filter: saturate(1.1);
}

.gallery-item:nth-child(15) {
    border: 3px solid transparent !important;
}

.gallery-item:nth-child(19) {
    filter: brightness(1.08);
}

.gallery-item:nth-child(21):not(.echterlive-item) {
    border: 3px solid transparent !important;
}

/* Video elements in gallery */
.gallery-item.video-item {
    position: relative;
}

.gallery-item.video-item::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: white;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
    z-index: 2;
    pointer-events: none;
    transition: all 0.3s ease;
}

.gallery-item.video-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: auto; /* Разрешаем клики для видео в галерее */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    transform: translateZ(0);
}

.gallery-item.video-vids11 {
    overflow: hidden;
}

.gallery-item.video-vids11 video {
    object-position: center 60% !important;
    height: 120% !important;
    transform: translateY(0%) !important;
}

.gallery-item.video-vids8 {
    grid-row: span 2 !important;
    min-height: 460px !important;
    overflow: hidden;
    transform: rotate(-10deg) !important;
    top: 60px !important;
}

.gallery-item.video-vids8 video {
    object-position: center 50% !important;
}

.gallery-item.video-vids18 {
    top: 40px !important;
    left: 150px !important;
    grid-row: span 1 !important;
    grid-column: span 2 !important;
    min-height: 220px !important;
    max-width: 220px !important;
    transform: rotate(-11deg) !important;
    overflow: hidden;
}

.gallery-item.video-vids18 video {
    object-position: center 0% !important;
}

.gallery-item.video-wander-second {
    grid-row: span 1 !important;
    grid-column: 7 / span 2 !important;
    min-height: 220px !important;
    max-width: 220px !important;
    transform: rotate(10deg) !important;
    position: relative;
    top: 50px !important;
    left: 600px !important;
}

.gallery-item.video-wander-third {
    grid-column: 6 / span 3 !important;
    position: relative;
    top: 30px !important;
    transform: rotate(-14deg);
    left: -600px;
    width: 250px;
    height: 300px;
}

.gallery-item.video-wander-fourth {
    grid-column: 9 / span 2 !important;
    position: relative;
    top: -180px !important;
    height: 200px !important;
    max-height: 200px !important;
    width: 350px !important;
    max-width: 350px !important;
    right: 300px !important;
    transform: rotate(4deg);
    
}

.gallery-item.pics26-item {
    position: relative;
    top: 150px !important;
    overflow: hidden;
    transform:rotate(-3deg) !important;
}

.gallery-item.pics81-item img {
    object-position: center 45% !important;
}

.gallery-item.pics14-item img {
    object-position: center 40% !important;
}

.gallery-item.den-atelier-item {
    position: relative;
    top: 80px !important;
}

.gallery-item.not-included-item {
    transform: rotate(-1.5deg) !important;
}

.gallery-item.not-included-item img {
    object-position: center 45% !important;
}

.gallery-item.pics58-item {
    grid-row: span 2 !important;
    min-height: 360px !important;
}

.gallery-item.pics58-item img {
    object-position: center 10% !important;
}

.gallery-item.pics54-item img {
    object-position: center 30% !important;
}

.gallery-item.pics29-item {
    position: relative;
    top: -60px !important;
    transform: rotate(-4deg) !important;
}

.gallery-item.video-vids4 {
    grid-row: span 2 !important;
    min-height: 450px !important;
    overflow: hidden;
    position: relative;
    top: -350px !important;
}

.gallery-item.video-vids4 video {
    object-position: center 10% !important;
    height: 120% !important;
    transform: translateY(-15%) !important;
}




.gallery-item:hover {
    transform: rotate(0deg) scale(1.05) !important;
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-color) !important;
}

.gallery-item.not-included-item:hover {
    transform: rotate(-1.5deg) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 0 8px var(--bg-primary) !important;
    border-color: var(--accent-color) !important;
    z-index: 1 !important;
}

.gallery-item.not-included-item:hover img {
    transform: none !important;
}

.gallery-item.not-included-item:hover .gallery-caption {
    opacity: 0 !important;
    transform: translateY(20px) !important;
}

.gallery-item.not-included-item::before {
    display: none !important;
}

.gallery-item.wander-item {
    transform: none !important;
}

.gallery-item.wander-item::before {
    display: none !important;
    opacity: 0 !important;
}

/* Disable all hover effects except border color change */
.gallery-item.wander-item:hover {
    transform: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 0 8px var(--bg-primary) !important;
    border-color: var(--accent-color) !important;
    z-index: 1 !important;
}

.gallery-item.wander-item:hover img {
    transform: none !important;
}

.gallery-item.wander-item:hover .gallery-caption {
    opacity: 0 !important;
    transform: translateY(20px) !important;
}

.gallery-item.wander-item:hover::before {
    opacity: 0 !important;
    display: none !important;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.7), transparent);
    padding: 1.5rem;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

.gallery-caption p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.photo-grid-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.photo-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-large);
}

.photo-item img,
.photo-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Moments section - Spectacular black and white to color effect */
.photo-grid-section .photo-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.photo-grid-section .photo-item img {
    filter: grayscale(100%) brightness(0.9);
    transform: scale(1);
    transition: filter 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.6s ease;
    will-change: filter, transform;
}

.photo-grid-section .photo-item:hover {
    transform: scale(1.08);
    box-shadow: var(--shadow-large);
    z-index: 10;
}

.photo-grid-section .photo-item:hover img {
    filter: grayscale(0%) brightness(1.05);
    transform: scale(1.1);
}

.photo-item.video-item {
    position: relative;
}

.photo-item.video-item::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
    z-index: 2;
    pointer-events: none;
    transition: all 0.3s ease;
}

.photo-item.video-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

/* Gallery Modal with Shared Layout */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-modal);
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s ease; /* Быстрое открытие */
}

.gallery-modal.active {
    display: flex !important;
    opacity: 1;
    pointer-events: all;
    position: fixed;
    -webkit-overflow-scrolling: touch;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-container {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.modal-image,
.modal-video {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: block;
}

.modal-video {
    background: #000;
}

.modal-caption {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    text-align: center;
    max-width: 80%;
    backdrop-filter: blur(10px);
}

.modal-counter {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.modal-prev,
.modal-next {
    position: fixed;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
    z-index: var(--z-modal);
}

.modal-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.modal-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-image {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.02);
}

/* ВСЕ изображения в ticker не должны быть кликабельными */
.ticker-item img {
    cursor: default !important;
    pointer-events: none !important;
}

.ticker-item img:hover {
    transform: none !important;
}

/* СПЕЦИАЛЬНАЯ ОБРАБОТКА ДЛЯ BOWERY ELECTRIC - всегда видимое */
.ticker-item img[src*="Tali pics(48) Bowery Electric"],
.ticker-item img[src*="Bowery Electric"] {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    background: transparent !important;
}

/* Убеждаемся, что Bowery Electric отображается даже до загрузки */
.ticker-item img[src*="Tali pics(48) Bowery Electric"]:not(.ticker-image-loaded),
.ticker-item img[src*="Bowery Electric"]:not(.ticker-image-loaded) {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    min-height: 200px !important;
    background-color: var(--bg-secondary) !important;
}

@media (max-width: 768px) {
    .modal-container {
        padding: 1rem;
    }
    
    .modal-image,
    .modal-video {
        max-width: 100%;
        max-height: 85vh;
    }
    
    .modal-caption {
        bottom: 1rem;
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
        max-width: 90%;
    }
    
    .modal-counter {
        top: 1rem;
        right: 1rem;
        font-size: 0.8rem;
    }
    
    .modal-prev,
    .modal-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .modal-prev {
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .modal-next {
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }
}


.news-hero {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('photos/Tali pics(68).jpg') no-repeat center 25%;
    background-size: cover;
}

.news-hero-bg {
    display: none;
}

/*
@keyframes newsHeroGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
*/

.news-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
    animation: newsHeroParticles 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes newsHeroParticles {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.news-hero .news-title,
.news-hero .news-subtitle {
    color: #ffffff !important;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.news-hero .news-title {
    animation: titleFadeInUp 1s ease-out;
}
.news-hero * {
    color: #ffffff !important;
    position: relative;
    z-index: 2;
}

/* 
[data-theme="dark"] .news-hero {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 50%, #16213e 100%);
}

[data-theme="dark"] .news-hero-bg {
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
}
*/

/* Animated title animation */
@keyframes titleFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    }
    50% {
        text-shadow: 0 2px 30px rgba(255, 255, 255, 0.4), 0 0 40px rgba(255, 255, 255, 0.2);
    }
}

@keyframes titleGlowWhite {
    0%, 100% {
        text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5), 0 4px 30px rgba(0, 0, 0, 0.3);
    }
    50% {
        text-shadow: 0 2px 30px rgba(255, 255, 255, 0.6), 0 0 50px rgba(255, 255, 255, 0.3), 0 4px 40px rgba(0, 0, 0, 0.4);
    }
}

.news-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-primary);
    animation: titleFadeInUp 1s ease-out;
}

.news-subtitle {
    font-size: 1.5rem;
    color: #000000;
}

.news-articles {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.news-card.featured {
    grid-column: span 2;
}

.news-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}

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

.news-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.news-content {
    padding: 2rem;
}

.news-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.news-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.news-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease, color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-top: 0.5rem;
}

.news-link:hover {
    gap: 1rem;
    color: var(--accent-hover);
}

.interviews-section {
    padding: 2rem 0 6rem 0;
    background: var(--bg-primary);
}

[data-theme="dark"] .interviews-section {
    background: #0f172a;
}

.interviews-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.interview-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
    height: 200px;
}

.interview-card:nth-child(odd) {
    flex-direction: row;
}

.interview-card:nth-child(even) {
    flex-direction: row-reverse;
}

.interview-card:nth-child(1) {
    margin-left: -300px;
}

.interview-card:nth-child(2) {
    margin-right: -300px;
}

.interview-card:nth-child(3) {
    margin-left: -300px;
}

.interview-card:nth-child(4) {
    margin-right: -300px;
}

.interview-card:nth-child(5) {
    margin-left: -300px;
}

.interview-card:nth-child(6) {
    margin-right: -300px;
}

.interview-card:nth-child(7) {
    margin-left: -300px;
}

[data-theme="dark"] .interview-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

.interview-card:nth-child(odd):hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-large);
    border-color: var(--accent-color);
}

.interview-card:nth-child(even):hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-large);
    border-color: var(--accent-color);
}

.interview-image {
    position: relative;
    width: 380px;
    min-width: 380px;
    height: 100% !important;
    overflow: hidden;
    flex-shrink: 0;
    align-self: stretch;
    background: transparent;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

[data-theme="dark"] .interview-image {
    background: #1e293b;
}

.interview-image img {
    width: 100%;
    height: 100% !important;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
    transform: scale(1);
    transform-origin: center center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}

.interview-category {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Interview category buttons are hidden */

.interview-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.interview-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.interview-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.interview-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.interview-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
    background-color: transparent !important;
}

/* Light theme: Green text, no background - MAXIMUM SPECIFICITY */
html[data-theme="light"] .interview-link,
html:not([data-theme="dark"]) .interview-link,
body[data-theme="light"] .interview-link,
body:not([data-theme="dark"]) .interview-link,
[data-theme="light"] .interview-link,
:not([data-theme="dark"]) .interview-link,
.interviews-section .interview-link {
    color: #228B22 !important;
    background-color: transparent !important;
}

/* Dark theme: Yellow text, no background - MAXIMUM SPECIFICITY */
html[data-theme="dark"] .interview-link,
body[data-theme="dark"] .interview-link,
[data-theme="dark"] .interview-link {
    color: #FFD700 !important;
    background-color: transparent !important;
}

.interview-link:hover {
    gap: 1rem;
}

/* Light theme hover - MAXIMUM SPECIFICITY */
html[data-theme="light"] .interview-link:hover,
html:not([data-theme="dark"]) .interview-link:hover,
body[data-theme="light"] .interview-link:hover,
body:not([data-theme="dark"]) .interview-link:hover,
[data-theme="light"] .interview-link:hover,
:not([data-theme="dark"]) .interview-link:hover {
    color: #196b19 !important;
    background-color: transparent !important;
}

/* Dark theme hover - MAXIMUM SPECIFICITY */
html[data-theme="dark"] .interview-link:hover,
body[data-theme="dark"] .interview-link:hover,
[data-theme="dark"] .interview-link:hover {
    color: #e6c200 !important;
    background-color: transparent !important;
}


.achievements-hero,
/* Legacy collaborations styles - keeping for compatibility */
.collaborations-hero {
    height: 50vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('photos/Tali pics(103) - Black and white.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.achievements-hero .achievements-title,
.achievements-hero .achievements-subtitle,
.collaborations-hero .collaborations-title,
.collaborations-hero .collaborations-subtitle {
    color: #ffffff !important;
}

.collaborations-hero .collaborations-title {
    animation: titleFadeInUp 1s ease-out;
}
.achievements-hero *,
.collaborations-hero * {
    color: #ffffff !important;
}

.achievements-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.achievements-subtitle,
.collaborations-subtitle {
    font-size: 1.5rem;
    color: #000000;
}

.collaborations-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-primary);
    animation: titleFadeInUp 1s ease-out;
}

/* ============================================
   COLLABORATIONS PAGE - DYNAMIC SHOWCASE DESIGN
   ============================================ */

/* Dynamic Hero */
.collaborations-hero-dynamic {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8rem 0 4rem;
    background: var(--bg-primary);
}

.hero-bg-animated {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(34, 139, 34, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(34, 139, 34, 0.08) 0%, transparent 50%);
    animation: pulseBg 8s ease-in-out infinite;
}

@keyframes pulseBg {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.hero-content-dynamic {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-number-large {
    font-size: 12rem;
    font-weight: 900;
    color: var(--accent-color);
    opacity: 0.08;
    line-height: 1;
    position: absolute;
    top: -3rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Inter', sans-serif;
    pointer-events: none;
}

.hero-title-dynamic {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.1;
    position: relative;
    z-index: 1;
}

/* Removed gradient from title-line - using solid color instead */

.hero-subtitle-dynamic {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    color: var(--text-secondary);
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* Showcase Sections */
.collaborations-showcase {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.showcase-section {
    margin-bottom: 8rem;
}

.showcase-section.alt-section {
    background: var(--bg-secondary);
    padding: 6rem 0;
    margin: 0;
    border-radius: 0;
}

.section-header-showcase {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid var(--border-color);
}

.section-number-showcase {
    font-size: 6rem;
    font-weight: 900;
    color: var(--accent-color);
    opacity: 0.15;
    line-height: 1;
    font-family: 'Inter', sans-serif;
    flex-shrink: 0;
}

.section-header-text {
    flex: 1;
}

.section-title-showcase {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.section-intro {
    font-size: 1.3rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Tracks Showcase Grid */
.tracks-showcase-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.track-showcase-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.track-showcase-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.track-showcase-card.main-track {
    grid-row: 1 / 3;
    border: 2px solid var(--accent-color);
    box-shadow: 0 8px 30px rgba(34, 139, 34, 0.2);
}

[data-theme="dark"] .track-showcase-card.main-track {
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.2);
}

.track-image-showcase {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: var(--bg-primary);
}

.track-showcase-card.main-track .track-image-showcase {
    height: 500px;
}

.track-image-showcase img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.track-showcase-card:hover .track-image-showcase img {
    transform: scale(1.15) rotate(1deg);
}

.image-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.track-showcase-card:hover .image-gradient-overlay {
    opacity: 1;
}

.track-badge-main {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--accent-color);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(34, 139, 34, 0.4);
}

[data-theme="dark"] .track-badge-main {
    color: #0f172a;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.track-content-showcase {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
}

.track-meta-top {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.track-year-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
}

[data-theme="dark"] .track-year-badge {
    background: var(--gradient-secondary);
    color: #0f172a;
}

.track-type {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.track-title-showcase {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.track-showcase-card.main-track .track-title-showcase {
    font-size: 2.2rem;
}

.track-description-showcase {
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
    font-size: 1rem;
}

/* Featured Showcase */
.collab-featured-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.collab-featured-showcase.reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.collab-featured-showcase.reverse > * {
    direction: ltr;
}

.featured-image-wrapper {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    transform: rotate(-2deg);
    transition: transform 0.4s ease;
}

.collab-featured-showcase:hover .image-frame {
    transform: rotate(0deg) scale(1.02);
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.frame-decoration {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.2;
    z-index: -1;
}

.featured-content-wrapper {
    position: relative;
}

.featured-number {
    position: absolute;
    top: -2rem;
    left: -2rem;
    font-size: 10rem;
    font-weight: 900;
    color: var(--accent-color);
    opacity: 0.08;
    line-height: 1;
    font-family: 'Inter', sans-serif;
    z-index: 0;
}

.featured-badge-showcase {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: rgba(34, 139, 34, 0.1);
    border: 2px solid var(--accent-color);
    border-radius: 30px;
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

[data-theme="dark"] .featured-badge-showcase {
    background: rgba(255, 215, 0, 0.15);
}

.featured-artist-name {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.featured-track-name {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--accent-color);
    font-style: italic;
}

.featured-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.featured-stats {
    display: flex;
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
    .tracks-showcase-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .track-showcase-card.main-track {
        grid-row: 1 / 2;
    }
    
    .collab-featured-showcase {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .collab-featured-showcase.reverse {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    .hero-number-large {
        font-size: 8rem;
        top: -2rem;
    }
    
    .section-header-showcase {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .section-number-showcase {
        font-size: 4rem;
    }
    
    .tracks-showcase-grid {
        grid-template-columns: 1fr;
    }
    
    .track-showcase-card.main-track .track-image-showcase {
        height: 300px;
    }
    
    .featured-number {
        font-size: 6rem;
        top: -1rem;
        left: -1rem;
    }
}

/* ============================================
   DESIGN 1 (SAVED FOR RESTORE)
   ============================================ */

/* Collaboration Blocks with Numbers */
.collaboration-block {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    margin-bottom: 6rem;
    position: relative;
    transform: none !important; /* Force disable transform */
}

.collaboration-block.reverse {
    flex-direction: row-reverse;
}

.collab-number {
    font-size: 8rem;
    font-weight: 900;
    color: var(--accent-color);
    opacity: 0.15;
    line-height: 1;
    font-family: 'Inter', sans-serif;
    flex-shrink: 0;
    min-width: 120px;
}

.collab-number-inline {
    font-size: 4rem;
    font-weight: 900;
    color: var(--accent-color);
    opacity: 0.2;
    line-height: 1;
    font-family: 'Inter', sans-serif;
    margin-bottom: 1rem;
    display: inline-block;
}

.collab-content {
    flex: 1;
}

.collab-track-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.collab-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.collab-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.collab-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.collab-meta .meta-item i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.collab-image-large {
    flex: 0 0 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-large);
}

.collab-image-large img {
    width: 100%;
    height: auto;
    display: block;
    /* transition: transform 0.4s ease; - Removing transition to stop dragging effect */
}

.collab-image-large:hover img {
    /* transform: scale(1.05); - Removing hover scale */
}

.collaborations-section.alt-bg {
    background: var(--bg-secondary);
    padding: 6rem 0;
}

/* Responsive Design for Collaboration Blocks */
@media (max-width: 1024px) {
    .collaboration-block {
        flex-direction: column;
        gap: 3rem;
    }
    
    .collaboration-block.reverse {
        flex-direction: column;
    }
    
    .collab-number {
        font-size: 6rem;
        min-width: auto;
        text-align: center;
    }
    
    .collab-image-large {
        flex: 1;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .collaboration-block {
        gap: 2rem;
        margin-bottom: 4rem;
    }
    
    .collab-number {
        font-size: 5rem;
    }
    
    .collab-number-inline {
        font-size: 3rem;
    }
    
    .collab-track-title {
        font-size: 1.5rem;
    }
    
    .collab-description {
        font-size: 1rem;
    }
    
    .collab-meta {
        gap: 1.5rem;
    }
    
    .collaborations-grid-blue {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .collaborations-grid-blue .collaboration-card.featured-card {
        grid-row: auto;
    }
    
    .collaborations-grid-blue .collaboration-card.featured-card .collaboration-image,
    .collaborations-grid-blue .collaboration-card:not(.featured-card) .collaboration-image {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .collab-number {
        font-size: 4rem;
    }
    
    .collab-number-inline {
        font-size: 2.5rem;
    }
    
    .collab-track-title {
        font-size: 1.3rem;
    }
}

/* ============================================
   OLD MODERN COLLABORATIONS DESIGN (keeping for reference)
   ============================================ */

/* Hero Section - Modern Design */
.collaborations-hero-modern {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #228B22 0%, #2fbf2f 25%, #228B22 50%, #196b19 75%, #228B22 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

[data-theme="dark"] .collaborations-hero-modern {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 30%, #0f172a 50%, #1e293b 75%, #0f172a 100%);
    background-size: 400% 400%;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Удалено - декоративные круги (точки) */
.hero-gradient-bg {
    display: none !important;
    visibility: hidden !important;
    background: none !important;
    background-image: none !important;
}

/* Удаляем ВСЕ радиальные градиенты в hero, которые создают круги */
.hero-gradient-bg,
.hero .hero-gradient-bg,
.hero-content .hero-gradient-bg,
.hero * {
    background-image: none !important;
}

/* Глобально убираем все радиальные градиенты, которые могут создавать круги */
.hero,
.hero-content,
.hero-image,
.hero-text {
    background-image: none !important;
}

/* Удалено - анимация точек в hero секции */
.hero-particles {
    display: none !important;
    visibility: hidden !important;
}

.hero-particles::before,
.hero-particles::after {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
}

/* Удаляем все анимированные точки в hero секции */
.hero-image::before,
.hero-image::after,
.hero-text::before,
.hero-text::after,
.image-container::before,
.image-container::after {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    50% { transform: translate(50px, -50px) scale(1.2); opacity: 0.6; }
}

.collaborations-hero-content-modern {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.collaborations-title-modern {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.title-word {
    display: inline-block;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.collaborations-subtitle-modern {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    animation: fadeInUp 1s ease-out 0.6s both, bounce 2s infinite 2s;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Section Header Modern */
.section-header-modern {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.section-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--accent-color);
    opacity: 0.2;
    line-height: 1;
    font-family: 'Inter', sans-serif;
}

.section-header-content {
    flex: 1;
}

.section-title-modern {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Modern Collaborations Grid */
.collaborations-section-modern {
    padding: 8rem 0;
    background: var(--bg-primary);
    position: relative;
}

.collaborations-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.collaboration-card-modern {
    background: var(--bg-secondary);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.collaboration-card-modern:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.collaboration-card-modern.card-featured {
    border: 2px solid var(--accent-color);
    box-shadow: 0 8px 30px rgba(34, 139, 34, 0.25);
}

[data-theme="dark"] .collaboration-card-modern.card-featured {
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.25);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: var(--bg-primary);
}

.card-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
    transition: opacity 0.4s ease;
}

.collaboration-card-modern:hover .card-image-overlay {
    opacity: 0.7;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.collaboration-card-modern:hover .card-image-wrapper img {
    transform: scale(1.15) rotate(2deg);
}

.card-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(34, 139, 34, 0.15) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

[data-theme="dark"] .card-hover-effect {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, transparent 100%);
}

.collaboration-card-modern:hover .card-hover-effect {
    opacity: 1;
}

.featured-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(34, 139, 34, 0.4);
}

[data-theme="dark"] .featured-badge {
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.card-content-modern {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
}

.card-badge {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    padding: 0.25rem 0.75rem;
    background: rgba(34, 139, 34, 0.1);
    border-radius: 12px;
    width: fit-content;
}

[data-theme="dark"] .card-badge {
    background: rgba(255, 215, 0, 0.15);
}

.card-title-modern {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.card-partner-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.card-partner-modern i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.card-description-modern {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex: 1;
    font-size: 0.95rem;
}

.card-footer-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.card-year-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
}

[data-theme="dark"] .card-year-badge {
    background: var(--gradient-secondary);
}

.card-platform {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.card-platform i {
    color: var(--accent-color);
}

/* Featured Collaboration Sections */
.collaboration-featured-modern {
    padding: 10rem 0;
    position: relative;
    background: var(--bg-secondary);
    overflow: hidden;
}

.collaboration-featured-modern.reverse-layout {
    background: var(--bg-primary);
}

.featured-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: 
        radial-gradient(circle at 2px 2px, var(--accent-color) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

.featured-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.collaboration-featured-modern.reverse-layout .featured-content-wrapper {
    grid-template-columns: 1fr 1fr;
}

.featured-image-section {
    position: relative;
}

.featured-image-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.image-glow-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(34, 139, 34, 0.3) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
    pointer-events: none;
}

[data-theme="dark"] .image-glow-effect {
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.featured-image-container img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    transition: transform 0.6s ease;
}

.featured-image-section:hover .featured-image-container img {
    transform: scale(1.05);
}

.image-decoration {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.2;
    z-index: 0;
}

.featured-text-section {
    position: relative;
}

.section-number-large {
    position: absolute;
    top: -2rem;
    left: -2rem;
    font-size: 8rem;
    font-weight: 900;
    color: var(--accent-color);
    opacity: 0.1;
    line-height: 1;
    font-family: 'Inter', sans-serif;
    z-index: 0;
}

.featured-badge-modern {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(34, 139, 34, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 50px;
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .featured-badge-modern {
    background: rgba(255, 215, 0, 0.15);
}

.featured-title-modern {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.featured-track-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--accent-color);
    font-style: italic;
}

.featured-description-modern {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.featured-meta-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.meta-item i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .featured-content-wrapper {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .collaboration-featured-modern.reverse-layout .featured-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .collaboration-featured-modern.reverse-layout .featured-image-section {
        order: 2;
    }
    
    .collaboration-featured-modern.reverse-layout .featured-text-section {
        order: 1;
    }
}

@media (max-width: 768px) {
    .collaborations-hero-modern {
        min-height: 80vh;
        padding: 6rem 0 3rem;
    }
    
    .collaborations-grid-modern {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-header-modern {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-number {
        font-size: 3rem;
    }
    
    .collaboration-featured-modern {
        padding: 6rem 0;
    }
    
    .section-number-large {
        font-size: 5rem;
        top: -1rem;
        left: -1rem;
    }
}

@media (max-width: 480px) {
    .collaborations-title-modern {
        font-size: 2.5rem;
    }
    
    .card-title-modern {
        font-size: 1.5rem;
    }
    
    .featured-title-modern {
        font-size: 2rem;
    }
}

.major-achievements {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
    border-color: var(--accent-color);
}

.achievement-card.featured {
    border: 2px solid var(--accent-color);
    background: var(--bg-primary);
}

.achievement-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.achievement-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.achievement-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.achievement-category {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.achievement-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.achievement-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.achievement-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.collaborations-section {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.collaborations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

/* Blue Stripes Section - Improved Design */
.collab-header {
    margin-bottom: 3rem;
}

.collab-intro {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 800px;
}

.collaborations-grid-blue {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
    margin-top: 2rem;
}

.collaborations-grid-blue .collaboration-card.featured-card {
    grid-row: 1 / 3;
    border: 2px solid var(--accent-color);
    box-shadow: 0 8px 24px rgba(34, 139, 34, 0.15);
}

[data-theme="dark"] .collaborations-grid-blue .collaboration-card.featured-card {
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.15);
}

.collaborations-grid-blue .collaboration-card.featured-card .collaboration-image {
    height: 350px;
}

.collaborations-grid-blue .collaboration-card:not(.featured-card) .collaboration-image {
    height: 200px;
}

.collaborations-grid-blue .collaboration-card:not(.featured-card) .collaboration-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.collaboration-card:hover .card-overlay {
    opacity: 1;
}

.collaboration-card.featured-card .collaboration-type {
    background: var(--accent-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 1rem;
}

[data-theme="dark"] .collaboration-card.featured-card .collaboration-type {
    background: var(--accent-color);
    color: #0f172a;
}

.collaboration-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.collaboration-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-color);
}

.collaboration-card.animate-in {
    opacity: 1;
}

.collaboration-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}


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

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

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

.collaboration-type {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.collaboration-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.collaboration-partner {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.collaboration-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
}

.collaboration-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.collaboration-year {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1rem;
}

.collaboration-platform {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.milestones-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.milestones-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.milestone-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.milestone-year {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-color);
    min-width: 80px;
}

.milestone-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.milestone-content p {
    color: var(--text-secondary);
}


.contact-hero {
    height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('photos/Tali pics(60) trounwiessel- Black and white.jpg') no-repeat center 15%;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.contact-hero .contact-hero-content {
    /* transform: translateY(-20px); Removed per user request */
}

.contact-hero .contact-title,
.contact-hero .contact-subtitle {
    color: #ffffff !important;
}

.contact-hero .contact-title {
    animation: titleFadeInUp 1s ease-out;
}
.contact-hero * {
    color: #ffffff !important;
}

/* Force white text over animated gradient hero (index) */
.animated-gradient * {
    color: #ffffff !important;
}

.animated-gradient .title-line:nth-child(2) {
    color: var(--accent-color) !important;
}

/* Music page hero - white text over green background */
.music-hero {
    background: var(--gradient-primary);
}
.music-hero *,
.music-hero .music-title,
.music-hero .music-subtitle {
    color: #ffffff !important;
}

.music-hero .music-title {
    animation: titleFadeInUp 1s ease-out;
}

.music-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-primary);
    animation: titleFadeInUp 1s ease-out;
}

/* Ensure secondary buttons are readable on green backgrounds */
.gallery-hero .btn-secondary,
.news-hero .btn-secondary,
.achievements-hero .btn-secondary,
.contact-hero .btn-secondary,
.animated-gradient .btn-secondary {
    color: #ffffff !important;
    border-color: #ffffff !important;
}

.gallery-hero .btn-secondary:hover,
.news-hero .btn-secondary:hover,
.achievements-hero .btn-secondary:hover,
.contact-hero .btn-secondary:hover,
.animated-gradient .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

/* Ensure text over accent backgrounds is white */
.btn-primary,
.scroll-btn,
.news-category,
.footer-social a:hover {
    color: #ffffff !important;
}

.contact-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
    animation: titleFadeInUp 1s ease-out;
}

.contact-subtitle {
    font-size: 1.5rem;
    color: #000000;
    transition: color 0.3s ease;
}

.contact-section {
    padding: 6rem 0;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

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

.contact-form-wrapper h2,
.contact-info-wrapper h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-icon {
    font-size: 2rem;
    color: var(--accent-color);
    min-width: 50px;
    transition: color 0.3s ease;
}

.info-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.info-content p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.info-content a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.info-content a:hover {
    text-decoration: underline;
}

.email-text {
    display: block;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1rem;
    word-break: break-all;
    margin-top: 0.5rem;
}

/* Email Notification */
.email-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    z-index: var(--z-modal);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 350px;
}

.email-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.email-notification-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.email-notification-content i {
    color: var(--accent-color);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.email-notification-content strong {
    display: block;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.email-notification-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.3rem 0;
    word-break: break-all;
}

.email-notification-content small {
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .email-notification {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}


.contact-info-with-map {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

/* Map Trigger Button */
.map-trigger-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.map-trigger-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 139, 34, 0.3);
}

.map-trigger-btn:active {
    transform: translateY(0);
}

.map-trigger-btn i {
    font-size: 1rem;
}

/* Map Modal */
.map-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 2rem;
}

.map-modal.active {
    opacity: 1;
    visibility: visible;
    position: fixed;
    -webkit-overflow-scrolling: touch;
}

.map-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.map-modal-content {
    position: relative;
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.map-modal.active .map-modal-content {
    transform: scale(1);
}

.map-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.map-modal-close:hover {
    background: var(--accent-color);
    color: white;
    transform: rotate(90deg);
}

.map-modal-header {
    padding: 2rem 2rem 1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.map-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.map-modal-header h3 i {
    color: var(--accent-color);
    font-size: 1.6rem;
}

.map-modal-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

.map-modal-wrapper {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
}

.map-modal-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.map-modal-info {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.map-modal-info .map-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.map-modal-info .map-info-item i {
    color: var(--accent-color);
    font-size: 1rem;
}

.map-section {
    flex: 1;
    min-width: 400px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.map-header {
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.map-header:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-medium);
}

.map-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: color 0.3s ease;
}

.map-header h3 i {
    color: var(--accent-color);
    font-size: 1.4rem;
}

.map-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    transition: color 0.3s ease;
}

.map-wrapper {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-large);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    position: relative;
}

.map-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(34, 139, 34, 0.05) 0%, rgba(34, 139, 34, 0) 100%);
    pointer-events: none;
    z-index: 1;
    border-radius: 15px;
}

.map-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-large);
    border-color: var(--accent-color);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: grayscale(0%);
    transition: filter 0.3s ease;
    position: relative;
    z-index: 0;
}

[data-theme="dark"] .map-wrapper iframe {
    filter: grayscale(20%) brightness(0.9);
}

.map-info {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.map-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.map-info-item i {
    color: var(--accent-color);
    font-size: 1rem;
}

.map-info-item:hover {
    color: var(--text-primary);
}

.social-contact h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--border-color);
}

.social-link-item:hover {
    background: var(--accent-color);
    color: white;
    transform: translateX(5px);
}

.social-link-item i {
    font-size: 1.5rem;
}


@media (max-width: 768px) {
    .about-hero-content {
        grid-template-columns: 1fr;
    }
    
    .about-title,
    .gallery-title,
    .news-title,
    .achievements-title,
    .contact-title {
        font-size: 2.5rem;
    }
    
    .gallery-hero {
        min-height: 250px !important;
        height: 250px !important;
        max-height: 250px !important;
    }
    
    .gallery-hero .gallery-title {
        font-size: 2.5rem;
        letter-spacing: normal;
    }
    
    .ticker-item {
        width: 150px;
    }
    
    .ticker-track {
        gap: 0;
    }
    
    @media (max-width: 480px) {
        .gallery-hero {
            min-height: 200px !important;
            height: 200px !important;
            max-height: 200px !important;
        }
        
        .gallery-hero .gallery-title {
            font-size: 2.5rem;
            letter-spacing: 1px;
        }
        
        .ticker-item {
            width: 120px;
        }
        
        .ticker-track {
            gap: 0;
            animation: ticker-scroll 200s linear infinite !important;
            animation-duration: 200s !important;
        }
    }
    
    .story-gallery {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: 120px;
        gap: 0.75rem;
        padding: 2rem 1rem;
    }
    
    .story-header h3 {
        font-size: 1.75rem;
    }
    
    .gallery-item:nth-child(1) {
        grid-column: 1 / span 3;
        grid-row: span 2;
    }
    
    .gallery-item:nth-child(2) {
        grid-column: 4 / span 3;
        grid-row: span 1;
    }
    
    .gallery-item:nth-child(3) {
        grid-column: 1 / span 2;
        grid-row: span 2;
    }
    
    .gallery-item:nth-child(4) {
        grid-column: 3 / span 2;
        grid-row: span 1;
    }
    
    .gallery-item:nth-child(5) {
        grid-column: 5 / span 2;
        grid-row: span 1;
    }
    
    .gallery-item:nth-child(6) {
        grid-column: 4 / span 3;
        grid-row: span 2;
    }
    
    .gallery-item:nth-child(7) {
        grid-column: 1 / span 3;
        grid-row: span 1;
    }
    
    .gallery-item:nth-child(8) {
        grid-column: 4 / span 2;
        grid-row: span 1;
    }
    
    .gallery-item:nth-child(9) {
        grid-column: 1 / span 2;
        grid-row: span 2;
    }
    
    .gallery-item:nth-child(10) {
        grid-column: 3 / span 2;
        grid-row: span 2;
    }
    
    .gallery-item:nth-child(11) {
        grid-column: 5 / span 2;
        grid-row: span 1;
    }
    
    .gallery-item:nth-child(12) {
        grid-column: 1 / span 2;
        grid-row: span 1;
    }
    
    .gallery-item:nth-child(13) {
        grid-column: 3 / span 2;
        grid-row: span 2;
    }
    
    .gallery-item:nth-child(14) {
        grid-column: 5 / span 2;
        grid-row: span 1;
    }
    
    .gallery-item:nth-child(15) {
        grid-column: 1 / span 3;
        grid-row: span 1;
    }
    
    .gallery-item:nth-child(16) {
        grid-column: 4 / span 2;
        grid-row: span 1;
    }
    
    .gallery-item:nth-child(17) {
        grid-column: 1 / span 2;
        grid-row: span 1;
    }
    
    .gallery-item:nth-child(18) {
        grid-column: 3 / span 2;
        grid-row: span 1;
    }
    
    .gallery-item:nth-child(19) {
        grid-column: 5 / span 2;
        grid-row: span 2;
    }
    
    .gallery-item:nth-child(20) {
        grid-column: 1 / span 3;
        grid-row: span 1;
    }
    
    .gallery-item:nth-child(21) {
        grid-column: 4 / span 2;
        grid-row: span 1;
    }
    
    .gallery-item:nth-child(22) {
        grid-column: 1 / span 2;
        grid-row: span 1;
    }
    
    .gallery-item:nth-child(23) {
        grid-column: 3 / span 2;
        grid-row: span 1;
    }
    
    .gallery-caption {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .news-card.featured {
        grid-column: span 1;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Touch targets optimization - minimum 44x44px for mobile */
@media (max-width: 768px) {
    .btn-primary, .btn-secondary {
        min-height: 44px;
        min-width: 44px;
        padding: 0.9rem 1.8rem;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 0.75rem 1rem;
    }
    
    .hamburger {
        min-width: 44px;
        min-height: 44px;
    }
    
    .theme-toggle {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
        border-radius: 50% !important;
        border-radius: 50% !important;
        aspect-ratio: 1 / 1 !important;
    }
    
    #theme-toggle i,
    .theme-toggle i {
        font-size: 0.9rem !important;
    }
    
    .social-link-item {
        min-height: 44px;
        padding: 1rem 1.25rem;
    }
    
    .link-card, .social-card {
        min-height: 120px;
    }
}

/* Tablet optimization (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .section-title {
        font-size: 2.6rem;
    }
    
    .container {
        padding: 0 2rem;
    }
}


/* Force normal sizes on large screens - override any conflicting styles */
@media (min-width: 1200px) {
    html {
        font-size: 16px !important;
    }
    
    body {
        font-size: 16px !important;
    }
    
    .hero-title {
        font-size: 4rem !important;
    }
    
    .section-title {
        font-size: 3rem !important;
    }
    
    
    .about-image .hero-photo,
    .about-image img {
        object-position: center 30% !important; /* Slightly lower content position for main version */
    }
    
    .nav-logo h2 {
        font-size: 2.1rem !important;
    }
    
    .nav-link {
        font-size: 1.15rem !important;
    }
    
    .link-card h3, .social-card h3 {
        font-size: 1.8rem !important;
    }
    
    .link-card p, .social-card p {
        font-size: 0.85rem !important;
        margin-top: -0.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.2rem !important;
    }
    
    .btn-primary, .btn-secondary {
        font-size: 1rem !important;
        padding: 0.8rem 2rem !important;
    }
    
    .info-card h3 {
        font-size: 1.5rem !important;
    }
    
    .info-card p {
        font-size: 1rem !important;
    }
}

/* Landscape orientation optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-image {
        max-height: 400px;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}

/* Very small screens (< 375px) */
@media (max-width: 375px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-title::after {
        width: 80px;
        height: 4px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .nav-logo h2 {
        font-size: 1.5rem;
    }
    
    .link-card, .social-card {
        padding: 1.25rem;
    }
    
    .card-icon, .social-icon {
        font-size: 2.5rem;
    }
}

/* Improved mobile navigation */
@media (max-width: 992px) {
    .nav-menu.active {
        max-height: 85vh;
        overflow-y: auto;
        z-index: 1000;
    }
}

/* Image optimization for mobile */
@media (max-width: 768px) {
    .hero-photo, .about-image img, .about-intro-photo, .gallery-item img {
        max-width: 100%;
        height: auto;
    }
    
    .about-image img,
    .about-image .hero-photo {
        height: 300px;
        object-position: center 30% !important;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .footer-sticker {
        height: 300px;
        left: 0.5rem;
    }
}

@media (max-width: 480px) {
    .footer-sticker {
        display: none;
    }
}

/* Form optimization for mobile */
@media (max-width: 768px) {
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.9rem;
        min-height: 44px;
    }
    
    .contact-form button {
        width: 100%;
        min-height: 48px;
    }
    
    .contact-info-with-map {
        flex-direction: column;
        gap: 2rem;
    }
    
    .map-section {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
    
    .map-wrapper {
        height: 300px;
    }
    
    .map-info {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Map Modal Responsive */
    .map-modal {
        padding: 1rem;
    }

    .map-modal-content {
        max-height: 95vh;
    }

    .map-modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .map-modal-header h3 {
        font-size: 1.3rem;
    }

    .map-modal-wrapper {
        height: 400px;
    }

    .map-modal-info {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .map-wrapper {
        height: 250px;
    }
    
    .map-header {
        padding: 0.75rem 1rem;
    }
    
    .map-header h3 {
        font-size: 1.1rem;
    }
    
    .map-info {
        padding: 0.75rem 1rem;
    }

    /* Map Modal Mobile */
    .map-modal {
        padding: 0.5rem;
    }

    .map-modal-content {
        border-radius: 12px;
        max-height: 98vh;
    }

    .map-modal-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 35px;
        height: 35px;
    }

    .map-modal-header {
        padding: 1rem 1rem 0.75rem;
    }

    .map-modal-header h3 {
        font-size: 1.1rem;
    }

    .map-modal-header p {
        font-size: 0.9rem;
    }

    .map-modal-wrapper {
        height: 300px;
    }

    .map-modal-info {
        padding: 0.75rem 1rem;
    }

    .map-trigger-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* YouTube video iframe styles for track cards */
.track-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #000;
    display: block;
}

.track-image iframe {
    width: 100% !important;
    height: 100% !important;
    min-width: 100%;
    min-height: 100%;
    border: none;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Floating stickers that don't affect layout */
.floating-sticker {
    position: fixed;
    top: 35vh;
    left: 2vw;
    width: 160px;
    max-width: 22vw;
    transform: rotate(-16deg);
    z-index: var(--z-floating);
    pointer-events: none;
    opacity: 0.9;
    border-radius: 12px;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.25));
}

.floating-sticker.right {
    left: auto;
    right: 2vw;
    transform: rotate(16deg);
}

[data-theme="dark"] .floating-sticker {
    opacity: 0.8;
}

@media (max-width: 1024px) {
    .floating-sticker {
        display: none;
    }
}

/* Show History & Professional Materials Section */
.song-stories {
    position: relative;
    padding: 6rem 0;
    background: #F5F5F5;
}

.show-history-section {
    margin-bottom: 4rem;
    background: #F5F5F5;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
}

.show-video-section {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.show-video {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    object-position: center 25%;
    background: #F5F5F5;
    pointer-events: none;
}

.show-video::-webkit-media-controls {
    display: none !important;
}

.show-video::-webkit-media-controls-enclosure {
    display: none !important;
}

.show-history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    max-width: 900px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    transform: translateX(4%);
}

.show-history-column {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.show-item {
    color: #000000;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.4;
    padding: 0;
    margin: 0;
    text-align: left;
    letter-spacing: 0.5px;
    display: flex;
    align-items: flex-start;
}

.show-item .show-date {
    color: #666666;
    font-weight: 600;
    margin-right: 3rem;
    flex-shrink: 0;
    width: 95px;
    text-align: right;
    display: block;
}

.show-item .show-separator {
    color: #999999;
    margin-left: 0;
    margin-right: 0.75rem;
    font-weight: 400;
    flex-shrink: 0;
}

.show-item .show-name {
    flex: 1;
    min-width: 0;
    margin-left: 0;
}

/* Professional Materials Section */
.professional-section {
    position: relative;
    margin-top: 4rem;
    margin-bottom: 6rem;
    padding-bottom: 2rem;
}

/* IMDB Link */
.imdb-link-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    margin-top: -5rem;
    margin-bottom: 2rem;
}

/* Clapboard Sticker */
.clapboard-sticker {
    position: absolute;
    left: 6rem;
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
    width: 100px;
    height: auto;
    z-index: 10;
    opacity: 0.9;
    pointer-events: none;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.clapboard-sticker:hover {
    transform: translateY(-50%) rotate(-12deg) scale(1.05);
}

@media (max-width: 1024px) {
    .clapboard-sticker {
        width: 120px;
        right: 1rem;
    }
}

@media (max-width: 768px) {
    .clapboard-sticker {
        width: 100px;
        right: 0.5rem;
        opacity: 0.7;
    }
}

.imdb-link {
    display: inline-block;
    transition: transform 0.3s ease;
    text-decoration: none;
    will-change: transform;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

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

.imdb-icon {
    width: 120px;
    height: 60px;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    shape-rendering: crispEdges;
}

/* Dark mode for IMDB */
[data-theme="dark"] .imdb-icon rect {
    fill: #F5C518;
}

[data-theme="dark"] .imdb-icon text {
    fill: #000000;
}

.professional-content {
    margin-top: 3rem;
}

.professional-buttons {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.download-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.download-btn i {
    font-size: 1.2rem;
}

.professional-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
}

.info-block {
    padding: 2.5rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.info-block:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.info-block h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.info-block p {
    color: var(--text-primary);
    line-height: 1.9;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.info-block p:last-child {
    margin-bottom: 0;
}

.info-block p strong {
    color: var(--accent-color);
    font-weight: 600;
}

.credits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 0.75rem;
}

.credits-list li {
    color: var(--text-primary);
    line-height: 1.9;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1rem;
}

.credits-list li:last-child {
    margin-bottom: 0;
}

.credits-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 0.9rem;
}

.credits-list li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Dark mode styles */
[data-theme="dark"] .info-block {
    background: var(--bg-secondary);
}

[data-theme="dark"] .info-block h3 {
    color: var(--accent-color);
}

[data-theme="dark"] .show-history-section {
    background: #0f172a;
}

[data-theme="dark"] .song-stories {
    background: #0f172a;
}

[data-theme="dark"] .show-item {
    color: #ffffff;
}

[data-theme="dark"] .show-item .show-date {
    color: #FFD700;
    opacity: 1;
}

[data-theme="dark"] .show-item .show-name {
    color: #ffffff;
}

[data-theme="dark"] .show-item .show-separator {
    color: #FFC700;
    opacity: 0.6;
}

[data-theme="dark"] .info-block p,
[data-theme="dark"] .credits-list li {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .show-history-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .professional-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .info-block {
        padding: 2rem;
    }
    
    .professional-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .download-btn {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .song-stories {
        padding: 4rem 0;
    }
    
    .show-history-section {
        margin-bottom: 4rem;
    }
    
    .info-block {
        padding: 1.5rem;
    }
}

/* Stickers anchored to Song Stories section */

.section-sticker {
    position: absolute;
    top: 38%;
    width: 180px;
    max-width: 22vw;
    z-index: 2;
    pointer-events: none;
    opacity: 0.9;
    border-radius: 12px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.25));
}

/* ПЕРЕОПРЕДЕЛЯЕМ ДЛЯ FIGHTER-STICKER - МАКСИМАЛЬНАЯ СПЕЦИФИЧНОСТЬ */
html body .song-stories .section-sticker.fighter-sticker,
html body .song-stories #fighter-sticker-img.section-sticker,
html body img.section-sticker.fighter-sticker,
html body img#fighter-sticker-img.section-sticker,
html body .section-sticker.fighter-sticker,
html body #fighter-sticker-img.section-sticker,
body .song-stories .section-sticker.fighter-sticker,
body .song-stories #fighter-sticker-img.section-sticker,
.song-stories .section-sticker.fighter-sticker,
.song-stories #fighter-sticker-img.section-sticker,
.section-sticker.fighter-sticker,
#fighter-sticker-img.section-sticker,
img.section-sticker.fighter-sticker,
img#fighter-sticker-img.section-sticker {
    width: 80px !important;
    max-width: 80px !important;
    min-width: 80px !important;
    /* Переопределяем базовый max-width: 22vw и width: 180px */
}

/* Максимальная специфичность для верхних стикеров - переопределяет базовое правило */
.song-stories .section-sticker.left,
html body .song-stories .section-sticker.left,
body .song-stories .section-sticker.left,
.section-sticker.left {
    left: 100px !important;
    transform: rotate(-16deg) !important;
    width: 260px !important;
    max-width: 260px !important;
    min-width: 260px !important;
    top: 35% !important;
}

.song-stories .section-sticker.right,
html body .song-stories .section-sticker.right,
body .song-stories .section-sticker.right,
.section-sticker.right {
    right: 200px !important;
    top: 77% !important;
    transform: rotate(-14deg) !important;
    width: 200px !important;
    max-width: 200px !important;
    min-width: 200px !important;
}

/* Переопределяем max-width: 22vw из базового правила .section-sticker */
.section-sticker.left,
.section-sticker.right {
    max-width: none !important;
}

/* Fighter / A Little Better specific stickers */
.fighter-sticker {
    top: 5% !important;
    right: 150px !important;
    height: auto !important;
    transform: rotate(-15deg) !important;
    width: 80px !important;
    max-width: 80px !important;
}

.fighter-left-sticker {
    top: 5%;
    left: 10%;
    transform: rotate(20deg) !important;
    width: 250px !important;
    max-width: 250px !important;
    min-width: 250px !important;
    height: 180px;
}

.little-better-sticker {
    top: 65%;
    left: 10%;
    transform: rotate(45deg);
    width: 150px;
    height: 180px;
}

.mid-right-sticker {
    top: 40% !important;
    right: 80px;
    transform: rotate(5deg);
    width: 260px !important;
    max-width: 260px !important;
    min-width: 260px !important;
    height: 180px !important;
}

.bottom-left-sticker {
    bottom: 0;
    left: 320px;
    transform: rotate(-20deg);
    top: 90%;
    width: 250px;
    z-index: 0;
}

@media (max-width: 1200px) {
    .section-sticker.left { left: 16px; }
    .section-sticker.right { right: 16px; top: 62%; }
    .fighter-sticker { right: 250px !important; top: 5% !important; width: 80px !important; max-width: 80px !important; height: auto !important; }
    .fighter-left-sticker { left: 8px; }
    .little-better-sticker { left: 8px; }
    .mid-right-sticker { right: 24px; }
    .bottom-left-sticker { left: 16px; }
}

@media (max-width: 1024px) {
    .section-sticker { display: none; }
}

/* Mobile optimizations for preloader */
@media (max-width: 768px) {
    .preloader-logo h2 {
        font-size: 3rem;
        letter-spacing: 0.05em;
    }
}

@media (max-width: 480px) {
    .preloader-logo h2 {
        font-size: 2.2rem;
        letter-spacing: 0.03em;
    }
}

/* Mobile optimizations for navbar */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        height: 70px;
        overflow: visible !important;
    }
    
    .nav-logo h2 {
        font-size: 0.95rem;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip;
        line-height: 1.2 !important;
        padding-bottom: 2px !important;
    }
    
    /* Remove underline from logo on mobile - AGGRESSIVE */
    .nav-logo a,
    .nav-logo a:hover,
    .nav-logo a:focus,
    .nav-logo a:active,
    .nav-logo a:visited,
    .nav-container .nav-logo a,
    .navbar .nav-container .nav-logo a {
        text-decoration: none !important;
        border-bottom: none !important;
        border: none !important;
        outline: none !important;
        /* Disable long press menu on mobile - prevents link context menu */
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
        pointer-events: auto !important;
    }
    
    .nav-logo,
    .nav-logo h2 {
        /* Disable long press menu and text selection on mobile */
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
    }
    
    .nav-logo a::after,
    .nav-logo a::before,
    .nav-logo h2::after,
    .nav-logo h2::before,
    .nav-container .nav-logo a::after,
    .nav-container .nav-logo a::before,
    .navbar .nav-container .nav-logo a::after,
    .navbar .nav-container .nav-logo a::before {
        display: none !important;
        content: none !important;
        width: 0 !important;
        height: 0 !important;
        border: none !important;
        background: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    /* Make theme-toggle perfectly round on mobile */
    #theme-toggle,
    .theme-toggle,
    button#theme-toggle,
    button.theme-toggle,
    .nav-right #theme-toggle,
    .nav-right .theme-toggle,
    .theme-switcher #theme-toggle,
    .theme-switcher .theme-toggle {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
        border-radius: 50% !important;
        -webkit-border-radius: 50% !important;
        -moz-border-radius: 50% !important;
        padding: 0 !important;
        margin: 0 !important;
        aspect-ratio: 1 / 1 !important;
        box-sizing: border-box !important;
        font-size: 0.85rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
    }
    
    #theme-toggle i,
    .theme-toggle i {
        font-size: 0.85rem !important;
    }
    
    .nav-menu.active {
        max-height: calc(100vh - 65px);
        overflow-y: auto;
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    
}

@media (max-width: 480px) {
    .nav-logo h2 {
        font-size: 0.9rem;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip;
        line-height: 1.2 !important;
        padding-bottom: 2px !important;
    }
    
    
    .nav-container {
        height: 65px;
        overflow: visible !important;
    }
}

/* Mobile optimizations for hero section */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        padding: 2rem 1rem;
    }
    
    .hero-content {
        padding-top: 100px;
    }
    
    .hero-title {
        line-height: 1.1;
    }
    
    .hero-title .title-line {
        display: block;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .hero-photo {
        max-width: 100%;
        height: auto;
        max-height: 400px;
    }
    
    .scroll-indicator {
        bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-photo {
        max-height: 300px;
    }
}

/* Mobile optimizations for quick links */
@media (max-width: 768px) {
    .quick-links {
        padding: 4rem 0;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .link-card {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
    
    .link-card h3 {
        font-size: 1.3rem;
        margin: 1rem 0 0.5rem;
    }
    
    .link-card p {
        font-size: 0.95rem;
    }
}

/* Mobile optimizations for social integration */
@media (max-width: 768px) {
    .social-integration {
        padding: 4rem 0 3.5rem 0 !important;
        background: #ffffff !important;
    }
    
    [data-theme="dark"] .social-integration {
        background: var(--bg-secondary) !important;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .social-card {
        padding: 2rem 1.5rem;
    }
    
    .social-icon {
        font-size: 2.5rem;
    }
    
    .social-card h3 {
        font-size: 1.3rem;
    }
    
    .social-card p {
        font-size: 0.95rem;
    }
}

/* Mobile optimizations for footer */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        margin-top: 2rem;
        text-align: center;
    }
}

/* Mobile optimizations for section titles */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

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

/* Mobile optimizations for containers */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
}

/* ============================================
   CRITICAL CSS OPTIMIZATIONS
   ============================================ */

/* GPU Acceleration for Animations */
.ticker-track,
.preloader-logo h2,
.hero-image,
.gallery-item,
.timeline-item {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Remove will-change after animation */
.ticker-track:not(:hover),
.gallery-item:not(:hover) {
    will-change: auto;
}

/* Accessibility - Color Contrast Fixes */
.news-subtitle,
.gallery-subtitle {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.text-secondary {
    color: var(--text-secondary-accessible);
}

.text-muted {
    color: var(--text-muted-accessible);
}

/* Hero and section content */
.hero-content {
    max-width: 1200px;
}

.section {
    width: 100%;
}

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

/* Form Inputs - Better mobile experience */
@media (max-width: 768px) {
    input,
    textarea,
    select {
        font-size: 16px !important; /* Prevents iOS zoom */
        border-radius: 8px;
    }
}

/* Safari Fixes - Specific iOS issues */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }
    
    .navbar {
        position: -webkit-sticky;
        position: sticky;
    }
}

/* Focus Visible - Better keyboard navigation */
*:focus {
    outline: 2px solid transparent;
}

*:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .back-to-top,
    .theme-toggle,
    .hamburger,
    video,
    .preloader {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
    }
}

/* Modal Scroll Lock */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Selection Styling - Brand consistency */
::selection {
    background: var(--accent-color);
    color: white;
}

::-moz-selection {
    background: var(--accent-color);
    color: white;
}

/* Button States - Better feedback */
button,
.btn-primary,
.btn-secondary,
a[class*="btn"] {
    position: relative;
    overflow: hidden;
}

button:active,
.btn-primary:active,
.btn-secondary:active {
    transform: translateY(1px);
}

button:disabled,
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Video Performance */
video {
    content-visibility: auto;
}

/* Image Optimization */
img {
    content-visibility: auto;
    image-rendering: auto;
}

img[loading="lazy"] {
    background: var(--bg-secondary);
}

/* Cookie Consent Banner - Removed */

/* Toast Notifications */
.toast {
    position: fixed;
    top: 100px;
    right: 2rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: var(--z-toast);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid #22c55e;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

[data-theme="dark"] .toast {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Offline Indicator */
.offline-indicator {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #ef4444;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    z-index: var(--z-toast);
    transition: transform 0.3s ease;
    font-weight: 600;
}

.offline-indicator.show {
    transform: translateX(-50%) translateY(0);
}

/* Link Underline Animation */
a:not([class]) {
    color: var(--accent-color);
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size 0.3s ease;
}

/* Override for footer links to keep them grey but with animation */
.footer-links a:not([class]) {
    color: #64748b !important;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size 0.3s ease;
}

/* White color for dark mode with animation */
[data-theme="dark"] .footer-links a:not([class]) {
    color: #ffffff !important;
    background-image: linear-gradient(currentColor, currentColor);
}

.footer-links a:not([class]):hover {
    background-size: 100% 2px;
}

a:not([class]):hover {
    background-size: 100% 2px;
}

/* Grid Layout Fix - Better responsiveness */
.story-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

@media (min-width: 768px) {
    .story-gallery {
        grid-template-columns: repeat(12, 1fr);
    }
}

/* Apply z-index variables to key elements */
.floating-sticker {
    z-index: var(--z-sticker);
}

.back-to-top {
    z-index: var(--z-sticky);
}

/* ============================================
   MOBILE RESPONSIVE STYLES FOR TALI GOLERGANT WEBSITE
   ============================================ */

/* ============================================
   MOBILE NAVIGATION IMPROVEMENTS
   ============================================ */
@media (max-width: 992px) {
    .nav-container {
        padding: 0 1.5rem;
        height: 70px;
    }
    
    .nav-logo h2 {
        font-size: 1.4rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background: var(--bg-primary);
        padding: 2rem 1.5rem;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 999;
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        color: var(--text-primary);
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: var(--accent-color);
        transform: translateX(5px);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 28px;
        height: 22px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        position: relative;
    }
    
    .hamburger span {
        width: 100%;
        height: 3px;
        background: var(--text-primary);
        border-radius: 10px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: center;
        display: block;
    }
    
    .hamburger.is-active .hamburger-inner {
        transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger.is-active .hamburger-inner::before {
        opacity: 0;
        transform: translateX(-20px);
    }
    
    .hamburger.is-active .hamburger-inner::after {
        transform: translateY(-10px) rotate(-45deg);
    }
    
    .nav-overlay {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 998;
        backdrop-filter: blur(2px);
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-right {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-left: 0;
        padding-left: 0;
    }
    
    #theme-toggle,
    .theme-toggle {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        max-width: 36px;
        border-radius: 50% !important;
        max-height: 36px;
        border-radius: 50% !important;
        padding: 0;
        margin: 0;
    }
    
    @media (max-width: 480px) {
        .nav-menu {
            width: 95%;
            padding: 2.5rem 1.5rem;
            max-width: none;
        }
        
        .nav-link {
            padding: 1.1rem 1.25rem;
            font-size: 1.05rem;
        }
        
        .nav-link:hover,
        .nav-link:focus {
            padding-left: 1.75rem;
        }
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-right {
        gap: 1rem;
    }
    
    .hamburger {
        width: 32px;
        height: 24px;
    }
    
    .hamburger span {
        height: 3px;
        border-radius: 3px;
    }
}

/* ============================================
   MOBILE HERO SECTIONS
   ============================================ */
@media (max-width: 768px) {
    /* General hero adjustments */
    .hero,
    .news-hero,
    .gallery-hero {
        min-height: 300px !important;
        height: 300px !important;
        max-height: 300px !important;
    }
    
    .contact-hero,
    .music-hero {
        min-height: 60vh;
        padding: 6rem 0 3rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding-top: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
    }
    
    .hero-image {
        order: -1;
        margin-top: 0;
    }
    
    .hero-photo {
        height: 350px;
        border-radius: 15px;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* ============================================
   MOBILE SECTIONS & TYPOGRAPHY
   ============================================ */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem !important;
        margin-bottom: 2rem;
    }
    
    .section-title::after {
        width: 60px;
        height: 3px;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    /* Section padding */
    section {
        padding: 3rem 0 !important;
    }
}

/* ============================================
   MOBILE GRID LAYOUTS
   ============================================ */
@media (max-width: 768px) {
    /* Links Grid - 2x2 for mobile */
    .links-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .link-card {
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .card-icon {
        font-size: 3rem;
    }
    
    /* Social Grid */
    .social-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .social-card {
        padding: 2rem 1.5rem;
    }
    
    /* News Grid */
    .news-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .news-card.featured {
        grid-column: span 1;
    }
    
    /* Collaborations Grid */
    .collaborations-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Achievements Grid */
    .achievements-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   MOBILE TIMELINE
   ============================================ */
@media (max-width: 768px) {
    .timeline-container {
        padding: 0 1rem;
        min-height: auto;
    }
    
    .timeline-connector {
        left: 1.5rem;
    }
    
    .timeline-item {
        max-width: 100% !important;
        margin-left: 3rem !important;
        margin-right: 0 !important;
        padding-left: 0;
        transform: none !important;
    }
    
    .timeline-item.animate-in {
        transform: none !important;
    }
    
    .timeline-item::before {
        left: -2.25rem;
    }
    
    .timeline-marker {
        position: relative;
        left: 0;
        right: 0;
        top: 0;
        text-align: left;
        margin-bottom: 1rem;
    }
    
    .marker-year {
        font-size: 1.3rem;
        padding: 0.5rem 1rem;
        transform: none !important;
    }
    
    .timeline-content {
        padding: 1.5rem;
        margin-top: 0;
    }
    
    .timeline-content h3 {
        font-size: 1.3rem;
    }
    
    .timeline-text {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        max-width: 100% !important;
        padding: 1rem 0 !important;
        margin-top: 1rem;
        text-align: left !important;
    }
    
    .timeline-text p {
        font-size: 1rem;
    }
}

/* ============================================
   MOBILE GALLERY
   ============================================ */
@media (max-width: 768px) {
    .gallery-hero {
        min-height: 250px !important;
        height: 250px !important;
        max-height: 250px !important;
    }
    
    .ticker-item {
        width: 120px;
    }
    
    .story-gallery {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: 100px;
        gap: 0.5rem;
        padding: 1.5rem 1rem;
    }
    
    .gallery-item {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border-width: 2px;
    }
    
    /* Simplified mobile gallery layout */
    .gallery-item:nth-child(1) { grid-column: 1 / span 3; grid-row: span 2; }
    .gallery-item:nth-child(2) { grid-column: 4 / span 3; grid-row: span 1; }
    .gallery-item:nth-child(3) { grid-column: 1 / span 2; grid-row: span 2; }
    .gallery-item:nth-child(4) { grid-column: 3 / span 2; grid-row: span 1; }
    .gallery-item:nth-child(5) { grid-column: 5 / span 2; grid-row: span 2; }
    .gallery-item:nth-child(6) { grid-column: 1 / span 3; grid-row: span 1; }
    .gallery-item:nth-child(7) { grid-column: 4 / span 3; grid-row: span 2; }
    .gallery-item:nth-child(8) { grid-column: 1 / span 2; grid-row: span 1; }
    
    .gallery-caption {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* ============================================
   MOBILE GALLERY MODAL
   ============================================ */
@media (max-width: 768px) {
    .modal-container {
        padding: 1rem;
    }
    
    .modal-image,
    .modal-video {
        max-height: 70vh;
    }
    
    .modal-caption {
        bottom: 1rem;
        font-size: 0.9rem;
        max-width: 90%;
        padding: 0.75rem 1rem;
    }
    
    .modal-counter {
        top: 1rem;
        right: 1rem;
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .modal-prev,
    .modal-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .modal-prev { left: 0.5rem; }
    .modal-next { right: 0.5rem; }
}

/* ============================================
   MOBILE MUSIC PAGE
   ============================================ */
@media (max-width: 768px) {
    .tracks-grid {
        grid-template-columns: 1fr !important;
    }
    
    .track-card {
        margin-bottom: 1.5rem;
    }
    
    .spotify-container {
        max-width: 100%;
    }
    
    .spotify-player {
        min-width: 100%;
        flex: 0 0 100%;
    }
    
    .scroll-btn {
        display: none;
    }
    
    .spotify-players {
        gap: 1rem;
    }
    
    /* Show History */
    .show-history-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        transform: none;
    }
    
    .show-item {
        font-size: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .show-item .show-date {
        width: auto;
        text-align: left;
        margin-right: 0;
        margin-bottom: 0.25rem;
    }
    
    .show-video {
        max-width: 100%;
        height: auto;
    }
}

/* ============================================
   MOBILE CONTACT PAGE
   ============================================ */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        font-size: 16px; /* Prevents iOS zoom */
    }
    
    .map-section {
        min-width: 100%;
        max-width: 100%;
    }
    
    .map-wrapper {
        height: 250px;
    }
    
    .map-info {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* Map Modal */
    .map-modal-content {
        max-height: 95vh;
        width: 95%;
    }
    
    .map-modal-wrapper {
        height: 300px;
    }
}

/* ============================================
   MOBILE ABOUT PAGE
   ============================================ */
@media (max-width: 768px) {
    .about-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        margin-top: 0;
        border-radius: 15px;
        margin-left: 0;
    }
    
    .about-image img {
        height: 300px;
    }
    
    .about-image .hero-photo {
        height: 300px !important;
    }
    
    .about-title {
        font-size: 2.5rem;
    }
    
    .about-description {
        font-size: 1rem;
    }
    
    /* Professional Materials */
    .professional-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .info-block {
        padding: 1.5rem;
    }
    
    .professional-buttons {
        flex-direction: column;
    }
    
    .clapboard-sticker {
        width: 80px;
        left: 1rem;
    }
}

/* ============================================
   MOBILE INTERVIEWS
   ============================================ */
@media (max-width: 768px) {
    .interviews-grid {
        gap: 1.5rem;
    }
    
    .interview-card {
        flex-direction: column !important;
        height: auto;
        max-width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .interview-image {
        width: 100%;
        min-width: 100%;
        height: 200px !important;
    }
    
    .interview-content {
        padding: 1.5rem;
    }
    
    .interview-content h3 {
        font-size: 1.3rem;
    }
}

/* ============================================
   MOBILE COLLABORATIONS
   ============================================ */
@media (max-width: 768px) {
    .collaboration-block {
        flex-direction: column;
        gap: 2rem;
    }
    
    .collaboration-block.reverse {
        flex-direction: column;
    }
    
    .collab-number {
        font-size: 4rem;
        text-align: center;
    }
    
    .collab-image-large {
        flex: 1;
        max-width: 100%;
    }
    
    .collaborations-grid-blue {
        grid-template-columns: 1fr;
    }
    
    .collaboration-card.featured-card {
        grid-row: auto;
    }
    
    .collaboration-image {
        height: 200px !important;
    }
}

/* ============================================
   MOBILE FOOTER
   ============================================ */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1.5rem !important;
        margin-top: 0 !important;
        background: var(--bg-tertiary);
        border-top: 1px solid var(--border-color);
    }
    
    .footer .container {
        padding: 0 1.5rem;
        max-width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        min-height: auto;
        align-items: center;
        text-align: center;
        position: relative;
        margin-bottom: 1rem;
    }
    
    .footer-logo {
        position: relative;
        padding-left: 0;
        top: auto;
        left: auto;
        transform: none;
        text-align: center;
        width: 100%;
    }
    
    .footer-logo h3 {
        font-size: 1.3rem;
        margin-bottom: 0.25rem;
    }
    
    .footer-logo p {
        font-size: 0.85rem;
        color: var(--text-secondary);
        margin: 0;
    }
    
    .footer-links {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .footer-links a {
        font-size: 0.95rem;
        padding: 0.25rem 0;
        color: var(--text-secondary);
        transition: color 0.3s ease;
    }
    
    [data-theme="dark"] .footer-links a {
        color: #ffffff;
    }
    
    .footer-links a:hover {
        color: var(--accent-color);
    }
    
    .footer-social {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        padding-right: 0;
        padding-left: 0;
        justify-content: center;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .footer-social a {
        width: 40px;
        height: 40px;
        background: var(--bg-secondary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .footer-social a i {
        font-size: 1rem;
    }
    
    .footer-social a:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .footer-bottom {
        text-align: center;
        padding-top: 1rem;
        margin-top: 1rem;
        border-top: 1px solid var(--border-color);
        font-size: 0.8rem;
        color: var(--text-muted);
    }
    
    .footer-sticker {
        display: none;
    }
}

/* ============================================
   MOBILE BACK TO TOP BUTTON
   ============================================ */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* ============================================
   MOBILE UTILITIES
   ============================================ */
@media (max-width: 768px) {
    /* Improved touch targets */
    button,
    .btn-primary,
    .btn-secondary,
    .nav-link,
    .social-card,
    .link-card {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Prevent text from being too small */
    body {
        font-size: 16px;
    }
    
    /* Better spacing for mobile */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    /* Hide decorative elements on mobile */
    .floating-sticker,
    .section-sticker,
    .clapboard-sticker {
        display: none;
    }
}

/* ============================================
   VERY SMALL SCREENS (< 375px)
   ============================================ */
@media (max-width: 375px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .section-title {
        font-size: 1.75rem !important;
    }
    
    .nav-logo h2 {
        font-size: 1.4rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Footer for very small screens */
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-content {
        gap: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-logo h3 {
        font-size: 1.2rem;
        margin-bottom: 0.2rem;
    }
    
    .footer-logo p {
        font-size: 0.8rem;
    }
    
    .footer-links {
        gap: 0.75rem;
        flex-direction: row;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .footer-social {
        gap: 0.6rem;
    }
    
    .footer-social a {
        width: 38px;
        height: 38px;
    }
    
    .footer-social a i {
        font-size: 0.95rem;
    }
    
    .footer-bottom {
        font-size: 0.75rem;
        padding-top: 0.75rem;
        margin-top: 0.75rem;
    }
}

/* ============================================
   LANDSCAPE ORIENTATION
   ============================================ */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-photo {
        max-height: 300px;
    }
}

/* ============================================
   TABLET SPECIFIC (768px - 1024px)
   ============================================ */
@media (min-width: 769px) and (max-width: 1024px) {
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .collaborations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    /* Footer for tablets */
    .footer-content {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }
    
    .footer-logo {
        position: relative;
        transform: none;
        padding-left: 0;
        text-align: center;
    }
    
    .footer-links {
        position: relative;
        transform: none;
        left: auto;
        top: auto;
    }
    
    .footer-social {
        position: relative;
        transform: none;
        right: auto;
        top: auto;
        padding-right: 0;
    }
}

/* ============================================
   MOBILE THEME TOGGLE
   ============================================ */
@media (max-width: 768px) {
    #theme-toggle,
    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

/* ============================================
   MOBILE PERFORMANCE OPTIMIZATIONS
   ============================================ */
@media (max-width: 768px) {
    /* Reduce animations on mobile for better performance */
    * {
        animation-duration: 0.3s !important;
        transition-duration: 0.3s !important;
    }
    
    /* Simplify shadows on mobile */
    .news-card,
    .collaboration-card,
    .link-card,
    .social-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .news-card:hover,
    .collaboration-card:hover,
    .link-card:hover,
    .social-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

/* ============================================
   MOBILE ACCESSIBILITY
   ============================================ */
@media (max-width: 768px) {
    /* Ensure focus states are visible on mobile */
    *:focus-visible {
        outline: 3px solid var(--accent-color);
        outline-offset: 3px;
    }
    
    /* Better contrast for mobile */
    .text-secondary {
        color: var(--text-secondary-accessible);
    }
}

/* ============================================
   MOBILE FORM IMPROVEMENTS
   ============================================ */
@media (max-width: 768px) {
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px !important; /* Prevents iOS zoom */
        padding: 0.9rem;
        border-radius: 8px;
    }
    
    .form-group textarea {
        min-height: 120px;
    }
}

/* ============================================
   ADDITIONAL MOBILE OPTIMIZATIONS
   ============================================ */

/* Performance - Reduce animations on mobile */
@media (max-width: 768px) {
    /* Reduce motion for better performance */
    * {
        animation-duration: 0.3s !important;
    }
    
    /* Optimize images */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }
    
    /* Improve text rendering */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    /* Better focus states for touch */
    *:focus-visible {
        outline: 2px solid var(--accent-color);
        outline-offset: 2px;
        border-radius: 4px;
    }
    
    /* Prevent text size adjustment */
    input, textarea, select {
        font-size: 16px !important;
    }
    
    /* Smooth scrolling */
    html {
        scroll-behavior: smooth;
    }
    
    /* Better button spacing */
    .btn-primary + .btn-secondary,
    .btn-secondary + .btn-primary {
        margin-top: 0.75rem;
    }
}

/* Tablet Optimizations */
@media (min-width: 481px) and (max-width: 768px) {
    .hero-content {
        gap: 3rem;
    }
    
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .social-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ============================================
   CLAUDE'S MOBILE-FIRST OPTIMIZATIONS
   ============================================ */

/* Better text rendering on mobile */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   MOBILE NAVIGATION - COMPLETE REDESIGN
   ============================================ */
@media (max-width: 992px) {
    .navbar {
        height: var(--mobile-nav-height);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: var(--z-navbar);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-container {
        height: 100%;
        padding: 0 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        overflow: visible !important;
    }
    
    .nav-logo h2 {
        font-size: 1rem;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip;
        padding-bottom: 2px !important;
    }
    
    /* Remove underline from logo on mobile */
    .nav-logo a,
    .nav-logo a:hover,
    .nav-logo a:focus,
    .nav-logo a:active {
        text-decoration: none !important;
    }
    
    .nav-logo a::after,
    .nav-logo a::before,
    .nav-logo h2::after,
    .nav-logo h2::before {
        display: none !important;
        content: none !important;
        width: 0 !important;
        height: 0 !important;
    }
    
    /* Mobile menu - slide from right */
    .nav-menu {
        position: fixed;
        top: var(--mobile-nav-height);
        right: -100%;
        width: 280px;
        height: calc(100vh - var(--mobile-nav-height));
        background: var(--bg-primary);
        padding: 2rem 1.5rem;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    /* Menu items styling */
    .nav-item {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        color: var(--text-primary);
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: var(--accent-color);
        transform: translateX(5px);
    }
    
    /* Theme toggle - compact */
    #theme-toggle,
    .theme-toggle {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        padding: 0;
        margin-right: 0.5rem;
    }
    
    /* Menu overlay */
    .nav-overlay {
        position: fixed;
        top: var(--mobile-nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 998;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* ============================================
   MOBILE HERO SECTION - STUNNING DESIGN
   ============================================ */
@media (max-width: 768px) {
    .hero {
        min-height: calc(100vh - var(--mobile-nav-height));
        padding: calc(var(--mobile-nav-height) + 2rem) 1rem 2rem;
        display: flex;
        align-items: center;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0;
    }
    
    /* Hero text animations for mobile */
    .hero-text {
        order: 2; /* Image first on mobile */
    }
    
    .hero-title {
        font-size: var(--mobile-h1);
        line-height: 1.1;
        margin-bottom: 1rem;
        letter-spacing: -0.02em;
    }
    
    .title-line {
        display: block;
        animation: slideInFromLeft 0.6s ease-out both;
    }
    
    .title-line:nth-child(2) {
        animation-delay: 0.2s;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    
    /* Mobile buttons - stack vertically */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        justify-content: center;
        min-height: var(--touch-target);
    }
    
    /* Hero image - optimized for mobile */
    .hero-image {
        order: 1; /* Show first */
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        animation: fadeIn 0.8s ease-out;
    }
    
    .image-container {
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    
    .hero-photo {
        width: 100%;
        height: auto;
        max-height: 450px;
        object-fit: cover;
    }
}

/* Extra small phones */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-image {
        max-width: 100%;
    }
    
    .hero-photo {
        max-height: 350px;
    }
}

/* ============================================
   MOBILE SECTIONS - CARD LAYOUTS
   ============================================ */
@media (max-width: 768px) {
    /* Section padding */
    section {
        padding: var(--mobile-section-padding);
    }
    
    .container {
        padding: 0 var(--mobile-padding);
    }
    
    .section-title {
        font-size: var(--mobile-h2);
        margin-bottom: 3.5rem !important;
        text-align: center;
    }
    
    /* Increase spacing for Explore and Follow Tali sections specifically */
    .quick-links .section-title,
    .social-integration .section-title {
        margin-bottom: 3.5rem !important;
    }
    
    .section-title::after {
        width: 60px;
        height: 3px;
    }
    
    /* Quick links - 2x2 grid with square cards for mobile */
    .links-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
        max-width: 850px;
        margin: 0 auto;
    }
    
    .links-grid .link-card,
    .quick-links .link-card,
    .link-card {
        padding: 0.75rem 1.5rem 1.5rem 1.5rem !important;
        border-radius: 16px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 0 !important;
        aspect-ratio: 1 !important;
        min-height: 180px !important;
        max-height: 200px !important;
        width: 100% !important;
        height: auto !important;
        justify-content: flex-start !important;
    }
    
    .links-grid .link-card .card-icon,
    .quick-links .link-card .card-icon,
    .link-card .card-icon,
    .card-icon {
        font-size: 1.75rem !important;
        margin-bottom: 0.15rem !important;
        flex-shrink: 0 !important;
        margin-top: 0 !important;
    }
    
    .links-grid .link-card h3,
    .quick-links .link-card h3,
    .link-card h3 {
        font-size: 1.25rem !important;
        margin-bottom: 1rem !important;
        min-height: auto !important;
        line-height: 1.2 !important;
        margin-top: 0.5rem !important;
        padding: 0 !important;
    }
    
    .links-grid .link-card p,
    .quick-links .link-card p,
    .link-card p {
        font-size: 0.95rem !important;
        margin: 0 !important;
        margin-top: 0.1rem !important;
        margin-bottom: 0 !important;
        min-height: auto !important;
        line-height: 1.3 !important;
        overflow: hidden !important;
        max-height: calc(1.3em * 2) !important;
        display: block !important;
        padding: 0 !important;
    }
    
    /* Change text for Music card on mobile */
    .link-card[href="music.html"] p {
        font-size: 0 !important;
        position: relative;
        max-height: none !important;
        margin: 0 !important;
        margin-top: 0.1rem !important;
    }
    
    .link-card[href="music.html"] p::before {
        content: "Listen to Tali's latest tracks";
        font-size: 0.95rem !important;
        display: block !important;
        line-height: 1.3 !important;
        position: relative;
        visibility: visible;
        opacity: 1;
        max-height: calc(1.3em * 2);
        overflow: hidden;
        margin: 0 !important;
        margin-top: 0 !important;
    }
    
    /* Change text for Collaborations card on mobile */
    .link-card[href="Collaborations.html"] h3 {
        font-size: 0 !important;
        margin: 0;
    }
    
    .link-card[href="Collaborations.html"] h3::before {
        content: "Collaborations";
        font-size: 1.25rem;
        display: block;
        line-height: 1.2;
        font-weight: 700;
        margin-top: 0.5rem;
    }
    
    /* Social cards - 2x2 grid with square cards for mobile (same as explore section) */
    .social-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
        max-width: 850px;
        margin: 0 auto;
    }
    
    .social-grid .social-card,
    .social-integration .social-card,
    .social-card {
        padding: 0.75rem 1.5rem 1.5rem 1.5rem !important;
        border-radius: 16px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 0 !important;
        aspect-ratio: 1 !important;
        min-height: 180px !important;
        max-height: 200px !important;
        width: 100% !important;
        height: auto !important;
        justify-content: flex-start !important;
    }
    
    .social-grid .social-card .social-icon,
    .social-integration .social-card .social-icon,
    .social-card .social-icon,
    .social-icon {
        font-size: 1.75rem !important;
        margin-bottom: 0.15rem !important;
        flex-shrink: 0 !important;
        margin-top: 0 !important;
    }
    
    .social-grid .social-card h3,
    .social-integration .social-card h3,
    .social-card h3 {
        font-size: 1.15rem !important;
        margin-bottom: 0.1rem !important;
        min-height: auto !important;
        line-height: 1.2 !important;
        margin-top: 0.2rem !important;
        padding: 0 !important;
    }
    
    .social-grid .social-card p,
    .social-integration .social-card p,
    .social-card p {
        font-size: 0.8rem !important;
        margin: 0 !important;
        margin-top: -0.4rem !important;
        margin-bottom: 0 !important;
        min-height: auto !important;
        line-height: 1.3 !important;
        overflow: hidden !important;
        max-height: calc(1.3em * 2) !important;
        display: block !important;
        padding: 0 !important;
    }
    
    .social-grid .social-card .social-link,
    .social-integration .social-card .social-link,
    .social-card .social-link {
        font-size: 1rem !important;
        font-weight: 600 !important;
        margin-top: 1.5rem !important;
        display: block !important;
    }
}

/* ============================================
   MOBILE GALLERY - PINTEREST STYLE
   ============================================ */
@media (max-width: 768px) {
    /* Gallery hero - ticker */
    .gallery-hero {
        min-height: 250px !important;
        height: 250px !important;
        max-height: 250px !important;
    }
    
    .ticker-item {
        width: 120px;
    }
    
    .gallery-title {
        font-size: var(--mobile-h1);
    }
    
    /* Story gallery - masonry on mobile */
    .story-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .gallery-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        border-radius: 8px;
        transform: rotate(0deg) !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        max-width: 100% !important;
        min-height: 180px !important;
    }
    
    /* Make some items taller for variety */
    .gallery-item:nth-child(3n) {
        grid-row: span 2;
        min-height: 240px !important;
    }
    
    .gallery-item:hover {
        transform: scale(1.02) !important;
    }
    
    .gallery-caption {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    /* Moments grid - 2 columns */
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .photo-item {
        border-radius: 8px;
    }
}

/* ============================================
   MOBILE TIMELINE - SIMPLIFIED
   ============================================ */
@media (max-width: 768px) {
    .timeline-container {
        min-height: auto;
        padding: 0 1rem;
    }
    
    .timeline-connector {
        left: 1.5rem;
    }
    
    .timeline-line-vertical {
        width: 2px;
    }
    
    .timeline-item {
        max-width: 100% !important;
        padding-left: 3rem;
        margin-bottom: 2.5rem;
        transform: translateY(0) rotate(0deg) !important;
    }
    
    .timeline-item.animate-in {
        transform: translateY(0) rotate(0deg) !important;
    }
    
    /* Timeline marker */
    .timeline-marker {
        position: absolute;
        left: -0.5rem;
        top: 0;
        text-align: left;
    }
    
    .marker-year {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
        transform: rotate(0deg) !important;
    }
    
    .timeline-item:hover .marker-year {
        transform: rotate(0deg) scale(1.05) !important;
    }
    
    /* Timeline content */
    .timeline-content {
        padding: 1.25rem;
        margin-top: 0;
        border-radius: 12px;
    }
    
    .timeline-content h3 {
        font-size: 1.3rem;
    }
    
    /* Timeline text below card */
    .timeline-text {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        max-width: 100% !important;
        padding: 1rem 0 !important;
        text-align: left !important;
    }
    
    .timeline-text p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .timeline-image {
        border-radius: 8px;
        margin-top: 1rem;
    }
}

/* ============================================
   MOBILE MUSIC PAGE - SPOTIFY OPTIMIZED
   ============================================ */
@media (max-width: 768px) {
    /* Featured tracks - single column */
    .tracks-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .track-card {
        border-radius: 12px;
    }
    
    .track-card.featured {
        grid-column: 1;
    }
    
    .track-image {
        height: 200px;
    }
    
    .track-info h3 {
        font-size: 1.4rem;
    }
    
    /* Spotify players - horizontal scroll */
    .spotify-section {
        padding: 2rem 0;
    }
    
    .spotify-container {
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .spotify-players {
        gap: 1rem;
        padding: 0.5rem 0;
    }
    
    .spotify-player {
        flex: 0 0 280px;
        min-width: 280px;
        padding: 1rem;
    }
    
    .scroll-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Show history - optimized */
    .show-history-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        transform: none;
    }
    
    .show-item {
        font-size: 1rem;
        flex-wrap: wrap;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .show-item .show-date {
        width: auto;
        margin-right: 1rem;
        font-size: 0.9rem;
    }
    
    .show-item .show-name {
        font-size: 1rem;
        flex: 1;
    }
}

/* ============================================
   MOBILE NEWS PAGE - CARD STACK
   ============================================ */
@media (max-width: 768px) {
    .news-hero {
        padding: calc(var(--mobile-nav-height) + 2rem) 0 2rem;
        min-height: 250px;
    }
    
    .news-title {
        font-size: var(--mobile-h1);
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-card.featured {
        grid-column: 1;
    }
    
    .news-image {
        height: 200px;
    }
    
    .news-content {
        padding: 1.5rem;
    }
    
    .news-content h2 {
        font-size: 1.3rem;
    }
    
    /* Interviews - single column */
    .interviews-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .interview-card {
        flex-direction: column !important;
        height: auto;
        max-width: 100%;
        margin: 0 !important;
    }
    
    .interview-image {
        width: 100%;
        height: 200px;
        min-width: 100%;
    }
    
    .interview-content {
        padding: 1.5rem;
    }
}

/* ============================================
   MOBILE CONTACT PAGE - FORM OPTIMIZATION
   ============================================ */
@media (max-width: 768px) {
    .contact-hero {
        padding: calc(var(--mobile-nav-height) + 2rem) 0 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Form styling */
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 16px !important; /* Prevent iOS zoom */
        padding: 1rem;
        border-radius: 8px;
        min-height: var(--touch-target);
    }
    
    .contact-form textarea {
        min-height: 150px;
    }
    
    .contact-form .btn-primary {
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    /* Info items */
    .info-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        background: var(--bg-secondary);
        border-radius: 12px;
    }
    
    .info-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    /* Map */
    .contact-info-with-map {
        flex-direction: column;
        gap: 2rem;
    }
    
    .map-section {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
    
    .map-wrapper {
        height: 300px;
        border-radius: 12px;
    }
}

/* ============================================
   MOBILE MODALS - FULL SCREEN
   ============================================ */
@media (max-width: 768px) {
    /* Gallery modal */
    .gallery-modal {
        padding: 0;
    }
    
    .modal-container {
        padding: 1rem;
        max-width: 100%;
    }
    
    .modal-image-wrapper {
        max-width: 100%;
        max-height: 85vh;
    }
    
    .modal-image,
    .modal-video {
        max-width: 100%;
        max-height: 80vh;
        border-radius: 8px;
    }
    
    .modal-caption {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        transform: none;
        max-width: calc(100% - 2rem);
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    .modal-counter {
        top: 1rem;
        right: 1rem;
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .modal-prev,
    .modal-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .modal-prev {
        left: 0.5rem;
    }
    
    .modal-next {
        right: 0.5rem;
    }
    
    /* Map modal */
    .map-modal {
        padding: 0.5rem;
    }
    
    .map-modal-content {
        border-radius: 12px;
        max-height: 95vh;
    }
    
    .map-modal-wrapper {
        height: 350px;
    }
}

/* ============================================
   MOBILE PRELOADER - OPTIMIZED
   ============================================ */
@media (max-width: 768px) {
    .preloader-logo h2 {
        font-size: 2rem;
        letter-spacing: 0.05em;
    }
}

@media (max-width: 375px) {
    .preloader-logo h2 {
        font-size: 1.6rem;
    }
}

/* ============================================
   MOBILE BACK TO TOP BUTTON
   ============================================ */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}

/* ============================================
   MOBILE TOUCH IMPROVEMENTS
   ============================================ */
/* Improve tap targets */
@media (max-width: 768px) {
    a,
    button,
    .btn-primary,
    .btn-secondary,
    .nav-link {
        min-height: var(--touch-target);
        min-width: var(--touch-target);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Remove hover effects on touch devices */
    @media (hover: none) {
        .link-card:hover,
        .social-card:hover,
        .gallery-item:hover,
        .timeline-item:hover {
            transform: none !important;
        }
        
        /* But keep active states */
        .link-card:active,
        .social-card:active {
            transform: scale(0.98);
        }
    }
}

/* ============================================
   LANDSCAPE MODE FIXES
   ============================================ */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: calc(var(--mobile-nav-height) + 1rem) 1rem 1rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: center;
    }
    
    .hero-text {
        order: 1;
        text-align: left;
    }
    
    .hero-image {
        order: 2;
        max-width: 300px;
    }
    
    .hero-photo {
        max-height: 300px;
    }
    
    .hero-buttons {
        flex-direction: row;
        max-width: 100%;
        margin: 0;
    }
}

/* ============================================
   PERFORMANCE - MOBILE SPECIFIC
   ============================================ */
@media (max-width: 768px) {
    /* Disable complex animations on mobile */
    @media (prefers-reduced-motion: no-preference) {
        .timeline-item,
        .gallery-item {
            animation-duration: 0.4s !important;
        }
    }
    
    /* Simplify shadows on mobile */
    .card,
    .link-card,
    .social-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .card:hover,
    .link-card:active,
    .social-card:active {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

/* ============================================
   MOBILE-ONLY UTILITIES
   ============================================ */
/* Hide on mobile */
.hide-mobile {
    display: none !important;
}

/* Show only on mobile */
.show-mobile {
    display: block !important;
}

/* Center on mobile */
.center-mobile {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Stack on mobile */
.stack-mobile {
    flex-direction: column !important;
}

/* Full width on mobile */
.full-mobile {
    width: 100% !important;
    max-width: 100% !important;
}

/* ============================================
   END OF MOBILE STYLES
   ============================================ */

/* ============================================
   HERO SECTION MOBILE ORDER FIX - MAXIMUM PRIORITY
   ============================================ */

/* Mobile: Image first, text second - for all mobile sizes */
@media (max-width: 992px) {
    .hero-content {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        grid: none !important;
    }
    
    .hero-content .hero-image {
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        grid-column: unset !important;
        grid-row: unset !important;
    }
    
    .hero-content .hero-text {
        order: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        grid-column: unset !important;
        grid-row: unset !important;
    }
    
    .hero-image {
        order: 1 !important;
    }
    
    .hero-text {
        order: 2 !important;
    }
}

/* ============================================
   SLOW DOWN ALL ANIMATIONS (EXCEPT TICKER)
   ============================================ */
*:not(.ticker-track):not(.ticker-item):not(.ticker-item *) {
    animation-duration: calc(var(--animation-duration, 1s) * 1.5) !important;
    transition-duration: calc(var(--transition-duration, 0.3s) * 1.5) !important;
}

/* Specific slower animations */
.menu-overlay {
    transition: top 1.8s ease, opacity 1.8s ease !important; /* 1.2s * 1.5 */
}

.menu-links li {
    transition: all 1.8s ease !important; /* 1.2s * 1.5 */
}

.menu-links a {
    transition: all 1.2s ease !important; /* 0.8s * 1.5 */
}

.hamburger-btn span {
    transition: all 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important; /* 1s * 1.5 */
}

.hamburger-btn {
    transition: all 1.2s ease !important; /* 0.8s * 1.5 */
}

/* Keep ticker at original speed */
.ticker-track,
.ticker-item,
.ticker-item * {
    animation-duration: 400s !important;
    transition-duration: initial !important;
}

/* ============================================
   MODERN HAMBURGER MENU - MOBILE ONLY
   ============================================ */

/* Hide menu overlay on desktop */
@media (min-width: 993px) {
    .menu-overlay {
        display: none !important;
    }
    
    /* Hide hamburger on desktop only, not mobile */
    .hamburger-btn {
        display: none !important;
    }
}

/* Override: Show hamburger on mobile */
@media screen and (max-width: 768px) {
    .hamburger-btn {
        display: flex !important;
    }
}

@media (max-width: 992px) {
    /* Hide old hamburger structure */
    .hamburger-box,
    .hamburger-inner {
        display: none !important;
    }
    
    /* Hide desktop nav-menu on mobile */
    .nav-menu {
        display: none !important;
    }
    
    /* New Modern Hamburger Button - Force visibility on gallery and all pages */
    .hamburger-btn {
        position: relative;
        width: 50px;
        height: 50px;
        top: auto;
        right: auto;
        background: transparent;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        border-radius: 0;
        cursor: pointer;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        z-index: 10000 !important;
        transition: all 0.8s ease;
        padding: 0;
        margin: 0 !important;
        align-self: center;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    /* Ensure nav-right is visible on gallery page */
    .nav-right {
        z-index: 10001 !important;
        position: relative !important;
    }
    
    /* Force navbar visibility on ALL pages - ABOVE EVERYTHING */
    .navbar {
        z-index: 99999 !important;
        position: fixed !important;
        background: rgba(255, 255, 255, 0.98) !important;
        transition: background 0.35s ease-out, background-color 0.35s ease-out, border-color 0.35s ease-out, box-shadow 0.35s ease-out !important;
    }
    
    [data-theme="dark"] .navbar {
        background: rgba(15, 23, 42, 0.98) !important;
        transition: background 0.35s ease-out, background-color 0.35s ease-out, border-color 0.35s ease-out, box-shadow 0.35s ease-out !important;
    }
    
    /* Ensure theme toggle and hamburger are visible on ALL pages - MAXIMUM PRIORITY */
    #theme-toggle,
    .theme-toggle,
    .theme-switcher {
        z-index: 100000 !important;
        position: relative !important;
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
        pointer-events: auto !important;
    }
    
    .hamburger-btn {
        z-index: 100000 !important;
        position: relative !important;
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
        pointer-events: auto !important;
    }
    
    /* Make sure nav-container doesn't hide children */
    .nav-container {
        z-index: 99998 !important;
        position: relative !important;
    }
    
    /* Ensure nav-right container is visible on ALL pages */
    .nav-right {
        z-index: 100001 !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* GLOBAL FIX: Force visibility on ALL pages - no exceptions */
    .nav-right,
    body .nav-right,
    html .nav-right,
    .navbar .nav-right {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 100001 !important;
    }
    
    #theme-toggle,
    .theme-toggle,
    .theme-switcher,
    .hamburger-btn,
    body #theme-toggle,
    body .theme-toggle,
    body .theme-switcher,
    body .hamburger-btn,
    .navbar #theme-toggle,
    .navbar .theme-toggle,
    .navbar .theme-switcher,
    .navbar .hamburger-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 100002 !important;
        pointer-events: auto !important;
    }
    
    .hamburger-btn:hover {
        opacity: 0.7;
    }
    
    .hamburger-btn span {
        width: 28px;
        height: 1px;
        background: var(--text-primary);
        border-radius: 0;
        transition: all 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        transform-origin: center;
        will-change: transform;
        display: block;
    }
    
    /* Active state - Twirl animation */
    .hamburger-btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(135deg);
    }
    
    .hamburger-btn.active span:nth-child(2) {
        transform: rotate(225deg) scaleX(0);
        opacity: 0;
    }
    
    .hamburger-btn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-135deg);
    }
    
    /* Menu Overlay */
    .menu-overlay {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        z-index: 999;
        transition: top 1.2s ease, opacity 1.2s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        opacity: 0;
        overflow-y: auto;
    }
    
    [data-theme="dark"] .menu-overlay {
        background: rgba(15, 23, 42, 0.95);
    }
    
    .menu-overlay.active {
        top: 0;
        opacity: 1;
    }
    
    /* Menu Content */
    .menu-content {
        padding: 120px 50px 50px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .menu-links {
        list-style: none;
        text-align: center;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .menu-links li {
        margin-bottom: 30px;
        opacity: 0;
        transform: translateY(-20px);
        transition: all 1.2s ease;
    }
    
    .menu-overlay.active .menu-links li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .menu-overlay.active .menu-links li:nth-child(1) { transition-delay: 0.4s; }
    .menu-overlay.active .menu-links li:nth-child(2) { transition-delay: 0.6s; }
    .menu-overlay.active .menu-links li:nth-child(3) { transition-delay: 0.8s; }
    .menu-overlay.active .menu-links li:nth-child(4) { transition-delay: 1s; }
    .menu-overlay.active .menu-links li:nth-child(5) { transition-delay: 1.2s; }
    .menu-overlay.active .menu-links li:nth-child(6) { transition-delay: 1.4s; }
    .menu-overlay.active .menu-links li:nth-child(7) { transition-delay: 1.6s; }
    
    .menu-links a {
        font-size: 36px;
        font-weight: 300;
        color: var(--text-primary);
        text-decoration: none;
        display: inline-block;
        position: relative;
        transition: all 0.8s ease;
        letter-spacing: -0.5px;
        font-family: 'Inter', sans-serif;
    }
    
    .menu-links a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--accent-color), var(--accent-color));
        transition: width 0.8s ease;
    }
    
    .menu-links a:hover {
        color: var(--accent-color);
        transform: translateX(10px);
    }
    
    .menu-links a:hover::after {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hamburger-btn {
        margin: 0 -8px 0 0;
    }
    
    .menu-content {
        padding: 100px 30px 30px;
    }
    
    .menu-links a {
        font-size: 28px;
    }
}

/* ============================================
   CRITICAL FIX: Force mobile navigation buttons to be visible
   Based on Claude's recommendations
   ============================================ */
@media screen and (max-width: 768px) {
    /* Container for hamburger + theme toggle */
    .nav-right {
        display: flex !important;
        align-items: center;
        gap: 4px !important; /* Changed from 8px to 4px - even closer */
        position: relative;
        z-index: 1000;
        margin-left: auto !important;
        margin-right: 0 !important;
        transform: translateX(7rem) !important; /* Move to absolute RIGHT corner */
        overflow: visible !important;
    }
    
    /* Ensure theme toggle and hamburger are same height and aligned */
    .theme-switcher,
    .theme-toggle,
    #theme-toggle,
    .hamburger-btn,
    #hamburgerBtn {
        height: 40px !important;
        width: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
        vertical-align: middle !important;
    }
    
    /* Theme toggle button */
    .theme-switcher {
        display: block !important;
        z-index: 1001;
    }
    
    .theme-toggle,
    #theme-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
        font-size: 20px;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Hamburger menu button - FORCE VISIBILITY */
    .hamburger-btn {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 6px !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        background: transparent !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        cursor: pointer !important;
        position: relative !important;
        z-index: 1001 !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }
    
    /* Hamburger lines */
    .hamburger-btn span {
        width: 28px;
        height: 1px;
        background: #000;
        transition: all 1s ease;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Hamburger active state (X animation) */
    .hamburger-btn.active {
        gap: 0 !important;
        overflow: visible !important;
        padding: 2px !important; /* Add padding to prevent clipping */
    }
    
    .hamburger-btn.active span:nth-child(1) {
        width: 18px !important;
        transform: translateY(0px) rotate(45deg);
    }
    
    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    
    .hamburger-btn.active span:nth-child(3) {
        width: 18px !important;
        transform: translateY(0px) rotate(-45deg);
    }
    
    /* Hide desktop menu */
    .nav-menu {
        display: none !important;
    }
    
    /* Ensure navbar is visible and properly positioned */
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 999 !important;
        background: var(--bg-primary, #fff) !important;
    }
    
    .nav-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    /* Move logo text position on mobile */
    .nav-logo {
        margin-left: 5px !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
        text-align: left !important;
    }
    
    .nav-logo h2 {
        text-align: left !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
    
    /* Menu overlay */
    .menu-overlay {
        position: fixed !important;
        top: -100% !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        z-index: 998 !important;
        transition: top 1.2s ease, opacity 1.2s ease !important;
        opacity: 0 !important;
    }
    
    .menu-overlay.active {
        top: 0 !important;
        opacity: 1 !important;
    }
    
    /* Fix hero section on mobile - ensure proper spacing and layout */
    .hero {
        padding-top: 100px !important;
        min-height: calc(100vh - 60px) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .hero-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
        padding: 2rem 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        grid: none !important;
    }
    
    .hero-image {
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        grid-column: unset !important;
        grid-row: unset !important;
        margin: 0 auto !important;
    }
    
    .hero-text {
        order: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        display: block !important;
        grid-column: unset !important;
        grid-row: unset !important;
        margin-top: -5rem !important; /* Move text higher */
        transform: translateY(0) !important; /* Reset transform */
    }
    
    /* Hero image container - full width to cover white spaces */
    .hero-image {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        margin-top: -50px !important; /* Move picture much higher - override margin: 0 */
    }
    
    .image-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }
    
    .hero-photo {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 500px !important; /* Make picture bigger */
        object-fit: cover !important;
        object-position: center 50% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        transform: translateY(20%) scale(1.1) !important; /* Shift image content DOWN and make bigger */
    }
    
    /* FORCE REMOVE ALL BORDERS FROM HAMBURGER BUTTON - MAXIMUM SPECIFICITY */
    .hamburger-btn,
    button.hamburger-btn,
    .nav-right .hamburger-btn,
    .navbar .hamburger-btn,
    .nav-container .nav-right .hamburger-btn,
    .navbar .nav-container .nav-right .hamburger-btn,
    #hamburgerBtn,
    button#hamburgerBtn,
    .navbar button.hamburger-btn,
    .nav-container button.hamburger-btn {
        border: 0 !important;
        border-width: 0 !important;
        border-style: none !important;
        border-color: transparent !important;
        border-top: 0 !important;
        border-right: 0 !important;
        border-bottom: 0 !important;
        border-left: 0 !important;
        border-top-width: 0 !important;
        border-right-width: 0 !important;
        border-bottom-width: 0 !important;
        border-left-width: 0 !important;
        outline: 0 !important;
        outline-width: 0 !important;
        outline-style: none !important;
        outline-color: transparent !important;
        box-shadow: none !important;
        -webkit-box-shadow: none !important;
        -moz-box-shadow: none !important;
        text-shadow: none !important;
    }
    
    /* Also remove borders from any pseudo-elements */
    .hamburger-btn::before,
    .hamburger-btn::after,
    button.hamburger-btn::before,
    button.hamburger-btn::after,
    #hamburgerBtn::before,
    #hamburgerBtn::after {
        border: 0 !important;
        border-width: 0 !important;
        outline: 0 !important;
        box-shadow: none !important;
        content: none !important;
    }
    
    /* Check if border is on nav-right container or wrapper */
    .nav-right .hamburger-btn,
    .nav-right button.hamburger-btn {
        border: 0 !important;
        outline: 0 !important;
    }
}

/* Dark mode support */
[data-theme="dark"] .hamburger-btn span {
    background: #fff !important;
}

[data-theme="dark"] .theme-toggle,
[data-theme="dark"] #theme-toggle {
    color: #fff !important;
}

[data-theme="dark"] .menu-overlay {
    background: rgba(0, 0, 0, 0.95) !important;
}

/* ============================================
   TICKER ANIMATION SPEED - ABSOLUTE PRIORITY
   Force correct ticker speed regardless of any other rules
   ============================================ */
.ticker-track {
    animation: ticker-scroll 400s linear infinite !important;
    animation-duration: 400s !important;
    animation-iteration-count: infinite !important;
    animation-timing-function: linear !important;
}

.ticker-track * {
    animation-duration: 400s !important;
    animation-iteration-count: infinite !important;
}

@media screen and (max-width: 768px) {
    .ticker-track {
        animation: ticker-scroll 200s linear infinite !important;
        animation-duration: 200s !important;
        animation-iteration-count: infinite !important;
        animation-timing-function: linear !important;
    }
    
    .ticker-track * {
        animation-duration: 200s !important;
        animation-iteration-count: infinite !important;
    }
}

/* ============================================
   HIDE HEADER ON BIRTHDAY PAGE - DESKTOP
   ============================================ */
body:has(.birthday-hero) .navbar,
body:has(.birthday-hero) .menu-overlay {
    display: none !important;
    visibility: hidden !important;
}

/* Override any global animation rules for ticker */
*:not(.ticker-track):not(.ticker-item):not(.ticker-item *) .ticker-track,
*:not(.ticker-track):not(.ticker-item):not(.ticker-item *) .ticker-track * {
    animation-duration: 400s !important;
    animation-iteration-count: infinite !important;
}

@media screen and (max-width: 768px) {
    *:not(.ticker-track):not(.ticker-item):not(.ticker-item *) .ticker-track,
    *:not(.ticker-track):not(.ticker-item):not(.ticker-item *) .ticker-track * {
        animation-duration: 200s !important;
        animation-iteration-count: infinite !important;
    }
}

/* ============================================
   MOBILE NAVIGATION FIX - CRITICAL
   Add this to the END of styles_new.css
   Based on Claude's recommendations - MAXIMUM PRIORITY
   ============================================ */

/* MOBILE ONLY - Override everything */
@media screen and (max-width: 768px) {
    
    /* ===== NAV CONTAINER ===== */
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 999 !important;
        background: var(--bg-color, var(--bg-primary, #fff)) !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    }
    
    .nav-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 15px 20px !important;
    }
    
    /* ===== HIDE DESKTOP MENU ===== */
    .nav-menu {
        display: none !important;
    }
    
    /* ===== NAV RIGHT CONTAINER ===== */
    .nav-right {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        position: relative !important;
        z-index: 1000 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* ===== THEME TOGGLE BUTTON ===== */
    .theme-switcher,
    .nav-right .theme-switcher {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 1001 !important;
    }
    
    #theme-toggle,
    .theme-toggle,
    button#theme-toggle,
    button.theme-toggle,
    .theme-switcher button,
    .nav-right #theme-toggle,
    .nav-right .theme-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        font-size: 20px !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        z-index: 1001 !important;
        color: var(--text-color, var(--text-primary, #000)) !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* ===== HAMBURGER BUTTON ===== */
    .hamburger-btn,
    button.hamburger-btn,
    #hamburgerBtn,
    .nav-right .hamburger-btn,
    .nav-right button.hamburger-btn {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 6px !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        position: relative !important;
        z-index: 1001 !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* ===== HAMBURGER LINES ===== */
    .hamburger-btn span,
    button.hamburger-btn span,
    #hamburgerBtn span {
        width: 28px !important;
        height: 1px !important;
        background: var(--text-color, var(--text-primary, #000)) !important;
        border-radius: 0 !important;
        transition: all 0.6s ease !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
    }
    
    /* ===== HAMBURGER ACTIVE STATE (X) ===== */
    .hamburger-btn.active span:nth-child(1),
    button.hamburger-btn.active span:nth-child(1),
    #hamburgerBtn.active span:nth-child(1) {
        width: 18px !important;
        transform: translateY(0px) rotate(45deg) !important;
    }
    
    .hamburger-btn.active span:nth-child(2),
    button.hamburger-btn.active span:nth-child(2),
    #hamburgerBtn.active span:nth-child(2) {
        opacity: 0 !important;
        transform: scaleX(0) !important;
    }
    
    .hamburger-btn.active span:nth-child(3),
    button.hamburger-btn.active span:nth-child(3),
    #hamburgerBtn.active span:nth-child(3) {
        width: 18px !important;
        transform: translateY(0px) rotate(-45deg) !important;
    }
    
    /* ===== MENU OVERLAY ===== */
    .menu-overlay {
        position: fixed !important;
        top: -100% !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        z-index: 998 !important;
        transition: top 0.8s ease, opacity 0.8s ease !important;
        opacity: 0 !important;
    }
    
    .menu-overlay.active {
        top: 0 !important;
        opacity: 1 !important;
    }
    
    .menu-content {
        padding: 100px 40px 40px !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .menu-links {
        list-style: none !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .menu-links li {
        margin-bottom: 25px !important;
        opacity: 0 !important;
        transform: translateY(-20px) !important;
        transition: all 0.6s ease !important;
    }
    
    .menu-overlay.active .menu-links li {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    .menu-links a {
        font-size: 28px !important;
        color: var(--text-color, var(--text-primary, #000)) !important;
        text-decoration: none !important;
        font-weight: 300 !important;
    }
    
    /* ===== LOGO POSITION - A BIT TO THE RIGHT ===== */
    .nav-logo {
        margin-left: 5px !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
        text-align: left !important;
    }
    
    .nav-logo h2 {
        text-align: left !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
}

/* ===== DARK MODE SUPPORT ===== */
[data-theme="dark"] .hamburger-btn span,
[data-theme="dark"] button.hamburger-btn span,
[data-theme="dark"] #hamburgerBtn span {
    background: #fff !important;
}

[data-theme="dark"] #theme-toggle,
[data-theme="dark"] .theme-toggle {
    color: #fff !important;
}

[data-theme="dark"] .menu-overlay {
    background: rgba(0, 0, 0, 0.98) !important;
}

[data-theme="dark"] .menu-links a {
    color: #fff !important;
}

/* ===== END OF FIX ===== */

/* FINAL MOBILE FIX - MUST BE LAST */
@media screen and (max-width: 768px) {
    /* Fix margin and positioning for hamburger and theme toggle on ALL pages */
    .hamburger-btn, 
    #hamburgerBtn,
    button.hamburger-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 10000 !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        bottom: auto !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }
    
    .hamburger-btn span {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    #theme-toggle, 
    .theme-toggle,
    button#theme-toggle,
    button.theme-toggle,
    .theme-switcher button {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 10000 !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        bottom: auto !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }
    
    /* Only apply fixed position closer to logo on Music, Gallery, Collaborations */
    body:has(.spotify-section) .navbar .nav-right,
    body:has(.gallery-hero) .navbar .nav-right,
    body:has(.gallery-ticker-wrapper) .navbar .nav-right,
    body:has(.collaborations-hero) .navbar .nav-right {
        display: flex !important;
        z-index: 10000 !important;
        margin: 0 !important;
        padding: 0 !important;
        position: fixed !important;
        top: 15px !important;
        right: auto !important;
        left: 250px !important; /* Adjusted distance from logo - Music, Gallery, Collaborations */
        align-items: center !important;
        gap: 12px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        padding: 5px !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    }
    
    .theme-switcher {
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
    }
    
    /* Override ALL conflicting rules for hamburger and theme toggle */
    .navbar .nav-container .nav-right .hamburger-btn,
    .navbar .nav-container .nav-right #hamburgerBtn,
    .navbar .nav-right .hamburger-btn,
    .nav-container .nav-right .hamburger-btn {
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        bottom: auto !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
    }
    
    .navbar .nav-container .nav-right .theme-toggle,
    .navbar .nav-container .nav-right #theme-toggle,
    .navbar .nav-right .theme-toggle,
    .nav-container .nav-right .theme-toggle {
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        bottom: auto !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
    }
}

/* TICKER FIX - Remove white space at top */
.gallery-ticker-wrapper {
    overflow: hidden !important;
}

.ticker-item {
    overflow: hidden !important;
}

.ticker-item img {
    height: 120% !important;
    margin-top: -5% !important;
    object-fit: cover !important;
    object-position: center top !important;
}

/* Gallery hero alignment kept original */

/* ========================================
   CRITICAL FIX: Buttons Going Off-Screen
   The nav-right is being pushed too far right
   ======================================== */
@media screen and (max-width: 768px) {
    
    /* NUCLEAR OPTION: Force nav-right MUCH closer to logo - ONLY Music, Gallery, Collaborations */
    /* Target by unique page elements - Music page has .spotify-section */
    .spotify-section ~ .navbar .nav-right,
    .spotify-section ~ * .navbar .nav-right,
    /* Gallery page has .gallery-hero and .gallery-ticker-wrapper */
    .gallery-hero ~ .navbar .nav-right,
    .gallery-ticker-wrapper ~ .navbar .nav-right,
    /* Collaborations page has .collaborations-hero */
    .collaborations-hero ~ .navbar .nav-right,
    /* Alternative: if navbar is sibling */
    .spotify-section + .navbar .nav-right,
    .gallery-hero + .navbar .nav-right,
    .collaborations-hero + .navbar .nav-right {
        position: fixed !important;
        top: 15px !important;
        right: auto !important;
        left: 250px !important; /* Adjusted distance from logo - Music, Gallery, Collaborations */
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        z-index: 99999 !important;
        background: rgba(255, 255, 255, 0.95) !important;
        padding: 5px !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
        transform: none !important;
    }
    
    /* More reliable: target navbar when specific sections exist on page */
    body:has(.spotify-section) .navbar .nav-right,
    body:has(.gallery-hero) .navbar .nav-right,
    body:has(.gallery-ticker-wrapper) .navbar .nav-right,
    body:has(.collaborations-hero) .navbar .nav-right {
        position: fixed !important;
        top: 15px !important;
        right: auto !important;
        left: 250px !important; /* Adjusted distance from logo */
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        z-index: 99999 !important;
        background: rgba(255, 255, 255, 0.95) !important;
        padding: 5px !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
        transform: none !important;
    }
    
    /* Make sure buttons are visible */
    .hamburger-btn,
    #hamburgerBtn {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 5px !important;
        width: 40px !important;
        height: 40px !important;
        background: transparent !important;
        border: 2px solid #333 !important;
        border-radius: 8px !important;
        cursor: pointer !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .hamburger-btn span {
        display: block !important;
        width: 24px !important;
        height: 2px !important;
        background: #000 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    #theme-toggle,
    .theme-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        background: transparent !important;
        border: 2px solid #333 !important;
        border-radius: 50% !important;
        cursor: pointer !important;
        font-size: 20px !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Make sure theme-switcher wrapper doesn't interfere */
    .theme-switcher {
        display: block !important;
        position: relative !important;
    }
    
    /* Adjust navbar to not conflict */
    .navbar {
        padding-right: 120px !important; /* Space for fixed buttons */
    }
}

/* Dark mode */
[data-theme="dark"] .nav-right {
    background: rgba(0, 0, 0, 0.95) !important;
    border-radius: 50px !important;
}

[data-theme="dark"] .hamburger-btn,
[data-theme="dark"] #theme-toggle {
    border-color: #fff !important;
}

[data-theme="dark"] .hamburger-btn span {
    background: #fff !important;
}

[data-theme="dark"] #theme-toggle,
[data-theme="dark"] .theme-toggle {
    color: #fff !important;
    border-radius: 50% !important;
}

/* MOBILE TICKER HEIGHT FIX - Keep original height on mobile */
@media screen and (max-width: 768px) {
    .gallery-hero {
        min-height: 250px !important;
        height: 250px !important;
        max-height: 250px !important;
    }
}

@media screen and (max-width: 480px) {
    .gallery-hero {
        min-height: 200px !important;
        height: 200px !important;
        max-height: 200px !important;
    }
}

/* ========================================
   FINAL FIX: Buttons position for Music, Gallery, Collaborations
   Maximum priority - must be last
   ======================================== */
@media screen and (max-width: 768px) {
    /* Music, Gallery, Collaborations - move buttons further from logo */
    body:has(.spotify-section) .nav-right,
    body:has(.gallery-hero) .nav-right,
    body:has(.gallery-ticker-wrapper) .nav-right,
    body:has(.collaborations-hero) .nav-right,
    .spotify-section ~ .navbar .nav-right,
    .gallery-hero ~ .navbar .nav-right,
    .gallery-ticker-wrapper ~ .navbar .nav-right,
    .collaborations-hero ~ .navbar .nav-right {
        left: 250px !important;
        position: fixed !important;
        top: 15px !important;
        right: auto !important;
    }
}

/* ========================================
   ГАРАНТИРОВАННОЕ ПРИМЕНЕНИЕ TEXT WRAPPING
   Максимальная специфичность - в самом конце файла
   ======================================== */
@media (min-width: 1280px) {
    #typewriter-text {
        max-width: 68ch !important;
        display: block !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        line-height: 1.9 !important;
        text-align: left !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .about-description-wrapper {
        max-width: 68ch !important;
        width: fit-content !important;
    }
}

@media (min-width: 1440px) {
    #typewriter-text {
        max-width: 75ch !important;
        line-height: 2 !important;
    }
    
    .about-description-wrapper {
        max-width: 75ch !important;
    }
}

/* ========================================
   HAMBURGER BUTTON FIX
   This file contains the corrected styles for the hamburger 
   menu button animation on mobile devices.
   
   PROBLEM FIXED:
   - The X icon was appearing crooked or half-visible after animation
   - This was caused by conflicting translateY values and width changes
   
   SOLUTION:
   - Use consistent positioning with transform-origin: center
   - Calculate proper translateY based on the gap between lines
   - Keep the same width for lines in both states
   - Use position: absolute for the active state to stack lines precisely
   
   Add this to the END of mobile-fixes.css or styles_new.css
   ======================================== */
@media (max-width: 992px) {
    /* ===== HAMBURGER BUTTON BASE STYLES ===== */
    .hamburger-btn,
    #hamburgerBtn {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        background: transparent !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        cursor: pointer !important;
        position: relative !important;
        z-index: 10001 !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin: 0 !important;
        padding: 8px !important; /* Padding to contain the lines */
        overflow: visible !important;
    }

    /* ===== HAMBURGER LINES (DEFAULT STATE) ===== */
    .hamburger-btn span,
    #hamburgerBtn span {
        display: block !important;
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 28px !important; /* Increased from 26px to 28px */
        height: 1px !important; /* Reduced from 1.5px to 1px - thinner */
        background: var(--text-primary, #1e293b) !important;
        border-radius: 1px !important; /* Match the height */
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
        transform-origin: center center !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Position the three lines with proper spacing */
    .hamburger-btn span:nth-child(1),
    #hamburgerBtn span:nth-child(1) {
        top: 12px !important;
    }

    .hamburger-btn span:nth-child(2),
    #hamburgerBtn span:nth-child(2) {
        top: 19px !important; /* Center line */
    }

    .hamburger-btn span:nth-child(3),
    #hamburgerBtn span:nth-child(3) {
        top: 26px !important;
    }

    /* ===== HAMBURGER ACTIVE STATE (X ICON) ===== */
    .hamburger-btn.active span,
    #hamburgerBtn.active span {
        /* All lines move to center position */
        top: 19px !important;
    }

    /* First line rotates 45 degrees clockwise */
    .hamburger-btn.active span:nth-child(1),
    #hamburgerBtn.active span:nth-child(1) {
        transform: translateX(-50%) rotate(45deg) !important;
    }

    /* Middle line fades out */
    .hamburger-btn.active span:nth-child(2),
    #hamburgerBtn.active span:nth-child(2) {
        opacity: 0 !important;
        transform: translateX(-50%) scaleX(0) !important;
    }

    /* Third line rotates 45 degrees counter-clockwise */
    .hamburger-btn.active span:nth-child(3),
    #hamburgerBtn.active span:nth-child(3) {
        transform: translateX(-50%) rotate(-45deg) !important;
    }

    /* ===== DARK MODE SUPPORT ===== */
    [data-theme="dark"] .hamburger-btn span,
    [data-theme="dark"] #hamburgerBtn span {
        background: var(--text-primary, #f8fafc) !important;
    }
}

/* ===== ADDITIONAL FIX FOR SMALLER SCREENS ===== */
@media (max-width: 480px) {
    .hamburger-btn,
    #hamburgerBtn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        padding: 6px !important;
    }

    .hamburger-btn span,
    #hamburgerBtn span {
        width: 26px !important; /* Increased from 24px to 26px */
    }

    .hamburger-btn span:nth-child(1),
    #hamburgerBtn span:nth-child(1) {
        top: 10px !important;
    }

    .hamburger-btn span:nth-child(2),
    #hamburgerBtn span:nth-child(2) {
        top: 17px !important;
    }

    .hamburger-btn span:nth-child(3),
    #hamburgerBtn span:nth-child(3) {
        top: 24px !important;
    }

    .hamburger-btn.active span,
    #hamburgerBtn.active span {
        top: 17px !important;
    }
}

/* ========================================
   NAV-RIGHT BUTTONS FIX (UPDATED)
   
   PROBLEMS FIXED:
   1. The nav-right container has a visible background block
   2. The buttons (theme toggle + hamburger) were too far apart
   3. The hamburger (X) was higher than the theme toggle icon
   
   SOLUTION:
   - Remove background, box-shadow, border-radius from nav-right
   - Reduce gap to 4px (very close)
   - Align both buttons vertically using align-items: center
   - Ensure both buttons have same vertical alignment
   
   Add this to the END of mobile-fixes.css or styles_new.css
   ======================================== */
@media (max-width: 992px) {
    /* ===== NAV-RIGHT CONTAINER - MAKE INVISIBLE + ALIGN ITEMS ===== */
    .nav-right,
    .navbar .nav-right,
    .nav-container .nav-right,
    .navbar .nav-container .nav-right {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important; /* Vertical center alignment */
        justify-content: flex-end !important;
        gap: 4px !important; /* Close together */
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* ===== DARK MODE - ALSO TRANSPARENT ===== */
    [data-theme="dark"] .nav-right,
    [data-theme="dark"] .navbar .nav-right,
    [data-theme="dark"] .nav-container .nav-right,
    [data-theme="dark"] .navbar .nav-container .nav-right {
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
    }

    /* ===== THEME SWITCHER WRAPPER - ALIGN TO CENTER ===== */
    .theme-switcher {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        height: auto !important;
    }

    /* ===== THEME TOGGLE BUTTON ===== */
    .theme-toggle,
    #theme-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        cursor: pointer !important;
        font-size: 18px !important;
        color: var(--text-primary) !important;
        padding: 0 !important;
        margin: 0 !important;
        vertical-align: middle !important;
    }

    [data-theme="dark"] .theme-toggle,
    [data-theme="dark"] #theme-toggle {
        color: var(--text-primary, #f8fafc) !important;
        border: none !important;
    }

    /* ===== HAMBURGER BUTTON - ALIGNED WITH THEME TOGGLE ===== */
    .hamburger-btn,
    #hamburgerBtn {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        align-self: center !important; /* Align to center of parent */
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        cursor: pointer !important;
        padding: 0 !important;
        margin: 0 !important;
        margin-top: 0 !important; /* Reset any top margin */
        margin-bottom: 0 !important; /* Reset any bottom margin */
        position: relative !important;
        top: 0 !important; /* Reset any top offset */
        vertical-align: middle !important;
    }

    [data-theme="dark"] .hamburger-btn,
    [data-theme="dark"] #hamburgerBtn {
        border: none !important;
    }

    /* ===== HAMBURGER LINES ===== */
    .hamburger-btn span,
    #hamburgerBtn span {
        background: var(--text-primary, #1e293b) !important;
    }

    [data-theme="dark"] .hamburger-btn span,
    [data-theme="dark"] #hamburgerBtn span {
        background: var(--text-primary, #f8fafc) !important;
    }
}

/* ===== OVERRIDE FOR SPECIFIC PAGES (Music, Gallery, Collaborations) ===== */
@media (max-width: 768px) {
    body:has(.spotify-section) .navbar .nav-right,
    body:has(.gallery-hero) .navbar .nav-right,
    body:has(.gallery-ticker-wrapper) .navbar .nav-right,
    body:has(.collaborations-hero) .navbar .nav-right {
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        gap: 4px !important;
        align-items: center !important;
    }

    [data-theme="dark"] body:has(.spotify-section) .navbar .nav-right,
    [data-theme="dark"] body:has(.gallery-hero) .navbar .nav-right,
    [data-theme="dark"] body:has(.gallery-ticker-wrapper) .navbar .nav-right,
    [data-theme="dark"] body:has(.collaborations-hero) .navbar .nav-right {
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
    }
}

/* ========================================
   LOGO TEXT - MAKE BIGGER
   ======================================== */
.nav-logo h2,
.navbar .nav-logo h2,
.nav-container .nav-logo h2 {
    font-size: 2.2rem !important; /* Increased from 1.7rem */
}

/* Make logo bigger on tablet */
@media (max-width: 992px) {
    .nav-logo h2,
    .navbar .nav-logo h2,
    .nav-container .nav-logo h2 {
        font-size: 2rem !important;
    }
}

/* Make logo bigger on mobile */
@media (max-width: 768px) {
    .nav-logo h2,
    .navbar .nav-logo h2,
    .nav-container .nav-logo h2 {
        font-size: 1.8rem !important;
    }
}

/* Make logo bigger on small mobile */
@media (max-width: 480px) {
    .nav-logo h2,
    .navbar .nav-logo h2,
    .nav-container .nav-logo h2 {
        font-size: 1.6rem !important;
    }
}

/* ========================================
   HERO BUTTONS FIX
   
   PROBLEMS FIXED:
   1. "Listen Now" and "About Tali" buttons have different heights
      (btn-secondary has 2px border adding to height)
   2. Buttons are too far apart
   
   SOLUTION:
   - Set explicit height for both buttons (same value)
   - Use box-sizing: border-box to include border in height calculation
   - Reduce gap between buttons
   
   Add this to the END of mobile-fixes.css or styles_new.css
   ======================================== */
/* ===== MOBILE HERO BUTTONS FIX ===== */
@media (max-width: 992px) {
    /* Reduce gap between buttons */
    .hero-buttons {
        gap: 0.6rem !important; /* Reduced from 1rem */
    }

    /* Make both buttons the same height */
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary,
    .hero .btn-primary,
    .hero .btn-secondary {
        box-sizing: border-box !important;
        height: 52px !important; /* Fixed height for both */
        min-height: 52px !important;
        max-height: 52px !important;
        padding: 0 2rem !important; /* Horizontal padding only, vertical centered by flexbox */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
    }

    /* Ensure btn-primary has transparent border to match btn-secondary's border space */
    .hero-buttons .btn-primary,
    .hero .btn-primary {
        border: 2px solid transparent !important;
    }

    /* Ensure btn-secondary keeps its visible border */
    .hero-buttons .btn-secondary,
    .hero .btn-secondary {
        border: 2px solid var(--text-primary) !important;
    }
}

/* ===== SMALLER MOBILE SCREENS ===== */
@media (max-width: 480px) {
    .hero-buttons {
        gap: 0.5rem !important; /* Even smaller gap on small screens */
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary,
    .hero .btn-primary,
    .hero .btn-secondary {
        height: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;
        padding: 0 1.5rem !important;
        font-size: 1rem !important;
    }
}

/* ========================================
   EXPLORE SECTION - MOVE LOWER ON MOBILE
   ======================================== */
@media (max-width: 992px) {
    .quick-links {
        margin-top: 3rem !important; /* Move explore section lower */
        padding-top: 6rem !important; /* Keep top padding */
    }
}

@media (max-width: 768px) {
    .quick-links {
        margin-top: 2rem !important; /* Move explore section lower on mobile */
        padding-top: 5rem !important; /* Slightly less padding on mobile */
    }
}

/* ========================================
   SCROLL INDICATOR FIX (V3 - FULLY VISIBLE)
   
   PROBLEMS FIXED:
   1. Text and arrow have separate animations
   2. Text and arrow are off-center
   3. Arrow gets cut off when bouncing down (due to overflow: hidden on .hero)
   
   SOLUTION:
   - ONE animation for parent container
   - Proper centering with flexbox
   - Add padding-bottom to prevent cutoff during downward bounce
   - Position indicator slightly higher so bounce stays within visible area
   
   Add this to the END of mobile-fixes.css or styles_new.css
   ======================================== */

/* ========================================
   SCROLL INDICATOR VISIBILITY FIX (V7 - EXTEND HERO)
   
   PROBLEM:
   The scroll indicator needs to be at the BOTTOM of the page,
   but the hero is exactly 100vh so the indicator gets cut off
   by the viewport edge.
   
   SOLUTION:
   Make the hero section TALLER than 100vh to create space
   for the scroll indicator at the very bottom.
   ======================================== */

/* ===== HERO SECTION - EXTEND HEIGHT FOR SCROLL INDICATOR ===== */
.hero {
    min-height: calc(100vh + 4rem) !important; /* Extra space for scroll indicator */
    padding-bottom: 5rem !important; /* Space at bottom for scroll indicator */
    position: relative !important;
    overflow: visible !important;
}

/* ===== SCROLL INDICATOR - AT THE VERY BOTTOM ===== */
.scroll-indicator {
    position: absolute !important;
    bottom: 5.5rem !important; /* Higher up in the hero section */
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    color: var(--text-primary) !important;
    z-index: 100 !important;
    pointer-events: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    animation: scrollIndicatorBounce 2s ease-in-out infinite !important;
}

/* Text styling */
.scroll-text {
    font-size: 0.9rem !important;
    margin: 0 auto 0.3rem auto !important;
    opacity: 0.8 !important;
    display: block !important;
    font-weight: 500 !important;
    text-align: center !important;
    animation: none !important;
    transform: none !important;
    visibility: visible !important;
}

/* Arrow styling */
.scroll-arrow {
    font-size: 1.3rem !important;
    display: block !important;
    text-align: center !important;
    margin: 0 auto !important;
    animation: none !important;
    transform: none !important;
    visibility: visible !important;
}

/* Desktop/Mobile text */
.scroll-text-desktop {
    display: block !important;
}

.scroll-text-mobile {
    display: none !important;
}

/* Animation - DOWNWARD bounce */
@keyframes scrollIndicatorBounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.8;
    }
    50% {
        transform: translateY(6px);
        opacity: 1;
    }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .hero {
        min-height: calc(100vh + 3.5rem) !important;
        padding-bottom: 4.5rem !important;
    }
    
    .scroll-indicator {
        bottom: 5rem !important;
    }
    
    .scroll-text {
        font-size: 0.8rem !important;
    }
    
    .scroll-text-desktop {
        display: none !important;
    }
    
    .scroll-text-mobile {
        display: block !important;
    }
    
    .scroll-arrow {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: calc(100vh + 3rem) !important;
        padding-bottom: 4rem !important;
    }
    
    .scroll-indicator {
        bottom: 4.5rem !important;
    }
    
    .scroll-text {
        font-size: 0.75rem !important;
    }
    
    .scroll-arrow {
        font-size: 1rem !important;
    }
}

/* ========================================
   MOVE HERO PICTURE AND TEXT HIGHER
   ======================================== */

/* ===== DESKTOP - MOVE CONTENT HIGHER ===== */
@media (min-width: 769px) {
    .hero {
        align-items: center !important; /* Keep centered */
        padding-top: 2rem !important; /* Less top padding */
    }
    
    .hero-content {
        margin-top: 0 !important; /* No extra margin */
        padding-top: 0 !important;
    }
}

/* ===== MOBILE - MOVE CONTENT HIGHER ===== */
@media (max-width: 992px) {
    .hero {
        padding-top: 80px !important; /* Less reduction from original 100px */
        align-items: center !important; /* Keep centered */
    }
    
    .hero-content {
        padding-top: 1.5rem !important; /* Less reduction */
        margin-top: 0 !important; /* No extra margin */
    }
    
    .hero-image {
        margin-top: -50px !important; /* Move picture much higher */
    }
    
    .hero-text {
        margin-top: -5rem !important; /* Move text higher */
    }
}

/* ===== SMALLER MOBILE ===== */
@media (max-width: 480px) {
    .hero {
        padding-top: 70px !important; /* More padding on small screens */
    }
    
    .hero-content {
        padding-top: 1rem !important;
        margin-top: 0 !important;
    }
    
    .hero-image {
        margin-top: -50px !important; /* Move picture much higher on small mobile */
    }
    
    .hero-text {
        margin-top: -5.5rem !important; /* Move text higher on small mobile */
    }
}

/* ===== HIDE SCROLLBAR ON MOBILE - COMPREHENSIVE ===== */
@media (max-width: 768px) {
    /* Hide scrollbar for Firefox - all elements */
    *,
    html,
    body,
    div,
    section,
    main,
    article,
    aside,
    nav,
    header,
    footer {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important; /* IE and Edge */
    }
    
    /* Hide scrollbar for Chrome, Safari, Edge - all elements */
    *::-webkit-scrollbar,
    html::-webkit-scrollbar,
    body::-webkit-scrollbar,
    div::-webkit-scrollbar,
    section::-webkit-scrollbar,
    main::-webkit-scrollbar,
    article::-webkit-scrollbar,
    aside::-webkit-scrollbar,
    nav::-webkit-scrollbar,
    header::-webkit-scrollbar,
    footer::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        background: transparent !important;
    }
    
    /* Hide scrollbar track */
    *::-webkit-scrollbar-track,
    html::-webkit-scrollbar-track,
    body::-webkit-scrollbar-track {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        background: transparent !important;
    }
    
    /* Hide scrollbar thumb */
    *::-webkit-scrollbar-thumb,
    html::-webkit-scrollbar-thumb,
    body::-webkit-scrollbar-thumb {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        background: transparent !important;
    }
    
    /* Hide scrollbar corner (where vertical and horizontal meet) */
    *::-webkit-scrollbar-corner,
    html::-webkit-scrollbar-corner,
    body::-webkit-scrollbar-corner {
        display: none !important;
        background: transparent !important;
    }
}

/* ========================================
   SCROLL INDICATOR VISIBILITY FIX (V4)
   
   PROBLEM:
   The scroll indicator is positioned below the hero section,
   but the .quick-links section's background covers it.
   
   SOLUTION:
   Add margin-top to .quick-links section to create space
   for the scroll indicator to be fully visible.
   ======================================== */

/* ===== QUICK-LINKS SECTION - ADD SPACE FOR SCROLL INDICATOR ===== */
.quick-links {
    margin-top: -20rem !important; /* Move section higher */
    position: relative !important;
    z-index: 1 !important; /* Lower than scroll indicator */
}

/* ===== MOBILE ADJUSTMENTS ===== */
@media (max-width: 992px) {
    .quick-links {
        margin-top: -12rem !important;
    }
}

@media (max-width: 768px) {
    .quick-links {
        margin-top: -8rem !important;
    }
}

@media (max-width: 480px) {
    .quick-links {
        margin-top: -6rem !important;
    }
}

/* ===== ENSURE SCROLL INDICATOR STAYS VISIBLE ===== */
.scroll-indicator {
    z-index: 10 !important; /* Higher than quick-links */
}

/* ========================================
   HERO IMAGE POSITION FIX
   
   PROBLEM:
   The hero image (Tali's photo) needs to be positioned 
   slightly higher on mobile.
   
   SOLUTION:
   Add negative margin-top to move the image up.
   
   ADJUSTING:
   - Change -10px to -5px for less movement
   - Change -10px to -15px or -20px for more movement
   ======================================== */

/* ===== MOVE HERO IMAGE HIGHER ON MOBILE - MAXIMUM SPECIFICITY ===== */
@media (max-width: 992px) {
    .hero-image,
    .hero .hero-image,
    .hero-content .hero-image,
    section.hero .hero-image,
    #home .hero-image,
    .hero .hero-content .hero-image {
        margin-top: -50px !important; /* Move picture much higher */
        transform: translateY(-50px) !important; /* Also use transform as backup */
    }
    
    .hero-photo,
    .hero-image .hero-photo,
    .hero-image img,
    .image-container .hero-photo {
        margin-top: -50px !important; /* Also move the actual image */
    }
}

@media (max-width: 768px) {
    .hero-image,
    .hero .hero-image,
    .hero-content .hero-image,
    section.hero .hero-image,
    #home .hero-image,
    .hero .hero-content .hero-image {
        margin-top: -50px !important; /* Move picture much higher */
        transform: translateY(-50px) !important; /* Also use transform as backup */
    }
    
    .hero-photo,
    .hero-image .hero-photo,
    .hero-image img,
    .image-container .hero-photo {
        margin-top: -50px !important; /* Also move the actual image */
    }
}

@media (max-width: 480px) {
    .hero-image,
    .hero .hero-image,
    .hero-content .hero-image,
    section.hero .hero-image,
    #home .hero-image,
    .hero .hero-content .hero-image {
        margin-top: -50px !important; /* Move picture much higher */
        transform: translateY(-50px) !important; /* Also use transform as backup */
    }
    
    .hero-photo,
    .hero-image .hero-photo,
    .hero-image img,
    .image-container .hero-photo {
        margin-top: -50px !important; /* Also move the actual image */
    }
}

/* ========================================
   STREAMING MODAL - COMPLETE SOLUTION
   
   This file contains CSS for the streaming links modal
   that appears when user clicks "Listen Now" button.
   ======================================== */

/* ===== STREAMING MODAL OVERLAY ===== */
.streaming-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.streaming-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== MODAL CONTAINER ===== */
.streaming-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-primary, #ffffff);
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: var(--shadow-large, 0 20px 60px rgba(0, 0, 0, 0.3));
    font-family: 'Inter', sans-serif;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.streaming-modal-overlay.active .streaming-modal {
    transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
    .streaming-modal {
        width: 95%;
        padding: 1.5rem;
    }
}

/* ===== MODAL HEADER ===== */
.streaming-modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 0 1.25rem 0;
    border-bottom: none;
    position: relative;
}

.modal-title-section {
    text-align: center;
}

.streaming-modal-header h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #000000;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-family: 'Inter', sans-serif;
}

.modal-subtitle {
    font-size: 1rem;
    color: #666666;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.01em;
    font-family: 'Inter', sans-serif;
}

.streaming-modal-close {
    background: transparent;
    border: 2px solid #000000;
    font-size: 1rem;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: absolute;
    top: 2rem;
    right: 2rem;
    animation: closeButtonPulse 2s ease-in-out infinite;
}

.streaming-modal-close i {
    color: #ffffff !important;
}

.streaming-modal-close:hover {
    background: #000000;
    color: #ffffff !important;
    transform: rotate(90deg) scale(1.1);
    animation: none;
}

.streaming-modal-close:hover i {
    color: #ffffff !important;
}

.streaming-modal-close:active {
    transform: rotate(90deg) scale(0.95);
}

@keyframes closeButtonPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* ===== MODAL CONTENT ===== */
.streaming-modal-content {
    padding: 0;
}

/* ===== STREAMING LINKS LIST ===== */
.streaming-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding: 0;
}

.streaming-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 0.75rem;
    background: #ffffff;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    color: #000000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    min-height: 75px;
    position: relative;
}

.streaming-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    background: #fafafa;
}


.streaming-link-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #000000;
    background: #000000;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.streaming-link-icon i {
    color: #ffffff;
}

.streaming-link:hover .streaming-link-icon {
    transform: scale(1.08);
}

.streaming-link-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
}

.streaming-link-text {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.1;
    display: block;
    letter-spacing: -0.01em;
    font-family: 'Inter', sans-serif;
}

.streaming-link-desc {
    font-weight: 400;
    font-size: 0.75rem;
    color: #666666;
    line-height: 1.1;
    display: block;
    letter-spacing: 0.01em;
    font-family: 'Inter', sans-serif;
}


/* ===== STREAMING SERVICE COLORS - BLACK AND WHITE ===== */
.streaming-link-icon.spotify,
.streaming-link-icon.apple-music,
.streaming-link-icon.youtube,
.streaming-link-icon.amazon-music,
.streaming-link-icon.deezer,
.streaming-link-icon.tidal,
.streaming-link-icon.soundcloud {
    background: #000000;
}

.streaming-link-icon.spotify i,
.streaming-link-icon.apple-music i,
.streaming-link-icon.youtube i,
.streaming-link-icon.amazon-music i,
.streaming-link-icon.deezer i,
.streaming-link-icon.tidal i,
.streaming-link-icon.soundcloud i {
    color: #ffffff;
}

/* ===== DARK MODE ===== */
[data-theme="dark"] .streaming-modal {
    background: var(--bg-primary, #1e293b);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border-color: var(--border-color, #334155);
}

[data-theme="dark"] .streaming-modal-header {
    border-bottom-color: var(--border-color, #334155);
}

[data-theme="dark"] .streaming-modal-header h3 {
    color: var(--text-primary, #f8fafc);
}

[data-theme="dark"] .modal-subtitle {
    color: var(--text-secondary, #94a3b8);
}

[data-theme="dark"] .streaming-link {
    background: var(--bg-secondary, #1e293b);
    border-color: var(--border-color, #334155);
}

[data-theme="dark"] .streaming-link-desc {
    color: var(--text-secondary, #94a3b8);
}

[data-theme="dark"] .streaming-modal-close {
    color: var(--text-secondary, #94a3b8);
}

[data-theme="dark"] .streaming-modal-close:hover {
    color: var(--text-primary, #f8fafc);
}

[data-theme="dark"] .streaming-link {
    background: var(--bg-secondary, #1e293b);
    border-color: var(--border-color, #334155);
    color: var(--text-primary, #f8fafc);
}

[data-theme="dark"] .streaming-link:hover {
    background: var(--bg-tertiary, #334155);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .streaming-modal {
        max-width: 95%;
    }
    
    .streaming-modal-header {
        padding: 1.5rem;
    }
    
    .streaming-modal-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .streaming-modal {
        max-width: 100%;
        border-radius: 16px;
    }
    
    .streaming-modal-header {
        padding: 1.5rem 1.25rem 1.25rem;
    }
    
    .streaming-modal-header h3 {
        font-size: 1.25rem;
    }
    
    .modal-subtitle {
        font-size: 0.9rem;
    }
    
    .streaming-modal-content {
        padding: 1.25rem;
    }
    
    .streaming-links {
        gap: 0.75rem;
    }
    
    .streaming-link {
        padding: 1.25rem 0.75rem;
        min-height: 110px;
        border-radius: 12px;
    }
    
    .streaming-link-icon {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
    
    .streaming-link-text {
        font-size: 0.95rem;
    }
    
    .streaming-link-desc {
        font-size: 0.8rem;
    }
}

/* ========================================
   MODAL CLOSE BUTTON - X COLOR CHANGE ON HOVER
   
   Makes the X icon turn WHITE when hovered
   (while keeping the rotation animation)
   ======================================== */

/* ===== CLOSE BUTTON BASE STYLES ===== */
.streaming-modal-close,
.smart-link-modal-close,
.modal-close,
[class*="modal"] .close-btn,
[class*="modal"] button[aria-label*="Close"] {
    transition: transform 0.3s ease, color 0.2s ease, background-color 0.2s ease !important;
}

/* ===== X ICON - DEFAULT (BLACK) ===== */
.streaming-modal-close,
.streaming-modal-close i,
.smart-link-modal-close,
.smart-link-modal-close i,
.modal-close,
.modal-close i {
    color: #1e293b !important; /* Black/dark color */
}

/* ===== X ICON - HOVER (WHITE) ===== */
.streaming-modal-close:hover,
.streaming-modal-close:hover i,
.smart-link-modal-close:hover,
.smart-link-modal-close:hover i,
.modal-close:hover,
.modal-close:hover i,
[class*="modal"] .close-btn:hover,
[class*="modal"] .close-btn:hover i,
[class*="modal"] button[aria-label*="Close"]:hover,
[class*="modal"] button[aria-label*="Close"]:hover i {
    color: #ffffff !important; /* White color on hover */
    transform: rotate(90deg) !important;
}

/* ===== ACTIVE/CLICK STATE ===== */
.streaming-modal-close:active,
.streaming-modal-close:active i,
.smart-link-modal-close:active,
.smart-link-modal-close:active i,
.modal-close:active,
.modal-close:active i {
    color: #ffffff !important;
    transform: rotate(90deg) scale(0.9) !important;
}

/* ========================================
   STREAMING MODAL - UPGRADED DESIGN
   
   Features:
   - 2-column grid layout
   - 2-color scheme (black/white for light, yellow/white for dark)
   - Compact design
   - Circle close button with X
   - Subtle hover animations
   
   IMPORTANT: This replaces the previous modal styles.
   ======================================== */

/* ===== MODAL OVERLAY ===== */
.streaming-modal-overlay,
.smart-link-modal-overlay,
.smart-link-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(12px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    z-index: 100000 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
}

/* Dark mode glass effect */
[data-theme="dark"] .streaming-modal-overlay,
[data-theme="dark"] .smart-link-modal-overlay,
[data-theme="dark"] .smart-link-modal {
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(12px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
}

.streaming-modal-overlay.active,
.smart-link-modal-overlay.active,
.smart-link-modal.active,
.smart-link-modal.show {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ===== MODAL CONTAINER ===== */
.streaming-modal,
.smart-link-modal-content {
    background: #ffffff !important;
    border-radius: 24px !important;
    width: 100% !important;
    max-width: 380px !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25) !important;
    position: relative !important;
}

/* Smart-link modal content needs absolute positioning for centering */
.smart-link-modal .modal-content {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.95) !important;
    background: #ffffff !important;
    border-radius: 24px !important;
    width: 100% !important;
    max-width: 380px !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25) !important;
}

.streaming-modal-overlay.active .streaming-modal,
.smart-link-modal-overlay.active .smart-link-modal-content,
.smart-link-modal.active .smart-link-modal-content {
    transform: scale(1) translateY(0) !important;
}

.smart-link-modal.show .modal-content {
    transform: translate(-50%, -50%) scale(1) !important;
}

/* ===== MODAL HEADER ===== */
.streaming-modal-header,
.smart-link-modal-content .modal-header,
.smart-link-modal-header {
    padding: 1.5rem 1.5rem 1rem !important;
    text-align: center !important;
    position: relative !important;
    border-bottom: none !important;
}

.streaming-modal-header h3,
.smart-link-modal-content .modal-header h3,
.smart-link-modal-header h3,
.smart-link-modal-content h2 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin: 0 0 0.25rem 0 !important;
}

.streaming-modal-header p,
.smart-link-modal-content .modal-header p,
.smart-link-modal-header p,
.smart-link-modal-content .smart-link-artist {
    font-size: 0.9rem !important;
    color: #64748b !important;
    margin: 0 !important;
}

/* ===== CLOSE BUTTON - CIRCLE WITH X ===== */
.streaming-modal-close,
.smart-link-modal-close,
.smart-link-modal-content .close-btn,
.smart-link-modal-content button[aria-label*="Close"],
.smart-link-modal .modal-close {
    position: absolute !important;
    top: 0.5rem !important;
    right: 0.5rem !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #1e293b !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.3s ease, background-color 0.2s ease !important;
    padding: 0 !important;
    z-index: 10 !important;
}

.streaming-modal-close i,
.streaming-modal-close svg,
.smart-link-modal-close i,
.smart-link-modal-close svg,
.smart-link-modal-content .close-btn i,
.smart-link-modal-content .close-btn svg,
.smart-link-modal .modal-close {
    color: #ffffff !important;
    font-size: 1rem !important;
    line-height: 1 !important;
}

.streaming-modal-close:hover,
.smart-link-modal-close:hover,
.smart-link-modal-content .close-btn:hover,
.smart-link-modal .modal-close:hover {
    transform: rotate(90deg) !important;
    background: #000000 !important;
}

/* ===== MODAL CONTENT ===== */
.streaming-modal-content,
.smart-link-modal-content .modal-body,
.smart-link-modal-content .smart-link-options,
.smart-link-modal .platform-grid {
    padding: 0.5rem 1.25rem 1.5rem !important;
}

/* ===== 2-COLUMN GRID ===== */
.streaming-links,
.smart-link-options,
.platform-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
}

/* ===== STREAMING LINK CARDS ===== */
.streaming-link,
.smart-link-option,
.platform-option {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 1rem 0.75rem !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    text-decoration: none !important;
    color: #1e293b !important;
    transition: all 0.2s ease !important;
    min-height: 90px !important;
}

.streaming-link:hover,
.smart-link-option:hover,
.platform-option:hover {
    background: #f1f5f9 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border-color: #cbd5e1 !important;
}

.streaming-link:active,
.smart-link-option:active,
.platform-option:active {
    transform: translateY(0) scale(0.98) !important;
}

/* ===== ICON CIRCLES - BLACK WITH WHITE ICON ===== */
.streaming-link-icon,
.smart-link-option-icon,
.smart-link-option .icon,
.platform-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.25rem !important;
    background: #1e293b !important;
    color: #ffffff !important;
    flex-shrink: 0 !important;
}

.streaming-link-icon i,
.streaming-link-icon svg,
.smart-link-option-icon i,
.smart-link-option-icon svg,
.smart-link-option .icon i,
.smart-link-option .icon svg,
.platform-icon i {
    color: #ffffff !important;
}

/* Remove individual brand colors - use unified black */
.streaming-link-icon.spotify,
.streaming-link-icon.apple-music,
.streaming-link-icon.youtube,
.streaming-link-icon.amazon-music,
.streaming-link-icon.soundcloud,
.streaming-link-icon.deezer,
.streaming-link-icon.tidal {
    background: #1e293b !important;
}

/* ===== TEXT STYLING ===== */
.streaming-link-text,
.smart-link-option-text,
.smart-link-option .name,
.platform-info h4 {
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    color: #1e293b !important;
    text-align: center !important;
    margin: 0 !important;
}

.platform-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.25rem !important;
}

.platform-info p {
    display: none !important;
}

.streaming-link-subtext,
.smart-link-option-subtext,
.smart-link-option .description {
    font-size: 0.7rem !important;
    color: #64748b !important;
    text-align: center !important;
    display: none !important; /* Hide subtext for cleaner look */
}

/* ===== DARK MODE ===== */
[data-theme="dark"] .streaming-modal,
[data-theme="dark"] .smart-link-modal-content,
[data-theme="dark"] .smart-link-modal .modal-content {
    background: #0f172a !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .streaming-modal-header h3,
[data-theme="dark"] .smart-link-modal-content h2,
[data-theme="dark"] .smart-link-modal-header h3 {
    color: #f8fafc !important;
}

[data-theme="dark"] .streaming-modal-header p,
[data-theme="dark"] .smart-link-modal-content .smart-link-artist,
[data-theme="dark"] .smart-link-modal-header p {
    color: #94a3b8 !important;
}

/* Dark mode close button - Yellow with black/white X */
[data-theme="dark"] .streaming-modal-close,
[data-theme="dark"] .smart-link-modal-close,
[data-theme="dark"] .smart-link-modal-content .close-btn,
[data-theme="dark"] .smart-link-modal .modal-close {
    background: #1e293b !important;
}

[data-theme="dark"] .streaming-modal-close i,
[data-theme="dark"] .streaming-modal-close svg,
[data-theme="dark"] .smart-link-modal-close i,
[data-theme="dark"] .smart-link-modal-close svg,
[data-theme="dark"] .smart-link-modal-content .close-btn i,
[data-theme="dark"] .smart-link-modal .modal-close {
    color: #ffffff !important;
}

[data-theme="dark"] .streaming-modal-close:hover,
[data-theme="dark"] .smart-link-modal-close:hover,
[data-theme="dark"] .smart-link-modal-content .close-btn:hover,
[data-theme="dark"] .smart-link-modal .modal-close:hover {
    background: #334155 !important;
}

/* Dark mode cards */
[data-theme="dark"] .streaming-link,
[data-theme="dark"] .smart-link-option,
[data-theme="dark"] .platform-option {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .streaming-link:hover,
[data-theme="dark"] .smart-link-option:hover,
[data-theme="dark"] .platform-option:hover {
    background: #334155 !important;
    border-color: #475569 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* Dark mode icons - Yellow with dark icon */
[data-theme="dark"] .streaming-link-icon,
[data-theme="dark"] .smart-link-option-icon,
[data-theme="dark"] .smart-link-option .icon,
[data-theme="dark"] .platform-icon,
[data-theme="dark"] .streaming-link-icon.spotify,
[data-theme="dark"] .streaming-link-icon.apple-music,
[data-theme="dark"] .streaming-link-icon.youtube,
[data-theme="dark"] .streaming-link-icon.amazon-music,
[data-theme="dark"] .streaming-link-icon.soundcloud,
[data-theme="dark"] .streaming-link-icon.deezer,
[data-theme="dark"] .streaming-link-icon.tidal {
    background: #FFD700 !important;
}

[data-theme="dark"] .streaming-link-icon i,
[data-theme="dark"] .streaming-link-icon svg,
[data-theme="dark"] .smart-link-option-icon i,
[data-theme="dark"] .smart-link-option .icon i,
[data-theme="dark"] .platform-icon i {
    color: #0f172a !important;
}

/* Dark mode text */
[data-theme="dark"] .streaming-link-text,
[data-theme="dark"] .smart-link-option-text,
[data-theme="dark"] .smart-link-option .name,
[data-theme="dark"] .platform-info h4 {
    color: #f8fafc !important;
}

[data-theme="dark"] .streaming-link-subtext,
[data-theme="dark"] .smart-link-option-subtext {
    color: #94a3b8 !important;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 400px) {
    .streaming-modal,
    .smart-link-modal-content {
        max-width: 100% !important;
        margin: 0.5rem !important;
        border-radius: 20px !important;
    }
    
    .streaming-links,
    .smart-link-options {
        gap: 0.5rem !important;
    }
    
    .streaming-link,
    .smart-link-option {
        padding: 0.875rem 0.5rem !important;
        min-height: 80px !important;
    }
    
    .streaming-link-icon,
    .smart-link-option-icon,
    .smart-link-option .icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
    }
    
    .streaming-link-text,
    .smart-link-option-text,
    .smart-link-option .name {
        font-size: 0.8rem !important;
    }
}

/* ===== PREVENT BODY SCROLL ===== */
body.modal-open {
    overflow: hidden !important;
}

/* ===== MOBILE FOOTER - COMPACT ===== */
@media (max-width: 992px) {
    .footer {
        padding: 1.5rem 0 1rem !important; /* Reduced from 2-3rem */
    }
    
    .footer .container {
        padding: 0 1.5rem !important;
    }
    
    .footer-content {
        gap: 1rem !important; /* Reduced from 1.5-2rem */
        margin-bottom: 0.75rem !important; /* Reduced from 1-1.75rem */
        min-height: auto !important;
    }
    
    .footer-logo {
        margin-bottom: 0.25rem !important;
    }
    
    .footer-logo h3 {
        font-size: 1.25rem !important; /* Slightly smaller */
        margin-bottom: 0.15rem !important;
    }
    
    .footer-logo p {
        font-size: 0.8rem !important;
        margin-bottom: 0 !important;
    }
    
    .footer-links {
        gap: 0.75rem 1.25rem !important; /* Tighter spacing */
        margin: 0.5rem 0 !important;
    }
    
    .footer-links a {
        font-size: 1.05rem !important;
    }
    
    .footer-social {
        gap: 0.5rem !important; /* Tighter icon spacing */
        margin: 0.5rem 0 !important;
    }
    
    .footer-social a {
        width: 40px !important;
        height: 40px !important;
    }
    
    .footer-bottom {
        margin-top: 0.75rem !important; /* Reduced from 2rem */
        padding-top: 0.75rem !important;
    }
    
    .footer-bottom p {
        font-size: 0.8rem !important;
    }
}

/* ===== SMALLER MOBILE ===== */
@media (max-width: 768px) {
    .footer {
        padding: 1.25rem 0 0.75rem !important;
    }
    
    .footer-content {
        gap: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .footer-logo h3 {
        font-size: 1.2rem !important;
    }
    
    .footer-links {
        gap: 0.5rem 1rem !important;
    }
    
    .footer-links a {
        font-size: 1rem !important;
    }
    
    .footer-social a {
        width: 38px !important;
        height: 38px !important;
    }
    
    .footer-bottom {
        margin-top: 0.5rem !important;
        padding-top: 0.5rem !important;
    }
}

/* ===== VERY SMALL MOBILE ===== */
@media (max-width: 480px) {
    .footer {
        padding: 1rem 0 0.5rem !important;
    }
    
    .footer .container {
        padding: 0 1rem !important;
    }
    
    .footer-content {
        gap: 0.6rem !important;
    }
    
    .footer-logo h3 {
        font-size: 1.1rem !important;
    }
    
    .footer-logo p {
        font-size: 0.75rem !important;
    }
    
    .footer-links {
        gap: 0.4rem 0.8rem !important;
    }
    
    .footer-links a {
        font-size: 0.95rem !important;
    }
    
    .footer-social a {
        width: 36px !important;
        height: 36px !important;
    }
    
    .footer-social a i {
        font-size: 1rem !important;
    }
    
    .footer-bottom p {
        font-size: 0.75rem !important;
    }
}

/* ===== GLOBAL THEME TRANSITION - ALL ELEMENTS ===== */
*,
*::before,
*::after {
    transition-property: color, background, background-color, border-color, box-shadow, fill, stroke, opacity;
    transition-duration: 0.35s;
    transition-timing-function: ease-out;
}

/* ===== PRESERVE TRANSFORM ANIMATIONS ===== */
/* Don't let theme transitions interfere with hover/interaction animations */
a, button, .btn-primary, .btn-secondary, .nav-link, .link-card, 
.social-card, .streaming-link, .smart-link-option {
    transition: color 0.35s ease-out, 
                background-color 0.35s ease-out, 
                border-color 0.35s ease-out, 
                box-shadow 0.35s ease-out,
                transform 0.2s ease-out !important;
}

/* ===== MAIN ELEMENTS - SYNCHRONIZED ===== */
html,
body {
    transition: background-color 0.35s ease-out, color 0.35s ease-out !important;
}

/* Navbar */
.navbar,
.navbar.scrolled,
.nav-container,
.nav-menu {
    transition: background 0.35s ease-out,
                background-color 0.35s ease-out, 
                border-color 0.35s ease-out, 
                box-shadow 0.35s ease-out !important;
}

.nav-link,
.nav-logo,
.nav-logo h2 {
    transition: color 0.35s ease-out !important;
}

/* Hero Section */
.hero,
.hero-content,
.hero-text,
.hero-image {
    transition: background-color 0.35s ease-out, color 0.35s ease-out !important;
}

.hero-title,
.hero-title .title-line,
.hero-subtitle {
    transition: color 0.35s ease-out !important;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    transition: background-color 0.35s ease-out, 
                color 0.35s ease-out, 
                border-color 0.35s ease-out,
                box-shadow 0.35s ease-out,
                transform 0.2s ease-out !important;
}

/* Cards */
.link-card,
.social-card,
.streaming-link,
.smart-link-option {
    transition: background-color 0.35s ease-out, 
                border-color 0.35s ease-out, 
                box-shadow 0.35s ease-out,
                transform 0.2s ease-out !important;
}

/* Sections */
section,
.quick-links,
.social-integration,
.footer {
    transition: background-color 0.35s ease-out, 
                border-color 0.35s ease-out !important;
}

/* Section Titles */
.section-title,
h1, h2, h3, h4, h5, h6 {
    transition: color 0.35s ease-out !important;
}

/* Text */
p, span, a, li {
    transition: color 0.35s ease-out !important;
}

/* Footer */
.footer,
.footer-content,
.footer-logo,
.footer-links,
.footer-social,
.footer-bottom {
    transition: background-color 0.35s ease-out, 
                color 0.35s ease-out, 
                border-color 0.35s ease-out !important;
}

.footer-links a,
.footer-logo h3,
.footer-logo p,
.footer-bottom p {
    transition: color 0.35s ease-out !important;
}

.footer-social a {
    transition: background-color 0.35s ease-out, 
                border-color 0.35s ease-out,
                transform 0.2s ease-out !important;
}

.footer-social a i {
    transition: color 0.35s ease-out !important;
}

/* Icons */
i, svg, .icon {
    transition: color 0.35s ease-out, fill 0.35s ease-out, stroke 0.35s ease-out !important;
}

/* Theme Toggle Button */
.theme-toggle,
#theme-toggle {
    transition: background-color 0.35s ease-out, 
                border-color 0.35s ease-out,
                transform 0.2s ease-out !important;
}

.theme-toggle i,
#theme-toggle i {
    transition: color 0.35s ease-out, transform 0.3s ease-out !important;
}

/* Hamburger Menu */
.hamburger-btn,
.hamburger-line {
    transition: background-color 0.35s ease-out !important;
}

/* Scroll Indicator */
.scroll-indicator,
.scroll-text,
.scroll-arrow {
    transition: color 0.35s ease-out, opacity 0.35s ease-out !important;
}

/* Modal */
.streaming-modal,
.streaming-modal-overlay,
.smart-link-modal,
.smart-link-modal-content {
    transition: background-color 0.35s ease-out, 
                border-color 0.35s ease-out !important;
}

.streaming-modal-header,
.streaming-modal-content,
.streaming-link {
    transition: background-color 0.35s ease-out, 
                border-color 0.35s ease-out,
                color 0.35s ease-out !important;
}

/* Back to Top Button */
.back-to-top {
    transition: background-color 0.35s ease-out, 
                color 0.35s ease-out,
                opacity 0.3s ease-out,
                transform 0.2s ease-out !important;
}

/* ===== DISABLE TRANSITIONS DURING THEME SWITCH (OPTIONAL) ===== */
/* This prevents mid-animation flashes - remove if you prefer smooth transition */
/*
html.theme-switching,
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
    transition-duration: 0s !important;
}
*/

/* ===== REDUCE MOTION FOR ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.1s !important;
    }
}

