/* ======================================
   DESIGN TOKENS
   ====================================== */
:root {
    /* Colors */
    --bg-primary: #020108;
    --bg-secondary: #080314;
    --bg-card: rgba(14, 10, 31, 0.55);
    --bg-card-hover: rgba(31, 22, 60, 0.65);

    --accent-primary: #9d4edd;
    --accent-secondary: #7b2cbf;
    --accent-glow: rgba(157, 78, 221, 0.4);
    --accent-pink: #f72585;
    --accent-blue: #4361ee;
    --accent-cyan: #4cc9f0;

    --text-primary: #f8f7ff;
    --text-secondary: rgba(248, 247, 255, 0.7);
    --text-muted: rgba(248, 247, 255, 0.45);

    --border-subtle: rgba(157, 78, 221, 0.15);
    --border-glow: rgba(157, 78, 221, 0.35);

    /* Spacing */
    --section-pad: clamp(80px, 10vw, 140px);
    --container-max: 1200px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ======================================
   RESET & BASE
   ====================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ======================================
   PARTICLE CANVAS
   ====================================== */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ======================================
   CURSOR GLOW
   ====================================== */
#cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    mix-blend-mode: screen;
}

body:hover #cursor-glow {
    opacity: 0.25;
}

/* ======================================
   NAVIGATION
   ====================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s var(--ease-out);
    backdrop-filter: blur(0px);
}

#navbar.scrolled {
    padding: 10px 0;
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 20, 0.8);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
    max-width: 100%; /* Pushes logo and links to edges */
    margin: 0 auto;
    padding: 0 clamp(20px, 6vw, 60px); /* Slightly increased max horizontal padding for edge spacing */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

.logo-icon {
    font-size: 1.4rem;
    color: var(--accent-primary);
    animation: pulse-glow 3s infinite;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s, transform 0.3s var(--ease-spring);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-pink));
    border-radius: 2px;
    transition: width 0.3s var(--ease-out);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s, transform 0.3s var(--ease-spring);
}

.mobile-link:hover {
    color: var(--accent-primary);
    transform: scale(1.05);
}

/* ======================================
   HERO SECTION
   ====================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    filter: blur(1px);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 20, 0.4) 0%,
        rgba(10, 10, 20, 0.7) 50%,
        rgba(10, 10, 20, 1) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 20px 80px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
    text-align: left;
}

/* Avatar */
.hero-avatar-wrap {
    display: inline-block;
    position: relative;
    margin-bottom: 28px;
}

.avatar-ring {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    padding: 4px;
    background: var(--bg-primary);
    z-index: 1;
}

.avatar-ring::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(
        from var(--ring-angle, 0deg),
        var(--accent-primary),
        var(--accent-pink),
        var(--accent-secondary),
        var(--accent-primary)
    );
    z-index: -1;
    animation: ring-spin 4s linear infinite;
}

.avatar-ring-glow {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-pink));
    opacity: 0.35;
    filter: blur(24px);
    animation: pulse-glow 3s ease-in-out infinite;
    z-index: -2;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-primary);
    position: relative;
    z-index: 2;
}

.avatar-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 4px 12px var(--accent-glow);
    z-index: 10; /* Ensures it sits above all rings and images */
}

/* Title */
.hero-title {
    margin-bottom: 20px;
}

.hero-name {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-secondary), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-handle {
    display: block;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 8px;
    letter-spacing: 0.02em;
}

/* Quote */
.hero-quote {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-style: italic;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.8;
}

/* Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    margin-bottom: 40px;
}

.stat-item {
    padding: 0 clamp(16px, 4vw, 40px);
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
}

/* CTA */
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* ======================================
   HERO VIDEO CARD (RIGHT SPLIT)
   ====================================== */
.hero-col-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-video-card {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-xl);
    overflow: hidden;
    padding: 8px; /* Inner frame gap */
    background: rgba(14, 10, 31, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.hero-video-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-cyan), var(--accent-pink));
    opacity: 0.15;
    z-index: 0;
    filter: blur(10px);
    transition: opacity 0.5s;
    animation: pulse-glow 4s infinite alternate;
}

.hero-video-card:hover .hero-video-glow {
    opacity: 0.3;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--radius-xl) - 4px);
    position: relative;
    z-index: 1;
}

.hero-video-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: #ff3366;
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s var(--ease-spring);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-blue));
    color: white;
    box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: var(--border-glow);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-discord {
    background: transparent;
    color: #5865F2; /* Discord brand color */
    border: 1px solid rgba(88, 101, 242, 0.4);
}

.btn-discord:hover {
    background: rgba(88, 101, 242, 0.1);
    border-color: #5865F2;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.2);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 60px;
    position: relative;
    overflow: hidden;
    background: var(--border-subtle);
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(180deg, transparent, var(--accent-primary));
    animation: scroll-down 2s var(--ease-out) infinite;
}

/* ======================================
   SHARED SECTION STYLES
   ====================================== */
.section {
    position: relative;
    z-index: 2;
    padding: var(--section-pad) 0;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    padding: 6px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    background: rgba(139, 92, 246, 0.06);
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    transition: all 0.4s var(--ease-out);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(139, 92, 246, 0.1);
}

/* ======================================
   ABOUT SECTION
   ====================================== */
.section-about {
    background: linear-gradient(180deg, rgba(2,1,8,0.45) 0%, rgba(8,3,20,0.45) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-card {
    padding: 36px 28px;
    text-align: center;
}

.about-card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: float 4s ease-in-out infinite;
}

.about-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.about-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ======================================
   VIDEO SHOWCASE SECTION
   ====================================== */
.section-showcase {
    background: linear-gradient(180deg, rgba(8,3,20,0.45) 0%, rgba(2,1,8,0.45) 50%, rgba(8,3,20,0.45) 100%);
    padding: clamp(60px, 8vw, 100px) 0;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
}

.showcase-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.showcase-frame {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    box-shadow:
        0 0 30px rgba(139, 92, 246, 0.12),
        0 0 60px rgba(139, 92, 246, 0.04),
        0 16px 48px rgba(0, 0, 0, 0.35);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.showcase-frame:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 0 50px rgba(139, 92, 246, 0.2),
        0 0 100px rgba(139, 92, 246, 0.08),
        0 24px 64px rgba(0, 0, 0, 0.4);
}

.showcase-frame-glow {
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-xl);
    background: conic-gradient(
        from 0deg,
        var(--accent-primary),
        var(--accent-pink),
        var(--accent-secondary),
        var(--accent-primary)
    );
    opacity: 0.25;
    filter: blur(18px);
    z-index: 0;
    animation: ring-spin 10s linear infinite;
}

.showcase-image {
    position: relative;
    z-index: 1;
    width: 100%;
    display: block;
    border-radius: var(--radius-xl);
    object-fit: cover;
}

.showcase-video {
    position: relative;
    z-index: 1;
    width: 100%;
    display: block;
    border-radius: var(--radius-xl);
}

.showcase-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.showcase-label-icon {
    font-size: 1rem;
}

.showcase-caption {
    text-align: center;
    margin-top: 32px;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 400px;
    }
}


/* ======================================
   FEATURED PROJECT SECTION
   ====================================== */
.section-project {
    background: rgba(2, 1, 8, 0.45);
    padding: clamp(60px, 8vw, 100px) 0;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
}

.project-video-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-text-col {
    display: flex;
    flex-direction: column;
}

.project-text-scroll {
    max-height: 480px;
    overflow-y: auto;
    padding: 30px;
    border-radius: var(--radius-xl);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    background: rgba(139, 92, 246, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.1);
    
    /* Custom Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) rgba(255, 255, 255, 0.05);
}

.project-text-scroll::-webkit-scrollbar {
    width: 6px;
}

.project-text-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.project-text-scroll::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 10px;
}

.project-text-scroll p {
    margin-bottom: 20px;
}

.project-text-scroll p:last-child {
    margin-bottom: 0;
}

.text-highlight {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
    border-left: 3px solid var(--accent-primary);
    padding-left: 15px;
}

.text-link {
    color: var(--accent-pink);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.text-link:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

@media (max-width: 900px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .project-text-scroll {
        max-height: 400px;
    }
}


/* ======================================
   PHILOSOPHY SECTION
   ====================================== */
.section-philosophy {
    background: rgba(8, 3, 20, 0.45);
    position: relative;
}

.section-philosophy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(60px);
}

.philosophy-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.quote-showcase {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

.big-quote {
    padding: 48px 40px;
    position: relative;
    text-align: center;
}

.quote-mark {
    position: absolute;
    top: 24px;
    left: 32px;
    color: var(--accent-primary);
}

.quote-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 16px;
    min-height: 60px;
    transition: opacity 0.5s ease;
}

.quote-author {
    font-size: 0.9rem;
    color: var(--accent-secondary);
    font-weight: 500;
}

.philosophy-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.phil-card {
    padding: 32px 28px;
}

.phil-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.phil-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.phil-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ======================================
   EXPERTISE SECTION
   ====================================== */
.section-expertise {
    background: linear-gradient(180deg, rgba(8, 3, 20, 0.45) 0%, rgba(2, 1, 8, 0.45) 100%);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.expertise-item {
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
}

.expertise-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-pink), var(--accent-cyan));
    opacity: 0;
    transition: opacity 0.4s;
}

.expertise-item:hover::before {
    opacity: 1;
}

.expertise-icon-wrap {
    margin-bottom: 20px;
}

.expertise-icon {
    font-size: 2.2rem;
}

.expertise-item h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.expertise-item p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.expertise-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-secondary);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.15);
}

/* ======================================
   ACTIVITY / TIMELINE SECTION
   ====================================== */
.section-activity {
    background: rgba(2, 1, 8, 0.45);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(
        180deg,
        transparent,
        var(--accent-primary) 10%,
        var(--accent-primary) 90%,
        transparent
    );
    opacity: 0.3;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    padding: 0 0 40px;
    display: flex;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
    padding-right: calc(50% + 32px);
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
    padding-left: calc(50% + 32px);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 24px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 3px solid var(--bg-primary);
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 16px var(--accent-glow);
}

.timeline-card {
    padding: 24px;
    width: 100%;
}

.timeline-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.timeline-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.timeline-engagement {
    margin-top: 12px;
    display: flex;
    gap: 12px;
}

.timeline-engagement span {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid var(--border-subtle);
}

.timeline-cta {
    text-align: center;
    margin-top: 48px;
}

/* ======================================
   CONTACT SECTION
   ====================================== */
.section-contact {
    background: linear-gradient(180deg, rgba(2, 1, 8, 0.45), rgba(8, 3, 20, 0.45));
}

.contact-content {
    display: flex;
    justify-content: center;
}

.contact-card {
    text-align: center;
    padding: 48px 56px;
    max-width: 480px;
    width: 100%;
}

.contact-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-primary);
    box-shadow: 0 0 24px var(--accent-glow);
}

.contact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.contact-motto {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 500;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid var(--border-subtle);
    transition: all 0.3s var(--ease-spring);
    color: var(--text-secondary);
}

.social-link:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--border-glow);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
}

.social-link.social-link-discord {
    color: #5865F2;
}

.social-link.social-link-discord:hover {
    background: rgba(88, 101, 242, 0.15);
    border-color: #5865F2;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.2);
}

.contact-since {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ======================================
   FOOTER
   ====================================== */
.footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--border-subtle);
    padding: 32px 0;
    background: var(--bg-secondary);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent-primary);
}

.footer-inner p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

.footer-year {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ======================================
   ANIMATIONS
   ====================================== */
@keyframes ring-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.08); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes scroll-down {
    0% { top: -100%; }
    100% { top: 200%; }
}

/* Reveal Animations */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0);
}

/* ======================================
   SVG ORBITAL RINGS (Hero)
   ====================================== */
.orbital-rings {
    position: absolute;
    width: 340px;
    height: 340px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

/* ======================================
   WAVE DIVIDERS
   ====================================== */
.wave-divider {
    position: relative;
    z-index: 3;
    margin-top: -2px;
    margin-bottom: -2px;
    line-height: 0;
    overflow: hidden;
}

.wave-divider svg {
    width: 100%;
    height: 60px;
    display: block;
}

.wave-flip {
    transform: scaleX(-1);
}

/* ======================================
   FLOATING SVG DECORATIONS
   ====================================== */
.svg-float {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

/* About section floats */
.svg-float-1 {
    top: 12%;
    left: 5%;
    animation: svg-drift-1 18s ease-in-out infinite;
}

.svg-float-2 {
    top: 60%;
    right: 8%;
    animation: svg-drift-2 22s ease-in-out infinite;
}

.svg-float-3 {
    bottom: 8%;
    left: 15%;
    animation: svg-drift-3 20s ease-in-out infinite;
}

/* Philosophy section floats */
.svg-float-4 {
    top: 8%;
    right: 6%;
    animation: svg-drift-2 24s ease-in-out infinite;
}

.svg-float-5 {
    bottom: 15%;
    left: 4%;
    animation: svg-drift-1 28s ease-in-out infinite;
}

/* Expertise section floats */
.svg-float-6 {
    top: 10%;
    right: 4%;
    animation: svg-drift-3 26s ease-in-out infinite;
}

/* Activity section floats */
.svg-float-7 {
    top: 15%;
    right: 10%;
    animation: svg-drift-1 20s ease-in-out infinite;
}

.svg-float-8 {
    bottom: 12%;
    left: 6%;
    animation: svg-drift-2 24s ease-in-out infinite;
}

@keyframes svg-drift-1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(12px, -18px) rotate(3deg); }
    50% { transform: translate(-8px, -28px) rotate(-2deg); }
    75% { transform: translate(15px, -10px) rotate(4deg); }
}

@keyframes svg-drift-2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-15px, 12px) rotate(-3deg); }
    50% { transform: translate(10px, 22px) rotate(2deg); }
    75% { transform: translate(-18px, 8px) rotate(-4deg); }
}

@keyframes svg-drift-3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -15px) rotate(5deg); }
    66% { transform: translate(-12px, 18px) rotate(-3deg); }
}

/* ======================================
   SVG NETWORK MESH (Expertise)
   ====================================== */
.svg-network {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}

/* ======================================
   SVG CONTACT RINGS
   ====================================== */
.svg-contact-rings {
    position: absolute;
    width: 500px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

/* ======================================
   RESPONSIVE
   ====================================== */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 100px;
    }
    .hero-col-left {
        align-items: center;
        order: 1; /* Name, Avatar, and Text come FIRST on mobile */
    }
    .hero-col-right {
        order: 2; /* Video comes SECOND below the text */
        margin-top: 40px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-avatar-wrap {
        align-items: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-cta {
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .philosophy-cards {
        grid-template-columns: 1fr;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .avatar-ring {
        width: 130px;
        height: 130px;
    }

    /* Timeline: single column */
    .timeline-line {
        left: 16px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 48px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .timeline-dot {
        left: 16px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .contact-card {
        padding: 36px 24px;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .svg-float,
    .svg-network,
    .svg-contact-rings {
        display: none;
    }

    .orbital-rings {
        width: 260px;
        height: 260px;
    }

    .wave-divider svg {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .big-quote {
        padding: 32px 24px;
    }
}

/* ======================================
   AMBIENT BACKGROUND NEBULAS
   ====================================== */
.ambient-nebulas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -2; /* Completely behind the hero section (which is -1) */
    pointer-events: none;
    mix-blend-mode: normal; /* Normal blend to avoid blown-out colors */
}

.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15; /* Restored elegant opacity */
    animation: nebula-drift 35s infinite alternate cubic-bezier(0.4, 0.0, 0.2, 1);
    will-change: transform;
}

.nebula-1 {
    width: 70vw;
    height: 70vw;
    background: var(--accent-primary);
    top: 10%;
    left: -20%;
    animation-duration: 45s;
    animation-delay: -5s;
}

.nebula-2 {
    width: 60vw;
    height: 60vw;
    background: var(--accent-cyan);
    top: 30%;
    right: -10%;
    animation-duration: 55s;
    animation-direction: alternate-reverse;
}

.nebula-3 {
    width: 80vw;
    height: 80vw;
    background: var(--accent-pink);
    bottom: -10%;
    left: 10%;
    animation-duration: 65s;
    opacity: 0.12;
}

@keyframes nebula-drift {
    0% { transform: translate(0, 0) scale(1.1); }
    33% { transform: translate(15vw, 15vh) scale(0.9); }
    66% { transform: translate(-10vw, 25vh) scale(1.15); }
    100% { transform: translate(25vw, -5vh) scale(0.95); }
}
