:root {
    /* Blue and White Theme */
    --candy-pink: #2196F3;
    /* Primary Blue */
    --candy-magenta: #1976D2;
    /* Darker Blue */
    --candy-mint: #64B5F6;
    /* Light Blue */
    --candy-cyan: #0D47A1;
    /* Deep Blue */
    --candy-yellow: #BBDEFB;
    /* Sky Blue */
    --candy-purple: #1565C0;
    /* Royal Blue */
    --candy-orange: #1E88E5;
    /* Mid Blue */

    /* Primary Theme */
    --primary: #2196F3;
    --bg-color: #0a1929;
    --card-bg: rgba(30, 50, 80, 0.95);
    --text-main: #ffffff;
    --text-sec: #BBDEFB;
    --border: #1565C0;
    --shadow: 0 8px 24px rgba(33, 150, 243, 0.15);
    --radius: 20px;
    --safe-area-bottom: env(safe-area-inset-bottom);

    /* Blue Gradient */
    --rainbow-gradient: linear-gradient(135deg,
            #0D47A1 0%,
            #1976D2 20%,
            #2196F3 40%,
            #64B5F6 60%,
            #42A5F5 80%,
            #1565C0 100%);

    --bg-dark: #0a1929;
    /* Dark blue background */
    --bg-secondary: rgba(255, 255, 255, 0.05);
    --text: #ffffff;
    --muted: #b0bec5;
    /* Light blue-grey */
    --border: rgba(255, 255, 255, 0.1);
    --card: rgba(30, 50, 80, 0.6);
    /* Dark blue card */
    --card-hover: rgba(50, 80, 120, 0.8);
    /* Lighter blue on hover */

    --neon-blue: #2196F3;
    /* Material Blue */
    --neon-purple: #64B5F6;
    /* Light Blue */
    --gradient-1: linear-gradient(135deg, #1976D2 0%, #2196F3 100%);
    /* Blue gradient */
    --gradient-2: linear-gradient(135deg, #42A5F5 0%, #90CAF9 100%);
    /* Light blue gradient */
    --gradient-3: linear-gradient(120deg, #64B5F6 0%, #BBDEFB 100%);
    /* Sky blue gradient */
    --gradient-neon: linear-gradient(90deg, #2196F3, #64B5F6);
    /* Blue neon */

    --glass-bg: rgba(16, 30, 50, 0.8);
    /* Dark blue glass */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(20px);

    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    background-image: radial-gradient(at 20% 30%, rgba(33, 150, 243, 0.1) 0px, transparent 50%),
        radial-gradient(at 80% 70%, rgba(0, 128, 0, 0.1) 0px, transparent 50%);
}

/* Parallax Background */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 150vh;
    background-size: cover;
    background-position: center;
    z-index: -1;
    will-change: transform;
    animation: backgroundMove 40s ease-in-out infinite alternate;
}

@keyframes backgroundMove {
    0% {
        transform: scale(1.1) translate(0, 0);
    }

    50% {
        transform: scale(1.15) translate(-10px, -10px);
    }

    100% {
        transform: scale(1.1) translate(0, -20px);
    }
}

.parallax-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 41, 0.4);
    /* Dark blue transparent overlay */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: -1;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 25, 41, 0.85);
    /* Dark blue background */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, #2196F3, #64B5F6) 1;
    /* Blue gradient border */
    padding: 1.2rem 0;
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 30px rgba(33, 150, 243, 0.2);
    /* Blue shadow */
}



.logo {
    height: 80px;
    border-radius: 16px;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    filter: drop-shadow(0 0 30px rgba(33, 150, 243, 0.8)) drop-shadow(0 0 60px rgba(100, 181, 246, 0.4));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

/* Logo Marquee */
.logo-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 90px;
    z-index: 1;
}

.logo-marquee-content {
    display: flex;
    gap: 3rem;
    animation: marquee-scroll 20s linear infinite;
    will-change: transform;
}

.marquee-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
    transition: filter 0.3s ease;
    opacity: 0.6;
}

.marquee-logo:hover {
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.8));
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Pause on hover */
.logo-marquee:hover .logo-marquee-content {
    animation-play-state: paused;
}

/* Category Select */
.category-wrapper {
    padding: 1rem;
    position: relative;
    z-index: 10;
}

.custom-select {
    width: 100%;
    padding: 1rem 1.2rem;
    border-radius: 16px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--candy-pink), var(--candy-magenta));
    font-size: 1rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.3),
        0 0 40px rgba(100, 181, 246, 0.2);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 20px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.custom-select:focus {
    outline: none;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 30px rgba(33, 150, 243, 0.5),
        0 0 60px rgba(100, 181, 246, 0.3),
        0 0 0 4px rgba(255, 255, 255, 0.1);
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 12px 100px;
    /* Bottom padding for footer */
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 0 20px 100px;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Product Card with Rainbow Border */
.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 3px solid transparent;
    background-clip: padding-box;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;

    /* Animated blue gradient border */
    &::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: var(--radius);
        padding: 3px;
        background: linear-gradient(45deg, #1976D2, #2196F3, #64B5F6, #2196F3, #1976D2);
        background-size: 300% 300%;
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
        pointer-events: none;
        z-index: 0;
        animation: blue-gradient-shift 4s ease infinite;
    }
}

@keyframes blue-gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Golden Shine Effect */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(212, 175, 55, 0.2),
            transparent);
    transform: skewX(-25deg);
    transition: none;
    pointer-events: none;
    z-index: 1;
    /* Animation automatique avec variables aléatoires */
    animation: shine var(--shine-duration, 5s) infinite;
    animation-delay: var(--shine-delay, 0s);
}

/* Supprimé : .product-card:hover::before */

@keyframes shine {
    0% {
        left: -150%;
    }

    20% {
        left: 150%;
    }

    /* Le reflet passe rapidement (dans les premiers 20% du temps) */
    100% {
        left: 150%;
    }

    /* Pause pour le reste du temps */
}

.product-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 60px rgba(33, 150, 243, 0.5),
        0 0 80px rgba(100, 181, 246, 0.4),
        0 0 120px rgba(0, 255, 135, 0.3);
}

.product-media {
    position: relative;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    background: rgba(50, 10, 30, 0.2);
    overflow: hidden;
}

.product-media img,
.product-media video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-media img {
    transform: scale(1.05);
}

.multi-media-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    backdrop-filter: blur(4px);
}

.product-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    /* Centrage du texte */
}

.product-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    line-height: 1.2;

    /* Effet Doré Aléatoire */
    background: linear-gradient(to right, #ffffff 20%, #ff69b4 50%, #ffffff 80%);
    background-size: 200% auto;
    color: #fff;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 8s linear infinite;
}

@keyframes textShine {
    0% {
        background-position: -200% center;
    }

    15% {
        background-position: 200% center;
    }

    /* Passage rapide du reflet */
    100% {
        background-position: 200% center;
    }

    /* Pause longue */
}

.product-desc {
    font-size: 0.8rem;
    color: var(--text-sec);
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-left: auto;
    /* Pour centrer le bloc si nécessaire */
    margin-right: auto;
}

.product-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-tag {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--candy-pink), var(--candy-magenta));
    padding: 4px 10px;
    border-radius: 8px;
    border: 2px solid var(--candy-cyan);
    box-shadow: 0 0 10px rgba(100, 181, 246, 0.3);
}

.btn-view {
    background: linear-gradient(135deg, var(--candy-purple), var(--candy-cyan));
    color: white;
    border: 2px solid var(--candy-mint);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(0, 255, 135, 0.3);
    transition: all 0.3s ease;
}

.btn-view:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 135, 0.5);
}

/* Footer Nav */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(17, 22, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    /* Ajout de 20px supplémentaires en plus de la safe-area */
    padding: 0.8rem 0 calc(1.5rem + var(--safe-area-bottom));
    display: flex;
    justify-content: space-around;
    z-index: 900;
    box-shadow: 0 -4px 20px rgba(212, 175, 55, 0.15);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-sec);
    font-size: 0.65rem;
    font-weight: 500;
    transition: color 0.2s;
    flex: 1;
    min-width: 0;
    /* Allow flex items to shrink below content size */
}

.nav-item i {
    font-size: 1.3rem;
    margin-bottom: 2px;
}

.nav-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.nav-item.active {
    color: var(--primary);
}

/* Responsive adjustments for navbar */
@media (min-width: 375px) {
    .nav-item {
        font-size: 0.7rem;
    }

    .nav-item i {
        font-size: 1.4rem;
    }
}

@media (min-width: 768px) {
    .nav-item {
        font-size: 0.85rem;
    }

    .nav-item i {
        font-size: 1.6rem;
    }
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-end;
    /* Bottom sheet on mobile */
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 768px) {
    .modal-overlay {
        align-items: center;
        justify-content: center;
    }
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    width: 100%;
    max-height: 90vh;
    border-radius: 24px 24px 0 0;
    overflow-y: auto;
    position: relative;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .modal-content {
        width: 90%;
        max-width: 500px;
        border-radius: 24px;
        max-height: 85vh;
        transform: scale(0.95);
        opacity: 0;
    }

    .modal-overlay.active .modal-content {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    color: white;
}

/* Modal Logo */
.modal-logo {
    height: 70px;
    border-radius: 12px;
    object-fit: contain;
    position: relative;
    display: inline-block;
}

/* Modal Product Specifics */
.modal-slider-container {
    height: 40vh;
    background: rgba(17, 22, 15, 0.95);
    position: relative;
}

.modal-slider {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
    touch-action: pan-y;
}

.slide {
    width: 100%;
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img,
.slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.modal-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
}

.modal-dot.active {
    background: white;
    transform: scale(1.2);
}

.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
    user-select: none;
}

.modal-arrow.prev {
    left: 10px;
}

.modal-arrow.next {
    right: 10px;
}

.modal-arrow:active {
    background: var(--primary);
    transform: translateY(-50%) scale(0.95);
}

.modal-body {
    padding: 2rem;
    color: var(--text-color);
    text-align: center;
    /* Center everything in body by default */
}

.modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    text-align: center;
}

.modal-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 1.5rem;
    white-space: pre-line;
    /* Respect line breaks from DB */
    text-align: center;
}

.modal-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(33, 150, 243, 0.2);
    transition: all 0.3s ease;
}

.modal-price-row:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.modal-price-label {
    font-weight: 500;
    color: #fff;
}

.modal-price-value {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    font-weight: 700;
}

/* Shine effect for Price Row */
.modal-price-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.15), transparent);
    transform: skewX(-25deg);
    animation: shine 6s infinite;
    animation-delay: 2s;
    pointer-events: none;
}

.price-row .price {
    color: var(--primary);
    font-weight: 800;
}

/* Links Modal */
.link-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-main);
    transition: background 0.2s;
    position: relative;
    overflow: hidden;
}

/* Shine effect for Link Item */
.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.15), transparent);
    transform: skewX(-25deg);
    animation: shine 7s infinite;
    animation-delay: 1s;
    pointer-events: none;
}

.link-item:active {
    background: rgba(26, 77, 46, 0.2);
}

.link-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border: 1px solid var(--border);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.link-content {
    flex-grow: 1;
}

.link-content strong {
    display: block;
    font-size: 1rem;
}

.link-content small {
    color: var(--text-sec);
}

/* Sparkle Effect */
.sparkle {
    position: fixed;
    /* Important: fixed positioning relative to viewport */
    border-radius: 50%;
    pointer-events: none;
    animation: sparkle-burst 0.8s cubic-bezier(0, .9, .57, 1) forwards;
    z-index: 9999;
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.8);
    /* Golden Glow */
}

@keyframes sparkle-burst {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* Order Buttons in Modal */
.order-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    color: white;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.order-btn:active {
    transform: scale(0.98);
}

.threema-btn {
    background: linear-gradient(135deg, #05A63F 0%, #038030 100%);
    /* Threema Green */
    box-shadow: 0 4px 15px rgba(5, 166, 63, 0.3);
}

.signal-btn {
    background: linear-gradient(135deg, #3A76F0 0%, #2C5AD1 100%);
    /* Signal Blue */
    box-shadow: 0 4px 15px rgba(58, 118, 240, 0.3);
}

.telegram-btn {
    background: linear-gradient(135deg, #229ED9 0%, #1E88BD 100%);
    /* Telegram Blue */
    box-shadow: 0 4px 15px rgba(34, 158, 217, 0.3);
}

/* Utilities */
.loading-spinner {
    border: 3px solid rgba(212, 175, 55, 0.2);
    border-top: 3px solid var(--gold);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

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

/* Mobile Optimizations */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    /* Resize Header Logo - Animation breathe active */
    .logo {
        height: 50px !important;
        width: auto !important;
        max-width: 120px !important;
        /* Forcer l'animation sur mobile */
        animation: breathe-mobile 4s ease-in-out infinite !important;
    }

    @keyframes breathe-mobile {

        0%,
        100% {
            transform: translate(-50%, -50%) scale(1);
            filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.9)) drop-shadow(0 0 30px rgba(212, 175, 55, 0.6));
        }

        50% {
            transform: translate(-50%, -50%) scale(1.35);
            filter: drop-shadow(0 0 25px rgba(212, 175, 55, 1)) drop-shadow(0 0 50px rgba(212, 175, 55, 0.8));
        }
    }

    .logo-marquee {
        height: 60px !important;
    }

    .marquee-logo {
        height: 40px !important;
    }
}

/* Telegram Mini App Specifics */
body.telegram-app {
    width: 100vw;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    /* Prevent font scaling */
}


@media (max-width: 768px) {
    header {
        overflow: visible;
        padding: 1.5rem 0;
    }

    .logo {
        height: 130px;
        filter: drop-shadow(0 0 15px rgba(33, 150, 243, 0.6));
    }
}

/* Info Modal Content Styling */
#info-content {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#info-content p {
    margin-bottom: 1rem;
    text-align: center;
}

#info-content strong {
    color: var(--candy-cyan);
    font-weight: 700;
}

#info-content a {
    color: var(--candy-mint);
    text-decoration: none;
    border-bottom: 2px solid var(--candy-mint);
    transition: all 0.3s ease;
}

#info-content a:hover {
    color: var(--candy-yellow);
    border-bottom-color: var(--candy-yellow);
}

/* Video Cards */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.video-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(33, 150, 243, 0.3);
}

.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    background: #000;
    overflow: hidden;
}

.video-embed video,
.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-title {
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
}

@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
}