/* ==========================================================================
   VERTEX STUDIO - Showcase Styling
   ========================================================================== */

/* Design System & Variables */
:root {
    --bg-primary: #07070a;
    --bg-secondary: #0f0f15;
    --accent-color: #8b5cf6; /* Electric Violet */
    --accent-hover: #a78bfa;
    --accent-glow: rgba(139, 92, 246, 0.4);
    --gold-color: #f59e0b; /* Accent gold */
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Glassmorphism settings */
    --glass-bg: rgba(17, 17, 25, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(139, 92, 246, 0.35);
    
    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #27273a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Background Glowing Blobs */
.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
    animation: blob-float 25s infinite alternate ease-in-out;
}

.blob-1 {
    top: 10%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: var(--accent-color);
}

.blob-2 {
    top: 40%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: #3b82f6; /* Cyan-blue accent */
    animation-delay: -5s;
}

.blob-3 {
    bottom: 10%;
    left: 20%;
    width: 450px;
    height: 450px;
    background: var(--gold-color);
    animation-delay: -10s;
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(80px, 50px) scale(1.1);
    }
    100% {
        transform: translate(-40px, -60px) scale(0.9);
    }
}

/* Navigation Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background: rgba(7, 7, 10, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-accent {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
}

.logo-light {
    font-weight: 300;
    color: var(--text-secondary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #6d28d9 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-color) 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-large {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-glow:hover {
    box-shadow: 0 0 30px var(--accent-glow);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 50px);
    overflow: hidden;
    padding: 1rem;
}

/* Sections */
.section {
    padding: 0;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section {
    padding: 0;
}

/* Audio Prompt Badge */
.audio-prompt-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(139, 92, 246, 0.25);
    border: 1px solid var(--accent-color);
    border-radius: 30px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 12px;
    cursor: pointer;
    animation: pulse-glow 2s infinite ease-in-out;
    transition: var(--transition-fast);
}

.audio-prompt-badge:hover {
    background: rgba(139, 92, 246, 0.45);
    transform: scale(1.03);
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(139, 92, 246, 0.4); }
    50% { box-shadow: 0 0 22px rgba(139, 92, 246, 0.8); }
}

/* Video Player Styling */
.player-wrapper {
    width: 100%;
    max-width: 1080px;
    max-height: calc(100vh - 90px);
    margin: 0 auto;
    border-radius: 20px;
    padding: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 60px rgba(139, 92, 246, 0.1);
    position: relative;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.player-wrapper:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 60px rgba(139, 92, 246, 0.2);
}

.video-container {
    position: relative;
    width: 100%;
    max-height: calc(100vh - 110px);
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/9;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

/* Large Overlay Play Button */
.overlay-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.85);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
    z-index: 5;
    transition: var(--transition-smooth);
}

.overlay-play-btn:hover {
    background: var(--accent-hover);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.8);
}

.overlay-play-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.8);
}

.play-svg {
    width: 32px;
    height: 32px;
    margin-left: 4px;
}

/* Custom Controls Bar */
.custom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
    padding: 15px 20px 20px 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.video-container:hover .custom-controls,
.video-container:focus-within .custom-controls,
.custom-controls.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Progress / Timeline Bar */
.progress-bar-container {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    transition: height 0.15s ease;
}

.progress-bar-container:hover {
    height: 8px;
}

.progress-bar-filled {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
    border-radius: 3px;
    position: relative;
}

.progress-scrubber {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%) scale(0);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    pointer-events: none;
    transition: transform 0.1s ease;
}

.progress-bar-container:hover .progress-scrubber {
    transform: translate(-50%, -50%) scale(1);
}

/* Controls Row */
.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.controls-left, .controls-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-hover);
}

.control-btn svg {
    width: 20px;
    height: 20px;
}

.control-btn.active {
    color: var(--accent-color);
}

.time-display {
    font-size: 0.85rem;
    color: #e5e7eb;
    font-family: monospace;
}

/* Volume Slider */
.volume-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.volume-slider {
    width: 0;
    opacity: 0;
    height: 5px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    transition: width 0.3s ease, opacity 0.3s ease;
    -webkit-appearance: none;
}

.volume-container:hover .volume-slider,
.volume-slider:focus {
    width: 70px;
    opacity: 1;
}

.volume-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 5px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: white;
    margin-top: -3.5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.hidden {
    display: none !important;
}

/* Glass Cards Section */
.details-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.section-header {
    margin-bottom: 4.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--x, 0) var(--y, 0), rgba(139, 92, 246, 0.12), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--glass-border-hover);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.05);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Download Section */
.download-section {
    padding: 120px 0;
}

.download-container {
    max-width: 700px;
    margin: 0 auto;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.download-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.download-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.file-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.file-info-badge strong {
    color: var(--text-primary);
}

.divider {
    color: var(--glass-border);
}

/* Footer Section */
.footer {
    border-top: 1px solid var(--glass-border);
    height: 50px;
    padding: 0;
    background: #040406;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Base Animations & Transitions */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

/* Page responsiveness */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.25rem;
    }
    .section {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 70px;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }
    .nav-menu {
        gap: 1rem;
    }
    .nav-link {
        font-size: 0.85rem;
    }
    .btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }
    .glass-card {
        padding: 2rem;
    }
    .section-title {
        font-size: 2.25rem;
    }
    .volume-slider {
        display: none !important; /* Hide volume slider on smaller touch devices */
    }
}

@media (max-width: 576px) {
    .nav-menu {
        display: none; /* Simplifies navbar for mobile */
    }
    .hero-section {
        padding-top: 120px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 1.85rem;
    }
    .glass-card {
        padding: 1.5rem;
    }
    .time-display {
        font-size: 0.75rem;
    }
}
