:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-tertiary: #16161f;
    --text-primary: #e8e8ee;
    --text-secondary: #a0a0b0;
    --text-muted: #666680;
    --accent-primary: #00ff9d;
    --accent-secondary: #00d4ff;
    --accent-tertiary: #a855f7;
    --danger: #ff6b6b;
    --success: #00ff9d;
    --warning: #ffd166;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --nav-height: 80px;
    --font-mono: 'JetBrains Mono', monospace;
    --font-display: 'Space Grotesk', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html[data-theme="light"] {
    --bg-primary: #f6f7fb;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eef0f6;
    --text-primary: #14141c;
    --text-secondary: #4a4a5e;
    --text-muted: #8a8aa0;
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(20, 20, 40, 0.1);
    --glass-shadow: 0 8px 32px rgba(20, 20, 40, 0.08);
}

html[data-theme="light"] .navbar.scrolled {
    background: rgba(246, 247, 251, 0.85);
}

html[data-theme="light"] .footer {
    background: rgba(246, 247, 251, 0.6);
}

html[data-theme="light"] .project-overlay {
    background: rgba(246, 247, 251, 0.85);
}

html[data-theme="light"] .skill-track,
html[data-theme="light"] .progress-bar {
    background: rgba(20, 20, 40, 0.08);
}

html[data-theme="light"] .form-group input,
html[data-theme="light"] .form-group textarea {
    background: rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] .cert-logo {
    background: rgba(255, 255, 255, 0.6);
}

html[data-theme="light"] .cert-status.certified,
html[data-theme="light"] .cert-ribbon,
html[data-theme="light"] .certs-group-marker {
    color: #00805a;
}

html[data-theme="light"] .cert-status.certified,
html[data-theme="light"] .cert-ribbon {
    background: rgba(0, 128, 90, 0.08);
    border-color: rgba(0, 128, 90, 0.3);
}

html[data-theme="light"] .cert-status {
    color: #0069a8;
    background: rgba(0, 105, 168, 0.06);
    border-color: rgba(0, 105, 168, 0.25);
}

html[data-theme="light"] .cert-card.earned {
    border-color: rgba(0, 128, 90, 0.28);
}

html[data-theme="light"] .progress-fill.complete {
    background: #00805a;
}

html[data-theme="light"] .cert-verify {
    color: #00805a;
    background: rgba(0, 128, 90, 0.08);
    border-color: rgba(0, 128, 90, 0.3);
}

html[data-theme="light"] .cert-verify:hover {
    border-color: #00805a;
    background: rgba(0, 128, 90, 0.14);
}

html[data-theme="light"] .focus-item:hover,
html[data-theme="light"] .contact-card:hover {
    background: rgba(20, 20, 40, 0.03);
}

html[data-theme="light"] .cursor-ring {
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.35), inset 0 0 20px rgba(0, 255, 157, 0.2);
}

html[data-theme="light"] .hero-terminal {
    background: rgba(8, 8, 12, 0.92);
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="light"] .terminal-header {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .terminal-output h1,
html[data-theme="light"] .terminal-input {
    color: #e8e8ee;
}

html[data-theme="light"] .terminal-output p {
    color: #00d4ff;
}

@media (max-width: 768px) {
    html[data-theme="light"] .nav-links {
        background: rgba(246, 247, 251, 0.98);
    }
}

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

:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

:focus:not(:focus-visible) {
    outline: none;
}

html {
    scroll-behavior: auto;
    overflow-x: hidden;
}

body {
    font-family: var(--font-display);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    overscroll-behavior-x: none;
    min-height: 100vh;
    transition: background-color 0.5s ease, color 0.5s ease;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
    opacity: 0.5;
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .cursor {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9999;
        pointer-events: none;
        mix-blend-mode: normal;
    }

    .cursor-ring {
        position: fixed;
        width: 36px;
        height: 36px;
        border: 1.5px solid var(--accent-primary);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
        will-change: transform;
        box-shadow: 0 0 20px rgba(0, 255, 157, 0.2), inset 0 0 20px rgba(0, 255, 157, 0.1);
        opacity: 0.8;
    }

    .cursor-dot {
        position: fixed;
        width: 6px;
        height: 6px;
        background: var(--accent-primary);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        box-shadow: 0 0 12px var(--accent-primary);
        will-change: transform;
    }

    .cursor.hovering .cursor-ring {
        width: 60px;
        height: 60px;
        border-color: var(--accent-secondary);
        background: rgba(0, 212, 255, 0.1);
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.3), inset 0 0 30px rgba(0, 212, 255, 0.15);
    }

    .cursor.hovering .cursor-dot {
        background: var(--accent-secondary);
        box-shadow: 0 0 20px var(--accent-secondary);
    }

    body.has-cursor,
    body.has-cursor a,
    body.has-cursor button {
        cursor: none;
    }

    body.has-cursor input,
    body.has-cursor textarea,
    body.has-cursor select {
        cursor: auto;
    }
}

/* ===== GRADIENT BACKGROUND ===== */
.gradient-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    background: var(--bg-primary);
}

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

.orb-1 {
    width: 600px;
    height: 600px;
    top: -150px;
    left: -100px;
    background: radial-gradient(circle, var(--accent-primary), transparent 70%);
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    top: 30%;
    right: -150px;
    background: radial-gradient(circle, var(--accent-secondary), transparent 70%);
    animation-delay: -7s;
}

.orb-3 {
    width: 700px;
    height: 700px;
    bottom: -250px;
    left: 30%;
    background: radial-gradient(circle, var(--accent-tertiary), transparent 70%);
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(60px, -40px) scale(1.1); }
    50% { transform: translate(-40px, 50px) scale(0.95); }
    75% { transform: translate(30px, 30px) scale(1.05); }
}

/* ===== PARTICLES CANVAS ===== */
#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 0 12px rgba(0, 255, 157, 0.4);
    z-index: 1002;
    pointer-events: none;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    height: 65px;
}

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

.nav-logo {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 1px;
    position: relative;
}

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

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.5px;
}

.nav-link::before {
    content: '/';
    color: var(--accent-primary);
    margin-right: 4px;
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(0, 255, 157, 0.06);
}

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

.nav-link.active {
    color: var(--accent-primary);
}

.nav-link.active::before {
    opacity: 1;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 1001;
}

.theme-toggle:hover {
    color: var(--accent-primary);
    border-color: rgba(0, 255, 157, 0.4);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.15);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

.icon-sun {
    display: none;
}

.icon-moon {
    display: block;
}

html[data-theme="light"] .icon-sun {
    display: block;
}

html[data-theme="light"] .icon-moon {
    display: none;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 2px;
    background: var(--text-primary);
    left: 9px;
    transition: var(--transition);
}

.hamburger {
    top: 21px;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 999;
}

body.menu-open {
    overflow: hidden;
}

/* ===== BUTTONS ===== */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    overflow: hidden;
    letter-spacing: 0.5px;
    will-change: transform;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-text,
.btn-icon {
    position: relative;
    z-index: 1;
}

.btn-icon {
    transition: transform 0.3s ease;
    font-size: 1.1rem;
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.2), 0 4px 20px rgba(0, 255, 157, 0.15);
}

.btn-primary:hover {
    background: #2effad;
    box-shadow: 0 0 40px rgba(0, 255, 157, 0.4), 0 8px 30px rgba(0, 255, 157, 0.25);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(0, 255, 157, 0.15);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.75rem;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--glass-border);
}

.btn-outline:hover {
    border-color: var(--accent-secondary);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.15);
}

/* ===== SECTIONS ===== */
.section {
    padding: 120px 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

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

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-primary);
    background: rgba(0, 255, 157, 0.06);
    border: 1px solid rgba(0, 255, 157, 0.15);
    padding: 6px 14px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '_';
    color: var(--accent-primary);
    animation: blink 1.5s infinite;
}

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

/* ===== GLASS CARD BASE ===== */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.glass:hover {
    border-color: rgba(0, 255, 157, 0.2);
    box-shadow: 0 8px 40px rgba(0, 255, 157, 0.06), var(--glass-shadow);
}

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

.hero-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 255, 157, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 157, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    animation: scanlineMove 8s linear infinite;
    opacity: 0.3;
}

@keyframes scanlineMove {
    0% { top: 0; opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { top: 100%; opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
    text-align: center;
}

.hero-terminal {
    background: rgba(8, 8, 12, 0.75);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    text-align: left;
    overflow: hidden;
    margin-bottom: 40px;
    position: relative;
}

.hero-terminal::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(120deg, rgba(0, 255, 157, 0.05), transparent 30%, rgba(0, 212, 255, 0.05) 70%, transparent);
    pointer-events: none;
}

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

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

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

.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #febc2e; }
.terminal-dots span:nth-child(3) { background: #28c840; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: auto;
    margin-right: auto;
}

.terminal-body {
    padding: 28px;
    font-family: var(--font-mono);
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.terminal-input-line {
    margin-top: 4px;
}

.terminal-input {
    flex: 1;
    min-width: 0;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    caret-color: var(--accent-primary);
}

.terminal-input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.terminal-echo {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--text-secondary);
    white-space: pre-wrap;
    margin-bottom: 14px;
    padding: 12px 16px;
    background: rgba(0, 255, 157, 0.03);
    border-left: 2px solid rgba(0, 255, 157, 0.3);
    border-radius: 0 8px 8px 0;
}

.terminal-echo .echo-accent {
    color: var(--accent-primary);
}

.terminal-echo .echo-blue {
    color: var(--accent-secondary);
}

.terminal-echo .echo-dim {
    color: var(--text-muted);
}

.prompt {
    color: var(--accent-primary);
    font-weight: 600;
}

.command {
    color: var(--text-primary);
}

.terminal-output {
    margin-bottom: 24px;
    color: var(--text-secondary);
    animation: fadeSlideIn 0.4s ease both;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.terminal-output h1 {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 8px;
}

.terminal-output p {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--accent-secondary);
}

.certs-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.cert-badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.cert-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 157, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.cert-badge:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.cert-badge[data-cert="aws"] { border-color: rgba(255, 153, 0, 0.3); }
.cert-badge[data-cert="aws"]:hover { color: #ff9900; border-color: #ff9900; }
.cert-badge[data-cert="azure"] { border-color: rgba(0, 120, 212, 0.3); }
.cert-badge[data-cert="azure"]:hover { color: #00b8ff; border-color: #00b8ff; }
.cert-badge[data-cert="ccna"] { border-color: rgba(0, 180, 180, 0.3); }
.cert-badge[data-cert="ccna"]:hover { color: #00e5cc; border-color: #00e5cc; }
.cert-badge[data-cert="azdo"] { border-color: rgba(0, 170, 255, 0.3); }
.cert-badge[data-cert="azdo"]:hover { color: #00aaff; border-color: #00aaff; }
.cert-badge[data-cert="m365"] { border-color: rgba(255, 185, 0, 0.3); }
.cert-badge[data-cert="m365"]:hover { color: #ffb900; border-color: #ffb900; }

.cert-badge[data-status="earned"] {
    background: rgba(0, 255, 157, 0.06);
    color: var(--text-primary);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* ===== HERO STATS ===== */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.stat {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 24px 16px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 255, 157, 0.3);
}

.stat:hover::before {
    opacity: 1;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 2px;
}

.scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-muted);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: wheelScroll 2s infinite;
}

@keyframes wheelScroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(16px); opacity: 0; }
}

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 24px;
}

.about-card {
    padding: 32px;
}

.about-card.featured {
    grid-column: span 2;
}

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

.card-icon {
    font-size: 1.4rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 157, 0.08);
    border: 1px solid rgba(0, 255, 157, 0.15);
    border-radius: 10px;
}

.card-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.tech-tag:hover {
    color: var(--accent-primary);
    border-color: rgba(0, 255, 157, 0.3);
    background: rgba(0, 255, 157, 0.05);
}

.focus-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.focus-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.focus-item:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--glass-border);
}

.focus-icon {
    color: var(--accent-primary);
    font-size: 1.1rem;
    line-height: 1.4;
}

.focus-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.focus-item span:not(.focus-icon) {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.cert-progress {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cert-item {
    padding: 14px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.cert-item:hover {
    border-color: rgba(0, 255, 157, 0.2);
    background: rgba(0, 255, 157, 0.02);
}

.cert-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 12px;
}

.cert-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.cert-status {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--accent-secondary);
    white-space: nowrap;
}

.cert-status.certified {
    background: rgba(0, 255, 157, 0.1);
    border-color: rgba(0, 255, 157, 0.35);
    color: var(--accent-primary);
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 3px;
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
}

.progress-fill.complete {
    background: var(--accent-primary);
}

.progress-fill.complete::after {
    display: none;
}

/* ===== EXPERIENCE TIMELINE ===== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 19px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-tertiary));
    opacity: 0.25;
}

.timeline-item {
    position: relative;
    padding: 28px 32px;
    margin-left: 52px;
}

.timeline-dot {
    position: absolute;
    left: -62px;
    top: 34px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 16px rgba(0, 255, 157, 0.6);
    border: 2px solid var(--bg-primary);
}

.timeline-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.timeline-role {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent-secondary);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

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

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

.timeline-tags span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 4px 8px;
    background: rgba(0, 255, 157, 0.05);
    border: 1px solid rgba(0, 255, 157, 0.15);
    border-radius: 4px;
    color: var(--text-muted);
    transition: var(--transition);
}

.timeline-tags span:hover {
    color: var(--accent-primary);
    background: rgba(0, 255, 157, 0.08);
}

/* ===== CERTIFICATIONS ===== */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 24px;
}

.certs-grid + .certs-group-title {
    margin-top: 48px;
}

.certs-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.certs-group-marker {
    color: var(--accent-primary);
}

.cert-card {
    padding: 32px;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 800px;
}

.cert-card.earned {
    border-color: rgba(0, 255, 157, 0.25);
}

.cert-ribbon {
    position: absolute;
    top: 16px;
    right: 16px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid rgba(0, 255, 157, 0.35);
    color: var(--accent-primary);
}

.cert-ribbon::before {
    content: '✓ ';
}

.cert-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 255, 157, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

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

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

.cert-card.earned .cert-header {
    padding-right: 90px;
}

.cert-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
}

.cert-provider {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cert-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.cert-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.cert-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
}

.cert-date {
    color: var(--text-muted);
}

.cert-level {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    background: rgba(0, 212, 255, 0.08);
    color: var(--accent-secondary);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.cert-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cert-verify {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 157, 0.25);
    background: rgba(0, 255, 157, 0.06);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    color: var(--accent-primary);
    transition: var(--transition);
}

.cert-verify:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 255, 157, 0.12);
    transform: translateY(-2px);
}

.cert-verify-icon {
    font-size: 0.8rem;
}

.cert-skills span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    color: var(--text-muted);
    transition: var(--transition);
}

.cert-skills span:hover {
    color: var(--accent-primary);
    background: rgba(0, 255, 157, 0.05);
}

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

.skill-category {
    padding: 32px;
}

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

.category-icon {
    font-size: 1.3rem;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 157, 0.08);
    border: 1px solid rgba(0, 255, 157, 0.15);
    border-radius: 10px;
}

.category-header h3 {
    font-size: 1.1rem;
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.skill-bar {
    padding: 4px 0;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skill-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.skill-value {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-primary);
}

.skill-track {
    height: 5px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.skill-track::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, transparent 0, transparent 10px, rgba(0, 0, 0, 0.1) 10px, rgba(0, 0, 0, 0.1) 12px);
    pointer-events: none;
}

.skill-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 3px;
    transition: width 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 12px rgba(0, 255, 157, 0.4);
    position: relative;
}

.skill-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5));
    animation: shimmerSkill 2.5s infinite;
}

@keyframes shimmerSkill {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

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

.project-card {
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 800px;
    position: relative;
}

.project-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 100%, rgba(0, 212, 255, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

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

.project-image {
    height: 200px;
    position: relative;
    background: linear-gradient(135deg, rgba(0, 255, 157, 0.03), rgba(0, 212, 255, 0.03));
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
}

.project-placeholder {
    position: relative;
    z-index: 1;
    color: var(--accent-primary);
    opacity: 0.8;
    transition: var(--transition);
}

.project-icon {
    width: 100px;
    height: 100px;
}

.project-card:hover .project-icon {
    transform: scale(1.1) translateY(-2px);
    filter: drop-shadow(0 0 20px rgba(0, 255, 157, 0.3));
}

.project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(8, 8, 12, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 2;
}

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

.project-content {
    padding: 28px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
}

.project-type {
    color: var(--accent-secondary);
    background: rgba(0, 212, 255, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.project-year {
    color: var(--text-muted);
}

.project-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    transition: var(--transition);
}

.project-card:hover .project-title {
    color: var(--accent-primary);
}

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

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-tech span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: var(--text-muted);
    transition: var(--transition);
}

.projects-footer {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.github-section {
    margin-top: 100px;
}

.github-header {
    margin-bottom: 40px;
}

.github-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 24px;
}

.repo-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    text-decoration: none;
    color: var(--text-primary);
    animation: fadeSlideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.repo-card:hover {
    color: var(--text-primary);
}

.repo-card:hover .repo-name {
    color: var(--accent-primary);
}

.repo-name {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1rem;
    color: var(--accent-secondary);
    transition: var(--transition);
    overflow-wrap: anywhere;
}

.repo-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    flex: 1;
}

.repo-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.repo-language {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lang-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 8px rgba(0, 255, 157, 0.5);
}

.project-tech span:hover {
    color: var(--accent-primary);
    border-color: rgba(0, 255, 157, 0.3);
    transform: translateY(-2px);
}

/* ===== BLOG ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 24px;
}

.blog-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 0.3s, transform 0.3s;
}

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

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
}

.blog-tag {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.25);
    color: var(--accent-tertiary);
}

.blog-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.blog-title {
    font-size: 1.15rem;
    line-height: 1.4;
    transition: var(--transition);
}

.blog-card:hover .blog-title {
    color: var(--accent-primary);
}

.blog-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding-top: 14px;
    border-top: 1px solid var(--glass-border);
}

.blog-read {
    color: var(--text-muted);
}

.blog-link {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.blog-link:hover {
    color: var(--accent-primary);
    transform: translateX(4px);
}

.blog-link.is-soon {
    color: var(--text-muted);
    font-size: 0.7rem;
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 24px;
}

.contact-info {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    transform: translateX(4px);
}

.contact-icon {
    font-size: 1.3rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 157, 0.06);
    border: 1px solid rgba(0, 255, 157, 0.12);
    border-radius: 10px;
    flex-shrink: 0;
}

.contact-card h3 {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 2px;
}

.contact-card a,
.contact-card span {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--accent-primary);
}

.contact-body {
    flex: 1;
    min-width: 0;
}

.contact-body a {
    overflow-wrap: anywhere;
}

.copy-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 157, 0.06);
    border: 1px solid rgba(0, 255, 157, 0.15);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover {
    color: var(--accent-primary);
    border-color: rgba(0, 255, 157, 0.4);
    box-shadow: 0 0 16px rgba(0, 255, 157, 0.15);
}

.copy-btn.copied {
    color: var(--success);
    border-color: rgba(0, 255, 157, 0.5);
    box-shadow: 0 0 16px rgba(0, 255, 157, 0.3);
}

.contact-form {
    padding: 40px;
    position: relative;
}

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

.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.1);
    background: rgba(0, 255, 157, 0.02);
}

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

.form-status {
    margin-top: 16px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--success);
    opacity: 0;
    transition: opacity 0.3s;
}

.form-status.visible {
    opacity: 1;
}

/* ===== FOOTER ===== */
.footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--glass-border);
    background: rgba(8, 8, 12, 0.6);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.3;
}

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

.footer-logo {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 6px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--accent-primary);
}

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

/* ===== SCROLL REVEAL ===== */
html.js [data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

html.js [data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

html.js [data-reveal="left"] {
    transform: translateX(-60px);
}

html.js [data-reveal="left"].revealed {
    transform: translateX(0);
}

html.js [data-reveal="right"] {
    transform: translateX(60px);
}

html.js [data-reveal="right"].revealed {
    transform: translateX(0);
}

html.js [data-reveal="scale"] {
    transform: scale(0.9);
}

html.js [data-reveal="scale"].revealed {
    transform: scale(1);
}

[data-reveal-delay="100"] { transition-delay: 0.1s; }
[data-reveal-delay="200"] { transition-delay: 0.2s; }
[data-reveal-delay="300"] { transition-delay: 0.3s; }
[data-reveal-delay="400"] { transition-delay: 0.4s; }

/* ===== PARALLAX ===== */
[data-parallax] {
    will-change: transform;
}

/* ===== SPLIT TEXT ===== */
.split-text {
    display: block;
    overflow: hidden;
}

.split-text .line {
    display: block;
    overflow: hidden;
}

.split-text .word {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform;
}

.split-text.animated .word {
    transform: translateY(0);
}

.split-text.animated .word:nth-child(1) { transition-delay: 0.1s; }
.split-text.animated .word:nth-child(2) { transition-delay: 0.15s; }
.split-text.animated .word:nth-child(3) { transition-delay: 0.2s; }
.split-text.animated .word:nth-child(4) { transition-delay: 0.25s; }
.split-text.animated .word:nth-child(5) { transition-delay: 0.3s; }
.split-text.animated .word:nth-child(6) { transition-delay: 0.35s; }
.split-text.animated .word:nth-child(7) { transition-delay: 0.4s; }
.split-text.animated .word:nth-child(8) { transition-delay: 0.45s; }
.split-text.animated .word:nth-child(9) { transition-delay: 0.5s; }

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s, color 0.3s, border-color 0.3s;
    z-index: 900;
}

.back-to-top:hover {
    color: var(--accent-primary);
    border-color: rgba(0, 255, 157, 0.4);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.15);
}

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

html[data-theme="light"] .back-to-top {
    background: rgba(255, 255, 255, 0.85);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .about-card.featured {
        grid-column: span 1;
    }
}

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

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 12px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        border-left: 1px solid var(--glass-border);
        padding: 40px;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1rem;
        width: 100%;
        text-align: center;
        padding: 14px;
    }

    .nav-toggle {
        display: block;
    }

    body.menu-open .nav-backdrop {
        opacity: 1;
        visibility: visible;
    }

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

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

    .terminal-body {
        padding: 20px;
    }

    .hero-actions {
        gap: 12px;
    }

    .contact-card a,
    .contact-card span,
    .cert-name,
    .project-title,
    .section-title {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 12px 24px;
        font-size: 0.8rem;
    }

    .stat-value {
        font-size: 1.6rem;
    }

    .about-card,
    .skill-category,
    .contact-info,
    .contact-form,
    .cert-card {
        padding: 24px;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }

    .repo-card {
        animation: none !important;
    }

    .split-text .word {
        transform: none;
    }

    .gradient-orb {
        animation: none;
    }
}
