/* ══════════════════════════════════════════════════════════
   Lekha Jain Portfolio — Custom Styles
   Light minimal theme: White, #013A30 primary, #E7DFD6 secondary
   ══════════════════════════════════════════════════════════ */

/* ─── Smooth Scroll ────────────────────────────────────── */
html { scroll-behavior: smooth; }

/* ─── Fade In Animation ─────────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Custom Scrollbar ──────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--col_about_bg, #f5f5f5); }
::-webkit-scrollbar-thumb { background: var(--col_hero_title, #013A30); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--col_nav_hover, #025647); }

/* ─── Navbar scroll state ───────────────────────────────── */
.nav-scrolled {
    background: color-mix(in srgb, var(--col_nav_bg, #ffffff) 95%, transparent) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

/* ─── Video Player ──────────────────────────────────────── */
.video-container { position: relative; width: 100%; }
.video-container video { width: 100%; display: block; border-radius: 12px; }

.video-controls {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 0 0 12px 12px;
    opacity: 0;
    transition: opacity 0.3s;
}
.video-container:hover .video-controls { opacity: 1; }

.video-controls button {
    background: none; border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s;
}
.video-controls button:hover { color: var(--col_hero_shape, #E7DFD6); }

.progress-bar {
    flex: 1; height: 3px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    cursor: pointer;
}
.progress-bar .progress-fill {
    height: 100%; background: var(--col_hero_title, #013A30);
    border-radius: 2px; width: 0%;
    transition: width 0.1s linear;
}

.volume-slider {
    width: 50px; height: 3px;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.2);
    border-radius: 2px; outline: none;
}
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.time-display {
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    font-family: 'Inter', monospace;
    min-width: 70px;
    text-align: center;
}

/* ─── Video Modal ───────────────────────────────────────── */
.video-modal {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.video-modal.active { display: flex; }
.video-modal-content {
    width: 100%; max-width: 960px;
    position: relative;
}
.video-modal-close {
    position: absolute;
    top: -40px; right: 0;
    background: none; border: none;
    color: #fff; font-size: 24px;
    cursor: pointer;
}

/* ─── Lightbox ──────────────────────────────────────────── */
.lightbox-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}
.lightbox-close {
    position: absolute;
    top: 20px; right: 30px;
    background: none; border: none;
    color: #fff; font-size: 28px;
    cursor: pointer;
}
.lightbox-nav {
    position: absolute; top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff; font-size: 20px;
    width: 44px; height: 44px;
    border-radius: 50%; cursor: pointer;
    display: flex; align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
    position: absolute; bottom: 20px;
    left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

/* ─── Mobile nav overlay ────────────────────────────────── */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.98);
    z-index: 100;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
    text-decoration: none;
    transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--col_nav_hover, #013A30); }

/* ─── Thumbnail auto-sizing ─────────────────────────────── */
.thumb-auto {
    width: 100%;
    height: auto;
    object-fit: contain;
}
.thumb-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
