/**
 * seojuwon.com — Cinematic Portfolio
 * Brand: Cyan → Purple → Magenta gradient
 * 5-Pointed Rounded Star Identity
 */

:root {
    --color-brand-cyan: #00D4FF;
    --color-brand-purple: #A855F7;
    --color-brand-magenta: #FF3CAC;
    --color-bg: #07071C;
    --color-bg-alt: #0A0A2E;
    --color-surface: rgba(15, 15, 48, 0.6);
    --color-surface-hover: rgba(25, 25, 68, 0.8);
    --color-text: #F0F0FF;
    --color-text-dim: #7878A0;
    --color-text-muted: #3A3A5E;
    --brand-gradient: linear-gradient(135deg, var(--color-brand-cyan), var(--color-brand-purple), var(--color-brand-magenta));
    --brand-gradient-hover: linear-gradient(135deg, var(--color-brand-magenta), var(--color-brand-purple), var(--color-brand-cyan));
    --brand-gradient-90: linear-gradient(90deg, var(--color-brand-cyan), var(--color-brand-purple), var(--color-brand-magenta));
    --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.4);
    --glow-purple: 0 0 20px rgba(168, 85, 247, 0.4);
    --glow-magenta: 0 0 20px rgba(255, 60, 172, 0.4);
    --glow-mixed: 0 0 30px rgba(168, 85, 247, 0.3), 0 0 60px rgba(0, 212, 255, 0.15), inset 0 0 20px rgba(0, 212, 255, 0.1);
    --glow-heavy: 0 0 40px rgba(168, 85, 247, 0.4), 0 0 80px rgba(0, 212, 255, 0.2), 0 0 120px rgba(255, 60, 172, 0.1);
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Noto Sans KR', sans-serif;
    --cursor-size: 10px;
    --cursor-follower-size: 40px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; background-color: var(--color-bg); color: var(--color-text); }
body {
    font-family: var(--font-body); line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Selection */
::selection { background: var(--color-brand-purple); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--brand-gradient); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-muted); }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 400; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 5%; }
.section { padding: 10rem 0; position: relative; }

/* ── Scroll Reveal Classes (IntersectionObserver) ── */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Section divider glow line */
.section + .section::before {
    content: ''; position: absolute; top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-brand-cyan), var(--color-brand-purple), var(--color-brand-magenta), transparent);
    opacity: 0.15;
}

/* ── Ambient Background ───────────────────── */
.ambient-orbs {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none; overflow: hidden;
}

.orb {
    position: absolute; border-radius: 50%;
    filter: blur(100px); opacity: 0.15;
    animation: orbFloat 20s ease-in-out infinite alternate;
}

.orb-1 {
    width: 600px; height: 600px;
    background: var(--color-brand-cyan);
    top: -20%; left: -10%;
    animation-duration: 25s;
}

.orb-2 {
    width: 500px; height: 500px;
    background: var(--color-brand-purple);
    top: 40%; right: -15%;
    animation-duration: 30s;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px; height: 400px;
    background: var(--color-brand-magenta);
    bottom: -10%; left: 30%;
    animation-duration: 22s;
    animation-delay: -10s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -80px) scale(1.1); }
    66% { transform: translate(-30px, 40px) scale(0.9); }
    100% { transform: translate(20px, -30px) scale(1.05); }
}

/* Grid Overlay */
.grid-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none; opacity: 0.03;
    background-image:
        linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 80px 80px;
}

/* Noise texture overlay for cinematic depth */
body::after {
    content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 9998; pointer-events: none;
    opacity: 0.015;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px;
}

/* ── Section Labels ───────────────────────── */
.section-label {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 3rem; opacity: 0.5;
}

.label-line {
    width: 40px; height: 1px;
    background: var(--brand-gradient);
}

.label-text {
    font-size: 0.75rem; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--color-text-dim);
    font-family: var(--font-body);
}

/* ── Custom Cursor ─────────────────────────── */
body.has-custom-cursor { cursor: none; }
body.has-custom-cursor a,
body.has-custom-cursor button { cursor: none; }

.cursor, .cursor-follower {
    position: fixed; top: 0; left: 0;
    border-radius: 50%; pointer-events: none; z-index: 9999;
    display: none;
}

body.has-custom-cursor .cursor,
body.has-custom-cursor .cursor-follower { display: block; }

.cursor {
    width: var(--cursor-size); height: var(--cursor-size);
    background: var(--color-brand-cyan);
    box-shadow: var(--glow-cyan);
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

.cursor-follower {
    width: var(--cursor-follower-size); height: var(--cursor-follower-size);
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.4);
    box-shadow: var(--glow-purple);
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out-expo),
        height 0.3s var(--ease-out-expo),
        background-color 0.3s ease, box-shadow 0.3s ease;
}

.cursor-follower.hover {
    width: 64px; height: 64px;
    background: rgba(255, 60, 172, 0.15);
    border-color: rgba(255, 60, 172, 0.6);
    box-shadow: var(--glow-magenta);
    backdrop-filter: blur(4px);
}

/* ── Preloader ─────────────────────────────── */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--color-bg); z-index: 99999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    color: var(--color-text);
}

.preloader-logo {
    width: 100px; height: 100px; margin-bottom: 2rem;
    animation: preloaderStarSpin 4s linear infinite;
}

.preloader-logo .brand-star-svg { width: 100%; height: 100%; object-fit: contain; }

@keyframes preloaderStarSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.15); }
    100% { transform: rotate(360deg) scale(1); }
}

.preloader-counter {
    font-family: var(--font-heading); font-size: 8rem; font-weight: 300; line-height: 1;
    background: var(--brand-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.preloader-progress {
    width: 200px; height: 2px; margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full); overflow: hidden;
}

.preloader-progress-bar {
    width: 0%; height: 100%;
    background: var(--brand-gradient);
    border-radius: var(--radius-full);
    box-shadow: var(--glow-cyan);
}

.preloader-text {
    font-size: 0.85rem; letter-spacing: 0.25em; text-transform: uppercase;
    color: var(--color-text-muted); margin-top: 1rem;
}

/* ── Header ────────────────────────────────── */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 1.5rem 5%;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000;
    background: rgba(7, 7, 28, 0.4);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #fff;
}

.site-header::after {
    content: ''; position: absolute; bottom: -1px; left: 0; width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-brand-cyan), var(--color-brand-purple), var(--color-brand-magenta), transparent);
    opacity: 0.2;
}

.logo {
    display: flex; align-items: center; gap: 0.6rem;
}

.logo-star { width: 32px; height: 32px; object-fit: contain; }

.logo-text {
    font-family: var(--font-heading); font-size: 1.3rem;
    font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}

.desktop-nav ul { display: flex; gap: 3rem; }

.desktop-nav a {
    font-size: 0.85rem; letter-spacing: 0.15em;
    text-transform: uppercase; position: relative; padding: 0.5rem 0;
    transition: color 0.3s;
}

.desktop-nav a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0%; height: 1px;
    background: var(--brand-gradient);
    transition: width 0.4s var(--ease-out-expo);
}

.desktop-nav a:hover { color: var(--color-brand-cyan); }
.desktop-nav a:hover::after { width: 100%; }

/* ── Mobile Menu Button ────────────────────── */
.mobile-menu-btn {
    display: none; background: none; border: none; cursor: pointer;
    width: 30px; height: 20px; position: relative; z-index: 1001;
}

.mobile-menu-btn span {
    position: absolute; left: 0; width: 100%; height: 2px;
    background-color: #fff; transition: all 0.4s var(--ease-out-expo);
}

.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { bottom: 0; }

.mobile-menu-btn.active span:nth-child(1) {
    top: 50%; transform: translateY(-50%) rotate(45deg);
    background: var(--color-brand-cyan);
}
.mobile-menu-btn.active span:nth-child(2) {
    bottom: 50%; transform: translateY(50%) rotate(-45deg);
    background: var(--color-brand-magenta);
}

/* ── Mobile Menu Overlay ──────────────────── */
.mobile-menu {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 999;
    background: rgba(7, 7, 28, 0.96);
    backdrop-filter: blur(40px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.5s var(--ease-out-expo);
}

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

.mobile-menu-bg-star {
    position: absolute; width: 80vw; height: 80vw; max-width: 500px; max-height: 500px;
    animation: starInnerSpin 30s linear infinite;
    opacity: 0.5;
}

.mobile-menu-nav {
    display: flex; flex-direction: column; align-items: center; gap: 2rem;
    position: relative; z-index: 1;
}

.mobile-menu-link {
    font-family: var(--font-heading); font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
    color: var(--color-text); opacity: 0; transform: translateY(30px);
    transition: all 0.5s var(--ease-out-expo), color 0.3s;
}

.mobile-menu.active .mobile-menu-link { opacity: 1; transform: translateY(0); }
.mobile-menu.active .mobile-menu-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-menu-link:nth-child(4) { transition-delay: 0.4s; }

.mobile-menu-link:hover {
    background: var(--brand-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Hero Section ──────────────────────────── */
.hero-section {
    height: 100vh; min-height: 700px;
    display: flex; justify-content: center; align-items: center;
    overflow: hidden; padding: 0; position: relative;
}

#hero-canvas {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; transform: scale(1.05);
}

.hero-content {
    position: relative; z-index: 1; text-align: center; pointer-events: none;
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase;
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: var(--radius-full);
    background: rgba(168, 85, 247, 0.08);
    color: var(--color-brand-purple);
    margin-bottom: 2rem; opacity: 0;
    backdrop-filter: blur(10px);
    animation: badgePulse 3s ease-in-out infinite alternate;
}

@keyframes badgePulse {
    0% { border-color: rgba(168, 85, 247, 0.3); box-shadow: 0 0 10px rgba(168, 85, 247, 0.05); }
    100% { border-color: rgba(0, 212, 255, 0.4); box-shadow: 0 0 25px rgba(0, 212, 255, 0.1); }
}

/* Hero title glow on hover */
.hero-title-line span {
    transition: text-shadow 0.3s;
}
.hero-title:hover .hero-title-line span {
    text-shadow: 0 0 40px rgba(168, 85, 247, 0.4), 0 0 80px rgba(0, 212, 255, 0.2);
}

.hero-title-line {
    display: block; overflow: hidden;
    padding-bottom: 0.15em; /* prevent descender clipping on J, g, y etc */
    margin-bottom: -0.15em; /* compensate for padding */
}

.hero-title {
    font-size: clamp(4rem, 14vw, 13rem); line-height: 0.85;
    letter-spacing: -0.02em; font-weight: 300; text-transform: uppercase;
    margin: 0; color: #fff; white-space: nowrap;
}

.hero-subtitle {
    font-size: clamp(0.85rem, 1.8vw, 1.1rem); letter-spacing: 0.3em;
    text-transform: uppercase; margin-top: 2.5rem; font-weight: 400; opacity: 0;
    color: var(--color-text-dim);
}

/* Hero floating stars */
.hero-floating-star {
    position: absolute; z-index: 0; pointer-events: none;
}

.hero-star-1 {
    right: 8%; top: 15%; width: 250px; height: 250px;
    animation: heroStarFloat1 10s ease-in-out infinite alternate;
}

.hero-star-2 {
    left: 5%; bottom: 20%; width: 180px; height: 180px;
    animation: heroStarFloat2 12s ease-in-out infinite alternate;
}

.hero-star-3 {
    right: 25%; bottom: 10%; width: 400px; height: 400px;
    animation: heroStarFloat3 15s ease-in-out infinite alternate;
}

@keyframes heroStarFloat1 {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-40px) rotate(20deg); }
}

@keyframes heroStarFloat2 {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(30px) rotate(-15deg); }
}

@keyframes heroStarFloat3 {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    100% { transform: translate(-20px, -20px) rotate(10deg) scale(1.05); }
}

.scroll-indicator {
    position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%);
    z-index: 1; opacity: 0;
    display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
}

.scroll-text {
    font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase;
    color: var(--color-text-muted);
}

.scroll-line {
    width: 1px; height: 40px;
    background: var(--brand-gradient);
    animation: scrollLineAnim 2s ease-in-out infinite;
}

@keyframes scrollLineAnim {
    0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
    50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
    50.1% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ── About Section ─────────────────────────── */
.about-section { position: relative; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 2rem;
    text-transform: uppercase; letter-spacing: 0.08em;
    background: var(--brand-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-desc {
    font-size: 1.2rem; margin-bottom: 3rem; opacity: 0.85;
    line-height: 1.8; color: var(--color-text);
}

/* ── About Highlight Cards ─────────────────── */
.about-highlights {
    display: flex; flex-direction: column; gap: 1rem;
}

.highlight-card {
    display: flex; align-items: center; gap: 1.2rem;
    padding: 1.2rem 1.5rem;
    background: rgba(15, 15, 48, 0.5);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    position: relative; overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.highlight-card::before {
    content: ''; position: absolute; inset: -1px;
    background: var(--brand-gradient); border-radius: 16px;
    z-index: -1; opacity: 0;
    transition: opacity 0.4s ease;
}

.highlight-card::after {
    content: ''; position: absolute; inset: 1px;
    background: var(--color-bg-alt); border-radius: 15px;
    z-index: -1;
}

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

.highlight-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 24px rgba(168, 85, 247, 0.12);
}

.highlight-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(168, 85, 247, 0.12));
    border-radius: 12px; position: relative; z-index: 1;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.highlight-card:hover .highlight-icon {
    transform: scale(1.1);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.3);
}

.highlight-icon svg {
    width: 22px; height: 22px;
    color: var(--color-brand-purple);
    filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.3));
    transition: color 0.4s ease;
}

.highlight-card:hover .highlight-icon svg {
    color: var(--color-brand-cyan);
}

.highlight-info {
    display: flex; flex-direction: column; gap: 0.15rem;
    position: relative; z-index: 1;
}

.highlight-title {
    font-size: 1rem; font-weight: 600;
    color: var(--color-text); letter-spacing: 0.02em;
    line-height: 1.3;
}

.highlight-sub {
    font-size: 0.78rem; letter-spacing: 0.06em;
    color: var(--color-text-dim);
    line-height: 1.3;
}

.glitch-box {
    width: 100%; aspect-ratio: 1/1;
    background: var(--color-surface); backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative; display: flex; justify-content: center; align-items: center;
    font-size: 5rem; font-family: var(--font-heading); font-style: italic;
    color: rgba(255, 255, 255, 0.15); overflow: hidden;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    box-shadow: var(--glow-heavy);
    animation: organicShape 12s ease-in-out infinite alternate;
}

.glitch-box-star {
    position: absolute; width: 70%; height: 70%;
    animation: starInnerSpin 20s linear infinite;
}

.glitch-box-text {
    position: relative; z-index: 1;
    font-size: 6rem; font-weight: 300;
    background: var(--brand-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.3));
}

@keyframes starInnerSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes organicShape {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    25% { border-radius: 50% 50% 60% 40% / 45% 55% 50% 55%; }
    50% { border-radius: 55% 45% 50% 50% / 55% 45% 60% 40%; }
    75% { border-radius: 45% 55% 45% 55% / 50% 40% 55% 50%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.glitch-box::before {
    content: ''; position: absolute; inset: -2px;
    background: var(--brand-gradient); opacity: 0.15;
    border-radius: inherit; z-index: -1;
    filter: blur(1px);
}

.glitch-box::after {
    content: ''; position: absolute; inset: -50%;
    background: conic-gradient(from 0deg, var(--color-brand-cyan), var(--color-brand-purple), var(--color-brand-magenta), var(--color-brand-cyan));
    opacity: 0.08;
    pointer-events: none;
    animation: rotateGlow 10s linear infinite;
}

@keyframes rotateGlow { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ── Work Section ──────────────────────────── */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; margin-top: 4rem; }

.project-card {
    display: flex; flex-direction: column; gap: 1.5rem;
    perspective: 1000px; transform-style: preserve-3d; cursor: pointer;
    position: relative;
}

.project-visual {
    width: 100%; aspect-ratio: 16/10; border-radius: var(--radius-lg);
    overflow: hidden; background: var(--color-surface);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo), border-color 0.5s;
}

.project-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.5s;
}

.project-star {
    width: 60%; height: 60%;
    animation: starInnerSpin 15s linear infinite;
}

.project-card:hover .project-overlay { opacity: 1; }

.visual-placeholder {
    width: 100%; height: 100%; background-size: cover; background-position: center;
    transition: transform 0.8s var(--ease-out-expo); opacity: 0.4;
}

.visual-placeholder.type-1 {
    background: linear-gradient(135deg, #0a1628 0%, #1a0a30 40%, #0a2030 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}
.visual-placeholder.type-2 {
    background: linear-gradient(135deg, #1a0020 0%, #0a0a2e 40%, #001a2e 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite reverse;
}
.visual-placeholder.type-3 {
    background: linear-gradient(135deg, #001020 0%, #0a0a1e 40%, #200a20 100%);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
}
.visual-placeholder.type-4 {
    background: linear-gradient(135deg, #0a0020 0%, #1a1a30 40%, #001030 100%);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite reverse;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Scan line effect on project visuals */
.project-visual::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(transparent 40%, rgba(0,212,255,0.03) 50%, transparent 60%);
    background-size: 100% 200%;
    animation: scanLine 4s linear infinite;
    pointer-events: none; z-index: 1;
}

@keyframes scanLine {
    0% { background-position: 0% 0%; }
    100% { background-position: 0% 200%; }
}

.project-card:hover .project-visual {
    transform: translateY(-8px) scale(0.98);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.25), 0 0 100px rgba(0, 212, 255, 0.08);
    border-color: rgba(168, 85, 247, 0.4);
}

.project-card:hover .visual-placeholder { transform: scale(1.15); opacity: 0.7; }

.project-info { padding: 0 0.5rem; }

.project-number {
    font-family: var(--font-heading); font-size: 0.9rem;
    color: var(--color-text-muted); letter-spacing: 0.1em;
    margin-bottom: 0.5rem; display: block;
}

.project-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 0.5rem;
    font-family: var(--font-heading); font-weight: 500;
    transition: color 0.3s;
}

.project-card:hover .project-title {
    background: var(--brand-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-desc { color: var(--color-text-dim); margin-bottom: 1rem; font-size: 0.9rem; }
.project-tags { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.project-tags span {
    font-size: 0.7rem; padding: 0.35rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full); background: rgba(255, 255, 255, 0.02);
    color: var(--color-text-dim); text-transform: uppercase; letter-spacing: 0.08em;
    transition: all 0.3s;
}

.project-card:hover .project-tags span {
    border-color: rgba(0, 212, 255, 0.25); color: var(--color-brand-cyan);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.08);
    background: rgba(0, 212, 255, 0.04);
}

/* ── Shooting Stars ───────────────────────── */
#shooting-stars {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none; overflow: hidden;
}

.shooting-star {
    position: absolute;
    width: 150px; height: 2px;
    /* Gradient: transparent tail on RIGHT, bright head on LEFT (star moves left-down) */
    background: linear-gradient(270deg, rgba(255,255,255,0), rgba(0,212,255,0.6), rgba(168,85,247,0.9), #fff);
    border-radius: 100px;
    opacity: 0;
    filter: drop-shadow(0 0 6px rgba(168,85,247,0.6));
    animation: shootingStar var(--duration, 1.5s) var(--delay, 0s) linear forwards;
}

.shooting-star::before {
    content: '';
    position: absolute;
    left: -2px; top: 50%; transform: translateY(-50%);
    width: 6px; height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px 3px rgba(255,255,255,0.8), 0 0 20px 6px rgba(0,212,255,0.5);
}

@keyframes shootingStar {
    0% { transform: translate(0,0) rotate(var(--angle, -35deg)); opacity: 0; }
    3% { opacity: 1; }
    60% { opacity: 0.8; }
    100% { transform: translate(var(--tx, -800px), var(--ty, 600px)) rotate(var(--angle, -35deg)); opacity: 0; }
}

/* ── Mouse Glow ───────────────────────────── */
.mouse-glow {
    position: fixed; width: 600px; height: 600px;
    border-radius: 50%; pointer-events: none; z-index: 0;
    background: radial-gradient(circle, rgba(168,85,247,0.1) 0%, rgba(0,212,255,0.06) 30%, rgba(255,60,172,0.03) 50%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0; transition: opacity 0.5s;
}

body.has-custom-cursor .mouse-glow { opacity: 1; }

/* ── Mouse Canvas (interactive particle trail) ── */
#mouse-trail-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1; pointer-events: none;
}

/* ── Floating Particles (ambient sparkle throughout page) ── */
.floating-particles {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none; overflow: hidden;
}

.float-particle {
    position: absolute;
    width: 3px; height: 3px;
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle var(--fp-dur, 8s) var(--fp-delay, 0s) ease-in-out infinite;
}

@keyframes floatParticle {
    0% { transform: translate(0, 0) scale(0); opacity: 0; }
    15% { opacity: var(--fp-opacity, 0.6); transform: scale(1); }
    85% { opacity: var(--fp-opacity, 0.6); }
    100% { transform: translate(var(--fp-dx, 50px), var(--fp-dy, -200px)) scale(0); opacity: 0; }
}

/* ── Aurora / Nebula bands ─────────────────── */
.aurora-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none; overflow: hidden;
    mix-blend-mode: screen;
}

.aurora-band {
    position: absolute; width: 200%; height: 120px;
    filter: blur(60px); opacity: 0.04;
    animation: auroraWave var(--aurora-dur, 20s) ease-in-out infinite alternate;
}

.aurora-band-1 {
    top: 20%; left: -50%;
    background: linear-gradient(90deg, transparent, var(--color-brand-cyan), var(--color-brand-purple), transparent);
    --aurora-dur: 18s;
}
.aurora-band-2 {
    top: 55%; left: -30%;
    background: linear-gradient(90deg, transparent, var(--color-brand-purple), var(--color-brand-magenta), transparent);
    --aurora-dur: 24s;
    animation-delay: -6s;
}
.aurora-band-3 {
    top: 80%; left: -60%;
    background: linear-gradient(90deg, transparent, var(--color-brand-magenta), var(--color-brand-cyan), transparent);
    --aurora-dur: 22s;
    animation-delay: -12s;
}

@keyframes auroraWave {
    0% { transform: translateX(0) scaleY(1); }
    50% { transform: translateX(15%) scaleY(1.5); }
    100% { transform: translateX(-10%) scaleY(0.8); }
}

/* ── Text Shimmer Effect ────────────────────── */
.shimmer-text {
    position: relative;
    background: var(--brand-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: shimmerGradient 3s ease-in-out infinite;
}

@keyframes shimmerGradient {
    0% { background-position: 100% 50%; }
    50% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* ── Skills Section — SVG Icon Grid ──────── */
.skills-icon-grid {
    display: grid; grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem; margin-top: 3rem;
}

.skill-icon-card {
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
    padding: 2rem 1rem;
    background: var(--color-surface);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: all 0.4s var(--ease-out-expo);
    position: relative; overflow: hidden;
}

/* Gradient border glow on hover */
.skill-icon-card::before {
    content: ''; position: absolute; inset: -1px;
    background: var(--brand-gradient); border-radius: var(--radius-md);
    z-index: -1; opacity: 0;
    transition: opacity 0.4s ease;
}

.skill-icon-card::after {
    content: ''; position: absolute; inset: 1px;
    background: var(--color-bg-alt); border-radius: calc(var(--radius-md) - 1px);
    z-index: -1;
}

.skill-icon-card:hover::before { opacity: 1; }

.skill-icon-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(168, 85, 247, 0.15);
}

.skill-icon-wrap {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.4s var(--ease-out-expo);
    position: relative; z-index: 1;
}

.skill-icon-card:hover .skill-icon-wrap {
    transform: scale(1.2);
}

/* SVG img icon styling */
.skill-icon-card img {
    width: 48px; height: 48px; object-fit: contain;
    transition: filter 0.4s, transform 0.4s;
}

.skill-icon-card img.invert-icon {
    filter: invert(1);
}

.skill-icon-card:hover img {
    filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.6));
}

.skill-icon-card:hover img.invert-icon {
    filter: invert(1) drop-shadow(0 0 12px rgba(168, 85, 247, 0.6));
}

.skill-icon-card span {
    font-size: 0.7rem; letter-spacing: 0.08em;
    color: var(--color-text-muted); text-transform: uppercase;
    transition: color 0.3s;
    position: relative; z-index: 1;
}

.skill-icon-card:hover span { color: var(--color-text); }

/* Skill card ambient glow pulse */
.skill-icon-card:nth-child(odd)::before {
    animation: skillGlowPulse 4s ease-in-out infinite alternate;
}
.skill-icon-card:nth-child(even)::before {
    animation: skillGlowPulse 4s ease-in-out infinite alternate-reverse;
}

@keyframes skillGlowPulse {
    0% { opacity: 0; }
    50% { opacity: 0.15; }
    100% { opacity: 0; }
}

.skill-icon-card:hover::before {
    animation: none;
    opacity: 1;
}

/* ── Contact & Footer ──────────────────────── */
.contact-section { text-align: center; position: relative; overflow: hidden; }

.contact-star-bg {
    position: absolute; width: 60vw; height: 60vw; max-width: 700px; max-height: 700px;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    animation: starInnerSpin 40s linear infinite;
    pointer-events: none;
}

.cta-title {
    font-size: clamp(3rem, 8vw, 7rem); line-height: 1; margin-bottom: 4rem;
    position: relative; z-index: 1;
}

.cta-title .highlight {
    background: var(--brand-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: shimmerGradient 3s ease-in-out infinite;
    font-style: italic; display: inline-block;
    filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.3));
}

.contact-links {
    display: flex; justify-content: center; gap: 3rem;
    position: relative; z-index: 1;
}

.contact-link {
    font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.1em;
    position: relative; padding: 1.2rem 2rem; display: inline-flex;
    align-items: center; gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.4s var(--ease-out-expo);
    /* NOTE: no backdrop-filter here — it creates stacking context that hides text behind pseudo-elements */
    isolation: isolate; /* ensure proper z-index stacking for children vs pseudo-elements */
}

.link-icon { font-size: 1.4rem; opacity: 0.5; transition: opacity 0.3s; position: relative; z-index: 1; }
.link-text { position: relative; z-index: 1; }
.link-arrow { opacity: 0; transform: translateX(-10px); transition: all 0.3s var(--ease-out-expo); position: relative; z-index: 1; }

.contact-link:hover {
    border-color: rgba(168, 85, 247, 0.4);
    background: rgba(168, 85, 247, 0.08);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.15);
    transform: translateY(-4px);
}

.contact-link:hover .link-icon { opacity: 1; }
.contact-link:hover .link-arrow { opacity: 1; transform: translateX(0); }

.contact-link:hover .link-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated border sweep on contact links */
.contact-link::before {
    content: ''; position: absolute; inset: -1px;
    background: conic-gradient(from var(--border-angle, 0deg), transparent, var(--color-brand-cyan), var(--color-brand-purple), var(--color-brand-magenta), transparent);
    border-radius: var(--radius-full);
    z-index: -2; opacity: 0;
    animation: borderSweep 3s linear infinite;
}
.contact-link::after {
    content: ''; position: absolute; inset: 1px;
    background: var(--color-bg);
    border-radius: var(--radius-full);
    z-index: -1;
}

.contact-link:hover::before { opacity: 1; }

@keyframes borderSweep {
    0% { --border-angle: 0deg; }
    100% { --border-angle: 360deg; }
}

@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* Social Cards */
.social-cards {
    display: flex; justify-content: center; gap: 1.5rem;
    margin-top: 2.5rem; position: relative; z-index: 1;
}

.social-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.75rem; width: 120px; height: 120px;
    background: rgba(15, 15, 48, 0.5);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    transition: all 0.4s var(--ease-out-expo);
    text-decoration: none; color: var(--color-text-dim);
}

.social-icon {
    width: 32px; height: 32px;
    transition: all 0.4s var(--ease-out-expo);
}

.social-name {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em;
    font-family: var(--font-body); opacity: 0.6;
    transition: opacity 0.3s ease;
}

.social-card:hover { transform: translateY(-6px); }
.social-card:hover .social-icon { transform: scale(1.15); }
.social-card:hover .social-name { opacity: 1; }

/* LinkedIn */
.social-linkedin:hover {
    border-color: rgba(10, 102, 194, 0.5);
    background: rgba(10, 102, 194, 0.1);
    box-shadow: 0 0 30px rgba(10, 102, 194, 0.25), 0 0 60px rgba(10, 102, 194, 0.1);
    color: #0A66C2;
}

/* Hugging Face */
.social-huggingface:hover {
    border-color: rgba(255, 210, 30, 0.5);
    background: rgba(255, 210, 30, 0.08);
    box-shadow: 0 0 30px rgba(255, 210, 30, 0.25), 0 0 60px rgba(255, 210, 30, 0.1);
    color: #FFD21E;
}

/* Kaggle */
.social-kaggle:hover {
    border-color: rgba(32, 190, 255, 0.5);
    background: rgba(32, 190, 255, 0.1);
    box-shadow: 0 0 30px rgba(32, 190, 255, 0.25), 0 0 60px rgba(32, 190, 255, 0.1);
    color: #20BEFF;
}

/* Footer */
.site-footer { padding: 2rem 5%; border-top: 1px solid rgba(255, 255, 255, 0.04); }

.footer-content {
    display: flex; justify-content: space-between; align-items: center;
    color: var(--color-text-muted); font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 0.12em;
}

.footer-star { opacity: 0.5; }

.back-to-top {
    background: none; border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    color: inherit; cursor: pointer; padding: 0.5rem 1rem;
    text-transform: uppercase; letter-spacing: 0.1em;
    font-family: inherit; font-size: 0.7rem;
    transition: all 0.3s;
}

.back-to-top:hover {
    border-color: rgba(255, 60, 172, 0.4);
    color: var(--color-brand-magenta);
    box-shadow: 0 0 20px rgba(255, 60, 172, 0.15);
}

/* ── Achievements & AI Section ─────────────── */
.achievements-section { position: relative; overflow: hidden; }

.achievements-subtitle {
    font-size: 1.1rem; color: var(--color-text-dim);
    max-width: 600px; line-height: 1.7; margin-bottom: 4rem;
    letter-spacing: 0.02em;
}

.achievements-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.achievement-pillar {
    background: rgba(15, 15, 48, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
}

.achievement-pillar::before {
    content: ''; position: absolute; inset: -1px;
    border-radius: var(--radius-lg); z-index: -1; opacity: 0;
    transition: opacity 0.5s ease;
}
.achievement-pillar::after {
    content: ''; position: absolute; inset: 1px;
    background: var(--color-bg-alt); border-radius: calc(var(--radius-lg) - 1px); z-index: -1;
}

.pillar-research::before { background: linear-gradient(135deg, var(--color-brand-cyan), rgba(168, 85, 247, 0.3)); }
.pillar-certifications::before { background: linear-gradient(135deg, var(--color-brand-purple), rgba(0, 212, 255, 0.3)); }
.pillar-awards::before { background: linear-gradient(135deg, var(--color-brand-magenta), rgba(168, 85, 247, 0.3)); }

.achievement-pillar:hover::before { opacity: 1; }
.achievement-pillar:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(168, 85, 247, 0.12);
}

.pillar-hero {
    border-color: rgba(168, 85, 247, 0.15);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.08);
}

/* Pillar Header */
.pillar-header { text-align: center; margin-bottom: 2rem; position: relative; z-index: 1; }

.pillar-icon-ring {
    width: 56px; height: 56px; margin: 0 auto 1rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-md);
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease;
}

.pillar-icon-cyan { background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 212, 255, 0.05)); border: 1px solid rgba(0, 212, 255, 0.2); }
.pillar-icon-purple { background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(168, 85, 247, 0.05)); border: 1px solid rgba(168, 85, 247, 0.2); }
.pillar-icon-magenta { background: linear-gradient(135deg, rgba(255, 60, 172, 0.15), rgba(255, 60, 172, 0.05)); border: 1px solid rgba(255, 60, 172, 0.2); }

.achievement-pillar:hover .pillar-icon-ring { transform: scale(1.15); box-shadow: 0 0 20px rgba(168, 85, 247, 0.3); }

.pillar-icon-ring svg { width: 24px; height: 24px; }
.pillar-icon-cyan svg { color: var(--color-brand-cyan); filter: drop-shadow(0 0 4px rgba(0, 212, 255, 0.3)); }
.pillar-icon-purple svg { color: var(--color-brand-purple); filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.3)); }
.pillar-icon-magenta svg { color: var(--color-brand-magenta); filter: drop-shadow(0 0 4px rgba(255, 60, 172, 0.3)); }

.pillar-title {
    font-family: var(--font-heading); font-size: 1.5rem; font-weight: 500;
    letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.3rem;
}
.pillar-tag { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-text-muted); }
.pillar-body { position: relative; z-index: 1; }

/* Research Items */
.research-item {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: 1rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}
.research-item:last-child { border-bottom: none; }
.research-item:hover { padding-left: 0.5rem; }

.research-dot {
    width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; margin-top: 0.4rem;
    background: var(--color-brand-cyan); box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
    animation: dotPulse 3s ease-in-out infinite;
}
.research-item:nth-child(2) .research-dot { background: var(--color-brand-purple); box-shadow: 0 0 8px rgba(168, 85, 247, 0.4); animation-delay: 0.5s; }
.research-item:nth-child(3) .research-dot { background: var(--color-brand-magenta); box-shadow: 0 0 8px rgba(255, 60, 172, 0.4); animation-delay: 1s; }
.research-item:nth-child(4) .research-dot { background: var(--color-brand-cyan); box-shadow: 0 0 8px rgba(0, 212, 255, 0.4); animation-delay: 1.5s; }

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.4); opacity: 1; }
}

.research-info { display: flex; flex-direction: column; gap: 0.15rem; }
.research-name { font-size: 0.95rem; font-weight: 500; color: var(--color-text); letter-spacing: 0.02em; }
.research-detail { font-size: 0.75rem; color: var(--color-text-muted); letter-spacing: 0.04em; }

/* Badge Showcase (Certifications) */
.badge-showcase {
    position: relative; width: 180px; height: 180px; margin: 0 auto 2rem;
    display: flex; align-items: center; justify-content: center;
}

.badge-image {
    width: 120px; height: 120px; object-fit: contain;
    position: relative; z-index: 2;
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.3));
    transition: transform 0.5s var(--ease-out-expo), filter 0.5s;
}
.pillar-certifications:hover .badge-image {
    transform: scale(1.1);
    filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.5)) drop-shadow(0 0 60px rgba(0, 212, 255, 0.2));
}

.badge-orbit-ring {
    position: absolute; inset: -5px;
    border: 1px solid rgba(168, 85, 247, 0.2); border-radius: 50%;
    animation: orbitSpin 8s linear infinite;
}
.badge-orbit-ring::before {
    content: ''; position: absolute; top: -3px; left: 50%;
    width: 6px; height: 6px; background: var(--color-brand-purple);
    border-radius: 50%; box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}
.badge-orbit-ring-2 {
    inset: -18px; border-color: rgba(0, 212, 255, 0.1);
    animation: orbitSpin 12s linear infinite reverse;
}
.badge-orbit-ring-2::before { background: var(--color-brand-cyan); box-shadow: 0 0 10px rgba(0, 212, 255, 0.6); width: 4px; height: 4px; }

@keyframes orbitSpin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Cert List */
.cert-list { display: flex; flex-direction: column; gap: 0.6rem; }
.cert-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.7rem 1rem; background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04); border-radius: 12px;
    transition: all 0.3s ease;
}
.cert-item:hover { background: rgba(255, 255, 255, 0.04); border-color: rgba(168, 85, 247, 0.2); transform: translateX(4px); }
.cert-item.cert-main { background: rgba(168, 85, 247, 0.06); border-color: rgba(168, 85, 247, 0.15); }

.cert-dot { width: 10px; height: 10px; flex-shrink: 0; border-radius: 50%; }
.cert-dot-blue { background: #4285F4; box-shadow: 0 0 8px rgba(66, 133, 244, 0.4); }
.cert-dot-green { background: #34A853; box-shadow: 0 0 8px rgba(52, 168, 83, 0.4); }
.cert-dot-yellow { background: #FBBC04; box-shadow: 0 0 8px rgba(251, 188, 4, 0.4); }
.cert-dot-red { background: #EA4335; box-shadow: 0 0 8px rgba(234, 67, 53, 0.4); }

.cert-name { font-size: 0.85rem; color: var(--color-text); letter-spacing: 0.02em; }

/* Award Showcase */
.award-showcase { text-align: center; padding: 1rem 0; }
.award-ministry {
    font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--color-text-dim); margin-bottom: 2rem;
    padding: 0.5rem 1rem; border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full); display: inline-block;
    background: rgba(255, 255, 255, 0.02);
}

.award-stars { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1.5rem; }
.award-star-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }

.award-star-svg {
    width: 60px; height: 60px;
    animation: awardStarPulse 3s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.3));
}
.award-star-wrap:nth-child(3) .award-star-svg { animation-delay: 1.5s; }

@keyframes awardStarPulse {
    0% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.3)); }
    100% { transform: scale(1.1) rotate(10deg); filter: drop-shadow(0 0 20px rgba(255, 60, 172, 0.5)); }
}

.award-star-label { font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); }
.award-times { font-family: var(--font-heading); font-size: 2rem; color: var(--color-text-muted); font-weight: 300; }

.award-double-badge {
    display: inline-block; padding: 0.6rem 1.8rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 60, 172, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3); border-radius: var(--radius-full);
    position: relative; overflow: hidden;
}
.award-double-badge::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.15), transparent);
    animation: awardShimmer 2s ease-in-out infinite;
}
@keyframes awardShimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.double-text {
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
    background: linear-gradient(135deg, #FFD700, #FF3CAC);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    position: relative; z-index: 1;
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 1024px) {
    .skills-icon-grid { grid-template-columns: repeat(4, 1fr); }
    .about-grid { gap: 4rem; }
    .achievements-grid { gap: 1.5rem; }
    .achievement-pillar { padding: 2rem 1.5rem; }
}

@media (max-width: 768px) {
    body, body.has-custom-cursor { cursor: auto; }
    .cursor, .cursor-follower,
    body.has-custom-cursor .cursor,
    body.has-custom-cursor .cursor-follower { display: none !important; }

    .desktop-nav { display: none; }
    .mobile-menu-btn { display: block; }

    .section { padding: 6rem 0; }
    .hero-title { font-size: clamp(3rem, 12vw, 5rem); }
    .hero-star-1 { width: 150px; height: 150px; right: 5%; top: 15%; }
    .hero-star-2 { width: 100px; height: 100px; }
    .hero-star-3 { display: none; }

    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-highlights { gap: 0.8rem; }
    .achievements-grid { grid-template-columns: 1fr; gap: 2rem; }
    .pillar-hero { order: -1; }
    .badge-showcase { width: 150px; height: 150px; }
    .badge-image { width: 100px; height: 100px; }
    .award-star-svg { width: 50px; height: 50px; }
    .work-grid { grid-template-columns: 1fr; gap: 3rem; }
    .skills-icon-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .contact-links { flex-direction: column; gap: 1.5rem; align-items: center; }
    .social-cards { gap: 1rem; }
    .social-card { width: 100px; height: 100px; }

    .footer-content { flex-direction: column; gap: 1rem; text-align: center; }

    .orb-1 { width: 300px; height: 300px; }
    .orb-2 { width: 250px; height: 250px; }
    .orb-3 { width: 200px; height: 200px; }

    /* ── Mobile Performance: remove backdrop-filter, simplify animations ── */
    .site-header,
    .highlight-card,
    .achievement-pillar,
    .skill-icon-card,
    .mobile-menu,
    .social-card {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(10, 10, 30, 0.85) !important;
    }

    .hero-badge {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Reduce aurora to 1 band, pause orbital rings */
    .aurora-band-2, .aurora-band-3 { display: none; }
    .badge-orbit-ring { animation: none; opacity: 0.15; }

    /* Simplify ambient orbs */
    .orb { opacity: 0.3; animation-duration: 30s; }
}

@media (max-width: 480px) {
    .achievement-pillar { padding: 1.5rem 1rem; }
    .pillar-title { font-size: 1.2rem; }
    .achievements-subtitle { font-size: 0.95rem; }
    .skills-icon-grid { grid-template-columns: repeat(2, 1fr); }
    .skill-icon-card { padding: 1.2rem 0.5rem; }
    .skill-icon-card img { width: 36px; height: 36px; }
    .skill-icon-wrap { width: 44px; height: 44px; }
    .contact-link { font-size: 1rem; padding: 1rem 1.5rem; }
    .shooting-star { width: 80px !important; }
}
