/* ===================================================================
   ARDA YALAP — PORTFOLIO STYLES
   Terminal Meets Modern | Dark Theme | Glassmorphism
   =================================================================== */

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors — Brittany Chiang Deep Slate Navy Theme */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --surface-glass: rgba(255, 255, 255, 0.04);
    --surface-glass-hover: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-glass-hover: rgba(255, 255, 255, 0.2);

    --accent-cyan: #38bdf8;
    --accent-purple: #818cf8;
    --accent-green: #34d399;
    --accent-cyan-dim: rgba(56, 189, 248, 0.12);
    --accent-purple-dim: rgba(129, 140, 248, 0.12);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Typography */
    --font-heading: 'JetBrains Mono', monospace;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1100px;
    --container-padding: 0 24px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows / Glows */
    --glow-cyan: 0 0 20px rgba(56, 189, 248, 0.3);
    --glow-purple: 0 0 20px rgba(129, 140, 248, 0.3);
    --glow-green: 0 0 20px rgba(52, 211, 153, 0.3);
}

/* Light Theme Overrides */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --surface-glass: rgba(15, 23, 42, 0.04);
    --surface-glass-hover: rgba(15, 23, 42, 0.08);
    --border-glass: rgba(15, 23, 42, 0.12);
    --border-glass-hover: rgba(15, 23, 42, 0.22);

    --accent-cyan: #0284c7;
    --accent-purple: #7c3aed;
    --accent-green: #16a34a;
    --accent-cyan-dim: rgba(2, 132, 199, 0.1);
    --accent-purple-dim: rgba(124, 58, 237, 0.1);

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;

    --glow-cyan: 0 0 20px rgba(2, 132, 199, 0.25);
    --glow-purple: 0 0 20px rgba(124, 58, 237, 0.25);
    --glow-green: 0 0 20px rgba(22, 163, 74, 0.25);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.mouse-spotlight {
    display: none !important;
}

::selection {
    background: var(--accent-cyan);
    color: var(--bg-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

html {
    scroll-behavior: smooth;
}

.section {
    display: block;
    min-height: 100vh;
    padding: 110px 0 80px 0;
    position: relative;
    z-index: 1;

    /* Semi-Transparent Animated Dynamic Space Background Across All Sub-Sections */
    background-color: transparent;
    background-image: 
        radial-gradient(ellipse at 50% 30%, rgba(30, 27, 75, 0.45) 0%, rgba(15, 23, 42, 0.4) 55%, rgba(3, 7, 18, 0.5) 100%),
        radial-gradient(rgba(56, 189, 248, 0.25) 1.2px, transparent 1.2px);
    background-size: 200% 200%, 36px 36px;
    background-position: 50% 50%, center center;
    animation: spaceNebulaWave 16s infinite alternate ease-in-out;
}

[data-theme="light"] .section {
    background-color: #f8fafc;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(147, 51, 234, 0.14) 0%, transparent 50%),
        linear-gradient(rgba(2, 132, 199, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(2, 132, 199, 0.06) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 36px 36px, 36px 36px;
    background-position: center center, center center, center center, center center;
    animation: lightNebulaWave 18s infinite alternate ease-in-out;
}

@keyframes spaceNebulaWave {
    0% {
        background-position: 20% 30%, center center;
    }
    50% {
        background-position: 80% 70%, center center;
    }
    100% {
        background-position: 50% 20%, center center;
    }
}

@keyframes lightNebulaWave {
    0% {
        background-position: 10% 20%, 90% 80%, 0 0, 0 0;
    }
    50% {
        background-position: 80% 70%, 20% 30%, 18px 18px, 18px 18px;
    }
    100% {
        background-position: 30% 10%, 70% 90%, 0 0, 0 0;
    }
}

/* ===== FLOATING GEOMETRIC GLASS SHAPES (HASAN ASHAB STYLE) ===== */
.light-floating-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    display: none;
}

[data-theme="light"] .light-floating-shapes {
    display: block;
}

.floating-shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.75) 0%, rgba(186, 230, 253, 0.45) 100%);
    border: 1px solid rgba(125, 211, 252, 0.5);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.14);
}

.shape-diamond-1 {
    width: 110px;
    height: 110px;
    border-radius: 26px;
    top: 12%;
    right: 7%;
    transform: rotate(45deg);
    animation: floatDiamond1 14s infinite alternate ease-in-out;
}

.shape-orb-1 {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    top: 32%;
    right: 17%;
    animation: floatOrb1 10s infinite alternate ease-in-out;
}

.shape-square-1 {
    width: 55px;
    height: 55px;
    border-radius: 16px;
    top: 38%;
    left: 10%;
    animation: floatOrb2 12s infinite alternate ease-in-out;
}

.shape-diamond-2 {
    width: 130px;
    height: 130px;
    border-radius: 30px;
    bottom: 12%;
    right: 10%;
    transform: rotate(20deg);
    animation: floatDiamond2 18s infinite alternate ease-in-out;
}

.shape-orb-2 {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    bottom: 8%;
    left: 7%;
    animation: floatOrb1 15s infinite alternate ease-in-out;
}

@keyframes floatDiamond1 {
    0% { transform: rotate(45deg) translateY(0px) scale(1); }
    50% { transform: rotate(52deg) translateY(-25px) scale(1.05); }
    100% { transform: rotate(40deg) translateY(15px) scale(0.98); }
}

@keyframes floatDiamond2 {
    0% { transform: rotate(20deg) translateY(0px) scale(1); }
    50% { transform: rotate(28deg) translateY(-30px) scale(1.06); }
    100% { transform: rotate(15deg) translateY(20px) scale(0.95); }
}

@keyframes floatOrb1 {
    0% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-20px) translateX(12px); }
    100% { transform: translateY(15px) translateX(-8px); }
}

@keyframes floatOrb2 {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-18px) scale(1.1); }
    100% { transform: translateY(12px) scale(0.92); }
}

#hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0;
    position: relative;
}

.highlight {
    color: var(--accent-cyan);
    font-weight: 600;
}

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

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-normal);
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 18, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}

.nav-container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: inline-flex;
    align-items: baseline;
    text-decoration: none;
    transition: transform var(--transition-fast);
    margin-left: -12px;
}

.nav-logo:hover {
    transform: translateY(-1px);
}

/* ===== LOGO & NAME STYLES ===== */
.logo-first,
.name-arda {
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
    font-weight: 800;
    color: #f1f5f9;
    letter-spacing: -0.5px;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.2);
}

.logo-last,
.name-yalap {
    font-family: 'Caveat', cursive;
    font-size: 1.85rem;
    font-weight: 800;
    color: #38bdf8;
    margin-left: 4px;
    letter-spacing: 0px;
    text-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
}

.typing-text .name-arda {
    font-family: inherit;
    font-size: inherit;
    color: #f1f5f9;
    font-weight: 800;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.2);
}

.typing-text .name-yalap {
    font-family: inherit;
    font-size: inherit;
    color: #38bdf8;
    font-weight: 800;
    text-shadow: 0 0 18px rgba(56, 189, 248, 0.4);
}

/* Light Mode Overrides for High Contrast Crispness */
[data-theme="light"] .logo-first,
[data-theme="light"] .typing-text .name-arda {
    color: #0f172a;
    font-weight: 800;
    text-shadow: none;
}

[data-theme="light"] .logo-last,
[data-theme="light"] .typing-text .name-yalap {
    color: #0284c7;
    font-weight: 800;
    text-shadow: none;
}

/* Nav Menu (Horizontal Side-by-Side Links) */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    color: #e2e8f0;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all var(--transition-normal);
    position: relative;
    text-decoration: none;
    white-space: nowrap;
    display: inline-block;
}

.nav-link:hover,
.nav-link.active {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    font-weight: 700;
}

/* Light Theme Mode Navbar — Transparent on Hero, Glassmorphism on Scroll */
[data-theme="light"] .navbar {
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    box-shadow: none;
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .logo-first {
    color: #0f172a;
}

[data-theme="light"] .nav-link {
    color: #1e293b;
    font-weight: 600;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
    color: #0284c7;
    background: rgba(2, 132, 199, 0.12);
    font-weight: 700;
}

[data-theme="light"] .greeting-badge {
    background: rgba(241, 245, 249, 0.95);
    border-color: rgba(2, 132, 199, 0.3);
    color: #0f172a;
}

[data-theme="light"] .lang-btn {
    background: rgba(241, 245, 249, 0.95);
    border-color: rgba(0, 0, 0, 0.12);
    color: #0f172a;
}

[data-theme="light"] .theme-toggle {
    background: rgba(241, 245, 249, 0.95);
    border-color: rgba(0, 0, 0, 0.12);
    color: #0f172a;
}

/* Nav Actions (Language + Theme) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
}

.lang-btn {
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 7px 14px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.lang-btn:hover {
    border-color: var(--accent-cyan);
    background: var(--accent-cyan-dim);
    color: var(--accent-cyan);
}

.lang-btn svg {
    transition: transform var(--transition-fast);
}

.lang-btn.open svg {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 6px;
    list-style: none;
    display: none;
    min-width: 140px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    z-index: 1002;
    backdrop-filter: blur(10px);
}

.lang-menu.open {
    display: block;
    animation: fadeIn 0.2s ease;
}

.lang-option {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 8px 12px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.lang-option:hover,
.lang-option.active {
    color: var(--accent-cyan);
    background: var(--accent-cyan-dim);
}

/* Dynamic Greeting Badge */
.greeting-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: 22px;
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-normal);
}

.greeting-badge:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

#greeting-icon {
    font-size: 1.15rem;
    line-height: 1;
}

/* Theme Toggle Button (Circular) */
.theme-toggle {
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: all var(--transition-normal);
}

.theme-toggle:hover {
    border-color: var(--accent-cyan);
    background: var(--accent-cyan-dim);
    transform: scale(1.08);
}

[data-theme="light"] .theme-icon.moon { display: none; }
[data-theme="light"] .theme-icon.sun { display: inline-block; }
:root:not([data-theme="light"]) .theme-icon.sun { display: none; }
:root:not([data-theme="light"]) .theme-icon.moon { display: inline-block; }

/* ===== HERO SECTION ===== */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    display: block !important;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 60px 24px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, rgba(3, 5, 8, 0.4) 0%, rgba(3, 5, 8, 0.75) 100%),
                url('./space_mountains.jpg') center bottom / cover no-repeat;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-left {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 22px;
    backdrop-filter: blur(8px);
}

.hero-main-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #ffffff;
}

.greeting-prefix {
    font-size: 0.48em;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 2px;
}

.typing-wrapper {
    display: inline;
    color: #ffffff;
}

.cursor {
    display: inline-block;
    color: #38bdf8;
    font-weight: 300;
    margin-left: 3px;
    animation: blinkCursor 0.6s infinite alternate;
    text-shadow: 0 0 15px #38bdf8;
}

.hero-feature-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.feature-tag {
    padding: 6px 15px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: #f1f5f9;
    backdrop-filter: blur(8px);
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 30px;
}

.hero-socials-row {
    display: flex;
    gap: 14px;
    align-items: center;
}

.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* ===== YETENEK DÖNGÜSÜ (AÇIK & GECE TEMASI - DÖNEN SİMETRİK ORBIT) ===== */
.orbit-wrapper {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.orbit-ring {
    position: absolute;
    width: 420px;
    height: 420px;
    border: 1px dashed rgba(56, 189, 248, 0.35);
    border-radius: 50%;
}

.profile-center {
    position: relative;
    z-index: 2;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    padding: 3px;
    background: linear-gradient(135deg, #ffffff 0%, #38bdf8 50%, #818cf8 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 35px rgba(56, 189, 248, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.95);
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.profile-center:hover {
    transform: scale(1.08) translateY(-4px);
    box-shadow: 0 0 45px rgba(56, 189, 248, 0.85), 0 16px 35px rgba(0, 0, 0, 0.8);
}

.profile-center img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: contrast(1.06) brightness(1.05);
}

/* Rozetleri Döndüren Yörünge Kapsayıcısı */
.orbit-track {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    animation: rotateOrbit 25s linear infinite; /* Dönüş hızı: 25 saniye */
}

/* Fare üzerine gelince dönmeyi durdurur */
.orbit-track:hover {
    animation-play-state: paused;
}

.skill-badge {
    position: absolute;
    white-space: nowrap;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(56, 189, 248, 0.45);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

[data-theme="light"] .profile-avatar-container {
    border-color: #0284c7;
    box-shadow: 0 0 25px rgba(2, 132, 199, 0.3);
}

[data-theme="light"] .orbit-ring {
    border-color: rgba(2, 132, 199, 0.4);
}

.skill-badge:hover {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.28);
    box-shadow: 0 0 22px rgba(56, 189, 248, 0.7);
}

/* Yazıların Baş Aşağı Dönmesini Engelleyen Ters Dönüş (Counter-Rotation) */
.badge-content {
    display: inline-block;
    animation: counterRotate 25s linear infinite;
}

.orbit-track:hover .badge-content {
    animation-play-state: paused;
}

/* Yörünge Dönüş Animasyonu */
@keyframes rotateOrbit {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Yazıların Her Zaman Düz Kalmasını Sağlayan Zıt Dönüş Animasyonu */
@keyframes counterRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

/* Açık Tema Overrides */
[data-theme="light"] .orbit-ring {
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .skill-badge {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #2d3748;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.orbit-wrapper:hover .skill-badge {
    animation-play-state: paused;
}

.skill-badge:hover {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.28);
    box-shadow: 0 0 22px rgba(56, 189, 248, 0.7);
}

[data-theme="light"] .orbit-ring {
    border-color: rgba(2, 132, 199, 0.4);
}

[data-theme="light"] .skill-badge {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(2, 132, 199, 0.45);
    color: #0f172a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.avatar-orbit-ring .orbit-item span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    padding: 6px 14px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), 0 0 12px rgba(56, 189, 248, 0.25);
    backdrop-filter: blur(8px);
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    cursor: default;
    animation: orbitCounterRotate 24s linear infinite;
    transform-origin: center center;
}

.avatar-orbit-ring .orbit-item span:hover {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.28);
    box-shadow: 0 0 22px rgba(56, 189, 248, 0.7);
    transform: translate(-50%, -50%) scale(1.15);
}

@keyframes orbitRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbitCounterRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* Light Theme High-Contrast Overrides */
[data-theme="light"] #hero {
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.55) 0%, rgba(224, 242, 254, 0.8) 100%),
                url('./daytime_mountains.jpg') center bottom / cover no-repeat;
}

[data-theme="light"] .hero-main-title,
[data-theme="light"] .typing-wrapper {
    color: #0f172a;
    text-shadow: none;
}

[data-theme="light"] .greeting-prefix {
    color: #334155;
}

[data-theme="light"] .hero-tag-badge {
    background: rgba(2, 132, 199, 0.15);
    border-color: rgba(2, 132, 199, 0.45);
    color: #0284c7;
}

[data-theme="light"] .feature-tag {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(148, 163, 184, 0.45);
    color: #0f172a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .avatar-orbit-ring {
    border-color: rgba(2, 132, 199, 0.4);
}

[data-theme="light"] .avatar-orbit-ring .orbit-item span {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(2, 132, 199, 0.45);
    color: #0f172a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.avatar-orbit-ring .orbit-item span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    padding: 5px 12px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.74rem;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), 0 0 12px rgba(56, 189, 248, 0.2);
    backdrop-filter: blur(8px);
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    cursor: default;
    animation: orbitCounterRotate 24s linear infinite;
}

.avatar-orbit-ring .orbit-item span:hover {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.25);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
    transform: translate(-50%, -50%) scale(1.12);
}

@keyframes orbitRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbitCounterRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

[data-theme="light"] .avatar-orbit-ring {
    border-color: rgba(2, 132, 199, 0.35);
}

[data-theme="light"] .avatar-orbit-ring .orbit-item span {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(2, 132, 199, 0.4);
    color: #0f172a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-avatar:hover {
    transform: scale(1.08) translateY(-4px);
    box-shadow: 0 0 45px rgba(56, 189, 248, 0.85), 0 16px 35px rgba(0, 0, 0, 0.8);
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: contrast(1.06) brightness(1.05);
}

.hero-terminal {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 1.3em;
}

.terminal-prompt {
    color: var(--accent-green);
    text-shadow: var(--glow-green);
}

.typing-text {
    background: linear-gradient(135deg, #ffffff 0%, #7dd3fc 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.75));
}

.cursor {
    color: var(--accent-cyan);
    animation: blink 1s infinite;
    font-weight: 300;
}

/* Light Theme Mode — Bright Sunny Daytime Sky Hero Background */
[data-theme="light"] .hero {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.85) 100%),
                url('./daytime_mountains.jpg') center bottom / cover no-repeat;
}

[data-theme="light"] .hero-subtitle {
    color: #1e293b;
    font-weight: 600;
}

[data-theme="light"] .typing-text {
    background: linear-gradient(135deg, #0f172a 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.9));
}

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

.hero-subtitle {
    font-size: clamp(1.15rem, 2.8vw, 1.48rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 2.5s forwards;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 2.8s forwards;
}

.hero-socials {
    display: flex;
    gap: 16px;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 3.1s forwards;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    background: var(--accent-cyan-dim);
    transform: translateY(-3px);
    box-shadow: var(--glow-cyan);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeInUp 0.8s ease 3.4s forwards;
}

.scroll-arrow {
    width: 24px;
    height: 38px;
    border: 2px solid var(--border-glass-hover);
    border-radius: 12px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 22px; }
}

/* ===== BUTTONS ===== */
.btn {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-normal);
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
}

.btn-outline:hover {
    background: var(--accent-cyan-dim);
    transform: translateY(-2px);
    box-shadow: var(--glow-cyan);
}

/* ===== SCROLL REVEAL ANIMATIONS SYSTEM ===== */
.reveal,
.reveal-up,
.reveal-scale,
.reveal-left,
.reveal-right {
    opacity: 0;
    will-change: opacity, transform;
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal,
.reveal-up {
    transform: translateY(45px);
}

.reveal-scale {
    transform: scale(0.88) translateY(25px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal.active,
.reveal-up.active,
.reveal-scale.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Staggered item delays on scroll */
.skills-grid .skill-category:nth-child(1) { transition-delay: 0.1s; }
.skills-grid .skill-category:nth-child(2) { transition-delay: 0.22s; }
.skills-grid .skill-category:nth-child(3) { transition-delay: 0.34s; }
.skills-grid .skill-category:nth-child(4) { transition-delay: 0.46s; }

.projects-grid .project-card:nth-child(1) { transition-delay: 0.1s; }
.projects-grid .project-card:nth-child(2) { transition-delay: 0.25s; }
.projects-grid .project-card:nth-child(3) { transition-delay: 0.4s; }
.projects-grid .project-card:nth-child(4) { transition-delay: 0.55s; }

.blog-grid .blog-card:nth-child(1) { transition-delay: 0.15s; }
.blog-grid .blog-card:nth-child(2) { transition-delay: 0.35s; }

.about-text-block p:nth-child(1) { transition-delay: 0.1s; }
.about-text-block p:nth-child(2) { transition-delay: 0.25s; }
.about-text-block p:nth-child(3) { transition-delay: 0.4s; }

.contact-details .contact-item:nth-child(1) { transition-delay: 0.1s; }
.contact-details .contact-item:nth-child(2) { transition-delay: 0.2s; }
.contact-details .contact-item:nth-child(3) { transition-delay: 0.3s; }
.contact-details .contact-item:nth-child(4) { transition-delay: 0.4s; }

/* ===== SECTION TITLES ===== */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
}

.section-number {
    color: var(--accent-cyan);
    font-size: 0.9em;
    margin-right: 8px;
}

/* ===== ABOUT SECTION ===== */
.photo-arc-wrapper {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto 60px auto;
    padding: 10px 0;
    cursor: grab;
    user-select: none;
    overflow: hidden;
    perspective: 1200px;
}

.photo-arc-wrapper.dragging {
    cursor: grabbing;
}

.photo-arc {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    position: relative;
    padding: 40px 10px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.photo-card {
    width: 310px;
    height: 430px;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    border: 2px solid var(--border-glass);
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.45s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background: var(--bg-secondary);
    flex-shrink: 0;
    transform: rotate(0deg);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    transition: transform 0.5s ease;
}

.photo-card.active {
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 45px rgba(0, 212, 255, 0.25), 0 0 20px rgba(0, 212, 255, 0.2);
}

/* Hover Effect */
.photo-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.35);
}

.photo-card:hover img {
    transform: scale(1.05);
}

.about-text-block {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about-text-block p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 22px;
}

.about-text-block p:last-child {
    margin-bottom: 0;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent-cyan-dim), var(--accent-purple-dim));
    border: 2px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-cyan);
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: border-color var(--transition-normal);
}

.image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(0, 212, 255, 0.1));
    z-index: -1;
}

.image-wrapper:hover .image-placeholder {
    border-color: var(--accent-cyan);
}

.image-glow {
    position: absolute;
    inset: -4px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    z-index: 0;
    opacity: 0.3;
    filter: blur(20px);
    transition: opacity var(--transition-normal);
}

.image-wrapper:hover .image-glow {
    opacity: 0.6;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Terminal Box */
.terminal-box {
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    overflow: hidden;
    transition: border-color var(--transition-normal);
}

.terminal-box:hover {
    border-color: var(--border-glass-hover);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-glass);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 8px;
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    line-height: 2;
}

.terminal-line {
    display: flex;
    gap: 8px;
}

.prompt {
    color: var(--accent-green);
}

.command {
    color: var(--accent-cyan);
}

.terminal-output {
    color: var(--text-secondary);
    padding-left: 20px;
}

.cursor-blink {
    color: var(--accent-green);
    animation: blink 1s infinite;
}

/* ===== SKILLS SECTION ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.skill-category {
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.skill-category:hover {
    border-color: var(--border-glass-hover);
    background: var(--surface-glass-hover);
    transform: translateY(-4px);
}

.skill-category:hover::before {
    opacity: 1;
}

.category-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-icon {
    font-size: 1.2rem;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    cursor: default;
}

.skill-item:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    background: var(--accent-cyan-dim);
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}

/* ===== PROJECTS SECTION ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
    margin: 0 auto;
}

.project-card {
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 5;
}

.project-card:hover {
    border-color: var(--border-glass-hover);
    background: var(--surface-glass-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-glass);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 12px;
    transition: color var(--transition-fast);
}

.project-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    flex-grow: 1;
}

.project-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: auto;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-heading {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid transparent;
}

.contact-item:hover {
    color: var(--accent-cyan);
    border-color: var(--border-glass);
    background: var(--surface-glass);
}

.contact-icon {
    font-size: 1.2rem;
}

/* Contact Form */
.contact-form {
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 36px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 0.95rem;
}

/* ===== BLOG SECTION ===== */
.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-main-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.blog-main-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    max-width: 950px;
    margin: 0 auto;
}

.blog-card {
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 32px;
    transition: all var(--transition-normal);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-card:hover {
    border-color: var(--accent-green);
    box-shadow: 0 0 30px rgba(52, 211, 153, 0.18), inset 0 0 15px rgba(52, 211, 153, 0.04);
    transform: translateY(-4px);
}

.blog-meta {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-meta .dot {
    color: var(--accent-green);
}

.blog-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 14px;
    transition: color var(--transition-fast);
}

.blog-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

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

.blog-tag {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.blog-card:hover .blog-tag {
    border-color: rgba(52, 211, 153, 0.3);
    color: var(--text-secondary);
}

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid var(--border-glass);
    padding: 40px 0;
    position: relative;
    z-index: 7;
    background-color: var(--bg-primary);
}

.footer-content {
    text-align: center;
}

.footer-text {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

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

/* ===== SCROLL REVEAL ANIMATION ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger animation delay for skill categories */
.skill-category.reveal:nth-child(1) { transition-delay: 0s; }
.skill-category.reveal:nth-child(2) { transition-delay: 0.1s; }
.skill-category.reveal:nth-child(3) { transition-delay: 0.2s; }
.skill-category.reveal:nth-child(4) { transition-delay: 0.3s; }

/* Stagger animation delay for project cards */
.project-card.reveal:nth-child(1) { transition-delay: 0s; }
.project-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.project-card.reveal:nth-child(3) { transition-delay: 0.2s; }
.project-card.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ===== RESPONSIVE — TABLET ===== */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        justify-items: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

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

    .contact-info {
        text-align: center;
    }

    .contact-details {
        align-items: center;
    }
}

/* ===== RESPONSIVE — MOBILE ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-secondary);
        border-left: 1px solid var(--border-glass);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 4px;
        transition: right var(--transition-normal);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 12px 16px;
    }

    .hero-terminal {
        flex-wrap: wrap;
        justify-content: center;
    }

    .section {
        padding: 70px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .image-wrapper {
        width: 200px;
        height: 200px;
    }

    .image-placeholder {
        font-size: 3rem;
    }
}

/* ===== RESPONSIVE — SMALL MOBILE ===== */
@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-form {
        padding: 24px;
    }

    .terminal-body {
        font-size: 0.78rem;
        padding: 14px;
    }
}

/* ===== FLOATING WHATSAPP BUTTON ===== */
.whatsapp-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
    transition: all var(--transition-normal);
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.12) translateY(-2px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.65);
    background: #20ba5a;
}

.whatsapp-tooltip {
    position: absolute;
    right: 68px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: all var(--transition-fast);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-contact:hover {
    border-color: #25D366 !important;
    background: rgba(37, 211, 102, 0.1) !important;
}

/* ===== DISTINCT LEFT-TO-RIGHT TYPING INTRO ANIMATION ===== */
.site-intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #030508;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.85s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease, visibility 0.8s ease;
}

.site-intro-overlay.hide-intro {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ===== DEEP EYE-FRIENDLY ELECTRIC NEON EXPLOSION ===== */
.intro-explosion-stage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Eye-Friendly Darker Electric Burst Texture */
.stage-cosmic-glow {
    position: absolute;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, rgba(192, 38, 211, 0.45) 0%, rgba(126, 34, 206, 0.35) 45%, #030508 85%);
    mix-blend-mode: screen;
    filter: brightness(0.7) contrast(1.15) blur(10px);
    opacity: 0;
    animation: stage3Dispersal 1.4s ease-out 0.3s forwards, deepElectricPulse 4s infinite alternate ease-in-out 1.8s;
}

/* Deep Soft Electric Core Ignition */
.stage-core-ignition {
    position: absolute;
    width: 360px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.85) 0%, rgba(217, 70, 239, 0.6) 35%, rgba(147, 51, 234, 0.4) 65%, transparent 100%);
    filter: blur(35px);
    box-shadow: 0 0 90px rgba(217, 70, 239, 0.45), 0 0 160px rgba(147, 51, 234, 0.35);
    opacity: 0;
    transform: scale(0.1);
    animation: stage1Ignition 0.8s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

/* Soft Plasma Nebula Outer Cloud */
.stage-nebula-spread {
    position: absolute;
    width: 820px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(217, 70, 239, 0.45) 0%, rgba(126, 34, 206, 0.35) 45%, rgba(15, 23, 42, 0.5) 75%, transparent 100%);
    filter: blur(65px);
    opacity: 0;
    transform: scale(0.3);
    animation: stage2Spread 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes stage1Ignition {
    0% {
        opacity: 0;
        transform: scale(0.05);
        filter: blur(15px);
    }
    60% {
        opacity: 1;
        transform: scale(1.25);
        filter: blur(35px);
    }
    100% {
        opacity: 0.9;
        transform: scale(1);
        filter: blur(38px);
    }
}

@keyframes stage2Spread {
    0% {
        opacity: 0;
        transform: scale(0.2);
        filter: blur(35px);
    }
    60% {
        opacity: 1;
        transform: scale(1.2);
        filter: blur(55px);
    }
    100% {
        opacity: 0.85;
        transform: scale(1);
        filter: blur(65px);
    }
}

@keyframes stage3Dispersal {
    0% {
        opacity: 0;
        transform: scale(0.85);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes deepElectricPulse {
    0% {
        filter: brightness(0.68) contrast(1.15) blur(10px);
        transform: scale(1);
    }
    100% {
        filter: brightness(0.82) contrast(1.2) blur(14px);
        transform: scale(1.06);
    }
}

.intro-typography-container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.intro-typing-title {
    font-family: 'Playfair Display', 'Bebas Neue', 'JetBrains Mono', serif;
    font-size: clamp(2.8rem, 8vw, 6.2rem);
    font-weight: 800;
    letter-spacing: 16px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.5), 0 0 50px rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.intro-typed-name {
    color: #ffffff;
}

.intro-cursor {
    color: #38bdf8;
    font-weight: 300;
    margin-left: 6px;
    animation: blinkCursor 0.6s infinite alternate;
    text-shadow: 0 0 15px #38bdf8;
}

@keyframes blinkCursor {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.intro-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1rem, 2.6vw, 1.5rem);
    font-weight: 800;
    letter-spacing: 14px;
    color: #fbbf24;
    text-shadow: 0 0 18px rgba(251, 191, 36, 0.85), 0 0 35px rgba(245, 158, 11, 0.6);
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    margin-top: 16px;
}

.intro-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

.skip-intro-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f8fafc;
    padding: 8px 20px;
    border-radius: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.skip-intro-btn:hover {
    background: #f59e0b;
    color: #000;
    border-color: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

/* ===== AVATAR ZOOM LIGHTBOX MODAL ===== */
.hero-avatar {
    cursor: zoom-in;
}

.avatar-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10005;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.avatar-modal.open {
    opacity: 1;
    visibility: visible;
}

.avatar-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 8, 0.88);
    backdrop-filter: blur(12px);
}

.avatar-modal-content {
    position: relative;
    z-index: 2;
    max-width: 420px;
    width: 88%;
    text-align: center;
    transform: scale(0.7);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.avatar-modal.open .avatar-modal-content {
    transform: scale(1);
}

.avatar-modal-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 24px;
    border: 3px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(56, 189, 248, 0.5);
}

.avatar-modal-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1e293b;
    border: 2px solid #38bdf8;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 3;
}

.avatar-modal-close:hover {
    background: #38bdf8;
    color: #000000;
    transform: scale(1.1);
}

.avatar-modal-caption {
    display: block;
    margin-top: 16px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 3px;
}
