/**
 * MODAL TWO-COLUMN LAYOUT
 * Layout de 2 columnas para modal de WaddleGo
 * Texto a la izquierda, video sticky a la derecha
 */

/* ========================================
   TWO-COLUMN GRID LAYOUT
======================================== */

/* Layout con video a la DERECHA (texto izq + video der) */
.modal-section-video-right {
    /* display is controlled by project-modal.css visibility rules */
    grid-template-columns: 1fr 420px; /* Texto flexible + Video fijo */
    gap: 60px;
    align-items: start;
    margin: 40px 0;
}

/* Layout con video a la IZQUIERDA (video izq + texto der) */
.modal-section-video-left {
    /* display is controlled by project-modal.css visibility rules */
    grid-template-columns: 420px 1fr; /* Video fijo + Texto flexible */
    gap: 60px;
    align-items: start;
    margin: 40px 0;
}

/* Sección sin video - ancho completo */
.modal-section-full-width {
    width: 100%;
    margin: 40px 0;
}

/* Layout con 2 VIDEOS LADO A LADO (para PillDB) */
.modal-dual-videos-section {
    /* display is controlled by project-modal.css visibility rules */
    grid-template-columns: 1fr 1fr; /* 2 videos del mismo tamaño */
    gap: 40px;
    margin: 40px auto;
    max-width: 900px; /* Limitar ancho máximo */
    align-items: start;
}

/* Contenedores de videos en dual layout */
.modal-dual-videos-section .modal-video-content {
    position: relative;
    width: 100%;
    max-width: 350px; /* Limitar ancho de cada video */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Videos en el dual layout */
.modal-dual-videos-section video {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modal-dual-videos-section video:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.5),
        0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Etiquetas de video */
.video-label {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #89cff0;
    letter-spacing: 0.5px;
}

/* Override sticky positioning for dual video layout */
.modal-dual-videos-section .modal-video-content > video {
    position: relative; /* Override sticky */
    top: 0; /* Reset top positioning */
}

/* Enhance video label visibility in dual layout */
.modal-dual-videos-section .video-label {
    display: block;
    width: 100%;
    padding: 8px 12px;
    margin-top: 8px;
    background: rgba(10, 25, 41, 0.6);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

/* ========================================
   UNIQUE FEATURES SECTION (PillDB)
======================================== */

/* Contenedor de características únicas */
.unique-feature {
    margin-bottom: 32px;
    padding: 20px;
    background: rgba(10, 36, 99, 0.15);
    border-radius: 12px;
    border-left: 4px solid #597fd7;
    transition: all 0.3s ease;
}

.unique-feature:hover {
    background: rgba(10, 36, 99, 0.25);
    border-left-color: #89cff0;
    transform: translateX(4px);
}

.unique-feature:last-child {
    margin-bottom: 0;
}

/* Título de característica única */
.unique-feature-title {
    font-size: 20px;
    font-weight: 600;
    color: #89cff0;
    margin: 0 0 8px 0;
    letter-spacing: 0.3px;
}

/* Beneficio destacado (métrica) */
.feature-benefit {
    font-size: 15px;
    font-weight: 600;
    color: #597fd7;
    margin: 0 0 12px 0;
    padding: 6px 12px;
    background: rgba(89, 127, 215, 0.15);
    border-radius: 6px;
    display: inline-block;
}

/* Descripción de la característica */
.feature-description {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* Unique features sections: centrar contenido verticalmente */
.pilldb-ai-recognition.modal-section-video-right,
.pilldb-express-sales.modal-section-video-left,
.pilldb-selective-inventory.modal-section-video-right {
    align-items: center; /* Centrar verticalmente */
}

/* Contenedores de video en unique features sections - mismo tamaño que dual videos */
.pilldb-ai-recognition .modal-video-content,
.pilldb-express-sales .modal-video-content,
.pilldb-selective-inventory .modal-video-content {
    max-width: 350px; /* Mismo tamaño que dual videos */
    margin: 0 auto;
}

/* Videos en unique features sections */
.pilldb-unique-video {
    width: 100%;
    height: auto;
}

/* DEPRECATED: Old layout classes (mantener para compatibilidad) */
.modal-two-column-layout {
    display: block;
    margin-top: 40px;
}

.modal-two-column-layout.show-video {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: start;
}

/* ========================================
   TEXT & VIDEO CONTENT CONTAINERS
======================================== */

/* Contenedor de texto */
.modal-text-content {
    min-width: 0; /* Previene overflow del grid */
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center; /* Centrar verticalmente */
}

/* Contenedor de video */
.modal-video-content {
    position: relative;
    width: 100%;
}

/* ========================================
   TEXT COLUMN (Left) - DEPRECATED
======================================== */

.modal-text-column {
    min-width: 0; /* Previene overflow del grid */
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Espaciado entre secciones de texto */
.modal-text-column .modal-section {
    margin-bottom: 0;
}

/* ========================================
   VIDEO COLUMN (Right)
======================================== */

.modal-video-column {
    display: none; /* Oculto por defecto */
    position: relative;
    width: 100%;
}

/* Mostrar video solo cuando el layout tiene la clase show-video */
.modal-two-column-layout.show-video .modal-video-column {
    display: block;
}

/* Video container con posicionamiento sticky */
.video-container-sticky {
    position: sticky;
    top: 100px; /* Espacio desde el top al hacer scroll */
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 8px 16px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effect en el contenedor del video */
.video-container-sticky:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 12px 24px rgba(0, 0, 0, 0.4);
}

/* ========================================
   VIDEO STYLING
======================================== */

.waddlego-demo-video,
.waddlego-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    background: #000;
}

/* Video wrapper con sticky positioning */
.modal-video-content .video-container-sticky,
.modal-video-content > video {
    position: sticky;
    top: 100px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 8px 16px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-video-content > video:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 12px 24px rgba(0, 0, 0, 0.4);
}

/* Borde sutil alrededor del video */
.video-container-sticky::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg,
        rgba(89, 127, 215, 0.4) 0%,
        rgba(137, 207, 240, 0.2) 50%,
        rgba(89, 127, 215, 0.4) 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-container-sticky:hover::before {
    opacity: 1;
}

/* ========================================
   VIDEO LOADING SPINNER
======================================== */

/* Spinner container - positioned over video */
.video-loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--glow-color-primary);
    border-radius: 50%;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    animation: spin 1s linear infinite;
}

/* Active state - visible */
.video-loading-spinner.active {
    opacity: 1;
}

/* Spin animation */
@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Optional: Add backdrop blur for better visibility over poster */
.video-loading-spinner::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    backdrop-filter: blur(4px);
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

/* Tablets grandes (1200px - 1024px) */
@media (max-width: 1200px) {
    .modal-section-video-right,
    .modal-section-video-left {
        grid-template-columns: 1fr 360px;
        gap: 40px;
    }

    .modal-section-video-left {
        grid-template-columns: 360px 1fr;
    }

    .modal-video-content > video {
        top: 80px;
    }

    /* DEPRECATED */
    .modal-two-column-layout {
        grid-template-columns: 1fr 360px;
        gap: 40px;
    }

    .video-container-sticky {
        top: 80px;
    }
}

/* Tablets (1024px y menores) */
@media (max-width: 1024px) {
    /* Layouts de video se vuelven una sola columna */
    .modal-section-video-right,
    .modal-section-video-left {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Video siempre primero en móvil */
    .modal-video-content {
        order: -1;
    }

    /* Video ya no es sticky en móvil */
    .modal-video-content > video {
        position: relative;
        top: 0;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Videos de unique features mantienen tamaño pequeño en tablet */
    .pilldb-ai-recognition .modal-video-content,
    .pilldb-express-sales .modal-video-content,
    .pilldb-selective-inventory .modal-video-content {
        max-width: 350px;
    }

    /* DEPRECATED */
    .modal-two-column-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .modal-video-column {
        order: -1;
    }

    .video-container-sticky {
        position: relative;
        top: 0;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Móviles pequeños (768px y menores) */
@media (max-width: 768px) {
    .modal-two-column-layout {
        gap: 30px;
    }

    .modal-text-column {
        gap: 30px;
    }

    .video-container-sticky {
        max-width: 100%;
        border-radius: 16px;
    }

    .waddlego-demo-video {
        border-radius: 16px;
    }

    /* Dual videos: Stack verticalmente en móvil */
    .modal-dual-videos-section {
        grid-template-columns: 1fr; /* Una sola columna */
        gap: 30px;
        max-width: 100%;
    }

    .modal-dual-videos-section .modal-video-content {
        max-width: 300px; /* Más pequeños en móvil */
    }

    .modal-dual-videos-section video {
        max-width: 100%;
        border-radius: 12px;
    }

    /* Unique features: Ajustar para móvil */
    .unique-feature {
        padding: 16px;
        margin-bottom: 24px;
        border-left-width: 3px;
    }

    .unique-feature-title {
        font-size: 18px;
    }

    .feature-benefit {
        font-size: 14px;
        padding: 5px 10px;
    }

    .feature-description {
        font-size: 14px;
        line-height: 1.6;
    }

    /* Videos de unique features: mismo tamaño que dual videos en móvil */
    .pilldb-ai-recognition .modal-video-content,
    .pilldb-express-sales .modal-video-content,
    .pilldb-selective-inventory .modal-video-content {
        max-width: 300px; /* Mismo tamaño que dual videos en móvil */
    }
}

/* ========================================
   SCROLL ANIMATIONS (Apple-style)
======================================== */

/* Base state - elements hidden and positioned for animation */
.pilldb-animate {
    opacity: 0;
    transform: translateY(40px); /* Start 40px below */
    transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

/* Video variant - use scale instead of translateY */
.pilldb-animate-video {
    transform: scale(0.95); /* Start slightly smaller */
    transition: opacity 1000ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Active state - elements visible and in final position */
.pilldb-animate.active {
    opacity: 1;
    transform: translateY(0); /* Move to original position */
    will-change: auto; /* Remove after transition */
}

/* Video active state - scale to full size */
.pilldb-animate-video.active {
    transform: scale(1);
}

/* Stagger delays */
.pilldb-animate-delay-1 {
    transition-delay: 0ms;
}

.pilldb-animate-delay-2 {
    transition-delay: 150ms;
}

/* ========================================
   LINKUP SCROLL ANIMATIONS (Same as PillDB)
======================================== */

/* Base state - elements hidden and positioned for animation */
.linkup-animate {
    opacity: 0;
    transform: translateY(40px); /* Start 40px below */
    transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

/* Video variant - use scale instead of translateY */
.linkup-animate-video {
    transform: scale(0.95); /* Start slightly smaller */
    transition: opacity 1000ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Active state - elements visible and in final position */
.linkup-animate.active {
    opacity: 1;
    transform: translateY(0); /* Move to original position */
    will-change: auto; /* Remove after transition */
}

/* Video active state - scale to full size */
.linkup-animate-video.active {
    transform: scale(1);
}

/* Stagger delays */
.linkup-animate-delay-1 {
    transition-delay: 0ms;
}

.linkup-animate-delay-2 {
    transition-delay: 150ms;
}

/* ========================================
   SYNCYCLE SCROLL ANIMATIONS (Same as PillDB/LinkUp)
======================================== */

/* Base state - elements hidden and positioned for animation */
.syncycle-animate {
    opacity: 0;
    transform: translateY(40px); /* Start 40px below */
    transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

/* Video variant - use scale instead of translateY */
.syncycle-animate-video {
    transform: scale(0.95); /* Start slightly smaller */
    transition: opacity 1000ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Active state - elements visible and in final position */
.syncycle-animate.active {
    opacity: 1;
    transform: translateY(0); /* Move to original position */
    will-change: auto; /* Remove after transition */
}

/* Video active state - scale to full size */
.syncycle-animate-video.active {
    transform: scale(1);
}

/* Stagger delays */
.syncycle-animate-delay-1 {
    transition-delay: 0ms;
}

.syncycle-animate-delay-2 {
    transition-delay: 150ms;
}

/* ========================================
   SYNCYCLE VIDEO SIZING - RESPONSIVE
======================================== */

/* Syncycle sections - Full responsive grid */
.syncycle-wake-section,
.syncycle-sleep-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 60px 0;
}

/* Wake Mode: Text left, Video right (default order) */
.syncycle-wake-section .modal-text-content {
    order: 1;
}

.syncycle-wake-section .modal-video-content {
    order: 2;
}

/* Sleep Mode: Video left, Text right (reversed order) */
.syncycle-sleep-section .modal-video-content {
    order: 1;
}

.syncycle-sleep-section .modal-text-content {
    order: 2;
}

/* Syncycle video container - responsive */
.syncycle-wake-section .modal-video-content,
.syncycle-sleep-section .modal-video-content {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

/* Syncycle video - fully responsive */
.syncycle-wake-section .syncycle-video,
.syncycle-sleep-section .syncycle-video {
    width: 100%;
    height: auto;
    aspect-ratio: 9/16;
    object-fit: cover;
    border-radius: 24px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 15px 50px rgba(0, 0, 0, 0.5);
}

/* Large screens (1440px and above) */
@media (min-width: 1440px) {
    .syncycle-wake-section .modal-video-content,
    .syncycle-sleep-section .modal-video-content {
        max-width: 320px;
    }
}

/* Medium screens (1024px and below) */
@media (max-width: 1024px) {
    .syncycle-wake-section,
    .syncycle-sleep-section {
        gap: 36px;
        padding: 48px 0;
    }

    .syncycle-wake-section .modal-video-content,
    .syncycle-sleep-section .modal-video-content {
        max-width: 280px;
    }
}

/* Tablets (768px and below) - Single column */
@media (max-width: 768px) {
    .syncycle-wake-section,
    .syncycle-sleep-section {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 20px;
    }

    /* Video always on top on mobile for both modes */
    .syncycle-wake-section .modal-video-content,
    .syncycle-sleep-section .modal-video-content {
        order: 1;
        max-width: 100%;
        padding: 0 20px;
    }

    .syncycle-wake-section .modal-text-content,
    .syncycle-sleep-section .modal-text-content {
        order: 2;
    }

    .syncycle-wake-section .syncycle-video,
    .syncycle-sleep-section .syncycle-video {
        border-radius: 16px;
        max-height: 60vh;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .syncycle-wake-section,
    .syncycle-sleep-section {
        padding: 32px 16px;
        gap: 24px;
    }

    .syncycle-wake-section .modal-video-content,
    .syncycle-sleep-section .modal-video-content {
        padding: 0 16px;
    }

    .syncycle-wake-section .syncycle-video,
    .syncycle-sleep-section .syncycle-video {
        border-radius: 12px;
        max-height: 50vh;
    }
}

/* Small mobile (360px and below) */
@media (max-width: 360px) {
    .syncycle-wake-section,
    .syncycle-sleep-section {
        padding: 24px 12px;
        gap: 20px;
    }

    .syncycle-wake-section .modal-video-content,
    .syncycle-sleep-section .modal-video-content {
        padding: 0 12px;
    }

    .syncycle-wake-section .syncycle-video,
    .syncycle-sleep-section .syncycle-video {
        max-height: 45vh;
    }
}

/* ========================================
   ACCESSIBILITY & PERFORMANCE
======================================== */

/* Respetar preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .video-container-sticky {
        transition: none;
    }

    .video-container-sticky::before {
        transition: none;
    }

    /* Pausar video si el usuario prefiere reducir movimiento */
    .waddlego-demo-video {
        animation-play-state: paused;
    }

    /* Desactivar transiciones de scroll para PillDB features */
    .pilldb-animate {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
        will-change: auto !important;
    }

    .pilldb-animate.active {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Ocultar video si el usuario tiene modo de ahorro de datos */
@media (prefers-reduced-data: reduce) {
    .waddlego-demo-video {
        display: none;
    }

    /* Mostrar solo el poster */
    .video-container-sticky::after {
        content: 'Video oculto para ahorrar datos';
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.8);
        color: #fff;
        font-size: 14px;
        text-align: center;
        padding: 20px;
    }
}

/* ========================================
   LINKUP VIDEO STYLES
======================================== */

/* LinkUp logo section - centered with constrained size */
.linkup-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    min-height: 300px;
}

.linkup-logo-video {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* LinkUp videos in alternating sections */
.linkup-video {
    border-radius: 24px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 15px 50px rgba(0, 0, 0, 0.5);
}

/* Size constraints for LinkUp explanatory videos (much smaller than logo) */
.linkup-mesh-section .modal-video-content,
.linkup-safezones-section .modal-video-content,
.linkup-emergency-section .modal-video-content {
    max-width: 240px !important;
    width: auto !important;
    margin: 0 auto;
}

/* Override HTML width attribute for LinkUp explanatory videos */
.linkup-mesh-section .linkup-video,
.linkup-safezones-section .linkup-video,
.linkup-emergency-section .linkup-video {
    width: 100% !important;
    max-width: 240px !important;
    height: auto !important;
}

/* Responsive adjustments for LinkUp */
/* Large tablets and small desktops (768px - 1024px) */
@media (max-width: 1024px) {
    .linkup-logo-video {
        max-width: 380px;
    }

    .linkup-mesh-section .modal-video-content,
    .linkup-safezones-section .modal-video-content,
    .linkup-emergency-section .modal-video-content {
        max-width: 220px !important;
    }

    .linkup-mesh-section .linkup-video,
    .linkup-safezones-section .linkup-video,
    .linkup-emergency-section .linkup-video {
        max-width: 220px !important;
    }

    .linkfence-title {
        font-size: 32px;
    }

    .linkfence-subtitle {
        font-size: 16px;
    }

    .linkfence-interactive-section .modal-video-content,
    .linkfence-monitoring-section .modal-video-content {
        max-width: 220px !important;
    }

    .linkfence-interactive-section .linkfence-video,
    .linkfence-monitoring-section .linkfence-video {
        max-width: 220px !important;
    }

    .linkfinder-title {
        font-size: 32px;
    }

    .linkfinder-subtitle {
        font-size: 16px;
    }

    .linkfinder-navigation-section .modal-video-content {
        max-width: 220px !important;
    }

    .linkfinder-navigation-section .linkfinder-video {
        max-width: 220px !important;
    }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
    .linkup-logo-video {
        max-width: 320px;
        border-radius: 16px;
    }

    .linkup-video {
        border-radius: 16px;
    }

    .linkup-mesh-section .modal-video-content,
    .linkup-safezones-section .modal-video-content,
    .linkup-emergency-section .modal-video-content {
        max-width: 200px !important;
    }

    .linkup-mesh-section .linkup-video,
    .linkup-safezones-section .linkup-video,
    .linkup-emergency-section .linkup-video {
        max-width: 200px !important;
    }

    .linkfence-header-section {
        padding: 40px 20px 30px;
    }

    .linkfence-title {
        font-size: 28px;
    }

    .linkfence-subtitle {
        font-size: 15px;
    }

    .linkfence-interactive-section .modal-video-content,
    .linkfence-monitoring-section .modal-video-content {
        max-width: 200px !important;
    }

    .linkfence-interactive-section .linkfence-video,
    .linkfence-monitoring-section .linkfence-video {
        max-width: 200px !important;
    }

    .linkfinder-header-section {
        padding: 40px 20px 30px;
    }

    .linkfinder-title {
        font-size: 28px;
    }

    .linkfinder-subtitle {
        font-size: 15px;
    }

    .linkfinder-navigation-section .modal-video-content {
        max-width: 200px !important;
    }

    .linkfinder-navigation-section .linkfinder-video {
        max-width: 200px !important;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .linkup-logo-video {
        max-width: 280px;
    }

    .linkup-mesh-section .modal-video-content,
    .linkup-safezones-section .modal-video-content,
    .linkup-emergency-section .modal-video-content {
        max-width: 180px !important;
    }

    .linkup-mesh-section .linkup-video,
    .linkup-safezones-section .linkup-video,
    .linkup-emergency-section .linkup-video {
        max-width: 180px !important;
    }

    .linkfence-title {
        font-size: 24px;
    }

    .linkfence-subtitle {
        font-size: 14px;
    }

    .linkfence-interactive-section .modal-video-content,
    .linkfence-monitoring-section .modal-video-content {
        max-width: 180px !important;
    }

    .linkfence-interactive-section .linkfence-video,
    .linkfence-monitoring-section .linkfence-video {
        max-width: 180px !important;
    }

    .linkfinder-title {
        font-size: 24px;
    }

    .linkfinder-subtitle {
        font-size: 14px;
    }

    .linkfinder-navigation-section .modal-video-content {
        max-width: 180px !important;
    }

    .linkfinder-navigation-section .linkfinder-video {
        max-width: 180px !important;
    }
}

/* Small mobile (360px and below) */
@media (max-width: 360px) {
    .linkup-logo-video {
        max-width: 240px;
    }

    .linkup-mesh-section .modal-video-content,
    .linkup-safezones-section .modal-video-content,
    .linkup-emergency-section .modal-video-content {
        max-width: 160px !important;
    }

    .linkup-mesh-section .linkup-video,
    .linkup-safezones-section .linkup-video,
    .linkup-emergency-section .linkup-video {
        max-width: 160px !important;
    }

    .linkfence-title {
        font-size: 22px;
    }

    .linkfence-interactive-section .modal-video-content,
    .linkfence-monitoring-section .modal-video-content {
        max-width: 160px !important;
    }

    .linkfence-interactive-section .linkfence-video,
    .linkfence-monitoring-section .linkfence-video {
        max-width: 160px !important;
    }

    .linkfinder-title {
        font-size: 22px;
    }

    .linkfinder-navigation-section .modal-video-content {
        max-width: 160px !important;
    }

    .linkfinder-navigation-section .linkfinder-video {
        max-width: 160px !important;
    }
}

/* ========================================
   LINKFENCE SECTION STYLES
======================================== */

/* LinkFence header section */
.linkfence-header-section {
    text-align: center;
    padding: 60px 20px 40px;
    margin: 40px 0;
}

.linkfence-header {
    max-width: 800px;
    margin: 0 auto;
}

.linkfence-title {
    font-size: 36px;
    font-weight: 700;
    color: #89cff0;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.linkfence-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

/* LinkFence video sizing - same as LinkUp/LinkMesh explanatory videos (240px) */
.linkfence-interactive-section .modal-video-content,
.linkfence-monitoring-section .modal-video-content {
    max-width: 240px !important;
    width: auto !important;
    margin: 0 auto;
}

.linkfence-interactive-section .linkfence-video,
.linkfence-monitoring-section .linkfence-video {
    width: 100% !important;
    max-width: 240px !important;
    height: auto !important;
}

/* ========================================
   LINKFINDER SECTION STYLES
======================================== */

/* LinkFinder header section */
.linkfinder-header-section {
    text-align: center;
    padding: 60px 20px 40px;
    margin: 40px 0;
}

.linkfinder-header {
    max-width: 800px;
    margin: 0 auto;
}

.linkfinder-title {
    font-size: 36px;
    font-weight: 700;
    color: #89cff0;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.linkfinder-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

/* LinkFinder video sizing - same as LinkUp/LinkMesh/LinkFence videos (240px) */
.linkfinder-navigation-section .modal-video-content {
    max-width: 240px !important;
    width: auto !important;
    margin: 0 auto;
}

.linkfinder-navigation-section .linkfinder-video {
    width: 100% !important;
    max-width: 240px !important;
    height: auto !important;
}

/* ========================================
   LINKMESH SECTION STYLES
======================================== */

/* LinkMesh header section */
.linkmesh-header-section {
    text-align: center;
    padding: 60px 20px 40px;
    margin: 40px 0;
}

.linkmesh-header {
    max-width: 800px;
    margin: 0 auto;
}

.linkmesh-title {
    font-size: 36px;
    font-weight: 700;
    color: #89cff0;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.linkmesh-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

/* LinkMesh video sizing - same as other LinkUp explanatory videos */
.linkmesh-groups-section .modal-video-content,
.linkmesh-broadcast-section .modal-video-content,
.linkmesh-persistence-section .modal-video-content {
    max-width: 240px !important;
    width: auto !important;
    margin: 0 auto;
}

.linkmesh-groups-section .linkmesh-video,
.linkmesh-broadcast-section .linkmesh-video,
.linkmesh-persistence-section .linkmesh-video {
    width: 100% !important;
    max-width: 240px !important;
    height: auto !important;
}

/* Responsive adjustments for LinkMesh */
@media (max-width: 1024px) {
    .linkmesh-title {
        font-size: 32px;
    }

    .linkmesh-subtitle {
        font-size: 16px;
    }

    .linkmesh-groups-section .modal-video-content,
    .linkmesh-broadcast-section .modal-video-content,
    .linkmesh-persistence-section .modal-video-content {
        max-width: 220px !important;
    }

    .linkmesh-groups-section .linkmesh-video,
    .linkmesh-broadcast-section .linkmesh-video,
    .linkmesh-persistence-section .linkmesh-video {
        max-width: 220px !important;
    }
}

@media (max-width: 768px) {
    .linkmesh-header-section {
        padding: 40px 20px 30px;
    }

    .linkmesh-title {
        font-size: 28px;
    }

    .linkmesh-subtitle {
        font-size: 15px;
    }

    .linkmesh-groups-section .modal-video-content,
    .linkmesh-broadcast-section .modal-video-content,
    .linkmesh-persistence-section .modal-video-content {
        max-width: 200px !important;
    }

    .linkmesh-groups-section .linkmesh-video,
    .linkmesh-broadcast-section .linkmesh-video,
    .linkmesh-persistence-section .linkmesh-video {
        max-width: 200px !important;
    }
}

@media (max-width: 480px) {
    .linkmesh-title {
        font-size: 24px;
    }

    .linkmesh-subtitle {
        font-size: 14px;
    }

    .linkmesh-groups-section .modal-video-content,
    .linkmesh-broadcast-section .modal-video-content,
    .linkmesh-persistence-section .modal-video-content {
        max-width: 180px !important;
    }

    .linkmesh-groups-section .linkmesh-video,
    .linkmesh-broadcast-section .linkmesh-video,
    .linkmesh-persistence-section .linkmesh-video {
        max-width: 180px !important;
    }
}

@media (max-width: 360px) {
    .linkmesh-title {
        font-size: 22px;
    }

    .linkmesh-groups-section .modal-video-content,
    .linkmesh-broadcast-section .modal-video-content,
    .linkmesh-persistence-section .modal-video-content {
        max-width: 160px !important;
    }

    .linkmesh-groups-section .linkmesh-video,
    .linkmesh-broadcast-section .linkmesh-video,
    .linkmesh-persistence-section .linkmesh-video {
        max-width: 160px !important;
    }
}

/* ========================================
   DARK MODE SUPPORT
======================================== */

@media (prefers-color-scheme: dark) {
    .video-container-sticky {
        background: linear-gradient(135deg, #0a0a0f 0%, #151521 100%);
        box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.7),
            0 8px 16px rgba(0, 0, 0, 0.5);
    }

    .video-container-sticky:hover {
        box-shadow:
            0 30px 80px rgba(0, 0, 0, 0.8),
            0 12px 24px rgba(0, 0, 0, 0.6);
    }
}

/* ========================================
   AR NAVIGATOR VIDEO SIZING - RESPONSIVE
   Match Syncycle video sizing (300px base)
   Full responsive support
======================================== */

/* AR video containers - same size as Syncycle */
.ar-educational-section .modal-video-content,
.ar-marketing-section .modal-video-content,
.ar-entertainment-section .modal-video-content,
.ar-tourism-section .modal-video-content,
.ar-marketing2-section .modal-video-content {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

/* AR videos - fully responsive with 9:16 aspect ratio */
.ar-video {
    width: 100%;
    height: auto;
    aspect-ratio: 9/16;
    object-fit: cover;
    border-radius: 24px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 15px 50px rgba(0, 0, 0, 0.5);
}

/* Large screens (1440px and above) - slightly larger videos */
@media (min-width: 1440px) {
    .ar-educational-section .modal-video-content,
    .ar-marketing-section .modal-video-content,
    .ar-entertainment-section .modal-video-content,
    .ar-tourism-section .modal-video-content,
    .ar-marketing2-section .modal-video-content {
        max-width: 320px;
    }
}

/* Medium screens (1024px and below) - reduce video size */
@media (max-width: 1024px) {
    .ar-educational-section,
    .ar-marketing-section,
    .ar-entertainment-section,
    .ar-tourism-section,
    .ar-marketing2-section {
        gap: 36px;
        padding: 48px 0;
    }

    .ar-educational-section .modal-video-content,
    .ar-marketing-section .modal-video-content,
    .ar-entertainment-section .modal-video-content,
    .ar-tourism-section .modal-video-content,
    .ar-marketing2-section .modal-video-content {
        max-width: 280px;
    }
}

/* Tablets (768px and below) - Single column layout */
@media (max-width: 768px) {
    .ar-educational-section,
    .ar-marketing-section,
    .ar-entertainment-section,
    .ar-tourism-section,
    .ar-marketing2-section {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 20px;
    }

    /* Video always on top on mobile */
    .ar-educational-section .modal-video-content,
    .ar-marketing-section .modal-video-content,
    .ar-entertainment-section .modal-video-content,
    .ar-tourism-section .modal-video-content,
    .ar-marketing2-section .modal-video-content {
        order: 1;
        max-width: 100%;
        padding: 0 20px;
    }

    .ar-educational-section .modal-text-content,
    .ar-marketing-section .modal-text-content,
    .ar-entertainment-section .modal-text-content,
    .ar-tourism-section .modal-text-content,
    .ar-marketing2-section .modal-text-content {
        order: 2;
    }

    .ar-video {
        border-radius: 16px;
        max-height: 60vh;
    }
}

/* Mobile (480px and below) - optimize for small screens */
@media (max-width: 480px) {
    .ar-educational-section,
    .ar-marketing-section,
    .ar-entertainment-section,
    .ar-tourism-section,
    .ar-marketing2-section {
        padding: 32px 16px;
        gap: 24px;
    }

    .ar-educational-section .modal-video-content,
    .ar-marketing-section .modal-video-content,
    .ar-entertainment-section .modal-video-content,
    .ar-tourism-section .modal-video-content,
    .ar-marketing2-section .modal-video-content {
        padding: 0 16px;
    }

    .ar-video {
        border-radius: 12px;
        max-height: 50vh;
    }
}

/* Small mobile (360px and below) - maximize space */
@media (max-width: 360px) {
    .ar-educational-section,
    .ar-marketing-section,
    .ar-entertainment-section,
    .ar-tourism-section,
    .ar-marketing2-section {
        padding: 24px 12px;
        gap: 20px;
    }

    .ar-educational-section .modal-video-content,
    .ar-marketing-section .modal-video-content,
    .ar-entertainment-section .modal-video-content,
    .ar-tourism-section .modal-video-content,
    .ar-marketing2-section .modal-video-content {
        padding: 0 12px;
    }

    .ar-video {
        max-height: 45vh;
    }
}
