/* ==========================================================================
   🎬 AI FILM ACADEMY - DESIGN SYSTEM & STYLESHEET (index.css)
   ========================================================================== */

/* --- Custom Properties / Tokens --- */
:root {
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Color Tokens (HSL tailormade) */
    --color-obsidian: #030712;
    --color-dark-slate: #0b1329;
    --color-cyan: #06b6d4;
    --color-cyan-glow: rgba(6, 182, 212, 0.4);
    --color-indigo: #6366f1;
    --color-indigo-glow: rgba(99, 102, 241, 0.45);
    --color-gold: #f59e0b;
    --color-gold-glow: rgba(245, 158, 11, 0.45);
    --color-slate-text: #94a3b8;
    --color-light-text: #f8fafc;
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(15, 23, 42, 0.45);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    
    /* Layout Sizes */
    --max-width: 1200px;
    --header-height: 80px;
}

/* --- Base Resets & Defaults --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-obsidian);
    color: var(--color-light-text);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* --- Background Radial Glows --- */
.radial-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.25;
    pointer-events: none;
}

.glow-1 {
    top: 5%;
    left: -10%;
    background: radial-gradient(circle, var(--color-cyan) 0%, transparent 70%);
}

.glow-2 {
    top: 35%;
    right: -10%;
    background: radial-gradient(circle, var(--color-indigo) 0%, transparent 70%);
}

.glow-3 {
    bottom: 10%;
    left: 20%;
    background: radial-gradient(circle, var(--color-gold) 0%, transparent 70%);
}

/* --- Utility Layout Helpers --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.text-cyan { color: var(--color-cyan); }
.text-gold { color: var(--color-gold); }
.text-muted { color: var(--color-slate-text); }

.gradient-text {
    background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-indigo) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.btn {
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 8px;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2.5px) scale(1.03);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-indigo) 100%);
    color: var(--color-light-text);
    border: none;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.6);
}

.btn-secondary {
    background-color: var(--color-light-text);
    color: var(--color-obsidian);
    border: none;
}

.btn-secondary:hover {
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--color-light-text);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--color-cyan);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.15);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.glass-card {
    position: relative;
    background: linear-gradient(var(--glass-bg), var(--glass-bg)) padding-box,
                linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)) border-box;
    border: 1px solid transparent;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, background 0.3s ease;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        400px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
        rgba(6, 182, 212, 0.1),
        transparent 60%
    );
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glass-card:hover {
    background: linear-gradient(var(--glass-bg), var(--glass-bg)) padding-box,
                linear-gradient(135deg, var(--color-cyan), var(--color-indigo)) border-box;
    box-shadow: 0 12px 40px rgba(6, 182, 212, 0.15);
    transform: translateY(-4px);
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card > * {
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--color-slate-text);
    font-size: 1.1rem;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Sticky Glass Header --- */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(3, 7, 18, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
}

.logo-icon {
    color: var(--color-cyan);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: var(--color-slate-text);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-light-text);
}

/* --- Hero Section --- */
.hero-section {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 50px;
    color: var(--color-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-cyan);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s infinite;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-slate-text);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.icon-right {
    margin-left: 8px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--color-light-text);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-slate-text);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: var(--glass-border);
}

.hero-showcase {
    position: relative;
}

.showcase-card {
    position: relative;
    padding: 8px;
    overflow: hidden;
}

.showcase-image {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.play-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 7, 18, 0.4);
    cursor: pointer;
    transition: background 0.3s ease;
}

.play-button-overlay:hover {
    background: rgba(3, 7, 18, 0.2);
}

.play-button {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-light-text);
    font-size: 1.5rem;
    padding-left: 5px;
    transition: all 0.3s ease;
}

.play-button-overlay:hover .play-button {
    transform: scale(1.1);
    background-color: var(--color-cyan);
    border-color: var(--color-cyan);
    box-shadow: 0 0 25px var(--color-cyan-glow);
}

/* --- Ticker / Logo Marquee Section --- */
.ticker-section {
    background-color: var(--color-dark-slate);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 20px 0;
    overflow: hidden;
}

.ticker-container {
    width: 100%;
}

.ticker-track {
    display: flex;
    gap: 60px;
    white-space: nowrap;
    animation: scroll-marquee 25s linear infinite;
    width: max-content;
}

.ticker-section:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-track span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.35);
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    display: inline-block;
}

.ticker-track span:hover {
    color: var(--color-cyan);
    text-shadow: 0 0 15px var(--color-cyan-glow);
    transform: scale(1.08);
}

/* --- Flexible Tracks Tab Section --- */
.tracks-section {
    padding: 100px 0;
}

.tracks-tab-container {
    display: inline-flex;
    padding: 6px;
    gap: 4px;
    margin-bottom: 40px;
}

.tab-btn {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--color-slate-text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--color-light-text);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-indigo) 100%);
    color: var(--color-light-text);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
}

.tracks-content-container {
    max-width: 800px;
    margin: 0 auto;
}

.track-tab-content {
    display: none;
}

.track-tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.track-info-card {
    padding: 40px;
    text-align: left;
}

.track-info-card h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.track-info-card p {
    color: var(--color-slate-text);
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.track-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.track-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

/* --- Curriculum Section --- */
.curriculum-section {
    padding: 100px 0;
    background: rgba(11, 19, 41, 0.3);
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 50px;
}

.curriculum-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.curr-header {
    margin-bottom: 16px;
}

.curr-week {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--color-cyan);
    display: block;
    margin-bottom: 6px;
}

.curriculum-card h3 {
    font-size: 1.4rem;
}

.curr-desc {
    color: var(--color-slate-text);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.curr-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.curr-topics span {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 4px 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--color-slate-text);
}

.curr-deliverable {
    margin-top: auto;
    border-top: 1px solid var(--glass-border);
    padding-top: 16px;
}

.deliverable-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--color-gold);
    display: block;
    margin-bottom: 4px;
}

.deliverable-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- Frameworks Spotlight Section --- */
.frameworks-section {
    padding: 100px 0;
}

.frameworks-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 50px;
}

.framework-showcase-card {
    padding: 40px 32px;
    text-align: center;
}

.fw-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-cyan);
    font-size: 1.5rem;
    margin: 0 auto 20px auto;
}

.framework-showcase-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.framework-showcase-card p {
    color: var(--color-slate-text);
    font-size: 0.95rem;
}

/* --- Pricing Section --- */
.pricing-section {
    padding: 100px 0;
    background: rgba(11, 19, 41, 0.3);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
    align-items: stretch;
}

.pricing-card-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card-wrapper .pricing-card {
    height: 100%;
    flex-grow: 1;
}

.pricing-card {
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card.recommended {
    padding-top: 52px;
    background: linear-gradient(var(--glass-bg), var(--glass-bg)) padding-box,
                linear-gradient(135deg, var(--color-gold), rgba(245, 158, 11, 0.2)) border-box;
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.15);
}

.pricing-card.recommended:hover {
    background: linear-gradient(var(--glass-bg), var(--glass-bg)) padding-box,
                linear-gradient(135deg, var(--color-gold), #ffffff) border-box;
    box-shadow: 0 16px 48px rgba(245, 158, 11, 0.3);
}

.recommended-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-gold);
    color: var(--color-obsidian);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 14px;
    border-radius: 50px;
    letter-spacing: 0.05em;
    z-index: 10;
}

.price-header {
    text-align: center;
    margin-bottom: 32px;
}

.tier-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: var(--color-slate-text);
    display: block;
    margin-bottom: 12px;
}

.price-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 6px;
}

.currency {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-light-text);
}

.amount {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--color-light-text);
    line-height: 1;
}

.original-price {
    font-size: 1.3rem;
    text-decoration: line-through;
    color: var(--color-slate-text);
    margin-left: 8px;
    align-self: flex-end;
    margin-bottom: 8px;
}

.price-frequency {
    font-size: 0.85rem;
    color: var(--color-slate-text);
}

.price-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.price-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
}

.price-features li i {
    margin-top: 4px;
}

.pricing-card .btn {
    margin-top: auto;
}

.emi-note {
    font-size: 0.8rem;
    color: var(--color-slate-text);
    text-align: center;
    display: block;
    margin-top: 10px;
}

/* --- FAQ Accordion Section --- */
.faq-section {
    padding: 100px 0;
}

.faq-container {
    max-width: 800px;
}

.faq-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 50px;
}

.faq-item {
    padding: 24px;
    cursor: pointer;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
}

.accordion-icon {
    font-size: 0.9rem;
    color: var(--color-slate-text);
    transition: transform 0.3s ease;
}

.faq-item.open .accordion-icon {
    transform: rotate(180deg);
    color: var(--color-cyan);
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    opacity: 1;
    margin-top: 16px;
}

.faq-answer p {
    color: var(--color-slate-text);
    font-size: 0.95rem;
}

/* --- Lead Capture Section --- */
.lead-section {
    padding: 80px 0 100px 0;
}

.lead-container {
    max-width: 600px;
}

.lead-card {
    padding: 40px;
}

.lead-card h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.lead-card p {
    color: var(--color-slate-text);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-slate-text);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background-color: rgba(3, 7, 18, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--color-light-text);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-cyan);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.success-message {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    font-size: 3rem;
    color: var(--color-cyan);
    margin-bottom: 16px;
}

.success-message h4 {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.success-message p {
    color: var(--color-slate-text);
}

/* --- Footer Section --- */
.footer-section {
    background-color: #020617;
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 20px 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .brand-logo {
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--color-slate-text);
    font-size: 0.9rem;
    max-width: 320px;
}

.footer-links h4, .footer-contact h4 {
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--color-slate-text);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-light-text);
}

.footer-contact p {
    color: var(--color-slate-text);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.8rem;
}

/* --- Animations & Keyframes --- */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-showcase {
        max-width: 600px;
        margin: 0 auto;
    }

    .curriculum-grid {
        grid-template-columns: 1fr;
    }

    .frameworks-container {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-links h4, .footer-contact h4 {
        margin-bottom: 12px;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .tracks-tab-container {
        flex-direction: column;
        width: 100%;
        gap: 6px;
    }
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Delay modifiers for sequential reveal */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Hero Entrance Animations */
.hero-content {
    animation: heroFadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-showcase {
    animation: heroFadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glowing Pulse Animation for Play Button */
.play-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--color-cyan);
    animation: playPulse 2s infinite;
    pointer-events: none;
    opacity: 0.6;
}

@keyframes playPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3.5px;
    background: linear-gradient(90deg, var(--color-cyan), var(--color-indigo));
    width: 0%;
    z-index: 1000;
    transition: width 0.1s ease-out;
}

/* --- Floating Particles in Hero --- */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: particleDrift 15s linear infinite;
    pointer-events: none;
}

@keyframes particleDrift {
    0% {
        transform: translateY(110%) translateX(0);
        opacity: 0;
    }
    15% {
        opacity: 0.35;
    }
    85% {
        opacity: 0.35;
    }
    100% {
        transform: translateY(-10%) translateX(80px);
        opacity: 0;
    }
}

/* --- Video Modal Popup --- */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.video-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.video-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(8px);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    aspect-ratio: 16/9;
    padding: 6px;
    z-index: 2002;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    overflow: visible !important;
}

.video-modal.active .video-modal-content {
    transform: scale(1);
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--color-light-text);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.video-modal-close:hover {
    color: var(--color-cyan);
}

.video-player-container {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.video-player-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   📦 PROMPT SANDBOX SIMULATOR STYLES
   ========================================================================== */

.sandbox-section {
    padding: 100px 0;
    background: rgba(11, 19, 41, 0.1);
    position: relative;
}

.sandbox-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    padding: 40px;
    align-items: start;
    margin-top: 40px;
}

.sandbox-controls {
    display: flex;
    flex-direction: column;
}

.sandbox-controls h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.sandbox-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.preset-btn {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.85rem;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--color-slate-text);
    cursor: pointer;
    transition: all 0.25s ease;
}

.preset-btn:hover {
    color: var(--color-light-text);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.preset-btn.active {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--color-cyan);
    color: var(--color-cyan);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.sandbox-textarea {
    width: 100%;
    min-height: 110px;
    padding: 16px;
    background: rgba(3, 7, 18, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--color-slate-text);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    line-height: 1.5;
    resize: none;
    outline: none;
    margin-bottom: 20px;
}

.sandbox-buttons {
    display: flex;
    gap: 16px;
}

.sandbox-buttons .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    padding: 14px 20px;
}

.badge-cost {
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
    opacity: 0.85;
}

/* Preview & Stats */
.sandbox-preview-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sandbox-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.sandbox-stat-item {
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sandbox-stat-label {
    font-size: 0.75rem;
    color: var(--color-slate-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sandbox-stat-value {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-light-text);
}

.sandbox-stat-item.text-cyan .sandbox-stat-value {
    color: var(--color-cyan);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

/* CRT Monitor Screen emulation */
.sandbox-monitor {
    border-radius: 16px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px;
    box-shadow: inset 0 2px 10px rgba(255,255,255,0.05), 0 20px 40px rgba(0,0,0,0.6);
}

.monitor-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #020617;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #000;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.95);
}

.monitor-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--color-slate-text);
    text-align: center;
    padding: 20px;
    z-index: 10;
}

.monitor-placeholder-icon {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.05);
    animation: iconPulse 3s ease-in-out infinite;
}

.monitor-loader {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--color-light-text);
    z-index: 15;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(6, 182, 212, 0.1);
    border-radius: 50%;
    border-top-color: var(--color-cyan);
    animation: spin 1s linear infinite;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
}

.progress-bar-outer {
    width: 240px;
    height: 5px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.progress-bar-inner {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-cyan), var(--color-indigo));
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
    transition: width 0.1s ease;
}

.monitor-image {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 5;
    animation: screenFlicker 0.15s ease;
}

.monitor-overlay-text {
    position: absolute;
    top: 16px;
    left: 16px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 800;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.08em;
    z-index: 20;
    display: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* CRT Screen Effects */
.monitor-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.15) 50%
    );
    background-size: 100% 4px;
    z-index: 22;
    pointer-events: none;
    opacity: 0.45;
}

.monitor-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle, 
        transparent 55%, 
        rgba(2, 6, 23, 0.85) 100%
    );
    z-index: 25;
    pointer-events: none;
}

/* CRT monitor curve glare reflection */
.monitor-screen::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 23;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* CRT monitor glows & animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

@keyframes screenFlicker {
    0% { opacity: 0.4; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* Responsive adjust for sandbox */
@media (max-width: 1024px) {
    .sandbox-grid {
        grid-template-columns: 1fr;
        padding: 24px;
    }
}

@media (max-width: 600px) {
    .sandbox-buttons {
        flex-direction: column;
        gap: 12px;
    }
}
