/* ═══════════════════════════════════════════════════════════
   DIVYANSHU KANOJIYA — PORTFOLIO
   Futuristic Hacker × Luxury Antique Theme
   ═══════════════════════════════════════════════════════════ */
:root {
    --gold: #f5c518;
    --gold-light: #ffd84d;
    --gold-dark: #c9a100;
    --navy: #0B1F3A;
    --navy-light: #132d52;
    --bg: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #161616;
    --neon: #00ff88;
    --neon-dim: rgba(0, 255, 136, 0.15);
    --beige: #F5E6C8;
    --text-primary: #E8E8E8;
    --text-secondary: #999999;
    --text-muted: #666666;
    --white: #FFFFFF;
    --border: rgba(245, 197, 24, 0.14);
    --border-hover: rgba(245, 197, 24, 0.35);
    --glass: rgba(11, 31, 58, 0.35);
    --glass-border: rgba(245, 197, 24, 0.08);
    --shadow-gold: 0 0 30px rgba(245, 197, 24, 0.15);
    --shadow-neon: 0 0 20px rgba(0, 255, 136, 0.2);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) var(--bg);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

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

/* ── GLOBAL 3D BACKGROUND ── */
.global-3d-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    opacity: 0.35;
    /* low opacity to keep it subtle */
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.gold-text {
    color: var(--gold);
}

.neon-text {
    color: var(--neon);
    text-shadow: 0 0 10px rgba(0, 255, 156, 0.4);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-code);
    font-size: 14px;
    color: var(--neon);
    margin-bottom: 12px;
    opacity: 0.7;
}

.section-tag-end {
    display: block;
    text-align: center;
    margin-top: 64px;
    opacity: 0.4;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.section-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--neon));
    margin: 0 auto;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 500px;
    margin: 16px auto 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--bg);
    box-shadow: 0 4px 20px rgba(200, 169, 106, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(200, 169, 106, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--bg);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(200, 169, 106, 0.3);
}

/* ═══ NAVIGATION — PREMIUM GLASSMORPHISM BAR ═══ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(245, 197, 24, 0.12);
    box-shadow: 0 2px 24px rgba(245, 197, 24, 0.06),
        0 1px 0 rgba(245, 197, 24, 0.08);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid rgba(245, 197, 24, 0.18);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5),
        0 1px 0 rgba(245, 197, 24, 0.14);
}

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

.nav-logo {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 1px;
    text-shadow: 0 0 18px rgba(245, 197, 24, 0.35);
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-logo:hover {
    text-shadow: 0 0 28px rgba(245, 197, 24, 0.6);
    transform: scale(1.04);
}

.logo-bracket {
    color: var(--neon);
    font-family: var(--font-code);
    font-weight: 400;
}

/* ═══ HAMBURGER — 3 LINE TO X MORPH ═══ */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
}

.hamburger .bar {
    width: 28px;
    height: 2.5px;
    background: var(--gold);
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    transform-origin: center;
    box-shadow: 0 0 6px rgba(245, 197, 24, 0.2);
}

.hamburger:hover .bar {
    box-shadow: 0 0 12px rgba(245, 197, 24, 0.5);
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ═══ SIDEBAR OVERLAY ═══ */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ═══ SIDEBAR PANEL ═══ */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 75vw;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(175deg, #0d1117 0%, #0a0e14 40%, #060a10 100%);
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 32px 40px;
    overflow-y: auto;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.7),
        -4px 0 0 rgba(245, 197, 24, 0.08);
}

/* Subtle gradient overlay on sidebar */
.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 20%, rgba(11, 31, 58, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(245, 197, 24, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Thin gold accent line on left edge */
.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(245, 197, 24, 0.3) 20%,
            var(--gold) 50%,
            rgba(245, 197, 24, 0.3) 80%,
            transparent 100%);
    box-shadow: 0 0 12px rgba(245, 197, 24, 0.3);
}

.sidebar.active {
    transform: translateX(0);
}

/* ═══ SIDEBAR CLOSE BUTTON ═══ */
.sidebar-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: 2px solid rgba(245, 197, 24, 0.25);
    color: var(--gold);
    font-size: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    line-height: 1;
}

.sidebar-close span {
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-close:hover {
    background: rgba(245, 197, 24, 0.1);
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(245, 197, 24, 0.25);
}

.sidebar-close:hover span {
    transform: rotate(90deg);
}

/* ═══ SIDEBAR NAV LINKS ═══ */
.sidebar-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0;
    margin: 0;
    width: 100%;
    position: relative;
    z-index: 1;
}

.sidebar-link-item {
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Staggered entrance animation — each item gets 0.1s delay */
.sidebar.active .sidebar-link-item:nth-child(1) {
    transition-delay: 0.1s;
}

.sidebar.active .sidebar-link-item:nth-child(2) {
    transition-delay: 0.2s;
}

.sidebar.active .sidebar-link-item:nth-child(3) {
    transition-delay: 0.3s;
}

.sidebar.active .sidebar-link-item:nth-child(4) {
    transition-delay: 0.4s;
}

.sidebar.active .sidebar-link-item:nth-child(5) {
    transition-delay: 0.5s;
}

.sidebar.active .sidebar-link-item:nth-child(6) {
    transition-delay: 0.6s;
}

.sidebar.active .sidebar-link-item:nth-child(7) {
    transition-delay: 0.7s;
}

.sidebar.active .sidebar-link-item:nth-child(8) {
    transition-delay: 0.8s;
}

.sidebar.active .sidebar-link-item {
    opacity: 1;
    transform: translateY(0);
}

.sidebar-link {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    padding: 12px 20px;
    position: relative;
    transition: all 0.35s ease;
    letter-spacing: 0.5px;
    text-decoration: none;
}

/* Underline slide animation */
.sidebar-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(245, 197, 24, 0);
}

.sidebar-link:hover {
    color: var(--gold);
    text-shadow: 0 0 18px rgba(245, 197, 24, 0.4);
}

.sidebar-link:hover::after {
    width: 60%;
    box-shadow: 0 0 12px rgba(245, 197, 24, 0.35);
}

/* Active state */
.sidebar-link.active {
    color: var(--gold);
    text-shadow: 0 0 14px rgba(245, 197, 24, 0.3);
}

.sidebar-link.active::after {
    width: 50%;
    box-shadow: 0 0 10px rgba(245, 197, 24, 0.3);
}

/* ═══ SIDEBAR FOOTER — THEME TOGGLE ═══ */
.sidebar-footer {
    margin-top: auto;
    padding-top: 32px;
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.theme-toggle-sidebar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(245, 197, 24, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-body);
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.35s ease;
}

.theme-toggle-sidebar i {
    font-size: 18px;
    color: var(--gold);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle-sidebar:hover {
    background: rgba(245, 197, 24, 0.08);
    border-color: rgba(245, 197, 24, 0.35);
    color: var(--white);
}

.theme-toggle-sidebar:hover i {
    transform: rotate(360deg);
}

/* ═══ BODY SCROLL LOCK WHEN SIDEBAR OPEN ═══ */
body.sidebar-open {
    overflow: hidden;
}

/* ═══ HERO ═══ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(ellipse at 20% 50%, rgba(11, 31, 58, 0.3) 0%, transparent 50%), radial-gradient(ellipse at 80% 20%, rgba(200, 169, 106, 0.05) 0%, transparent 40%), var(--bg);
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.4) 80%, var(--bg) 100%);
}

/* ──────────────────────────────────────────────────
   REDESIGNED HERO: Mobile-First Centered Layout
────────────────────────────────────────────────── */
.hero-layout {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    width: 100%;
    max-width: 1280px;
    padding: 100px 48px 80px;
    margin: 0 auto;
}

/* ─── CENTERED HERO CONTENT COLUMN ─── */
.hero-mobile-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

/* ─── AVATAR RING ─── */
.hero-avatar-wrap {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto;
    animation: avatarFloat 4s ease-in-out infinite;
}

.hero-avatar-ring {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #f5c518, #00ff88, #f5c518, #c9a100, #00ff88);
    background-size: 300% 300%;
    animation: goldGlow 3s linear infinite;
    box-shadow: 0 0 28px rgba(245, 197, 24, 0.45), 0 0 70px rgba(245, 197, 24, 0.14);
}

.hero-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(145deg, #0d1b2a, #111111);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0a0a0a;
}

.hero-avatar-initials {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(245, 197, 24, 0.5);
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ─── AVAILABLE FOR HIRE BADGE ─── */
.available-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 136, 0.1);
    border: 1.5px solid rgba(0, 255, 136, 0.35);
    border-radius: 30px;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--neon);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.available-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon);
    box-shadow: 0 0 10px var(--neon);
    flex-shrink: 0;
    animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 10px var(--neon);
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        box-shadow: 0 0 4px var(--neon);
        transform: scale(0.85);
    }
}

/* ─── NAME ─── */
.hero-name-centered {
    font-family: var(--font-heading);
    font-size: clamp(32px, 8vw, 58px);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -1px;
    margin: 0;
    text-align: center;
    width: 100%;
}

.hero-name-grad {
    background: linear-gradient(135deg, #f5c518, #ffd84d, #c9a100);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── ROLE TYPEWRITER ─── */
.hero-role-wrapper {
    font-family: var(--font-heading);
    font-size: clamp(16px, 4vw, 24px);
    font-weight: 600;
    color: var(--neon);
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

/* ─── TAGLINE ─── */
.hero-tagline {
    font-size: clamp(13px, 3.5vw, 16px);
    color: var(--text-secondary);
    max-width: 420px;
    line-height: 1.7;
    margin: 0 auto;
}

/* ─── LOCATION ─── */
.hero-location {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    flex-wrap: wrap;
    text-align: center;
    padding: 0 8px;
}

.hero-location i {
    color: var(--gold);
}

/* ─── CTA BUTTONS STACK ─── */
.hero-cta-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 340px;
    align-items: center;
}

.btn-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    border: 2px solid transparent;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.btn-hero:hover::before {
    left: 100%;
}

.btn-hero-gold {
    background: linear-gradient(135deg, #f5c518, #c9a100);
    color: #0a0a0a;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(245, 197, 24, 0.3);
}

.btn-hero-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(245, 197, 24, 0.5);
}

.btn-hero-outline {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}

.btn-hero-outline:hover {
    background: rgba(245, 197, 24, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(245, 197, 24, 0.2);
}

.btn-hero-green {
    background: transparent;
    color: var(--neon);
    border-color: var(--neon);
    box-shadow: 0 0 14px rgba(0, 255, 136, 0.15), inset 0 0 14px rgba(0, 255, 136, 0.04);
}

.btn-hero-green:hover {
    background: rgba(0, 255, 136, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 0 32px rgba(0, 255, 136, 0.45), 0 8px 20px rgba(0, 255, 136, 0.2);
}

/* ─── SOCIAL ICONS ROW ─── */
.hero-social-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ─── DESKTOP OVERRIDES (left-align on wide screens) ─── */
@media (min-width: 1025px) {
    .hero-mobile-center {
        align-items: flex-start;
        text-align: left;
    }

    .available-badge {
        align-self: flex-start;
    }

    .hero-name-centered {
        text-align: left;
    }

    .hero-role-wrapper {
        justify-content: flex-start;
    }

    .hero-tagline {
        margin: 0;
        text-align: left;
    }

    .hero-location {
        justify-content: flex-start;
        padding: 0;
    }

    .hero-cta-stack {
        align-items: flex-start;
        max-width: 360px;
    }

    .hero-social-row {
        justify-content: flex-start;
    }

    .hero-avatar-wrap {
        margin: 0;
    }
}


/* ── PROFILE CARD ── */
.profile-card {
    position: relative;
    background: rgba(17, 17, 17, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 28px;
    display: flex;
    gap: 24px;
    align-items: center;
    z-index: 0;
}

/* Animated glowing border */
.profile-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    background: linear-gradient(135deg,
            #C8A96A,
            #00FF9C,
            #a88b4a,
            #C8A96A,
            #00FF9C);
    background-size: 300% 300%;
    animation: glowingBorder 4s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    z-index: -1;
}

/* Outer glow pulse */
.profile-glow {
    position: absolute;
    inset: -20px;
    border-radius: 36px;
    background: radial-gradient(ellipse at center, rgba(200, 169, 106, 0.14) 0%, transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
    pointer-events: none;
    z-index: -2;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.03);
    }
}

/* ── AVATAR ── */
.profile-avatar {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.avatar-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--bg-card));
    border: 3px solid var(--gold);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 36px;
    gap: 4px;
    box-shadow: 0 0 24px rgba(200, 169, 106, 0.25), 0 0 60px rgba(200, 169, 106, 0.08);
    animation: avatarFloat 4s ease-in-out infinite;
}

.avatar-placeholder span {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--gold-light);
    line-height: 1;
}

@keyframes avatarFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

.avatar-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--neon);
    background: rgba(0, 255, 156, 0.08);
    border: 1px solid rgba(0, 255, 156, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-family: var(--font-code);
    white-space: nowrap;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--neon);
    box-shadow: 0 0 8px var(--neon);
    animation: statusBlink 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes statusBlink {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 8px var(--neon);
    }

    50% {
        opacity: 0.4;
        box-shadow: 0 0 3px var(--neon);
    }
}

/* ── PROFILE INFO (inside card) ── */
.profile-info {
    flex: 1;
}

.profile-info .hero-name {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.profile-info .hero-title-wrapper {
    font-size: clamp(14px, 2vw, 20px);
    margin-bottom: 12px;
    min-height: 32px;
    text-align: left;
}

.profile-info .hero-description {
    font-size: 14px;
    margin-bottom: 0;
}

/* Keep the shared classes */
.hero-greeting {
    margin-bottom: 0;
}

.code-tag {
    font-family: var(--font-code);
    font-size: 16px;
    color: var(--neon);
    background: var(--neon-dim);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 156, 0.2);
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-title-wrapper {
    font-family: var(--font-heading);
    font-size: clamp(20px, 3.5vw, 32px);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 20px;
    min-height: 48px;
}

.typewriter {
    color: var(--neon);
    font-weight: 600;
}

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

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-description i {
    color: var(--gold);
    margin-right: 6px;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.hero-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 18px;
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--gold);
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}

/* ── RIGHT COLUMN: 3D Canvas Area ── */
.hero-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 520px;
}

.hero-canvas-3d {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    display: block;
}

/* ── FLOATING TECH BADGES ── */
.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-family: var(--font-code);
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    background: rgba(11, 11, 11, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 10;
    pointer-events: none;
    white-space: nowrap;
}

.floating-badge i {
    font-size: 16px;
}

.badge-1 {
    top: 8%;
    left: 5%;
    color: var(--neon);
    border-color: rgba(0, 255, 156, 0.3);
    animation: badgeFloat1 5s ease-in-out infinite;
}

.badge-2 {
    top: 18%;
    right: 2%;
    color: #f7df1e;
    border-color: rgba(247, 223, 30, 0.3);
    animation: badgeFloat2 6s ease-in-out infinite;
}

.badge-3 {
    top: 50%;
    right: -2%;
    color: var(--gold);
    border-color: rgba(200, 169, 106, 0.3);
    animation: badgeFloat3 4.5s ease-in-out infinite;
}

.badge-4 {
    bottom: 16%;
    left: 2%;
    color: #68a063;
    border-color: rgba(104, 160, 99, 0.3);
    animation: badgeFloat4 5.5s ease-in-out infinite;
}

.badge-5 {
    bottom: 5%;
    right: 6%;
    color: #e44d26;
    border-color: rgba(228, 77, 38, 0.3);
    animation: badgeFloat5 6.5s ease-in-out infinite;
}

@keyframes badgeFloat1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(-2deg)
    }

    50% {
        transform: translate(6px, -12px) rotate(2deg)
    }
}

@keyframes badgeFloat2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(3deg)
    }

    50% {
        transform: translate(-8px, -10px) rotate(-3deg)
    }
}

@keyframes badgeFloat3 {

    0%,
    100% {
        transform: translate(0, 0) rotate(-1deg)
    }

    50% {
        transform: translate(5px, 10px) rotate(1deg)
    }
}

@keyframes badgeFloat4 {

    0%,
    100% {
        transform: translate(0, 0) rotate(2deg)
    }

    50% {
        transform: translate(-6px, -8px) rotate(-2deg)
    }
}

@keyframes badgeFloat5 {

    0%,
    100% {
        transform: translate(0, 0) rotate(-3deg)
    }

    50% {
        transform: translate(8px, -6px) rotate(3deg)
    }
}

/* ── NEON BUTTON ── */
.btn-neon {
    background: transparent;
    color: var(--neon);
    border: 2px solid var(--neon);
    box-shadow: 0 0 12px rgba(0, 255, 156, 0.15), inset 0 0 12px rgba(0, 255, 156, 0.04);
}

.btn-neon:hover {
    background: var(--neon);
    color: var(--bg);
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 255, 156, 0.5), 0 8px 20px rgba(0, 255, 156, 0.2);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: floatScroll 3s ease-in-out infinite;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.mouse-wheel {
    width: 3px;
    height: 8px;
    background: var(--gold);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(12px);
        opacity: 0;
    }
}

@keyframes floatScroll {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}


/* ── HERO RESPONSIVE ── */
@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
        padding: 120px 24px 80px;
        gap: 40px;
    }

    .hero-right {
        height: 360px;
        order: -1;
    }

    .hero-mobile-center {
        align-items: center;
        text-align: center;
    }

    .hero-tagline {
        margin: 0 auto;
    }

    .hero-cta-stack {
        align-items: center;
    }

    .hero-social-row {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .hero-layout {
        padding: 90px 16px 70px;
        gap: 0;
    }

    .hero-right {
        display: none;
    }

    .hero-mobile-center {
        gap: 16px;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .hero-avatar-wrap,
    .hero-avatar-ring {
        width: 110px;
        height: 110px;
    }

    .hero-avatar-initials {
        font-size: 32px;
    }

    .hero-name-centered {
        font-size: clamp(28px, 7vw, 40px);
        letter-spacing: -0.5px;
    }

    .hero-cta-stack {
        width: 100%;
        max-width: 100%;
        padding: 0 4px;
    }

    .btn-hero {
        width: 100%;
        padding: 13px 20px;
        font-size: 14px;
    }

    .hero-social-row {
        gap: 12px;
    }

    .floating-badge {
        font-size: 11px;
        padding: 6px 10px;
    }
}

@media (max-width: 375px) {
    .hero-name-centered {
        font-size: 26px;
    }

    .hero-role-wrapper {
        font-size: 15px;
    }

    .hero-tagline {
        font-size: 13px;
    }
}

/* ═══ ABOUT ═══ */
.about-section {
    background: linear-gradient(180deg, var(--bg) 0%, rgba(11, 31, 58, 0.08) 50%, var(--bg) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
    align-items: center;
}

.about-image-frame {
    position: relative;
    width: 280px;
    height: 340px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border);
    background: var(--bg-card);
}

.about-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.frame-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--gold);
    border-style: solid;
}

.frame-corner.top-left {
    top: 10px;
    left: 10px;
    border-width: 2px 0 0 2px;
}

.frame-corner.top-right {
    top: 10px;
    right: 10px;
    border-width: 2px 2px 0 0;
}

.frame-corner.bottom-left {
    bottom: 10px;
    left: 10px;
    border-width: 0 0 2px 2px;
}

.frame-corner.bottom-right {
    bottom: 10px;
    right: 10px;
    border-width: 0 2px 2px 0;
}

.about-subtitle {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
}

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 32px 0;
    padding: 24px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--gold);
    display: inline;
}

.stat-plus {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--neon);
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ═══ SKILLS ═══ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--neon));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.skill-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-gold);
    background: var(--bg-card-hover);
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-icon {
    font-size: 36px;
    color: var(--gold);
    margin-bottom: 12px;
    transition: var(--transition);
}

.skill-card:hover .skill-icon {
    color: var(--neon);
    text-shadow: var(--shadow-neon);
    transform: scale(1.1);
}

.skill-name {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.skill-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.skill-progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--gold), var(--neon));
    border-radius: 2px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-percent {
    font-family: var(--font-code);
    font-size: 12px;
    color: var(--text-muted);
}

/* ═══ PROJECTS ═══ */
.projects-section {
    background: linear-gradient(180deg, var(--bg) 0%, rgba(11, 31, 58, 0.06) 50%, var(--bg) 100%);
}

.project-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
    box-shadow: 0 4px 15px rgba(200, 169, 106, 0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card.card-visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card.card-visible:hover {
    border-color: var(--gold);
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 20px rgba(245, 197, 24, 0.4);
}

.project-card.hidden {
    display: none;
}

@keyframes cardFadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #0d1117;
}

/* ─── SHARED MOCK ELEMENTS ─── */
.mock-browser,
.mock-terminal,
.mock-editor {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: var(--font-code);
    font-size: 11px;
}

/* Window title bars */
.mock-browser-bar,
.mock-terminal-bar,
.mock-editor-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #1c1c1e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

/* Traffic light dots */
.mock-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mock-dot.red {
    background: #ff5f57;
}

.mock-dot.yellow {
    background: #febc2e;
}

.mock-dot.green {
    background: #28c840;
}

/* Body glow overlay */
.mock-body-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* ─── BROWSER MOCK ─── */
.mock-url-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 3px 10px;
    color: var(--text-muted);
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 4px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mock-url-bar i {
    color: #28c840;
    font-size: 9px;
}

.mock-browser-body {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(135deg, #0d1117, #131a26);
}

.mock-icon-wrap {
    font-size: 38px;
    color: var(--lang-color, var(--gold));
    filter: drop-shadow(0 0 14px var(--lang-color, var(--gold)));
    animation: iconPulse 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px var(--lang-color, var(--gold)));
    }

    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 22px var(--lang-color, var(--gold)));
    }
}

.mock-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.mock-line {
    height: 5px;
    border-radius: 3px;
    animation: lineShimmer 2.5s ease-in-out infinite;
}

.ml-80 {
    width: 80%;
}

.ml-60 {
    width: 60%;
}

.ml-90 {
    width: 90%;
}

.ml-50 {
    width: 50%;
}

.ml-c1 {
    background: rgba(200, 169, 106, 0.35);
    animation-delay: 0s;
}

.ml-c2 {
    background: rgba(0, 255, 156, 0.2);
    animation-delay: 0.4s;
}

.ml-c3 {
    background: rgba(255, 255, 255, 0.12);
    animation-delay: 0.8s;
}

@keyframes lineShimmer {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* ─── TERMINAL MOCK ─── */
.mock-terminal-title {
    color: var(--text-muted);
    font-size: 10px;
    margin-left: 8px;
}

.mock-terminal-body {
    flex: 1;
    position: relative;
    padding: 12px 14px;
    background: #0d1117;
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow: hidden;
}

.mock-term-line {
    font-size: 10.5px;
    color: #c9d1d9;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.mock-prompt {
    color: #28c840;
    font-weight: 700;
}

.mock-term-pass {
    color: #28c840;
}

.mock-term-pass i {
    font-size: 10px;
}

.mock-term-info {
    color: #58a6ff;
    font-size: 10px;
}

.mock-terminal-cursor {
    width: 7px;
    height: 13px;
    background: #28c840;
    border-radius: 1px;
    margin-top: 2px;
    animation: cursorBlink 1.1s step-end infinite;
    position: relative;
    z-index: 1;
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ─── CODE EDITOR MOCK ─── */
.mock-editor-tab {
    font-size: 10px;
    color: var(--gold);
    margin-left: 8px;
    padding: 2px 10px;
    background: rgba(200, 169, 106, 0.1);
    border-radius: 4px 4px 0 0;
    border: 1px solid rgba(200, 169, 106, 0.15);
    border-bottom: none;
}

.mock-editor-body {
    flex: 1;
    position: relative;
    background: #0d1117;
    padding: 10px 12px;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.mock-code-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.mc-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10.5px;
    color: #c9d1d9;
    white-space: nowrap;
}

.mc-num {
    color: #484f58;
    min-width: 14px;
    text-align: right;
    user-select: none;
}

.mc-kw {
    color: #ff7b72;
}

.mc-cls {
    color: #ffa657;
}

.mc-fn {
    color: #d2a8ff;
}

.mc-str {
    color: #a5d6ff;
}

.mock-icon-small {
    font-size: 30px;
    color: var(--lang-color, var(--gold));
    opacity: 0.2;
    position: absolute;
    right: 14px;
    bottom: 10px;
    z-index: 0;
    filter: blur(1px);
}

/* ─── HOVER OVERLAY UPGRADE ─── */
/* Featured badge now lives inside .project-image */
.project-image>.featured-badge {
    position: absolute;
    top: 40px;
    right: 12px;
    z-index: 10;
}

.project-card:hover .project-image-placeholder {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
}

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

.btn-project {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

/* Add staggered delay so buttons zoom slightly after overlay appears */
.project-card:hover .btn-project {
    opacity: 1;
    transform: scale(1);
}

.btn-project-outline {
    border: 2px solid var(--gold);
    color: var(--gold);
    background: transparent;
}

.btn-project-outline:hover {
    background: rgba(245, 197, 24, 0.1);
}

.btn-project-filled {
    border: 2px solid var(--gold);
    color: var(--bg);
    background: var(--gold);
}

.btn-project-filled:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
}

.project-info {
    padding: 24px;
}

.project-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

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

.project-tags span {
    font-family: var(--font-code);
    font-size: 12px;
    color: var(--neon);
    background: var(--neon-dim);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 156, 0.15);
}

/* ─── LOADING STATE ─── */
.projects-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 80px 0;
}

.loading-spinner {
    width: 52px;
    height: 52px;
    border: 3px solid rgba(200, 169, 106, 0.12);
    border-top-color: var(--gold);
    border-right-color: var(--neon);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-family: var(--font-code);
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* ─── PROJECTS ERROR ─── */
.projects-error {
    text-align: center;
    padding: 60px 0;
    color: var(--text-muted);
}

.projects-error i {
    font-size: 36px;
    color: var(--gold);
    margin-bottom: 16px;
    display: block;
}

.projects-error a {
    color: var(--neon);
    text-decoration: underline;
}

/* ─── PROJECTS CTA ─── */
.projects-cta {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}


/* ─── FEATURED CARD ─── */

.project-card--featured {
    border-color: rgba(200, 169, 106, 0.35);
    background: linear-gradient(135deg, rgba(17, 17, 17, 1) 0%, rgba(11, 31, 58, 0.2) 100%);
    position: relative;
}

.project-card--featured::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 17px;
    background: linear-gradient(135deg, rgba(200, 169, 106, 0.5), rgba(0, 255, 156, 0.2), rgba(200, 169, 106, 0.5));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.35s ease;
}

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

.project-card--featured:hover {
    box-shadow: 0 20px 60px rgba(200, 169, 106, 0.18), 0 0 0 1px rgba(200, 169, 106, 0.3);
    transform: translateY(-10px);
}

/* ─── FEATURED BADGE (over image) ─── */
.featured-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--bg);
    font-family: var(--font-code);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(200, 169, 106, 0.4);
    animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 4px 14px rgba(200, 169, 106, 0.4);
    }

    50% {
        box-shadow: 0 4px 22px rgba(200, 169, 106, 0.7);
    }
}

/* ─── PROJECT META ROW (language + featured tag) ─── */
.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 6px;
}

.project-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-code);
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.project-featured-tag {
    font-family: var(--font-code);
    font-size: 11px;
    color: var(--gold);
    opacity: 0.8;
}

/* ─── PROJECT CARD FOOTER LINK ─── */
.project-footer {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.project-github-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.project-github-link:hover {
    color: var(--gold);
    gap: 10px;
}

.project-github-link .fa-arrow-right {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.project-github-link:hover .fa-arrow-right {
    transform: translateX(4px);
}

/* ═══ EXPERIENCE ═══ */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15px;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold), var(--neon), var(--gold));
    opacity: 0.4;
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -33px;
    top: 8px;
    width: 14px;
    height: 14px;
    background: var(--gold);
    border: 3px solid var(--bg);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(200, 169, 106, 0.2), 0 0 15px rgba(200, 169, 106, 0.3);
    z-index: 1;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-gold);
}

.timeline-date {
    font-family: var(--font-code);
    font-size: 13px;
    color: var(--neon);
    margin-bottom: 8px;
    display: inline-block;
}

.timeline-date i {
    color: var(--gold);
    margin-right: 6px;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.timeline-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 16px;
}

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

.timeline-tags span {
    font-family: var(--font-code);
    font-size: 12px;
    color: var(--gold);
    background: rgba(200, 169, 106, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(200, 169, 106, 0.15);
}

/* ── EXPERIENCE CARDS ── */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 0 auto;
    max-width: 1000px;
}

.exp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-slow);
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.exp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(200, 169, 106, 0.08) 0%, transparent 60%);
    z-index: -1;
    opacity: 0;
    transition: var(--transition-slow);
}

.exp-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--gold), var(--neon));
    transition: var(--transition-slow);
}

.exp-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-gold), 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

.exp-card:hover::after {
    height: 100%;
}

.exp-card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 16px;
}

.exp-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.3;
}

.exp-date {
    font-family: var(--font-code);
    font-size: 13px;
    color: var(--neon);
    background: rgba(0, 255, 156, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 156, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.exp-company {
    font-size: 18px;
    color: var(--gold);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.exp-company i {
    font-size: 20px;
}

/* ═══ ACHIEVEMENTS ═══ */
.achievements-section {
    background: linear-gradient(180deg, var(--bg) 0%, rgba(0, 255, 156, 0.03) 50%, var(--bg) 100%);
}

.achievements-timeline::before {
    background: linear-gradient(180deg, var(--gold), var(--neon), var(--neon), transparent);
    width: 2px;
    box-shadow: 0 0 12px rgba(0, 255, 156, 0.4);
    opacity: 0.8;
}

.achievement-marker {
    position: absolute;
    left: -46px;
    /* Centered with the timeline::before line */
    top: 4px;
    /* Align near the top of the item content */
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 2px solid var(--neon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon);
    font-size: 18px;
    box-shadow: 0 0 15px rgba(0, 255, 156, 0.15), inset 0 0 10px rgba(0, 255, 156, 0.05);
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:hover .achievement-marker {
    background: var(--neon);
    color: var(--bg);
    box-shadow: 0 0 25px rgba(0, 255, 156, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.4);
    transform: scale(1.15) rotate(10deg);
}

.achievement-content {
    background: rgba(10, 18, 24, 0.7);
    backdrop-filter: blur(10px);
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.achievement-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 255, 156, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.timeline-item:hover .achievement-content {
    border-left-color: var(--neon);
    transform: translateX(8px);
}

.timeline-item:hover .achievement-content::after {
    opacity: 1;
}

/* ═══ EDUCATION ═══ */
.education-timeline {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.education-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.education-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 12px;
    font-size: 22px;
    color: var(--bg);
}

.education-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    flex: 1;
    transition: var(--transition);
}

.education-content:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-gold);
}

.education-year {
    font-family: var(--font-code);
    font-size: 13px;
    color: var(--neon);
    margin-bottom: 8px;
    display: inline-block;
}

.education-degree {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.education-school {
    color: var(--gold);
    font-size: 14px;
    margin-bottom: 12px;
}

.education-school i {
    margin-right: 6px;
}

.education-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* ═══ CONTACT ═══ */
.contact-section {
    background: linear-gradient(180deg, var(--bg) 0%, rgba(11, 31, 58, 0.08) 50%, var(--bg) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-gold);
}

.contact-card-icon {
    font-size: 24px;
    color: var(--gold);
    margin-bottom: 12px;
}

.contact-card h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

.contact-socials h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.contact-social-links {
    display: flex;
    gap: 12px;
}

.contact-social-links a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 18px;
    transition: var(--transition);
}

.contact-social-links a:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(200, 169, 106, 0.08);
    transform: translateY(-3px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: var(--transition);
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--neon);
    box-shadow: 0 0 15px rgba(0, 255, 156, 0.2), inset 0 0 10px rgba(0, 255, 156, 0.05);
}

.form-group label {
    position: absolute;
    left: 20px;
    top: 16px;
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
    transition: var(--transition);
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: -8px;
    left: 16px;
    font-size: 12px;
    color: var(--neon);
    background: var(--bg-card);
    padding: 0 6px;
    text-shadow: 0 0 8px rgba(0, 255, 156, 0.4);
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--neon);
    box-shadow: 0 0 8px var(--neon);
    border-radius: 1px;
    transition: width 0.4s ease;
}

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

.btn-submit {
    align-self: flex-start;
    width: auto;
}

.form-status {
    font-size: 14px;
    font-weight: 500;
    padding: 0;
    transition: var(--transition);
}

.form-status.success {
    color: var(--neon);
}

.form-status.error {
    color: #ff6b6b;
}

.btn-glow-animate {
    position: relative;
    overflow: hidden;
    animation: pulseNeon 2s infinite;
}

@keyframes pulseNeon {
    0% {
        box-shadow: 0 0 8px rgba(0, 255, 156, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 255, 156, 0.6), inset 0 0 10px rgba(0, 255, 156, 0.2);
    }

    100% {
        box-shadow: 0 0 8px rgba(0, 255, 156, 0.2);
    }
}



.contact-link {
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--neon);
    text-shadow: 0 0 10px rgba(0, 255, 156, 0.4);
}

/* ═══ FOOTER ═══ */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.footer-top {
    margin-bottom: 24px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    display: inline-block;
    margin-bottom: 8px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 14px;
    font-style: italic;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 16px;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--gold);
    border-color: var(--gold);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 4px;
}

.footer-made {
    font-size: 12px !important;
}

/* ═══ BACK TO TOP ═══ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--bg);
    border: none;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(200, 169, 106, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* ═══ HACKER SKILLS — TERMINAL PANELS ═══ */
.hacker-skills {
    position: relative;
    overflow: hidden;
    background: #050a0e;
}

/* Matrix Canvas Background */
.matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hacker-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(5, 10, 14, 0.65) 0%, rgba(5, 10, 14, 0.92) 100%);
    z-index: 1;
    pointer-events: none;
}

.hacker-skills .container {
    position: relative;
    z-index: 2;
}

.hacker-subtitle {
    font-family: var(--font-code);
    font-size: 15px;
    color: #00ff9c;
    opacity: 0.85;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.hacker-subtitle i {
    margin-right: 8px;
    animation: terminalBlink 1.2s steps(2) infinite;
}

@keyframes terminalBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Terminal Grid */
.terminal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

/* Terminal Panel */
.terminal-panel {
    background: rgba(10, 18, 24, 0.92);
    border: 1px solid rgba(0, 255, 156, 0.12);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(10px);
}

.terminal-panel::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 255, 156, 0.15), transparent 40%, transparent 60%, rgba(0, 255, 156, 0.08));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.terminal-panel:hover {
    border-color: rgba(0, 255, 156, 0.35);
    transform: translateY(-6px);
    box-shadow:
        0 0 20px rgba(0, 255, 156, 0.08),
        0 0 60px rgba(0, 255, 156, 0.04),
        0 20px 50px rgba(0, 0, 0, 0.4);
}

.terminal-panel:hover::before {
    opacity: 1;
}

/* Terminal Header Bar */
.terminal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(0, 255, 156, 0.04);
    border-bottom: 1px solid rgba(0, 255, 156, 0.1);
}

.terminal-dots {
    display: flex;
    gap: 7px;
}

.t-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.t-red {
    background: #ff5f56;
    box-shadow: 0 0 6px rgba(255, 95, 86, 0.4);
}

.t-yellow {
    background: #ffbd2e;
    box-shadow: 0 0 6px rgba(255, 189, 46, 0.4);
}

.t-green {
    background: #27c93f;
    box-shadow: 0 0 6px rgba(39, 201, 63, 0.4);
}

.terminal-panel:hover .t-red {
    box-shadow: 0 0 12px rgba(255, 95, 86, 0.7);
}

.terminal-panel:hover .t-yellow {
    box-shadow: 0 0 12px rgba(255, 189, 46, 0.7);
}

.terminal-panel:hover .t-green {
    box-shadow: 0 0 12px rgba(39, 201, 63, 0.7);
}

.terminal-title {
    font-family: var(--font-code);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
    flex: 1;
}

.terminal-title i {
    color: #00ff9c;
    margin-right: 6px;
    font-size: 12px;
}

.terminal-status {
    font-family: var(--font-code);
    font-size: 11px;
    color: #27c93f;
    letter-spacing: 0.5px;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* Terminal Body */
.terminal-body {
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* CRT Scanline Animation */
.terminal-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 156, 0.1), transparent);
    animation: scanlineMove 4s linear infinite;
    pointer-events: none;
    z-index: 5;
}

@keyframes scanlineMove {
    0% {
        top: -3px;
    }

    100% {
        top: 100%;
    }
}

/* Terminal Command Line */
.terminal-cmd {
    font-family: var(--font-code);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    padding: 6px 0;
}

.cmd-prompt {
    color: #00ff9c;
    font-weight: 700;
    margin-right: 8px;
    text-shadow: 0 0 8px rgba(0, 255, 156, 0.5);
}

/* Terminal Output Lines */
.terminal-output {
    font-family: var(--font-code);
    font-size: 12px;
    margin-bottom: 16px;
    padding: 4px 0;
}

.output-line {
    color: rgba(0, 255, 156, 0.5);
}

.output-success {
    color: #27c93f;
    text-shadow: 0 0 6px rgba(39, 201, 63, 0.3);
}

.terminal-footer-line {
    margin-bottom: 0;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 255, 156, 0.06);
}

/* ─── HACKER SKILL ITEMS ─── */
.hacker-skill-item {
    margin-bottom: 16px;
    padding: 10px 12px;
    background: rgba(0, 255, 156, 0.02);
    border: 1px solid rgba(0, 255, 156, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hacker-skill-item:hover {
    background: rgba(0, 255, 156, 0.06);
    border-color: rgba(0, 255, 156, 0.18);
    box-shadow: 0 0 15px rgba(0, 255, 156, 0.06), inset 0 0 15px rgba(0, 255, 156, 0.02);
    transform: translateX(4px);
}

.skill-label-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.skill-icon-hack {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 156, 0.1);
    border-radius: 6px;
    font-size: 14px;
    color: #00ff9c;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.hacker-skill-item:hover .skill-icon-hack {
    background: rgba(0, 255, 156, 0.2);
    box-shadow: 0 0 12px rgba(0, 255, 156, 0.3);
    transform: scale(1.1);
}

.skill-name-hack {
    font-family: var(--font-code);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    flex: 1;
    letter-spacing: 0.3px;
}

.skill-pct-hack {
    font-family: var(--font-code);
    font-size: 13px;
    font-weight: 700;
    color: #00ff9c;
    text-shadow: 0 0 8px rgba(0, 255, 156, 0.4);
    min-width: 36px;
    text-align: right;
}

/* ─── ANIMATED PROGRESS BARS ─── */
.skill-bar-hack {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(0, 255, 156, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill-hack {
    height: 100%;
    width: 0;
    border-radius: 4px;
    background: linear-gradient(90deg, #003d2e, #00ff9c, #00cc7a);
    background-size: 200% 100%;
    animation: hackerBarShimmer 3s ease-in-out infinite;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.skill-fill-hack.active {
    width: var(--fill-width) !important;
}

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

    100% {
        background-position: -200% 0;
    }
}

/* Progress Bar Glow Effect */
.skill-bar-glow {
    position: absolute;
    top: -4px;
    left: 0;
    width: 0;
    height: 14px;
    background: radial-gradient(ellipse at center, rgba(0, 255, 156, 0.3) 0%, transparent 70%);
    border-radius: 8px;
    pointer-events: none;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: blur(4px);
    z-index: 0;
}

.hacker-skill-item:hover .skill-bar-glow {
    background: radial-gradient(ellipse at center, rgba(0, 255, 156, 0.5) 0%, transparent 70%);
}

/* ─── RESPONSIVE TERMINAL GRID ─── */
@media (max-width: 992px) {
    .terminal-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 576px) {
    .terminal-body {
        padding: 14px;
    }

    .terminal-header {
        padding: 10px 14px;
    }

    .skill-name-hack {
        font-size: 12px;
    }

    .terminal-cmd {
        font-size: 11px;
    }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1200px) {
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 32px 32px;
        gap: 4px;
        transition: right 0.4s ease;
        border-left: 1px solid var(--border);
    }

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

    .nav-link {
        font-size: 16px;
        padding: 12px 16px;
        width: 100%;
        border-radius: 8px;
    }

    .nav-link:hover {
        background: rgba(200, 169, 106, 0.08);
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

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

    .about-image-wrapper {
        order: -1;
    }

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

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 20px;
    }

    .stat-number {
        font-size: 28px;
    }

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

    .timeline {
        padding-left: 32px;
    }

    .timeline::before {
        left: 11px;
    }

    .timeline-marker {
        left: -28px;
        width: 12px;
        height: 12px;
    }

    .education-item {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }

    .hero-name {
        font-size: clamp(32px, 10vw, 48px);
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

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

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .skill-card {
        padding: 20px 16px;
    }

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

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 24px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

/* ═══════════════════════════════════════════════ */
/* ─── ADDED ADVANCED FEATURES ─── */
/* ═══════════════════════════════════════════════ */

/* 1. LIGHT THEME OVERRIDES */
body.light-theme {
    --bg: #F4F6F9;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F0F2F5;
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #9CA3AF;
    --white: #1F2937;
    --border: rgba(11, 31, 58, 0.15);
    --border-hover: rgba(11, 31, 58, 0.3);
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(11, 31, 58, 0.1);
    --neon: #10B981;
    --neon-dim: rgba(16, 185, 129, 0.15);
    --gold: #B48530;
    --gold-light: #D4A373;
    --gold-dark: #8C6222;
}

.light-theme .hero-section {
    background: radial-gradient(ellipse at 20% 50%, rgba(200, 169, 106, 0.1) 0%, transparent 50%), radial-gradient(ellipse at 80% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 40%), var(--bg);
}

.light-theme .hero-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(244, 246, 249, 0.8) 80%, var(--bg) 100%);
}

.light-theme .hero-name,
.light-theme .section-title {
    color: var(--text-primary);
}

.light-theme .navbar.scrolled {
    background: rgba(244, 246, 249, 0.95);
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: var(--gold);
    background: rgba(200, 169, 106, 0.1);
    transform: rotate(15deg);
}

/* 2. LOADING SCREEN */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #050a0e;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

.loader-content .logo-bracket {
    font-size: 3rem;
    font-weight: 700;
}

.loader-bar-bg {
    width: 250px;
    height: 3px;
    background: rgba(200, 169, 106, 0.15);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.loader-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), var(--neon));
    animation: loadingBar 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.loader-text {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--neon);
    letter-spacing: 1px;
    animation: pulseLoader 1.5s infinite;
}

@keyframes loadingBar {
    0% {
        width: 0%;
    }

    40% {
        width: 45%;
    }

    100% {
        width: 100%;
    }
}

@keyframes pulseLoader {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 10px var(--neon-dim);
    }
}

/* 3. SCROLL PROGRESS INDICATOR */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 10001;
    /* Above navbar */
    pointer-events: none;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--neon), var(--gold));
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 12px var(--gold);
}

/* 4. GITHUB GRAPH SECTION */
.github-graph-container {
    width: 100%;
    overflow-x: auto;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.github-graph-container:hover {
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(0, 255, 156, 0.08);
}

.github-chart {
    max-width: 100%;
    height: auto;
    min-width: 600px;
    /* Prevent it from shrinking too much on mobile */
    filter: hue-rotate(15deg) brightness(1.2);
}

.light-theme .github-chart {
    filter: invert(1) hue-rotate(160deg) brightness(0.9);
}

/* 5. ADDITIONAL MOBILE RESPONSIVE OPTIMIZATION */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        padding-top: 100px;
        text-align: center;
    }

    .profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-left .hero-cta {
        justify-content: center;
    }

    .hero-left .hero-social {
        justify-content: center;
    }

    .hero-left .hero-greeting {
        align-self: center;
    }

    .hero-right {
        height: 350px;
    }

    .github-graph-container {
        padding: 15px;
        justify-content: flex-start;
    }
}

/* ========================================================= */
/* ─── COMPREHENSIVE MOBILE-FIRST & RESPONSIVE UPGRADES ─── */
/* ========================================================= */

/* Prevent horizontal overflow globally */
html,
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* GPU Acceleration for smooth mobile animations */
.project-card,
.btn,
.hacker-skill-item,
.exp-card,
.timeline-content,
.education-content {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform, opacity;
}

/* Base touch improvements and focus active states */
a,
button,
.btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn {
    min-height: 48px;
    /* Touch target size optimization */
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.btn:active,
button:active,
.project-card:active {
    transform: scale(0.96) !important;
    transition: transform 0.1s ease !important;
}

/* Smooth Navigation Slide-in override for better touch feel */
.nav-links.active {
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

/* ================== BREAKPOINTS ================== */

/* Extra Small Mobile (320px) */
@media screen and (max-width: 320px) {
    .container {
        padding: 0 12px;
    }

    .hero-name {
        font-size: 28px !important;
    }

    .hero-title-wrapper {
        font-size: 14px !important;
        min-height: 24px;
    }

    .section-title {
        font-size: 24px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 13px;
        width: 100%;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
}

/* Mobile & Small Phones (max-width 480px) */
@media screen and (max-width: 480px) {
    .hero-layout {
        padding: 70px 16px 30px;
        gap: 20px;
        grid-template-columns: 1fr;
    }

    .hero-right {
        height: 200px;
        /* Resize 3D Animation to fit mobile */
    }

    .profile-avatar .avatar-placeholder {
        width: 80px;
        height: 80px;
        font-size: 24px;
    }

    .hero-left .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-left .hero-cta .btn {
        width: 100%;
    }

    .projects-grid,
    .terminal-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .project-card,
    .exp-card,
    .terminal-panel,
    .hacker-skill-item {
        width: 100%;
        max-width: 350px;
        margin: 0 auto 20px auto;
    }

    /* Skills section adjustments */
    .terminal-panel {
        padding: 0;
    }

    .terminal-body {
        padding: 12px;
    }

    .skill-label-row {
        flex-wrap: wrap;
    }

    /* Timelines optimization */
    .timeline::before {
        left: 16px;
    }

    .timeline-marker {
        left: -21px;
        width: 10px;
        height: 10px;
    }

    .timeline {
        padding-left: 24px;
    }

    .achievement-marker {
        left: -34px;
        width: 32px;
        height: 32px;
        font-size: 14px;
        top: 8px;
    }

    /* Disable some heavy hover effects */
    .project-card:hover {
        transform: translateY(-3px) translateZ(0);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }
}

/* Mobile up to 768px */
@media screen and (max-width: 768px) {
    .hero-left {
        align-items: center;
        text-align: center;
    }

    .sidebar {
        width: 80vw;
        max-width: none;
        padding: 80px 24px 32px;
    }

    .sidebar-link {
        font-size: 20px;
        padding: 10px 16px;
    }
}

/* Tablet (min-width: 481px to 768px) */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
    }

    .terminal-grid {
        grid-template-columns: 1fr !important;
    }

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

    .project-card,
    .exp-card,
    .terminal-panel {
        margin: 0 auto;
    }
}

/* Tablet Landscape / Small Desktop (min-width: 769px to 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .terminal-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .project-card,
    .exp-card,
    .terminal-panel {
        max-width: 100%;
    }
}

/* Desktop (1024px+) */
@media screen and (min-width: 1025px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Large Desktop (1440px and above) */
@media screen and (min-width: 1440px) {

    .container,
    .nav-container,
    .hero-layout {
        max-width: 1360px !important;
        margin: 0 auto;
    }

    .projects-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .hero-name {
        font-size: 96px;
    }
}

/* ═══ RESUME DOWNLOAD BUTTON ═══ */
.resume-btn {
    background: linear-gradient(135deg, #ffd700, #ffb300, #ffa000);
    padding: 14px 28px;
    border-radius: 40px;
    width: 100%;
    box-sizing: border-box;
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    color: #1a1a2e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 0 15px rgba(255, 200, 0, 0.5),
        0 0 30px rgba(255, 200, 0, 0.15),
        0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    letter-spacing: 0.5px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    z-index: 1;
    animation: resumeBtnPulse 2.5s ease-in-out infinite;
}

/* Shimmer sweep overlay */
.resume-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.resume-btn:hover::before {
    left: 100%;
}

.resume-btn:hover {
    transform: scale(1.07) translateY(-2px);
    box-shadow:
        0 0 25px rgba(255, 200, 0, 0.8),
        0 0 50px rgba(255, 200, 0, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #ffe033, #ffc107, #ffab00);
    border-color: rgba(255, 215, 0, 0.6);
    color: #1a1a2e;
    text-decoration: none;
}

.resume-btn:active {
    transform: scale(0.97);
    box-shadow:
        0 0 12px rgba(255, 200, 0, 0.6),
        0 2px 8px rgba(0, 0, 0, 0.3);
}

.resume-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.resume-btn:hover i {
    transform: translateY(2px);
    animation: downloadBounce 0.6s ease infinite;
}

/* Pulse glow keyframe */
@keyframes resumeBtnPulse {

    0%,
    100% {
        box-shadow:
            0 0 15px rgba(255, 200, 0, 0.5),
            0 0 30px rgba(255, 200, 0, 0.15),
            0 4px 15px rgba(0, 0, 0, 0.3);
    }

    50% {
        box-shadow:
            0 0 20px rgba(255, 200, 0, 0.7),
            0 0 45px rgba(255, 200, 0, 0.25),
            0 4px 15px rgba(0, 0, 0, 0.3);
    }
}

/* Download icon bounce */
@keyframes downloadBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(3px);
    }
}

/* ── Resume Button Responsive ── */
@media screen and (max-width: 768px) {
    .resume-btn {
        padding: 12px 26px;
        font-size: 14px;
        gap: 8px;
        border-radius: 36px;
    }
}

@media screen and (max-width: 480px) {
    .resume-btn {
        padding: 12px 22px;
        font-size: 13px;
        gap: 8px;
        border-radius: 32px;
        width: 100%;
        justify-content: center;
    }
}

/* Disable Heavy Animations and 3D completely if Reduced Motion is enabled or on very small devices */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}