/* Common CSS for Peter Marvu website - Used across all pages */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Montserrat:wght@600&family=Roboto+Condensed&family=Space+Mono:wght@400;700&display=swap');

/* Hide native video controls */
video::-webkit-media-controls {
    display: none !important;
}

video::-webkit-media-controls-enclosure {
    display: none !important;
}

video::-webkit-media-controls-panel {
    display: none !important;
}

video::-webkit-media-controls-play-button {
    display: none !important;
}

video::-webkit-media-controls-timeline {
    display: none !important;
}

video::-webkit-media-controls-current-time-display {
    display: none !important;
}

video::-webkit-media-controls-time-remaining-display {
    display: none !important;
}

video::-webkit-media-controls-mute-button {
    display: none !important;
}

video::-webkit-media-controls-volume-slider {
    display: none !important;
}

video::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

/* Hide scrollbar */
::-webkit-scrollbar {
    display: none;
}

/* Firefox scrollbar */
* {
    scrollbar-width: none;
}

html, body {
    overflow: auto;
}

/* Common Variables */
:root {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --accent-color: #8e92fa;
    --border-color: rgba(255, 255, 255, 0.15);
    --input-bg: rgba(10, 10, 10, 0.7);
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    --border-radius: 12px;
    --blur-amount: 15px;
    --loading-font: 'Montserrat', sans-serif; /* Add this line to define a custom loading font */
    --font-primary: 'Montserrat', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --glow-color: rgba(142, 146, 250, 0.15);
    --logo-final-width: 100%;
}

/* Assicura che 'Space Mono' sia importato correttamente */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

/* Regola generale per applicare 'Space Mono' a tutti gli elementi testuali */

/* Sovrascrive elementi con font specifici */
.works-title,
.stats-title,
.stats-count,
.contact-title,
.video-title,
.nav-link,
.nav-link-container,
.language-switcher,
.lang-option,
.footer,
.footer .copyright,
.footer .location,
.button-text,
.form-label,
.tiktok-title,
.tiktok-footer .copyright,
.tiktok-footer .location,
.tiktok-swipe-text,
.time-display,
.video-title,
.nav-link,
.swipe-hint {
    font-family: 'Space Mono', monospace, 'Arial', sans-serif !important;
}

/* Regola specifica per i titoli in Montserrat */
.contact-title,
.works-title,
.stats-title,
.stats-count {
    font-family: 'Space Mono', monospace, 'Arial', sans-serif !important;
    font-weight: 700;
}

/* Eventuali elementi nella visualizzazione TikTok (mobile) */
.tiktok-feed-container *,
.tiktok-video-container *,
.tiktok-controls *,
.tiktok-title,
.tiktok-indicators *,
.tiktok-footer *,
.tiktok-progress-container * {
    font-family: 'Space Mono', monospace, 'Arial', sans-serif !important;
}
/* Improved indicator dot styling with a simpler, more reliable animation */

/* ENHANCED: Improved indicators container */
.tiktok-indicators {
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    position: absolute;
    bottom: auto;
    left: auto;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 12;
    padding: 10px 6px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background-color: rgba(0, 0, 0, 0.3);
}

/* Inactive indicator dots */
.tiktok-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    margin: 4px 0;
    opacity: 0.6;
}

/* Active indicator dot - simpler but effective styling */
.tiktok-indicator-dot.active {
    width: 10px;
    height: 10px;
    background-color: #ffffff;
    opacity: 1;
    transform: scale(1.2);
    /* Simple pulse animation that works more reliably */
    animation: simplePulse 1.5s ease-in-out infinite;
}

/* Simple scale pulse animation that works across browsers */
@keyframes simplePulse {
    0% { transform: scale(1.2); }
    50% { transform: scale(1.6); }
    100% { transform: scale(1.2); }
}

/* Add a border to make the active dot more visible */
.tiktok-indicator-dot.active {
    border: 1px solid rgba(255, 255, 255, 0.7);
}
/* Enhanced styling for indicator dots to make active state more visible */

/* ENHANCED: Improved indicators on the right */
.tiktok-indicators {
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    position: absolute;
    bottom: auto;
    left: auto;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 12;
    padding: 10px 6px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background-color: rgba(0, 0, 0, 0.3);
}

/* ENHANCED: Improved indicator dots with animations */
.tiktok-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: 4px 0;
    opacity: 0.6;
}

/* More prominent active state */
.tiktok-indicator-dot.active {
    width: 10px;
    height: 10px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    opacity: 1;
    transform: scale(1.2);
    animation: dotPulse 2s infinite;
}

/* Stronger pulse animation for the active dot */
@keyframes dotPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.9); }
    70% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Make sure active dot is brighter and bigger */
.tiktok-indicator-dot.active {
    background-color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.9);
}

/* Rendere tutti i titoli delle canzoni in maiuscolo e più piccoli */
.video-title {
    text-transform: uppercase !important;
    font-size: 7px !important;  /* Riduzione dimensione da 14px a 11px */
    letter-spacing: 1px !important;  /* Aggiunto spacing per migliorare leggibilità */
    font-weight: 500 !important;  /* Leggermente più bold per compensare la dimensione ridotta */
}

/* Versione mobile */
@media (max-width: 768px) {
    .video-title {
        font-size: 10px !important;  /* Ancora più piccolo su mobile */
    }
}

/* TikTok view (versione mobile della pagina works) */
.tiktok-title {
    text-transform: uppercase !important;
    font-size: 13px !important;  /* Leggermente più grande per TikTok view */
    letter-spacing: 1px !important;
    font-weight: 500 !important;
}

/* Versione specifica nelle cards della pagina work */
.works-page .video-info .video-title {
    text-transform: uppercase !important;
    font-size: 7px !important;
    line-height: 1.3 !important;  /* Migliorato line height per il testo in maiuscolo */
}

/* CSS migliorato per rimpicciolire tutte le scritte del sito */

/* Language Switcher più piccolo */
.language-switcher {
    gap: 8px !important; /* Ridotto da 12px */
}

.language-switcher .lang-option {
    font-size: 10px !important; /* Ridotto da 13px */
    padding: 1px 3px !important; /* Ridotto da 2px 5px */
}

.lang-divider {
    font-size: 10px !important;
}

/* Menu di navigazione più piccolo */
.nav-link {
    font-size: 10px !important; /* Ridotto da 12px */
    letter-spacing: 0.8px !important;
}

/* Loading logo più piccolo */
.loading-logo {
    font-size: 2.5rem !important; /* Ridotto da 3rem */
}

body.index-page .loading-logo {
    font-size: 2rem !important; /* Ridotto da 2.2rem */
}

/* Footer più piccolo */
.footer {
    font-size: 10px !important; /* Ridotto da 12px */
}

/* Scritte nei video - Pagina works */
.video-title {
    font-size: 7px !important; /* Ridotto da 14px/10px */
    line-height: 1.1 !important;
    letter-spacing: 0.8px !important;
}

/* Rendere tutti i titoli delle canzoni in maiuscolo e più piccoli */
.video-title {
    text-transform: uppercase !important;
    font-size: 7px !important;  /* Riduzione dimensione da 14px a 11px */
    letter-spacing: 1px !important;  /* Aggiunto spacing per migliorare leggibilità */
    font-weight: 500 !important;  /* Leggermente più bold per compensare la dimensione ridotta */
}

/* Statistiche */
.stats-title {
    font-size: 12px !important; /* Ridotto da 14px */
}

.stats-count {
    font-size: 12px !important; /* Ridotto da 28px */
}

/* Titoli pagine */
.works-title {
    font-size: 26px !important; /* Ridotto da 32px */
}

.contact-title {
    font-size: 22px !important; /* Ridotto da 26px */
}

/* Form */
.form-input {
    font-size: 12px !important; /* Ridotto da 14px */
    padding: 16px 15px 12px !important; /* Ridotto */
}

.form-label {
    font-size: 11px !important; /* Ridotto da 13px */
}

.send-button {
    font-size: 12px !important; /* Ridotto da 14px */
    padding: 13px !important; /* Ridotto da 15px */
}

/* Video player controls */
.video-controls {
    padding: 12px !important; /* Ridotto da 16px */
}

.video-title {
    font-size: 8px !important; /* Ridotto da 14px */
}

.time-display {
    font-size: 9px !important; /* Ridotto da 12px */
}

.control-button {
    padding: 6px !important; /* Ridotto da 8px */
}

.control-button svg {
    width: 20px !important;
    height: 20px !important;
}

/* TikTok view titoli */
.tiktok-title {
    font-size: 12px !important; /* Ridotto da 16px */
    max-width: 85% !important;
}

.tiktok-footer .copyright,
.tiktok-footer .location {
    font-size: 9px !important; /* Ridotto da 11px */
}

.tiktok-indicator-dot {
    width: 6px !important; /* Ridotto da 8px */
    height: 6px !important;
}

.tiktok-indicator-dot.active {
    width: 8px !important; /* Ridotto da 10px */
    height: 8px !important;
}

/* Video error e fallback */
.video-error h3 {
    font-size: 18px !important; /* Ridotto da 20px */
}

.video-error p {
    font-size: 12px !important;
}

.video-error-button {
    font-size: 11px !important;
    padding: 8px 16px !important; /* Ridotto da 10px 20px */
}

/* Version mobile - language switcher */
@media (max-width: 768px) {
    .language-switcher {
        padding: 3px 8px !important; /* Ridotto da 5px 10px */
    }
    
    .language-switcher .lang-option {
        font-size: 9px !important; /* Ridotto ulteriormente */
    }
    
    .video-title {
        font-size: 8px !important; /* Ridotto ulteriormente */
    }
    
    .time-display {
        font-size: 8px !important;
    }
    
    .control-button svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    .loading-logo {
        font-size: 1.8rem !important;
    }
    
    .loading-logo-container {
        max-width: 90% !important;
        margin-bottom: 20px !important;
    }
    
    body.index-page .loading-logo {
        font-size: 1.5rem !important;
    }
    
    .footer {
        font-size: 9px !important;
    }
    
    .nav-link {
        font-size: 9px !important;
    }
}

/* Schermi ancora più piccoli */
@media (max-width: 480px) {
    .language-switcher {
        padding: 2px 6px !important;
    }
    
    .language-switcher .lang-option {
        font-size: 8px !important;
    }
    
    .lang-divider {
        font-size: 8px !important;
    }
    
    .video-title {
        font-size: 7px !important;
    }
    
    .tiktok-title {
        font-size: 10px !important;
    }
    
    .loading-logo {
        font-size: 1.5rem !important;
    }
    
    .loading-logo-container {
        max-width: 92% !important;
        margin-bottom: 15px !important;
    }
    
    body.index-page .loading-logo {
        font-size: 1.3rem !important;
    }
    
    .footer {
        font-size: 8px !important;
    }
    
    .nav-link {
        font-size: 8px !important;
    }
    
    .works-title {
        font-size: 20px !important;
    }
    
    .contact-title {
        font-size: 18px !important;
    }
}

/* Fix per dispositivi molto piccoli */
@media (max-width: 320px) {
    .loading-logo {
        font-size: 1.2rem !important;
    }
    
    body.index-page .loading-logo {
        font-size: 1rem !important;
    }
    
    .nav-link {
        font-size: 7px !important;
    }
    
    .footer {
        font-size: 7px !important;
    }
    
    .video-title {
        font-size: 6px !important;
    }
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

/* Chrome link fixes */
a, a:visited, a:hover, a:active, a:link {
    color: inherit !important;
    text-decoration: none !important;
}

body {
    background-color: #000;
    color: #fff;
    overflow: hidden;
    line-height: 1.6;
    font-family: 'Space Mono', monospace, 'Arial', sans-serif;
    -webkit-overflow-scrolling: touch;
    touch-action: none;
    cursor: none;
}

/* Common Animation Keyframes */
@keyframes typing {
    from { width: 0; }
    to { width: var(--logo-final-width, 150%); }
}

@keyframes blinking {
    0%, 150% { border-color: transparent; }
    50% { border-color: #fff; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulseSweep {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s ease;
}

/* Loading logo container */
.loading-logo-container {
    margin-bottom: 30px;
    width: 150%;
    max-width: 950px;
    text-align: center;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Logo style */
.loading-logo {
    font-family: var(--font-mono), monospace, 'Arial', sans-serif;
    color: #fff;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #fff;
    width: 0;
    display: inline-block;
    font-size: 3rem;
    line-height: 1.2;
    animation: typing 3.5s steps(35, end) forwards, blinking 0.7s infinite;
    max-width: 100%;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Fallback styles for loading logo */
.loading-logo.fallback {
    width: auto !important;
    visibility: visible !important;
    animation: none !important;
    border-right: none;
    opacity: 1 !important;
    animation: fadeIn 0.5s ease forwards !important;
}

body.index-page .loading-logo {
    animation: typing-index 4.5s steps(40, end) forwards, blinking 0.7s infinite;
}

@keyframes typing-index {
    from { width: 0; }
    to { width: 105%; }
}

.loading-screen.hiding {
    pointer-events: none;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
}

.nav {
    display: flex;
    align-items: center;
    gap: 45px;
}

.nav-link-container {
    position: relative;
    padding-bottom: 5px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: color 0.3s ease;
    cursor: none;
}

.nav-hover-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.nav-link-container:hover .nav-hover-line {
    width: 100%;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 22px;
    left: 0;
    width: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    z-index: 1000;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.footer .copyright, .footer .location {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.footer .copyright:hover, .footer .location:hover {
    opacity: 1;
}

.footer .location {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.left-legal-links {
    position: fixed;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    align-items: center;
}

.legal-link {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 8px;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    transition: color 0.3s ease;
    cursor: none;
    letter-spacing: 1px;
}

.legal-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.legal-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 8px;
    writing-mode: vertical-lr;
    text-orientation: mixed;
}

/* Instagram logo nella sezione statistiche */
.instagram-stats-logo {
    color: rgba(255, 255, 255, 0.6); /* Bianco trasparente */
    text-decoration: none;
    position: absolute;
    right: -30px;
    top: 55%;
    transform: translateY(-50%);
    transition: color 0.3s ease, transform 0.3s ease;
    cursor: none;
}

.instagram-stats-logo svg {
    width: 14px;
    height: 14px;
    transition: all 0.3s ease;
}

.instagram-stats-logo:hover {
    color: rgba(255, 255, 255, 0.9); /* Più bianco al hover */
    transform: translateY(-50%) scale(1.1);
}

.instagram-stats-logo:hover svg {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}

/* Container statistiche */
.stats-container {
    position: fixed !important;
    bottom: 80px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1000 !important;
    transition: transform 0.3s ease !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Credits container in basso a destra */
.credits-container {
    position: fixed;
    bottom: 22px;
    right: 40px;
    z-index: 1001;
}

.wolf-logo-link {
    color: rgba(255, 255, 255, 0.5) !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: all 0.3s ease !important;
    cursor: none !important;
    background: none !important;
    border: none !important;
    outline: none !important;
}

.wolf-by {
    font-size: 10px;
    opacity: 0.8;
}

.wolf-logo-link {
    text-decoration: none;
    color: inherit;
    cursor: none;
}

.wolf-text {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.6px;
    color: #fff;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    opacity: 0.85;
    text-transform: none;
    line-height: 1;
}

.wolf-text:hover {
    transform: rotateY(360deg);
    opacity: 1;
}

/* Chrome specific fixes */
.wolf-logo-link:visited,
.wolf-logo-link:link,
.wolf-logo-link:active {
    color: rgba(255, 255, 255, 0.5) !important;
    text-decoration: none !important;
}

.wolf-text:visited,
.wolf-text:link,
.wolf-text:active {
    color: #fff !important;
}

.wolf-logo-link:hover .wolf-by {
    opacity: 1;
}

/* Show title on hover or when active */
.video-card:hover .video-info,
.video-card.active .video-info {
    transform: translateY(0);
    opacity: 1 !important;
}

/* Custom Cursor */
.simple-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cursor-outline {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  z-index: 9998;
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
  will-change: transform;
}

.cursor-triangle {
  position: fixed;
  width: 0;
  height: 0;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-left: 5px solid white;
  transform: translate(-50%, -50%);
  z-index: 9997;
  transition: transform 0.1s ease;
  will-change: transform;
  mix-blend-mode: difference;
}

/* Cursor states */
.cursor-outline.active {
  width: 20px;
  height: 20px;
  border-color: white;
}

.cursor-triangle.active {
  transform: translate(-50%, -50%) scale(0.7);
}

.cursor-outline.hover {
  width: 25px;
  height: 25px;
  border-color: rgba(255, 255, 255, 0.8);
}

.cursor-triangle.hover {
  transform: translate(-50%, -50%) scale(1.2);
}

/* Interactive Background */
#interactive-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.7;
    background-color: #000;
}

.bg-particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, opacity 0.3s;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 103;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 12px;
    position: absolute;
    left: 5%;
    transform: translateX(-50%);
    font-family: var(--font-mono), sans-serif;
    font-weight: 400;
    letter-spacing: 1px;
    z-index: 1001;
    margin-left:20px;
}

.lang-option {
    font-size: 13px;
    position: relative;
    padding: 2px 5px;
    transition: all 0.3s ease;
    opacity: 0.6;
    cursor: none;
}

.lang-option::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.lang-option.active {
    opacity: 1;
    font-weight: 500;
}

.lang-option.active::after {
    width: 100%;
}

.lang-option:hover {
    opacity: 0.9;
}

.lang-option:hover::after {
    width: 100%;
}

.lang-divider {
    opacity: 0.4;
    font-weight: 200;
    color: #fff;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 250;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
        padding: 15px 15px !important;
        pointer-events: auto;
    }
    
    .nav {
        gap: 40px;
        justify-content: flex-end;
        width: 100%;
    }
    
    .nav-link {
        font-size: 10px;
    }

    .location{
        left: 5%;
    }
    .loading-logo {
        font-size: 2.2rem;
    }
    
    .loading-logo-container {
        max-width: 90%;
        margin-bottom: 25px;
    }
    
    body.index-page .loading-logo {
        font-size: 1.8rem;
    }
    
    .credits-container {
        bottom: 15px;
        right: 20px;
    }
    
    .footer {
        padding: 15px 20px;
        font-size: 10px;
        text-align: center;
        line-height: 1.4;
    }
    
    .footer .copyright {
        margin-bottom: 8px;
        font-size: 10px;
    }
    
    .footer .location {
        position: static;
        transform: none;
        font-size: 9px;
    }
    
    .instagram-stats-logo {
        display: none;
    }
    
    .wolf-by {
        font-size: 9px;
    }
    
    .wolf-text {
        font-size: 10px;
    }
    
    /* Hide cursor on mobile */
    .simple-cursor, .cursor-outline, .cursor-triangle {
        display: none !important;
    }
    
    * {
        cursor: auto !important;
    }
    
    .language-switcher {
        position: fixed !important;
        left: 15px !important;
        z-index: 300 !important;
        padding: 5px 10px !important;
        border-radius: 20px !important;
        backdrop-filter: blur(5px) !important;
        -webkit-backdrop-filter: blur(5px) !important;
        margin-left: 0 !important;
        transform: none !important;
        display: flex !important;
    }

    .lang-option {
        font-size: 12px;
        padding: 2px 3px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 20px;
    }
    
    .nav {
        gap: 30px;
    }
    
    .nav-link {
        font-size: 9px;
        letter-spacing: 0.6px;
    }
    
    .nav-link-container {
        padding: 8px 0;
    }
    
    .loading-logo {
        font-size: 1.8rem;
    }
    
    .loading-logo-container {
        max-width: 92%;
        margin-bottom: 20px;
    }
    
    body.index-page .loading-logo {
        font-size: 1.5rem;
    }
}

@media (max-width: 380px) {
    .loading-logo {
        font-size: 1.5rem;
        letter-spacing: 0.2px;
    }
    
    .loading-logo-container {
        max-width: 94%;
        margin-bottom: 15px;
    }
    
    body.index-page .loading-logo {
        font-size: 1.3rem;
    }
    
    .language-switcher {
        gap: 5px;
    }

    .lang-option {
        font-size: 11px;
    }
}

@media (max-width: 320px) {
    .loading-logo {
        font-size: 1.3rem;
    }
    
    body.index-page .loading-logo {
        font-size: 1.1rem;
    }
}

@media (max-height: 480px) and (orientation: landscape) {
    .header {
        padding: 15px 20px;
    }
    
    .footer {
        bottom: 2px;
    }
    
    .loading-logo-container {
        margin-bottom: 15px;
    }
    
    .loading-logo {
        font-size: 1.4rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001s !important;
        transition-duration: 0.001s !important;
    }
    
    .loading-logo {
        width: auto !important;
        animation: none !important;
        border-right: none;
        opacity: 1 !important;
    }
    
    .loading-screen {
        transition-duration: 0.1s !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible, 
button:focus-visible, 
input:focus-visible, 
textarea:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Ensure cursor is hidden consistently */
a, a:hover, a:focus, a:active,
.stats-container, .stats-container *,
.video-clickable-overlay, .stats-box,
.nav-link-container, .lang-option,
[style*="cursor"] {
    cursor: none !important;
}

/* Performance optimizations */
html {
    scroll-behavior: smooth;
}

.video-player, .video-preview, .progress-bar,
.video-card, .work-box, .stats-box,
.loading-logo, .nav-link, .nav-hover-line,
.back-to-top {
    will-change: transform, opacity;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Video optimizations */
video {
    object-fit: cover !important;
    will-change: transform;
    transform: translateZ(0);
    -webkit-video-playable-inline: true;
    -webkit-playsinline: true;
    -webkit-user-select: none;
    user-select: none;
}

/* Fix for iOS */
@supports (-webkit-touch-callout: none) {
    video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        position: absolute !important;
    }
    
    .video-player {
        -webkit-playsinline: true !important;
    }
}

/* Optimize background on mobile */
@media (max-width: 768px) {
    #interactive-background {
        opacity: 0.6 !important;
        will-change: auto;
    }
    
    .bg-particle {
        opacity: 0.5 !important;
        transition: none !important;
    }
    
    /* Disable animations on mobile for better performance */
    .video-card:hover {
        transform: none !important;
    }
    
    .video-card:hover .video-preview {
        transform: none !important;
    }
}

/* Make video cards clearly clickable */
.video-card.youtube-clickable {
    cursor: pointer !important;
    position: relative;
    overflow: hidden;
}

/* YouTube logo/indicator */
.youtube-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
    opacity: 0.8;
    transform: scale(0.8);
    transition: all 0.3s ease;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.5));
}

/* Video card hover effects */
.video-card.youtube-clickable:hover {
    transform: scale(1.15);
    z-index: 20;
    box-shadow: 0 15px 30px rgba(0,0,0,0.8), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.video-card.youtube-clickable:hover .youtube-indicator {
    opacity: 1;
    transform: scale(1);
}

/* Add a red border flash on hover to indicate clickability */
.video-card.youtube-clickable::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: border-color 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.video-card.youtube-clickable:hover::after {
    border-color: rgba(255, 255, 255, 0.5);
    animation: borderPulse 1.5s infinite;
}

@keyframes borderPulse {
    0% { border-color: rgba(255, 255, 255, 0.2); }
    50% { border-color: rgba(255, 255, 255, 0.8); }
    100% { border-color: rgba(255, 255, 255, 0.2); }
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .tiktok-video-youtube-link {
        position: absolute;
        bottom: 84%;
        left: 88%;
        transform: translateX(-50%);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        padding: 8px 16px;
        border-radius: 20px;
        color: white;
        font-size: 12px;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 8px;
        z-index: 15;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        transition: all 0.3s ease;
    }

    .tiktok-video-youtube-link:active {
        transform: translateX(-50%) scale(0.95);
        background-color: rgba(255, 255, 255, 0.8);
    }

    .tiktok-video-youtube-link svg {
        width: 38px;
        height: 38px;
    }
    
    /* Make YouTube indicator smaller on mobile */
    .youtube-indicator {
        top: 5px;
        right: 5px;
        transform: scale(0.6);
    }
    
    .video-card.youtube-clickable:hover .youtube-indicator {
        transform: scale(0.7);
    }
    
    .left-legal-links {
        left: 10px;
        gap: 8px;
    }
    
    .legal-link {
        font-size: 7px;
    }
    
    .legal-separator {
        font-size: 7px;
    }
}
