/* ============================================
   DAMANPREET SINGH — PORTFOLIO
   Black hole shader background, glass morphism,
   Warm amber & gold accent palette
   ============================================ */

:root {
    --bg: #000000;
    --bg-glass: rgba(0, 0, 0, 0.72);
    --bg-glass-dense: rgba(0, 0, 0, 0.82);
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --text: #f0ece4;
    --text-secondary: rgba(240, 236, 228, 0.55);
    --text-muted: rgba(240, 236, 228, 0.3);
    --accent: #c8a44e;
    --accent-glow: rgba(200, 164, 78, 0.1);
    --accent-soft: rgba(200, 164, 78, 0.08);
    --accent-2: #d4b668;
    --border: rgba(200, 164, 78, 0.08);
    --border-hover: rgba(200, 164, 78, 0.18);
    --border-glow: rgba(200, 164, 78, 0.25);
    --radius: 12px;
    --radius-lg: 20px;
    --font: 'Josefin Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --blur: 40px;
}

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

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

::selection {
    background: var(--accent);
    color: #000;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- OLD CANVASES (disabled) --- */
#bg-canvas {
    display: none;
}

#hero-blackhole {
    display: none;
}

/* --- ATMOSPHERIC BACKGROUND --- */
.atmos-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: #050503;
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Warm glowing orbs — CSS radial gradients */
.atmos-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
}

.atmos-glow-1 {
    width: 600px;
    height: 600px;
    top: 10%;
    right: 5%;
    background: radial-gradient(circle, rgba(200, 164, 78, 0.15) 0%, rgba(200, 164, 78, 0.04) 40%, transparent 70%);
    animation: glow-drift-1 20s ease-in-out infinite;
}

.atmos-glow-2 {
    width: 500px;
    height: 500px;
    bottom: 10%;
    left: 10%;
    background: radial-gradient(circle, rgba(180, 130, 50, 0.1) 0%, rgba(160, 120, 40, 0.03) 40%, transparent 70%);
    animation: glow-drift-2 25s ease-in-out infinite;
}

.atmos-glow-3 {
    width: 350px;
    height: 350px;
    top: 40%;
    left: 45%;
    background: radial-gradient(circle, rgba(212, 182, 104, 0.08) 0%, transparent 60%);
    animation: glow-drift-3 18s ease-in-out infinite;
}

@keyframes glow-drift-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 20px) scale(1.05); }
    66% { transform: translate(20px, -15px) scale(0.95); }
}

@keyframes glow-drift-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(25px, -20px) scale(1.08); }
    66% { transform: translate(-15px, 25px) scale(0.96); }
}

@keyframes glow-drift-3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    50% { transform: translate(-20px, 15px) scale(1.1); opacity: 1; }
}

/* --- CONTAINER --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- NAVIGATION --- */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 24px;
    transition: var(--transition);
    background: transparent;
    border-bottom: 1px solid transparent;
}

#nav.scrolled {
    backdrop-filter: blur(30px) saturate(1.4);
    -webkit-backdrop-filter: blur(30px) saturate(1.4);
    background: rgba(5, 5, 3, 0.7);
    border-bottom-color: var(--border);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--accent);
    transition: var(--transition);
}

.nav-logo:hover { color: var(--accent-2); }

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

.nav-links a {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    position: relative;
    z-index: 110;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
    position: absolute;
    left: 0;
}

.nav-toggle span:first-child { top: 4px; }
.nav-toggle span:last-child { bottom: 4px; }

.nav-toggle.open span:first-child {
    top: 50%; transform: translateY(-50%) rotate(45deg);
}
.nav-toggle.open span:last-child {
    bottom: 50%; transform: translateY(50%) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99;
    background: rgba(5, 5, 3, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

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

.mobile-menu a {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.mobile-menu a:hover { color: var(--text); }

/* ==========================================
   SECTIONS — Glass morphism over live shader
   ========================================== */
.section {
    position: relative;
    z-index: 1;
    padding: 120px 0;
}

.section:not(.hero) {
    background: rgba(5, 5, 3, 0.88);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 56px;
}

.section-number {
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.02em;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text);
}

/* --- REVEAL ANIMATION --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   HERO — Left-aligned text, full viewport
   ========================================== */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 clamp(32px, 6vw, 120px);
    position: relative;
    overflow: visible;
    background: transparent;
}

.hero-content {
    max-width: 620px;
    text-align: left;
    position: relative;
    z-index: 2;
}

/* Hero reveals should always be visible — first thing users see */
.hero .reveal {
    opacity: 1;
    transform: translateY(0);
    animation: hero-fade-in 1s ease-out backwards;
}

.hero .reveal:nth-child(1) { animation-delay: 0.3s; }
.hero .reveal:nth-child(2) { animation-delay: 0.4s; }
.hero .reveal:nth-child(3) { animation-delay: 0.5s; }
.hero .reveal:nth-child(4) { animation-delay: 0.6s; }
.hero .reveal:nth-child(5) { animation-delay: 0.7s; }
.hero .reveal:nth-child(6) { animation-delay: 0.8s; }
.hero .reveal:nth-child(7) { animation-delay: 0.9s; }

@keyframes hero-fade-in {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-label {
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 28px;
    opacity: 0.8;
}

.hero-name {
    font-size: clamp(3.2rem, 8vw, 7rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.0;
    margin-bottom: 28px;
}

.hero-first {
    display: block;
    color: var(--text);
    filter: drop-shadow(0 0 40px rgba(200, 164, 78, 0.15));
}

.hero-last {
    display: block;
    background: linear-gradient(135deg, var(--accent) 0%, #e8c96e 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 60px rgba(200, 164, 78, 0.3));
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 0 40px;
    line-height: 1.8;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-tagline em {
    font-style: normal;
    color: var(--text);
    font-weight: 500;
}

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

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #0a0a08;
}

.btn-primary:hover {
    background: var(--accent-2);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200, 164, 78, 0.25);
}

.btn-ghost {
    background: rgba(200, 164, 78, 0.06);
    color: var(--text-secondary);
    border: 1px solid var(--border-hover);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    color: var(--text);
    border-color: var(--accent);
    background: rgba(200, 164, 78, 0.1);
    transform: translateY(-2px);
}

/* --- SCROLL INDICATOR --- */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* --- 3D TORUS (AI Section) --- */
.torus-container {
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    perspective: 600px;
    z-index: 0;
    opacity: 0.1;
}

.torus {
    width: 200px; height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: torus-spin 25s linear infinite;
}

.torus-ring {
    position: absolute;
    width: 200px; height: 200px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    top: 0; left: 0;
    opacity: 0.4;
}

.torus-ring.ring-1 { transform: rotateY(0deg); }
.torus-ring.ring-2 { transform: rotateY(30deg); }
.torus-ring.ring-3 { transform: rotateY(60deg); }
.torus-ring.ring-4 { transform: rotateY(90deg); }
.torus-ring.ring-5 { transform: rotateY(120deg); }
.torus-ring.ring-6 { transform: rotateY(150deg); }

@keyframes torus-spin {
    0%   { transform: rotateX(20deg) rotateY(0deg); }
    100% { transform: rotateX(20deg) rotateY(360deg); }
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1.02rem;
}

.about-text .about-lead {
    font-size: 1.15rem;
    color: var(--text);
    line-height: 1.75;
}

.about-text strong {
    color: var(--accent-2);
    font-weight: 600;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    border-color: var(--accent);
    background: rgba(200, 164, 78, 0.06);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 40px rgba(200, 164, 78, 0.12), 0 0 0 1px rgba(200, 164, 78, 0.15) inset;
}

.stat-card:hover .stat-number {
    text-shadow: 0 0 20px rgba(200, 164, 78, 0.5);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 4px;
    transition: text-shadow 0.6s ease;
}

.stat-number.stat-glow {
    text-shadow: 0 0 20px rgba(200, 164, 78, 0.6), 0 0 40px rgba(200, 164, 78, 0.2);
    animation: stat-glow-pulse 2s ease-in-out 1;
}

@keyframes stat-glow-pulse {
    0% { text-shadow: 0 0 0 rgba(200, 164, 78, 0); transform: scale(1); }
    50% { text-shadow: 0 0 30px rgba(200, 164, 78, 0.8), 0 0 60px rgba(200, 164, 78, 0.3); transform: scale(1.1); }
    100% { text-shadow: 0 0 20px rgba(200, 164, 78, 0.6), 0 0 40px rgba(200, 164, 78, 0.2); transform: scale(1); }
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
}

.stat-detail {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ==========================================
   EXPERIENCE SECTION
   ========================================== */
.experience {
    background: var(--bg-glass-dense) !important;
}

.exp-header { margin-bottom: 12px; }

.exp-role {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
}

.exp-company {
    font-size: 1rem;
    color: var(--accent);
    margin-top: 4px;
}

.exp-dates {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.exp-summary {
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
}

.exp-tracks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.exp-track {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.exp-track:hover {
    border-color: var(--accent);
    background: rgba(200, 164, 78, 0.04);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(200, 164, 78, 0.1), 0 0 0 1px rgba(200, 164, 78, 0.12) inset;
}

.exp-track:hover .track-icon {
    background: var(--accent);
    transform: scale(1.15) rotate(-5deg);
}

.exp-track:hover .track-icon svg {
    color: #0a0a08;
}

.track-icon {
    transition: var(--transition);
}

.track-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.track-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.track-icon svg {
    width: 18px; height: 18px;
    color: var(--accent);
}

.track-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

.track-list li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 12px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.track-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 10px;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--accent);
}

.track-list li strong {
    color: var(--text);
    font-weight: 500;
}

/* ==========================================
   AI TOOLCHAIN SECTION
   ========================================== */
.ai-toolchain {
    position: relative;
    overflow: hidden;
}

.ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.ai-card {
    position: relative;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.ai-card-inner {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    height: 100%;
    transition: var(--transition);
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.ai-card:hover .ai-card-inner {
    border-color: var(--accent);
    background: rgba(200, 164, 78, 0.05);
    transform: translateY(-10px);
    box-shadow: 0 25px 80px rgba(200, 164, 78, 0.12), 0 0 0 1px rgba(200, 164, 78, 0.15) inset;
}

.ai-card:hover .ai-card-badge {
    background: var(--accent);
    color: #0a0a08;
}

.ai-card:hover .ai-card-tags span {
    border-color: var(--border-glow);
    color: var(--text-secondary);
}

.ai-card-badge, .ai-card-tags span {
    transition: var(--transition);
}

.ai-card-glow {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition-slow);
    pointer-events: none;
}

.ai-card:hover .ai-card-glow { opacity: 1; }

.ai-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ai-card-badge {
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 3px 10px;
    border-radius: 4px;
}

.ai-card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.ai-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.ai-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ai-card-tags span {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(200, 164, 78, 0.04);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

/* ==========================================
   SKILLS SECTION
   ========================================== */
.skills {
    background: var(--bg-glass-dense) !important;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.skill-group h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid;
    transition: var(--transition);
    cursor: default;
}

.pill:hover { transform: translateY(-3px) scale(1.05); }

.pill-ai,
.pill-infra,
.pill-dev,
.pill-lead {
    color: rgba(240, 236, 228, 0.6);
    border-color: var(--border);
    background: var(--bg-card);
}
.pill-ai:hover,
.pill-infra:hover,
.pill-dev:hover,
.pill-lead:hover {
    color: #0a0a08;
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 6px 24px rgba(200, 164, 78, 0.25);
}

/* ==========================================
   CERTIFICATIONS
   ========================================== */
.certs-grid { margin-bottom: 32px; }

.cert-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.cert-card:hover {
    border-color: var(--accent);
    background: rgba(200, 164, 78, 0.04);
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 50px rgba(200, 164, 78, 0.1), 0 0 0 1px rgba(200, 164, 78, 0.12) inset;
}

.cert-card:hover .cert-icon {
    transform: scale(1.15);
}

.cert-card:hover .cert-badge {
    background: var(--accent);
    color: #0a0a08;
    border-color: var(--accent);
}

.cert-icon, .cert-badge {
    transition: var(--transition);
}

.cert-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-soft), rgba(200, 164, 78, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cert-icon svg {
    width: 22px; height: 22px;
    color: var(--accent);
}

.cert-info h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
}

.cert-issuer {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.cert-badge {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--border-glow);
    padding: 4px 12px;
    border-radius: 4px;
}

.edu-block {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.edu-block:hover {
    border-color: var(--accent);
    background: rgba(200, 164, 78, 0.04);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(200, 164, 78, 0.08);
}

.edu-block:hover .edu-icon {
    transform: scale(1.15);
}

.edu-icon {
    transition: var(--transition);
}

.edu-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.edu-icon svg {
    width: 22px; height: 22px;
    color: var(--accent);
}

.edu-info h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
}

.edu-school {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ==========================================
   CONTACT
   ========================================== */
.contact-content { max-width: 600px; }

.contact-lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.75;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 0.92rem;
    color: var(--text-secondary);
    backdrop-filter: blur(8px);
}

.contact-item:hover {
    border-color: var(--accent);
    background: rgba(200, 164, 78, 0.05);
    color: var(--text);
    transform: translateY(-4px) translateX(4px);
    box-shadow: 0 12px 40px rgba(200, 164, 78, 0.1), 0 0 0 1px rgba(200, 164, 78, 0.12) inset;
}

.contact-item:hover svg {
    transform: scale(1.2) rotate(-10deg);
}

.contact-item svg {
    transition: var(--transition);
}

.contact-item svg {
    width: 20px; height: 20px;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-item.location { cursor: default; }

.contact-github-row {
    flex-wrap: wrap;
}

.contact-github-row span {
    margin-right: auto;
}

.github-links {
    display: flex;
    gap: 10px;
}

.github-link {
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--border-hover);
    padding: 5px 14px;
    border-radius: 6px;
    transition: var(--transition);
    text-decoration: none;
}

.github-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #0a0a08;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(200, 164, 78, 0.3);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    position: relative;
    z-index: 1;
    background: var(--bg-glass-dense);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
}

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

.footer-name {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

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

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .mobile-menu { display: flex; }

    .section { padding: 80px 0; }
    .section-header { margin-bottom: 40px; }
    .section-header h2 { font-size: 1.75rem; }

    .hero {
        padding: 0 24px;
        min-height: auto;
        align-items: flex-start;
        padding-top: 120px;
        padding-bottom: 60px;
    }
    .hero-content { max-width: 100%; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }

    .about-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    .stat-card { flex: 1; min-width: 140px; }
    .exp-tracks { grid-template-columns: 1fr; }
    .ai-grid { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: 1fr; gap: 32px; }
    .torus-container { display: none; }
}

@media (max-width: 600px) {
    .hero {
        padding: 100px 20px 48px;
        min-height: auto;
    }
    .hero-name { font-size: clamp(2.2rem, 10vw, 3.5rem); }
    .hero-tagline { font-size: 1rem; max-width: 100%; }
    .hero-label { font-size: 0.7rem; margin-bottom: 20px; }
    .hero-cta { gap: 10px; }
    .hero-cta .btn,
    .hero-cta .btn-outline-gold { padding: 10px 20px; font-size: 0.82rem; }
    .hero-status { margin-bottom: 16px; }
    .hero-greeting { font-size: 0.75rem; }
    .exp-track { padding: 24px; }
    .stat-card { min-width: 100%; }
    .about-stats { flex-direction: column; }
    .cert-card { flex-direction: column; align-items: flex-start; gap: 12px; }
    .cert-badge { margin-left: 0; }
    .scroll-indicator { display: none; }
    .philosophy-text { font-size: 1.05rem; }
    .philosophy-block { padding: 32px 20px; }
}

/* --- SECTION DIVIDERS --- */
.section + .section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}

/* --- STAGGER ANIMATIONS --- */
.reveal.visible .exp-track,
.reveal.visible .ai-card,
.reveal.visible .skill-group,
.reveal.visible .cert-card {
    animation: stagger-in 0.5s ease forwards;
}

@keyframes stagger-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   CURSOR GLOW — warm golden orb follows mouse
   ========================================== */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 164, 78, 0.06) 0%, rgba(200, 164, 78, 0.02) 30%, transparent 60%);
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
    mix-blend-mode: screen;
}

/* Hide glow cursor on mobile / touch devices */
@media (max-width: 900px), (hover: none) {
    .cursor-glow { display: none; }
}

/* Reduce noise overlay on mobile for cleaner look */
@media (max-width: 600px) {
    .noise-overlay { opacity: 0.15; }
}

/* ==========================================
   NOISE OVERLAY — subtle film grain texture
   ========================================== */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.35;
    image-rendering: pixelated;
    mix-blend-mode: overlay;
}

/* ==========================================
   FASTER SMOOTH SCROLLING
   ========================================== */
html {
    scroll-behavior: smooth;
}

/* Override the base scroll-padding for faster feel */
@supports (scroll-behavior: smooth) {
    html {
        scroll-behavior: smooth;
    }
}

/* ==========================================
   PAGE LOADER — cinematic entrance
   ========================================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    background: #050503;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.loader-logo {
    font-family: var(--font);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.04em;
    animation: loader-pulse 1.2s ease-in-out infinite;
}

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

.loader-bar {
    width: 120px;
    height: 2px;
    background: rgba(200, 164, 78, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    animation: loader-fill 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loader-fill {
    0% { width: 0%; }
    60% { width: 70%; }
    100% { width: 100%; }
}

/* ==========================================
   SCROLL PROGRESS BAR — gold line at top
   ========================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), #e8c96e, var(--accent));
    z-index: 10000;
    transition: width 0.05s linear;
    box-shadow: 0 0 10px rgba(200, 164, 78, 0.4);
}

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(200, 164, 78, 0.1);
    border: 1px solid var(--border-hover);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.back-to-top:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(200, 164, 78, 0.3);
}

.back-to-top:hover svg {
    color: #0a0a08;
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    transition: var(--transition);
}

@media (max-width: 600px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* ==========================================
   ANIMATED GRADIENT BORDERS on card hover
   ========================================== */
.exp-track::before,
.ai-card-inner::before,
.cert-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent), transparent 40%, transparent 60%, var(--accent-2));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.exp-track,
.ai-card-inner,
.cert-card {
    position: relative;
}

.exp-track:hover::before,
.ai-card-inner:hover::before,
.cert-card:hover::before {
    opacity: 1;
}

/* ==========================================
   CERT GRID — improved layout for 4 cards
   ========================================== */
.certs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.cert-icon-microsoft {
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.15), rgba(0, 120, 212, 0.06));
}

.cert-icon-microsoft svg {
    color: #4db8ff;
}

.cert-icon-fortinet {
    background: linear-gradient(135deg, rgba(238, 49, 36, 0.12), rgba(238, 49, 36, 0.04));
}

.cert-icon-fortinet svg {
    color: #ff6b5e;
}

@media (max-width: 900px) {
    .certs-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   MAGNETIC BUTTON HOVER GLOW
   ========================================== */
.btn-primary::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent), #e8c96e, var(--accent-2));
    border-radius: 10px;
    z-index: -1;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.3s ease;
}

.btn-primary {
    position: relative;
    z-index: 1;
}

.btn-primary:hover::before {
    opacity: 0.6;
}

/* ==========================================
   IMPROVED FOOTER
   ========================================== */
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-tagline {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-style: italic;
    letter-spacing: 0.02em;
}

/* ==========================================
   1. AVAILABLE FOR WORK STATUS BADGE
   ========================================== */
.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 6px 12px;
    background: rgba(200, 164, 78, 0.06);
    border: 1px solid var(--border-hover);
    border-radius: 50px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.5);
    animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
    0%, 100% { box-shadow: 0 0 4px rgba(74, 222, 128, 0.3); }
    50% { box-shadow: 0 0 16px rgba(74, 222, 128, 0.7); }
}

.status-text {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ==========================================
   2. ROLE CAROUSEL — typed rotating roles
   ========================================== */
.role-carousel {
    display: inline;
    border-right: 2px solid var(--accent);
    padding-right: 2px;
    animation: carousel-blink 0.8s step-end infinite;
}

@keyframes carousel-blink {
    0%, 100% { border-color: var(--accent); }
    50% { border-color: transparent; }
}

/* ==========================================
   3. TECH ORBIT CONSTELLATION
   ========================================== */
.tech-orbit {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 60px auto 0;
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 0 40px rgba(200, 164, 78, 0.3);
}

.orbit-center span {
    font-weight: 700;
    font-size: 1.1rem;
    color: #0a0a08;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.orbit-ring-1 {
    width: 200px;
    height: 200px;
    margin: -100px 0 0 -100px;
    animation: orbit-spin 30s linear infinite;
}

.orbit-ring-2 {
    width: 300px;
    height: 300px;
    margin: -150px 0 0 -150px;
    animation: orbit-spin 45s linear infinite reverse;
}

@keyframes orbit-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.orbit-node {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
}

.orbit-ring-1 .orbit-node {
    transform: rotate(var(--angle)) translateX(100px) rotate(calc(-1 * var(--angle)));
}

.orbit-ring-2 .orbit-node {
    transform: rotate(var(--angle)) translateX(150px) rotate(calc(-1 * var(--angle)));
}

/* Counter-rotate to keep text upright */
.orbit-ring-1 .orbit-node span {
    animation: orbit-counter-spin 30s linear infinite;
}

.orbit-ring-2 .orbit-node span {
    animation: orbit-counter-spin 45s linear infinite reverse;
}

@keyframes orbit-counter-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.orbit-node span {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(5, 5, 3, 0.9);
    border: 1px solid var(--border-hover);
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(8px);
}

@media (max-width: 600px) {
    .tech-orbit { transform: scale(0.75); margin-top: 30px; }
}

/* ==========================================
   4. EXPERIENCE TIMELINE CONNECTOR
   ========================================== */
.exp-timeline {
    position: relative;
}

.exp-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--accent) 15%,
        var(--accent) 85%,
        transparent
    );
    opacity: 0.2;
    z-index: 0;
}

.exp-timeline .exp-track {
    position: relative;
    z-index: 1;
}

/* Glowing dot on each track */
.exp-timeline .exp-track::after {
    content: '';
    position: absolute;
    top: 32px;
    left: -12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(200, 164, 78, 0.5);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.exp-timeline .exp-track:hover::after {
    opacity: 1;
}

@media (max-width: 900px) {
    .exp-timeline::before { left: 0; }
}

/* ==========================================
   5. ANIMATED SKILL PROFICIENCY BARS
   ========================================== */
.skill-group {
    position: relative;
}

.skill-pills .pill {
    position: relative;
    overflow: hidden;
}

.skill-pills .pill::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible .skill-pills .pill::after {
    width: 100%;
}

/* Staggered animation for each pill */
.skill-pills .pill:nth-child(1)::after { transition-delay: 0.05s; }
.skill-pills .pill:nth-child(2)::after { transition-delay: 0.1s; }
.skill-pills .pill:nth-child(3)::after { transition-delay: 0.15s; }
.skill-pills .pill:nth-child(4)::after { transition-delay: 0.2s; }
.skill-pills .pill:nth-child(5)::after { transition-delay: 0.25s; }
.skill-pills .pill:nth-child(6)::after { transition-delay: 0.3s; }
.skill-pills .pill:nth-child(7)::after { transition-delay: 0.35s; }
.skill-pills .pill:nth-child(8)::after { transition-delay: 0.4s; }
.skill-pills .pill:nth-child(9)::after { transition-delay: 0.45s; }
.skill-pills .pill:nth-child(10)::after { transition-delay: 0.5s; }

/* ==========================================
   6. RESUME / DOWNLOAD BUTTON
   ========================================== */
.btn-outline-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline-gold:hover {
    background: var(--accent);
    color: #0a0a08;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200, 164, 78, 0.25);
}

.btn-outline-gold svg {
    transition: transform 0.3s ease;
}

.btn-outline-gold:hover svg {
    transform: translateY(2px);
}

/* ==========================================
   7. PHILOSOPHY / QUOTE SECTION
   ========================================== */
.philosophy-section {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 80px 0 !important;
}

.philosophy-block {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 40px;
}

.philosophy-quote-mark {
    font-size: 5rem;
    line-height: 1;
    color: var(--accent);
    opacity: 0.2;
    font-family: Georgia, serif;
    margin-bottom: -20px;
}

.philosophy-text {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text);
    line-height: 1.9;
    font-style: italic;
    letter-spacing: 0.01em;
}

.philosophy-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.philosophy-line {
    width: 30px;
    height: 1px;
    background: var(--accent);
}

/* ==========================================
   8. SECTION SPOTLIGHT EFFECT (mouse follow)
   ========================================== */
.section:not(.hero):not(.philosophy-section) {
    overflow: hidden;
}

.section-spotlight {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 164, 78, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    will-change: transform;
}

.section:hover .section-spotlight {
    opacity: 1;
}

/* ==========================================
   9. SVG ICON DRAW ANIMATION on reveal
   ========================================== */
.track-icon svg,
.cert-icon svg,
.edu-icon svg {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible .track-icon svg,
.reveal.visible .cert-icon svg,
.reveal.visible .edu-icon svg {
    stroke-dashoffset: 0;
}

/* ==========================================
   10. TEXT SCRAMBLE EFFECT on section headers
   ========================================== */
.scramble-text {
    cursor: default;
    position: relative;
}

.scramble-text:hover {
    color: var(--accent);
}

/* Visual cue: subtle underline shimmer on hover */
.scramble-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
    background-size: 200% 100%;
    transition: width 0.4s ease;
    animation: shimmer 2s linear infinite;
}

.scramble-text:hover::after {
    width: 100%;
}

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

/* ==========================================
   11. TECH MARQUEE — horizontal scrolling strip
   ========================================== */
.marquee-strip {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(5, 5, 3, 0.6);
    backdrop-filter: blur(10px);
}

.marquee-track {
    display: flex;
    gap: 0;
    white-space: nowrap;
    animation: marquee-scroll 30s linear infinite;
    width: max-content;
}

.marquee-track span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0 12px;
}

.marquee-dot {
    color: var(--accent) !important;
    opacity: 0.4;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.marquee-strip:hover .marquee-track {
    animation-play-state: paused;
}

/* ==========================================
   12. HERO GREETING — time-based
   ========================================== */
.hero-greeting {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

/* ==========================================
   13. FLOATING SOCIAL SIDEBAR
   ========================================== */
.social-sidebar {
    position: fixed;
    left: 24px;
    bottom: 0;
    z-index: 998;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.social-sidebar.visible {
    opacity: 1;
    transform: translateY(0);
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    color: var(--text-muted);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.social-icon:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.social-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
}

@media (max-width: 900px) {
    .social-sidebar { display: none; }
}

/* ==========================================
   14. ANIMATED CONTACT FORM
   ========================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-form-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    backdrop-filter: blur(10px);
}

.contact-form-block h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 28px;
}

.form-group {
    position: relative;
    margin-bottom: 24px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-hover);
    padding: 12px 0 8px;
    font-family: var(--font);
    font-size: 0.92rem;
    color: var(--text);
    outline: none;
    transition: var(--transition);
    resize: none;
}

.form-group label {
    position: absolute;
    top: 12px;
    left: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -8px;
    font-size: 0.68rem;
    color: var(--accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.4s ease;
}

.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line {
    width: 100%;
}

.form-submit {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

.form-submit svg {
    transition: transform 0.3s ease;
}

.form-submit:hover svg {
    transform: translate(3px, -3px);
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ==========================================
   15. KEYBOARD FOCUS STYLES
   ========================================== */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.btn:focus-visible,
.btn-outline-gold:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    box-shadow: 0 0 0 4px rgba(200, 164, 78, 0.15);
}

.nav-links a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* Skip to content link for accessibility */
.skip-link {
    position: fixed;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #0a0a08;
    padding: 8px 24px;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 100000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* ==========================================
   16. KONAMI CODE PARTY MODE
   ========================================== */
body.party-mode {
    animation: party-bg 0.5s linear infinite;
}

body.party-mode .hero-last {
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff, #5f27cd);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: party-text 1s linear infinite;
}

body.party-mode .accent-glow,
body.party-mode .status-dot {
    animation: party-glow 0.3s linear infinite;
}

@keyframes party-bg {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(30deg); }
}

@keyframes party-text {
    from { background-position: 0% 0; }
    to { background-position: 300% 0; }
}

@keyframes party-glow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* ==========================================
   17. ANIMATED SECTION DIVIDERS
   ========================================== */
.section-divider {
    position: relative;
    z-index: 1;
    height: 1px;
    overflow: visible;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent) 70%, transparent);
    opacity: 0.15;
}

.section-divider::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateX(-50%);
    opacity: 0.4;
    box-shadow: 0 0 10px rgba(200, 164, 78, 0.3);
}
