html {
  overflow-x: hidden;
}

html[data-theme="light"] {
    --bg: #f3f6fb;
    --surface: #ffffff;
    --surface2: #edf2f9;
    --text: #1b2430;
    --muted: #6b7280;
    --border: rgba(0, 0, 0, 0.06);
    --border-bright: rgba(0, 0, 0, 0.12);

    /* Softer accent for light mode */
    --accent: #0ea5e9;
    --accent2: #6366f1;
    --accent3: #f97316;

    --header-bg: rgba(255, 255, 255, 0.95);
    --header-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] body::before {
    opacity: 0.08;
}

html[data-theme="light"] .logo,
html[data-theme="light"] .sec-title,
html[data-theme="light"] .hero-name {
    color: #111827;
}

html[data-theme="light"] .btn-fill {
    color: white;
}

html[data-theme="light"] #about,
html[data-theme="light"] #experience,
html[data-theme="light"] #certifications {
    background: #ffffff;
}

html[data-theme="light"] #skills,
html[data-theme="light"] #projects,
html[data-theme="light"] #contact {
    background: #f7f9fc;
}

html[data-theme="light"] #hero {
    background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
}

html[data-theme="light"] .hero-ambient {
    opacity: 0.6;
}

html[data-theme="light"] .hero-sub {
    color: #475569;
}

html[data-theme="light"] .stat-num {
    color: #0f172a;
}

html[data-theme="light"] .skill-card,
html[data-theme="light"] .proj-card,
html[data-theme="light"] .cert-card,
html[data-theme="light"] .modal-inner {
    box-shadow: var(--card-shadow-light);
}

html[data-theme="light"] .nav-links a {
    color: #475569;
}

html[data-theme="light"] .logo {
    color: var(--text);
}

html[data-theme="light"] .form-input {
    background: #ffffff;
    color: #1b2430;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .form-input::placeholder {
    color: #94a3b8;
}

html[data-theme="light"] footer {
    background: #f3f6fb;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

:root {
    --accent: #00e5ff;
    --accent2: #7c3aed;
    --accent3: #ff6b35;
    --bg: #060810;
    --surface: #0c1018;
    --surface2: #111827;
    --border: rgba(255, 255, 255, 0.06);
    --border-bright: rgba(0, 229, 255, 0.2);
    --text: #c0cede;
    --muted: #4a5c75;
    --header-bg: rgba(6, 8, 16, 0.88);
    --header-shadow: 0 1px 40px rgba(0, 0, 0, 0.4);
    --card-shadow-light:
        0 4px 12px rgba(0, 0, 0, 0.04), 0 10px 30px rgba(0, 0, 0, 0.06);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 229, 255, 0.2) transparent;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Outfit", sans-serif;
    font-weight: 400;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Noise overlay for premium texture */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
}

body.no-scroll {
    overflow: hidden;
}

/* ═══════════════════════════════════════
       LOADER
    ═══════════════════════════════════════ */
#loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
    transition:
        opacity 0.6s ease,
        visibility 0.6s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

html[data-theme="light"] .loader-logo {
    color: #111827;
}

.loader-logo {
    font-family: "Syne", sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--text);
    overflow: hidden;
}

.loader-logo em {
    color: var(--accent);
    font-style: normal;
}

.loader-logo-inner {
    transform: translateY(100%);
    animation: loader-rise 0.6s 0.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.loader-bar-wrap {
    width: 200px;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.loader-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    width: 0%;
    animation: loader-fill 1.4s 0.3s ease forwards;
}

.loader-pct {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--muted);
}

@keyframes loader-rise {
    to {
        transform: translateY(0);
    }
}

@keyframes loader-fill {
    to {
        width: 100%;
    }
}

/* ═══════════════════════════════════════
       CURSOR
    ═══════════════════════════════════════ */
* {
    cursor: none !important;
}

#cursor {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

#cursor-ring {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(0, 229, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition:
        width 0.3s,
        height 0.3s,
        border-color 0.3s;
}

#cursor-ring.hovering {
    width: 48px;
    height: 48px;
    border-color: rgba(0, 229, 255, 0.7);
    background: rgba(0, 229, 255, 0.04);
}

@media (max-width: 768px) {
    * {
        cursor: auto !important;
    }

    #cursor,
    #cursor-ring {
        display: none;
    }
}

/* ═══════════════════════════════════════
       PROGRESS BAR
    ═══════════════════════════════════════ */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg,
            var(--accent),
            var(--accent2),
            var(--accent3));
    z-index: 200;
    transition: width 0.05s linear;
}

/* ═══════════════════════════════════════
       HEADER
    ═══════════════════════════════════════ */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 0;
    transition:
        background 0.4s,
        padding 0.4s,
        border-color 0.4s,
        box-shadow 0.4s;
    border-bottom: 1px solid transparent;
}

#header.sticky {
    background: var(--header-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--header-shadow);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: "Syne", sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo em {
    color: var(--accent);
    font-style: normal;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(230, 237, 243, 0.75);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-cta {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #000;
    background: var(--accent);
    padding: 0.55rem 1.4rem;
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.25s;
    border: 1px solid var(--accent);
    position: relative;
    overflow: hidden;
}

.nav-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent2);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-cta span {
    position: relative;
    z-index: 1;
}

.nav-cta:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-cta:hover {
    color: #fff;
    border-color: var(--accent2);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text);
    transition: all 0.3s;
}

@media (max-width: 900px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

/* Mobile Nav */
#mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
}

#mobile-nav.open {
    display: flex;
}

#mobile-nav a {
    font-family: "Syne", sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

#mobile-nav a:hover {
    color: var(--accent);
}

/* ═══════════════════════════════════════
       HERO
    ═══════════════════════════════════════ */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 7rem 0 4rem;
}

/* Animated ambient background */
.hero-ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 15% 60%,
            rgba(124, 58, 237, 0.07) 0%,
            transparent 55%),
        radial-gradient(ellipse 60% 70% at 80% 30%,
            rgba(0, 229, 255, 0.06) 0%,
            transparent 55%),
        radial-gradient(ellipse 50% 50% at 50% 80%,
            rgba(255, 107, 53, 0.04) 0%,
            transparent 55%);
    animation: ambient-shift 12s ease-in-out infinite alternate;
}

@keyframes ambient-shift {
    0% {
        background-position: 0% 0%;
    }

    50% {
        transform: scale(1.05) translateY(-1%);
    }

    100% {
        transform: scale(1) translateY(0);
    }
}

/* Grid pattern */
.hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 40%,
            black 0%,
            transparent 100%);
}

/* Floating orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.35;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(0, 229, 255, 0.12);
    top: -100px;
    right: -100px;
    animation: float1 14s ease-in-out infinite;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: rgba(124, 58, 237, 0.1);
    bottom: 0;
    left: -80px;
    animation: float2 18s ease-in-out infinite;
}

@media (max-width: 768px) {
  .orb {
    display: none;
  }
}

@keyframes float1 {

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

    50% {
        transform: translate(-30px, 40px);
    }
}

@keyframes float2 {

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

    50% {
        transform: translate(40px, -30px);
    }
}

.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.67rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(0, 229, 255, 0.25);
    background: rgba(0, 229, 255, 0.04);
    padding: 0.45rem 1.1rem;
    border-radius: 2px;
    margin-bottom: 2.25rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: badge-blink 2s ease-in-out infinite;
}

@keyframes badge-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

.hero-name {
    font-family: "Syne", sans-serif;
    font-weight: 800;
    font-size: clamp(3.8rem, 10vw, 9rem);
    line-height: 0.88;
    color: var(--text);
    letter-spacing: -0.03em;
    margin-bottom: 1.75rem;
}

.hero-name .outline {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(0, 229, 255, 0.4);
    background: linear-gradient(135deg,
            rgba(0, 229, 255, 0.5),
            rgba(124, 58, 237, 0.5));
    background-clip: text;
    -webkit-background-clip: text;
    display: inline-block;
}

/* Typed role text */
.hero-role {
    font-family: "JetBrains Mono", monospace;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    color: var(--accent);
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-role::before {
    content: "";
    display: block;
    width: 30px;
    height: 1px;
    background: var(--accent);
}

#typed-text {
    display: inline-block;
}

.cursor-blink {
    animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-sub {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    font-weight: 300;
    color: var(--muted);
    max-width: 540px;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 3.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.stat-num {
    font-family: "Syne", sans-serif;
    font-weight: 800;
    font-size: 2.6rem;
    color: var(--text);
    line-height: 1;
}

.stat-num span {
    color: var(--accent);
}

.stat-label {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.58rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
}

.stat-divider {
    width: 1px;
    background: var(--border);
    align-self: stretch;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Magnetic buttons */
.btn-fill,
.btn-ghost {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 1rem 2.2rem;
    border-radius: 2px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-fill {
    background: var(--accent);
    color: #000;
    font-weight: 600;
    border: 1px solid var(--accent);
}

.btn-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent2);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s ease;
}

.btn-fill:hover {
    color: #fff;
    border-color: var(--accent2);
}

.btn-fill:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

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

.btn-fill svg {
    position: relative;
    z-index: 1;
    transition: transform 0.25s;
}

.btn-fill:hover svg {
    transform: translateX(3px);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.08);
}

/* Side socials */
.hero-socials {
    position: absolute;
    right: 2.5rem;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.hero-socials::after {
    content: "";
    display: block;
    width: 1px;
    height: 70px;
    background: linear-gradient(to bottom, var(--muted), transparent);
}

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

/* ═══════════════════════════════════════
       SVG DIVIDERS
    ═══════════════════════════════════════ */
.svg-divider {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    display: block;
}

.svg-divider svg {
    display: block;
}

/* ═══════════════════════════════════════
       SHARED
    ═══════════════════════════════════════ */
section {
    padding: 8rem 0;
    position: relative;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.sec-label {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sec-label::before {
    content: "";
    display: block;
    width: 20px;
    height: 1px;
    background: var(--accent);
}

.sec-title {
    font-family: "Syne", sans-serif;
    font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: var(--text);
    letter-spacing: -0.025em;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 2px;
    color: var(--muted);
    text-decoration: none;
    transition: all 0.25s;
}

.icon-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 229, 255, 0.05);
}

.tag {
    font-family: "JetBrains Mono", monospace;
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

html[data-theme="light"] .tag {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.tag:hover {
    background: rgba(0, 229, 255, 0.06);
    border-color: rgba(0, 229, 255, 0.2);
    color: var(--accent);
}

/* ═══════════════════════════════════════
       SCROLL REVEAL
    ═══════════════════════════════════════ */
[data-reveal] {
    opacity: 0;
    transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal="up"] {
    transform: translateY(48px);
}

[data-reveal="left"] {
    transform: translateX(-48px);
}

[data-reveal="right"] {
    transform: translateX(48px);
}

[data-reveal="scale"] {
    transform: scale(0.92);
}

[data-reveal].visible {
    opacity: 1;
    transform: none;
}

[data-delay="1"] {
    transition-delay: 0.08s;
}

[data-delay="2"] {
    transition-delay: 0.16s;
}

[data-delay="3"] {
    transition-delay: 0.24s;
}

[data-delay="4"] {
    transition-delay: 0.32s;
}

[data-delay="5"] {
    transition-delay: 0.4s;
}

[data-delay="6"] {
    transition-delay: 0.48s;
}

[data-delay="7"] {
    transition-delay: 0.56s;
}

[data-delay="8"] {
    transition-delay: 0.64s;
}

/* ═══════════════════════════════════════
       ABOUT
    ═══════════════════════════════════════ */
#about {
    background: var(--surface);
}

#about::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 60% 50% at 80% 50%,
            rgba(124, 58, 237, 0.04) 0%,
            transparent 60%);
}

.about-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 6rem;
    align-items: center;
}

@media (max-width: 860px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.profile-wrap {
    position: relative;
    display: inline-block;
}

.profile-img {
    width: 240px;
    height: 280px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid var(--border);
    display: block;
    filter: grayscale(20%);
    transition: filter 0.3s;
}

.profile-img:hover {
    filter: grayscale(0%);
}

.profile-fallback {
    width: 240px;
    height: 280px;
    border-radius: 4px;
    background: var(--surface2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Syne", sans-serif;
    font-weight: 800;
    font-size: 6rem;
    color: var(--accent);
}

.corner {
    position: absolute;
    width: 22px;
    height: 22px;
}

.corner.tl {
    top: -8px;
    left: -8px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
}

.corner.br {
    bottom: -8px;
    right: -8px;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
}

/* Decorative scan line */
.profile-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            var(--accent),
            transparent);
    opacity: 0.3;
    top: 50%;
    animation: scan 4s ease-in-out infinite;
}

@keyframes scan {

    0%,
    100% {
        top: 10%;
        opacity: 0;
    }

    50% {
        top: 90%;
        opacity: 0.5;
    }
}

.about-text p {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.about-text p strong {
    color: var(--text);
    font-weight: 500;
}

.about-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.83rem;
    color: var(--muted);
}

.meta-item svg {
    color: var(--accent);
    flex-shrink: 0;
}

.meta-item a {
    color: inherit;
    text-decoration: none;
}

.meta-item a:hover {
    color: var(--accent);
}

/* ═══════════════════════════════════════
       SKILLS
    ═══════════════════════════════════════ */
#skills {
    background: var(--bg);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 900px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.skill-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.75rem;
    transition:
        border-color 0.3s,
        box-shadow 0.3s,
        transform 0.3s;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(0, 229, 255, 0.03) 0%,
            transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.skill-card:hover {
    border-color: rgba(0, 229, 255, 0.2);
    box-shadow: 0 8px 40px rgba(0, 229, 255, 0.06);
    transform: translateY(-3px);
}

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

.skill-card-title {
    font-family: "Syne", sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.skill-icon {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    background: rgba(0, 229, 255, 0.07);
    border: 1px solid rgba(0, 229, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.skill-icon svg {
    color: var(--accent);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1rem;
}

/* Animated skill bars */
.skill-bar-wrap {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.skill-bar-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.skill-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-bar-name {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.skill-bar-pct {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.62rem;
    color: var(--accent);
}

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

.skill-bar-track {
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 2px;
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ═══════════════════════════════════════
       EXPERIENCE
    ═══════════════════════════════════════ */
#experience {
    background: var(--surface);
}

#experience::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 50% 50% at 10% 50%,
            rgba(0, 229, 255, 0.03) 0%,
            transparent 60%);
}

.exp-layout {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 6rem;
}

@media (max-width: 860px) {
    .exp-layout {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: linear-gradient(to bottom,
            var(--accent),
            rgba(0, 229, 255, 0.1));
}

.tl-item {
    position: relative;
    padding-bottom: 3rem;
}

.tl-item:last-child {
    padding-bottom: 0;
}

.tl-dot {
    position: absolute;
    left: -2.55rem;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
    transition:
        background 0.3s,
        box-shadow 0.3s;
}

.tl-item:hover .tl-dot {
    background: var(--accent);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}

.tl-date {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.tl-role {
    font-family: "Syne", sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.tl-company {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    color: var(--accent);
    margin-bottom: 0.9rem;
}

.tl-desc {
    font-size: 0.875rem;
    line-height: 1.85;
    color: var(--muted);
    margin-bottom: 1rem;
}

/* ═══════════════════════════════════════
       PROJECTS
    ═══════════════════════════════════════ */
#projects {
    background: var(--bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 1100px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.proj-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition:
        border-color 0.3s,
        transform 0.35s,
        box-shadow 0.35s;
    position: relative;
    overflow: hidden;
}

.proj-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            var(--accent),
            transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.proj-card:hover {
    border-color: rgba(0, 229, 255, 0.18);
    transform: translateY(-6px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(0, 229, 255, 0.06);
}

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

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

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

.proj-num {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    color: var(--muted);
}

.proj-title {
    font-family: "Syne", sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.2;
    flex-grow: 1;
}

.proj-desc {
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--muted);
}

.proj-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.proj-expand {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    color: var(--accent);
    opacity: 1;
    transform: none;
    transition:
        opacity 0.25s,
        transform 0.25s;
    white-space: nowrap;
}

@media (min-width: 769px) {
  .proj-expand {
      opacity: 0;
      transform: translateX(-6px);
  }

  .proj-card:hover .proj-expand {
      opacity: 1;
      transform: translateX(0);
  }
}

/* ═══════════════════════════════════════
       CERTIFICATIONS
    ═══════════════════════════════════════ */
#certifications {
    background: var(--surface);
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

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

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

.cert-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition:
        border-color 0.3s,
        transform 0.3s,
        box-shadow 0.3s;
}

.cert-card:hover {
    border-color: rgba(0, 229, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 229, 255, 0.06);
}

.cert-emoji {
    font-size: 2.2rem;
    margin-bottom: 0.9rem;
}

.cert-name {
    font-family: "Syne", sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.cert-issuer {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ═══════════════════════════════════════
       CONTACT
    ═══════════════════════════════════════ */
#contact {
    background: var(--bg);
}

#contact::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 50% 50% at 10% 70%,
            rgba(124, 58, 237, 0.05) 0%,
            transparent 55%),
        radial-gradient(ellipse 50% 50% at 90% 30%,
            rgba(0, 229, 255, 0.04) 0%,
            transparent 55%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 6rem;
    align-items: start;
}

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

.contact-desc {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--muted);
    margin: 1.5rem 0 2.5rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.83rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

.contact-link:hover .icon-link {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 229, 255, 0.05);
}

.form-wrap {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.form-input {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-family: "Outfit", sans-serif;
    font-size: 0.88rem;
    padding: 0.8rem 1rem;
    outline: none;
    transition:
        border-color 0.25s,
        box-shadow 0.25s;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.06);
}

.form-input::placeholder {
    color: var(--muted);
}

/* ═══════════════════════════════════════
       FOOTER
    ═══════════════════════════════════════ */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}

.footer-icons {
    display: flex;
    gap: 0.75rem;
}

/* ═══════════════════════════════════════
       MODAL
    ═══════════════════════════════════════ */
#modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

#modal.open {
    display: flex;
}

.modal-inner {
    background: var(--surface);
    border: 1px solid var(--border-bright);
    border-radius: 8px;
    padding: 2.5rem;
    max-width: 560px;
    width: 100%;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.5rem;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--accent);
}

.modal-label {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

#modal-title {
    font-family: "Syne", sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 1rem;
}

#modal-desc {
    font-size: 0.875rem;
    line-height: 1.85;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.modal-stack-label {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

#modal-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* ═══════════════════════════════════════
       TOAST
    ═══════════════════════════════════════ */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    z-index: 9000;
    opacity: 0;
    transition: all 0.35s ease;
    pointer-events: none;
}

.toast.ok {
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: var(--accent);
}

.toast.err {
    background: rgba(255, 80, 80, 0.12);
    border: 1px solid rgba(255, 80, 80, 0.3);
    color: #ff8080;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════
       SCROLL DEPTH INDICATOR
    ═══════════════════════════════════════ */
#scroll-depth {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 500;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.58rem;
    color: var(--accent);
    opacity: 0;
    transition: opacity 0.3s;
}

#scroll-depth svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

#scroll-depth circle {
    stroke-dasharray: 126;
    stroke-dashoffset: 126;
    transition: stroke-dashoffset 0.1s;
}

#scroll-depth .pct {
    position: relative;
    z-index: 1;
    line-height: 1;
}

#scroll-depth.visible {
    opacity: 1;
}

@media (max-width: 768px) {
    #scroll-depth {
        display: none;
    }
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    transition: all 0.25s ease;
    cursor: pointer;
}

.tech-pill i {
    font-size: 1rem;
    transition: transform 0.25s ease;
}

.tech-pill:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.12);
    background: rgba(0, 229, 255, 0.06);
}

.tech-pill:hover i {
    transform: scale(1.15) rotate(4deg);
}

.modal-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
}

.modal-list li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.8rem;
    line-height: 1.7;
    color: var(--text);
    font-size: 0.85rem;
}

.modal-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 600;
}

@media (max-width: 768px) {

  /* Reduce section title size */
  .section-title {
    font-size: 2.2rem;
    line-height: 1.1;
  }

  /* Reduce top gap below section label */
  .section-header {
    margin-bottom: 2rem;
  }

  /* Certification cards tighter */
  .cert-card {
    padding: 1.8rem 1.5rem;
    border-radius: 18px;
  }

  /* Reduce spacing between cards */
  .cert-grid {
    gap: 1.5rem;
  }

  /* Icon smaller and tighter */
  .cert-card img,
  .cert-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
  }

  /* Title inside card */
  .cert-card h3 {
    font-size: 1.1rem;
  }

  .cert-card p {
    font-size: 0.8rem;
    letter-spacing: 2px;
  }
}

@media (max-width: 768px) {

  .sec-title {
    font-size: 1.75rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }

}