/* ============================================
   GLITCH STUDIOS- Coding Theme Stylesheet
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f1a;
    --bg-card: #12121f;
    --bg-card-hover: #1a1a2e;
    --bg-elevated: #16162a;

    --text-primary: #e4e4ef;
    --text-secondary: #8888a8;
    --text-muted: #555577;

    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --accent-cyan: #06b6d4;
    --accent-green: #22c55e;
    --accent-yellow: #eab308;
    --accent-red: #ef4444;
    --accent-blue: #3b82f6;

    --gradient-primary: linear-gradient(135deg, #a855f7, #ec4899);
    --gradient-hero: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #06b6d4 100%);
    --gradient-card: linear-gradient(145deg, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.05));

    --border-color: rgba(136, 136, 168, 0.12);
    --border-glow: rgba(168, 85, 247, 0.3);

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(168, 85, 247, 0.15);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Background Animation ---------- */
.bg-animation {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    animation: floatOrb 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.6) 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.5) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.5) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(60px, -40px) scale(1.1); }
    50% { transform: translate(-30px, 60px) scale(0.95); }
    75% { transform: translate(40px, 30px) scale(1.05); }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(168, 85, 247, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 100%);
}

::selection {
    background: rgba(168, 85, 247, 0.3);
    color: #fff;
}

a {
    color: var(--accent-purple);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-pink);
}

code {
    font-family: var(--font-mono);
    font-size: 0.875em;
}

img {
    max-width: 100%;
    display: block;
}

/* ---------- Background Orbs ---------- */
/* Removed- caused rendering artefacts on Windows */

/* ---------- Layout ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    position: relative;
    padding: 100px 0;
    z-index: 1;
    background: rgba(10, 10, 15, 0.85);
}

.section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(168, 85, 247, 0.035) 0%, transparent 70%);
    pointer-events: none;
}

.section-dark {
    background: rgba(15, 15, 26, 0.9);
}

.section-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.1), transparent);
}

.section-dark::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.2), rgba(6, 182, 212, 0.1), transparent);
}

/* ---------- Section Header ---------- */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2);
    padding: 4px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-img {
    height: 38px;
    width: auto;
    transition: opacity var(--transition);
}

.nav-logo-img:hover {
    opacity: 0.85;
}

.hero-logo {
    width: 220px;
    height: auto;
    margin: 0 auto 28px;
    animation: fadeInUp 0.8s ease;
    filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.3));
}

.footer-logo-img {
    height: 48px;
    width: auto;
}

.logo-bracket {
    color: var(--accent-purple);
}

.logo-dot {
    color: var(--accent-pink);
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(168, 85, 247, 0.08);
}

.nav-link.active {
    color: var(--accent-purple);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-main);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 0.95rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(168, 85, 247, 0.4);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.06);
    color: var(--text-primary);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.btn-icon {
    font-size: 1em;
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    z-index: 1;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(168, 85, 247, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 15%, transparent 60%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 15%, transparent 60%);
    opacity: 0.9;
    animation: gridPulse 12s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 0.5; }
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background:
        radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, rgba(236, 72, 153, 0.06) 30%, transparent 60%),
        radial-gradient(circle at 30% 70%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);
    pointer-events: none;
    animation: pulseGlow 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(168, 85, 247, 0.06) 0%, rgba(6, 182, 212, 0.03) 40%, transparent 70%);
    pointer-events: none;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 30px;
    padding: 6px 20px;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: pulse 2s infinite;
}

.code-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-title .line {
    display: block;
}

.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-mono);
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-pink);
    font-family: var(--font-mono);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Hero Code Window */
.hero-code-window {
    position: absolute;
    right: -350px;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    animation: floatSlow 6s ease-in-out infinite;
    opacity: 0.7;
}

.code-window-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
}

.window-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: var(--accent-red); }
.dot.yellow { background: var(--accent-yellow); }
.dot.green { background: var(--accent-green); }

.window-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.code-window-body {
    padding: 16px;
}

.code-window-body pre {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.8;
    white-space: pre-wrap;
}

.code-comment { color: var(--text-muted); }
.code-keyword { color: var(--accent-purple); }
.code-string { color: var(--accent-green); }
.code-var { color: var(--accent-cyan); }
.code-success { color: var(--accent-green); }

/* ---------- About Grid ---------- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition);
}

.about-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.about-card:hover::before {
    opacity: 1;
}

.about-icon {
    width: 48px;
    height: 48px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.about-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-purple);
}

.about-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.highlight {
    color: var(--accent-green);
    font-family: var(--font-mono);
    font-weight: 600;
}

/* ---------- Products ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
}

.product-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.product-card.featured {
    border-color: rgba(168, 85, 247, 0.3);
}

.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.product-preview {
    background: #000;
    border-bottom: 1px solid var(--border-color);
    height: 200px;
    overflow: hidden;
    padding: 0;
    position: relative;
}

.product-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.5s ease;
}

.product-card:hover .product-screenshot {
    transform: scale(1.04);
}

.product-icon-large {
    font-size: 3.5rem;
    color: var(--accent-purple);
}

.product-icon-large svg {
    width: 56px;
    height: 56px;
    stroke-width: 1.5;
}

.product-info {
    padding: 24px;
}

.product-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.product-framework {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.1);
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

/* ---------- Features Showcase ---------- */
.features-showcase {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse > * {
    direction: ltr;
}

.feature-number {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    margin-bottom: 8px;
}

.feature-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.feature-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.feature-code {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.8;
}

/* Performance Meter */
.perf-meter {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.perf-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    position: relative;
    overflow: hidden;
}

.perf-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--perf);
    background: var(--gradient-primary);
    opacity: 0.08;
    border-radius: var(--radius-md);
}

.perf-bar span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.perf-bar strong {
    float: right;
    color: var(--accent-green);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

/* Terminal Widget */
.terminal-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
}

.terminal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.terminal-dot.red { background: var(--accent-red); }
.terminal-dot.yellow { background: var(--accent-yellow); }
.terminal-dot.green { background: var(--accent-green); }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: 8px;
}

.terminal-body {
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.9;
}

.terminal-prompt {
    color: var(--accent-green);
    margin-right: 8px;
}

.terminal-line.output {
    color: var(--text-secondary);
    padding-left: 20px;
}

.terminal-line.output.success {
    color: var(--accent-green);
}

.terminal-cursor {
    animation: blink 1s step-end infinite;
    color: var(--accent-green);
}

/* Framework Badges */
.framework-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.fw-badge {
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-mono);
    border: 1px solid;
}

.fw-badge.esx {
    color: var(--accent-blue);
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.08);
}

.fw-badge.qb {
    color: var(--accent-cyan);
    border-color: rgba(6, 182, 212, 0.3);
    background: rgba(6, 182, 212, 0.08);
}

.fw-badge.qbox {
    color: var(--accent-purple);
    border-color: rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.08);
}

.fw-badge.standalone {
    color: var(--accent-green);
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.08);
}

/* Framework Detector */
.framework-detector {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 2;
}

.detect-line.indent {
    padding-left: 24px;
}

/* ---------- Tools Banner ---------- */
.tools-banner {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.005)), var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
}

.tools-banner + .tools-banner {
    margin-top: 18px;
}

.tools-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.tools-banner-content {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 30px 32px;
}

.tools-icon {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.25);
    flex-shrink: 0;
}

.tools-icon-glyph {
    width: 34px;
    height: 34px;
    color: var(--accent-purple);
}

.tools-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.tools-info p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 14px;
    max-width: 62ch;
}

.tools-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.tool-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.2px;
}

.tools-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tools-actions .btn.btn-primary,
.tools-actions .btn.btn-outline {
    padding: 11px 18px !important;
    font-size: 0.88rem !important;
}

/* ---------- Minigames Snapshot ---------- */
.minigames-snapshot-wrap {
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--bg-card);
    margin-bottom: 32px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.minigames-snapshot-wrap:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.minigames-snap-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
}

.minigames-snap-url {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 5px 14px;
    flex: 1;
    user-select: none;
}

.minigames-snap-url svg {
    color: var(--accent-green);
    flex-shrink: 0;
}

.minigames-snap-viewport {
    height: 520px;
    position: relative;
    overflow: hidden;
}

.minigames-snap-viewport iframe {
    width: 1440px;
    height: 900px;
    transform: scale(0.78);
    transform-origin: top left;
    pointer-events: none;
    border: none;
    display: block;
}

.minigames-snap-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background var(--transition);
}

.minigames-snap-overlay:hover {
    background: rgba(10, 10, 15, 0.62);
    color: var(--text-primary);
}

.minigames-snap-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(10, 10, 15, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    padding: 28px 48px;
    box-shadow: var(--shadow-glow);
    text-align: center;
    color: var(--text-primary);
    transition: border-color var(--transition), translate var(--transition);
}

.minigames-snap-overlay:hover .minigames-snap-cta {
    border-color: var(--accent-purple);
    translate: 0 -3px;
}

.minigames-snap-cta i {
    color: var(--accent-purple);
}

.minigames-snap-cta span {
    font-weight: 700;
    font-size: 1.05rem;
}

.minigames-snap-cta small {
    color: var(--text-secondary);
    font-size: 0.8rem;
}
.minigames-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.minigame-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.minigame-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.minigame-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.minigame-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple);
    flex-shrink: 0;
}

.minigame-icon svg,
.minigame-icon i {
    width: 20px;
    height: 20px;
}

.minigame-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.minigame-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ---------- Team Section ---------- */
.team-members {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.member-card:hover {
    border-color: var(--border-glow);
    translate: 0 -4px;
    box-shadow: var(--shadow-glow);
}

.member-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 18px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.1);
    transition: all var(--transition);
}

.member-card:hover .member-avatar {
    border-color: var(--accent-purple);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.25);
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.member-role {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.08);
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid rgba(168, 85, 247, 0.15);
}

.member-github {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    color: var(--text-secondary);
    transition: color 0.3s ease, transform 0.3s ease;
}

.member-github:hover {
    color: #fff;
    transform: scale(1.15);
}

.team-cta {
    max-width: 700px;
    margin: 0 auto;
}

.team-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.team-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(168, 85, 247, 0.1), transparent, rgba(236, 72, 153, 0.1), transparent);
    animation: rotateGlow 8s linear infinite;
    z-index: 0;
}

.team-card-content {
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    margin: 1px;
    border-radius: var(--radius-xl);
    padding: 48px;
}

.team-card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.team-card-content > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 32px;
}

.skill-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 10px 16px;
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.12);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
}

.skill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-purple);
}

.team-action {
    text-align: center;
}

.team-subheading {
    margin-top: 28px;
}

.team-note {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 12px;
}

/* ---------- FAQ ---------- */
.faq-grid {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition);
}

.faq-item.active {
    border-color: var(--border-glow);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-main);
    transition: color var(--transition);
}

.faq-question:hover {
    color: var(--accent-purple);
}

.faq-chevron {
    flex-shrink: 0;
    transition: transform var(--transition);
    color: var(--text-muted);
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent-purple);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.7;
}

.faq-answer code {
    background: rgba(168, 85, 247, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    color: var(--accent-purple);
}

/* ---------- Latest Video Section ---------- */
.video-showcase {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.video-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(168, 85, 247, 0.05);
}

.video-embed {
    position: relative;
    padding-top: 56.25%;
    background: var(--bg-card);
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.video-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(168, 85, 247, 0.15);
    border-top-color: var(--accent-purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.video-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

.video-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-purple);
}

.video-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

/* Watch on YouTube button- larger highlight */
#videoWatchBtn.btn.btn-primary {
    padding: 14px 32px !important;
    font-size: 1rem !important;
}

#videoWatchBtn:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.5), 0 0 60px rgba(168, 85, 247, 0.2);
}

/* Subscribe button- match watch button sizing */
.video-actions .btn.btn-outline {
    padding: 14px 28px !important;
    font-size: 1rem !important;
}

/* ---------- Older Videos Grid ---------- */
.older-videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.older-video-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
}

.older-video-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.15);
    color: inherit;
}

.older-video-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.older-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.older-video-card:hover .older-video-thumb img {
    transform: scale(1.05);
}

.older-video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity var(--transition);
}

.older-video-card:hover .older-video-play {
    opacity: 1;
}

.older-video-play svg {
    width: 36px;
    height: 36px;
    color: #fff;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.older-video-info {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.older-video-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.older-video-date {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-purple);
}

/* ---------- CTA Section ---------- */
.cta-section {
    background: rgba(15, 15, 26, 0.9);
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 30% 50%, rgba(168, 85, 247, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 80% 60% at 70% 50%, rgba(236, 72, 153, 0.05) 0%, transparent 60%);
}

.cta-section::after {
    background: none;
}

.cta-content {
    position: relative;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 36px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
    background: rgba(10, 10, 15, 0.95);
    border-top: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.3), rgba(236, 72, 153, 0.2), transparent) 1;
    padding: 64px 0 32px;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 16px;
    margin-bottom: 20px;
    line-height: 1.7;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all var(--transition);
}

.social-link:hover {
    color: var(--accent-purple);
    border-color: var(--border-glow);
    background: rgba(168, 85, 247, 0.08);
    transform: translateY(-2px);
}

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 6px 0;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--accent-purple);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-code {
    font-family: var(--font-mono);
}

.heart {
    color: var(--accent-pink);
}

.coffee {
    color: var(--accent-yellow);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

@keyframes blink {
    50% { opacity: 0; }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(calc(-50% - 12px)) translateX(-5px); }
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Scroll reveal */
.about-card,
.product-card,
.feature-row,
.faq-item,
.tools-banner,
.team-card,
.member-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, translate var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.about-card.visible,
.product-card.visible,
.feature-row.visible,
.faq-item.visible,
.tools-banner.visible,
.team-card.visible,
.member-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for grid items */
.about-card:nth-child(1) { transition-delay: 0s; }
.about-card:nth-child(2) { transition-delay: 0.1s; }
.about-card:nth-child(3) { transition-delay: 0.2s; }
.about-card:nth-child(4) { transition-delay: 0.3s; }
.about-card:nth-child(5) { transition-delay: 0.4s; }
.about-card:nth-child(6) { transition-delay: 0.5s; }

.product-card:nth-child(1) { transition-delay: 0s; }
.product-card:nth-child(2) { transition-delay: 0.15s; }
.product-card:nth-child(3) { transition-delay: 0.3s; }

.member-card:nth-child(1) { transition-delay: 0s; }
.member-card:nth-child(2) { transition-delay: 0.15s; }
.member-card:nth-child(3) { transition-delay: 0.3s; }

.minigame-card:nth-child(1) { transition-delay: 0s; }
.minigame-card:nth-child(2) { transition-delay: 0.07s; }
.minigame-card:nth-child(3) { transition-delay: 0.14s; }
.minigame-card:nth-child(4) { transition-delay: 0.21s; }
.minigame-card:nth-child(5) { transition-delay: 0.28s; }
.minigame-card:nth-child(6) { transition-delay: 0.35s; }
.minigame-card:nth-child(7) { transition-delay: 0.42s; }
.minigame-card:nth-child(8) { transition-delay: 0.49s; }

/* ---------- Other Projects Section ---------- */
.other-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.other-project-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color var(--transition), box-shadow var(--transition);
}

.other-project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition);
}

.other-project-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    color: inherit;
}

.other-project-card:hover::before { opacity: 1; }

.other-project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.other-project-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple);
    flex-shrink: 0;
    margin-top: 2px;
}

.other-project-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.other-project-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.other-project-info p {
    color: var(--text-secondary);
    font-size: 0.855rem;
    line-height: 1.6;
    flex: 1;
}

.other-project-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-purple);
    margin-top: 6px;
    transition: color var(--transition);
}

.other-project-card:hover .other-project-link { color: var(--accent-pink); }

.other-project-card:nth-child(1) { transition-delay: 0s; }
.other-project-card:nth-child(2) { transition-delay: 0.12s; }
.other-project-card:nth-child(3) { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */
/* Minigames responsive */
@media (max-width: 768px) {
    .minigames-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .minigames-snap-viewport {
        height: 280px;
    }
    .minigames-snap-viewport iframe {
        transform: scale(0.4);
    }
    .minigames-snap-cta {
        padding: 20px 28px;
    }
}
    .minigames-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .minigames-actions .btn {
        justify-content: center;
    }
}

/* ← original responsive below */
@media (max-width: 1400px) {
    .hero-code-window {
        display: none;
    }
}

@media (max-width: 1024px) {
    .minigames-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .minigames-snap-viewport {
        height: 400px;
    }
    .minigames-snap-viewport iframe {
        transform: scale(0.6);
    }
    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
        gap: 32px;
        direction: ltr;
    }

    .other-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
        padding: 16px;
        gap: 4px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translateY(5px);
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translateY(-5px);
    }

    .hero {
        min-height: auto;
        padding: 120px 20px 60px;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-divider {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .tools-banner-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 16px;
        padding: 24px;
    }

    .tools-icon {
        width: 58px;
        height: 58px;
    }

    .tools-icon-glyph {
        width: 28px;
        height: 28px;
    }

    .tools-info h3 {
        font-size: 1.1rem;
    }

    .team-members {
        grid-template-columns: 1fr;
        max-width: 300px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .team-card-content {
        padding: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .video-showcase {
        grid-template-columns: 1fr;
    }

    .video-title {
        font-size: 1.2rem;
    }

    .video-actions {
        justify-content: flex-start;
    }

    .older-videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .other-projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .framework-badges {
        flex-direction: column;
    }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.5);
}

/* ---------- Live Resources Sections ---------- */
.resources-section {
    margin-top: 48px;
}

.resources-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.resources-section-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.resources-section-icon.paid {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    color: var(--accent-purple);
}

.resources-section-icon.free {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.resources-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.resources-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
    margin-left: 6px;
}

.resources-badge.paid {
    background: var(--gradient-primary);
    color: #fff;
}

.resources-badge.free {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.resources-section-icon.stream {
    background: rgba(145, 70, 255, 0.15);
    color: #9146ff;
}

.resources-badge.stream {
    background: rgba(145, 70, 255, 0.2);
    color: #9146ff;
}

.resources-section-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 2px 0 0;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.resources-loading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.resources-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Resource Card */
.resource-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity var(--transition);
}

.resource-card.paid::before {
    background: var(--gradient-primary);
}

.resource-card.free::before {
    background: linear-gradient(90deg, #22c55e, #4ade80);
}

.resource-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.resource-card:hover::before {
    opacity: 1;
}

.resource-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.resource-card-header h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resource-card-icon {
    flex-shrink: 0;
    color: var(--text-muted);
}

.resource-card.paid .resource-card-icon {
    color: var(--accent-purple);
}

.resource-card.free .resource-card-icon {
    color: #22c55e;
}

.resource-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 auto;
    flex: 1;
}

.resource-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem;
}

.resource-lang {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-weight: 500;
}

.lang-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.resource-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
}

.resource-stars svg {
    color: #eab308;
}

.resource-price {
    font-weight: 700;
    color: var(--accent-purple);
    font-size: 0.9rem;
}

.resource-cta {
    color: var(--text-muted);
    font-weight: 500;
    transition: color var(--transition);
}

.resource-card:hover .resource-cta {
    color: var(--accent-purple);
}

.resource-card-img {
    margin: -20px -20px 16px -20px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--bg-secondary);
}

.resource-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.resource-card:hover .resource-card-img img {
    transform: scale(1.05);
}

.resource-card.has-image {
    padding-top: 20px;
}

@media (max-width: 640px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }

    .resources-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
