/* ══════════════════════════════════════════════════
   CSS VARIABLES - DEFAULT (LIGHT THEME)
══════════════════════════════════════════════════ */
:root {
    /* Backgrounds for Light Mode */
    --bg: #f0f4fc;
    --bg2: #e4ebf7;
    --bg3: #d8e2f0;
    --surface: rgba(255, 255, 255, 0.7);
    --surface-hover: rgba(255, 255, 255, 0.9);
    --border: rgba(59, 130, 246, 0.15);
    --border-bright: rgba(59, 130, 246, 0.35);
    --text: #0f172a;
    --text-muted: #475569;

    /* Global Colors */
    --accent: #3b82f6;
    --accent2: #8b5cf6;
    --accent3: #06b6d4;
    --glow: rgba(59, 130, 246, 0.2);
    --glow2: rgba(139, 92, 246, 0.15);
    --gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --gradient2: linear-gradient(135deg, #06b6d4, #3b82f6);

    /* Fonts & Utils */
    --font-display: Cambria, 'Georgia', serif;
    --font-mono: 'Space Mono', monospace;
    --font-body: Cambria, 'Georgia', serif;
    --radius: 16px;
    --ease: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ══════════════════════════════════════════════════
   DARK THEME (Activated by Gear Icon)
══════════════════════════════════════════════════ */
[data-theme="dark"] {
    --bg: #060812;
    --bg2: #0c1022;
    --bg3: #111827;
    --surface: rgba(0, 0, 0, 0.6);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.1);
    --border-bright: rgba(100, 180, 255, 0.25);
    --text: #f0f0f0;
    --text-muted: #7a8a9e;
    --accent: #59e9f7;
    /* Your signature Cyan */
    --glow: rgba(59, 130, 246, 0.4);
}

/* ══════════════════════════════════════════════════
   RESET
══════════════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth;
    font-size: 16px
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    transition: background var(--ease), color var(--ease);
    line-height: 1.7
}

::selection {
    background: var(--accent);
    color: #fff
}

a {
    color: inherit;
    text-decoration: none
}

img {
    max-width: 100%;
    display: block
}

::-webkit-scrollbar {
    width: 4px
}

::-webkit-scrollbar-track {
    background: var(--bg)
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 2px
}

/* ══════════════════════════════════════════════════
   SCROLL PROGRESS
══════════════════════════════════════════════════ */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--gradient);
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--glow)
}

/* ══════════════════════════════════════════════════
   PARTICLE CANVAS
══════════════════════════════════════════════════ */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5
}

/* ══════════════════════════════════════════════════
   NAVIGATION  — logo | centered pill | actions
══════════════════════════════════════════════════ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 2rem;
    height: 70px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    background: rgba(6, 8, 18, 0.78);
    border-bottom: 1px solid var(--border);
    transition: all var(--ease)
}

[data-theme="light"] nav {
    background: rgba(240, 244, 252, 0.88)
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    justify-self: start
}

/* Pill nav */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 4px;
    backdrop-filter: blur(14px);
    gap: 2rem;
}

[data-theme="light"] .nav-links {
    background: rgba(59, 130, 246, 0.07)
}

.nav-links li a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 400;
    transition: all var(--ease);
    white-space: nowrap
}

.nav-links li a i {
    font-size: 0.65rem;
    opacity: 0.65;
    transition: opacity var(--ease)
}

.nav-links li a:hover,
.nav-links li a.active {
    background: var(--gradient);
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    box-shadow: 0 2px 18px var(--glow)
}

.nav-links li a:hover i,
.nav-links li a.active i {
    opacity: 1
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-self: end
}

.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all var(--ease);
    backdrop-filter: blur(10px)
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 15px var(--glow)
}

/* Stable 3-line hamburger — no morph ever */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 7px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: border-color var(--ease)
}

.hamburger:hover {
    border-color: var(--accent)
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px
}
.theme-toggle:hover i.fa-cog {
    transform: rotate(90deg);
    transition: transform 0.4s ease;
}

/* ══════════════════════════════════════════════════
   MOBILE DRAWER
══════════════════════════════════════════════════ */
.mobile-nav {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 270px;
    height: calc(100vh - 70px);
    background: var(--bg2);
    border-left: 1px solid var(--border);
    z-index: 999;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px)
}

.mobile-nav.open {
    right: 0
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--ease)
}

.mobile-nav a i {
    font-size: 0.8rem;
    width: 16px;
    text-align: center
}

.mobile-nav a:hover {
    color: var(--accent);
    background: rgba(59, 130, 246, 0.08)
}

/* ══════════════════════════════════════════════════
   SECTION BASE
══════════════════════════════════════════════════ */
section {
    position: relative;
    z-index: 1;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto
}

.section-label {
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--accent3);
    margin-left: 2.75rem;
    margin-top: 30px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 1vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.section-divider {
    width: 60%;
    height: 6px;
    background: var(--gradient);
    border-radius: 2px;
    margin-bottom: 5px
}

/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
#hero {
    min-height: 100vh;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    text-align: center;
    position: relative
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    border: 1px solid var(--border-bright);
    background: var(--surface);
    font-family: var(--font-mono);
    font-size: 0.92rem;
    color: var(--accent3);
    letter-spacing: 1px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px)
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: .5;
        transform: scale(1.5)
    }
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 0.95;
    margin-bottom: 1rem
}

.name-first,
.name-last {
    background: linear-gradient(90deg, #e86161, #6c63ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-typing {
    font-family: var(--font-mono);
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    color: var(--accent3);
    min-height: 1.8em;
    margin-bottom: 1.5rem
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--accent3);
    vertical-align: text-bottom;
    animation: blink .8s infinite
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0
    }
}

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.7
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--ease);
    border: none;
    letter-spacing: 0.2px
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 25px var(--glow)
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px var(--glow)
}

.btn-ghost {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px)
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--glow)
}

/* ══════════════════════════════════════════════════
   GLASS CARD
══════════════════════════════════════════════════ */
.glass {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all var(--ease)
}

.glass:hover {
    background: var(--surface-hover);
    border-color: var(--border-bright);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3)
}

/* ══════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: -20px;
}

.about-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--border-bright);
    animation: spin 20s linear infinite
}

.about-ring-1 {
    width: 380px;
    height: 380px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)
}

.about-ring-2 {
    width: 430px;
    height: 430px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 30s;
    animation-direction: reverse;
    border-style: dashed;
    opacity: .4
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0)
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg)
    }
}

.tech-float {
    position: absolute;
    padding: .5rem .9rem;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 1px;
    animation: floatY 4s ease-in-out infinite
}

.tech-float-1 {
    top: 10%;
    right: -30px;
    background: rgba(59, 130, 246, .15);
    border: 1px solid rgba(59, 130, 246, .4);
    color: var(--accent);
    animation-delay: 0s
}

.tech-float-2 {
    bottom: 20%;
    left: -30px;
    background: rgba(139, 92, 246, .15);
    border: 1px solid rgba(139, 92, 246, .4);
    color: var(--accent2);
    animation-delay: 1.5s
}

.tech-float-3 {
    bottom: 5%;
    right: 10px;
    background: rgba(6, 182, 212, .15);
    border: 1px solid rgba(6, 182, 212, .4);
    color: var(--accent3);
    animation-delay: 3s
}

@keyframes floatY {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-12px)
    }
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0
}

.stat-card {
    padding: 1.2rem;
    border-radius: var(--radius-sm);
    text-align: center
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.stat-label {
    font-size: .75rem;
    color: var(--text-muted);
    margin-top: .2rem
}

.about-avatar-wrap {
    position: relative;
    width: 450px;
    height: 450px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-avatar {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--accent);
    box-shadow: 0 0 40px var(--glow);
    z-index: 5;
}

.about-avatar img {
    width: 100%;
    height: 115%;
    object-fit: cover;
}

/* ══════════════════════════════════════════════════
   SKILLS
══════════════════════════════════════════════════ */
.skills-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-top: 25px;
}

.skill-category {
    padding: 1.5rem;
    border-radius: var(--radius);
}

.skill-category-title {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 1100px) {
    .skills-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .skills-categories {
        grid-template-columns: 1fr;
    }
}

/* Standard Skills CSS */
.skill-item {
    margin-bottom: 1rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.skill-bar {
    height: 5px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    border-radius: 3px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fill-blue {
    background: var(--gradient2);
}

.fill-purple {
    background: var(--gradient);
}

.fill-cyan {
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
}


/* ══════════════════════════════════════════════════
   PROJECTS
══════════════════════════════════════════════════ */
.filter-tabs {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem
}

.filter-tab {
    padding: .5rem 1.2rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: .8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--ease);
    font-family: var(--font-mono)
}

.filter-tab:hover,
.filter-tab.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(59, 130, 246, .1)
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-top: 12px;
}

.project-card {
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--ease)
}

.project-card.hidden {
    display: none !important
}

.projects-grid {
    display: grid;
    /* 1. Decrease the min-width to fit more projects per line (e.g., 280px) */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;

    /* 2. Make the grid wider than its parent container */
    width: 90vw;
    /* Sets the grid to 90% of the screen width */
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    /* Centers the wide grid perfectly */

    /* 3. Optional: Set a very large max-width so it doesn't grow forever */
    max-width: 1300px;
}

.project-thumb {
    height: 70px;
    background: linear-gradient(135deg, var(--bg2), var(--bg3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden
}

.project-thumb img {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
    /* Adds a slight glow */
    transition: transform 0.3s ease;
}

.project-card:hover .project-thumb img {
    transform: scale(1.1);
    /* Makes the logo pop on hover */
}

.sketch-icon {
    width: 80%;
    /* Adjust size to fit inside the thumb */
    height: auto;
    filter: drop-shadow(0 0 5px rgba(255, 165, 0, 0.3));
    /* Adds a soft orange glow to match the VPC color */
    transition: transform 0.3s ease;
    display: block;
}

.project-card:hover .sketch-icon {
    transform: scale(1.1) rotate(-2deg);
    /* Adds a slight "hand-drawn" wiggle on hover */
}

.project-card:hover .project-thumb-overlay {
    opacity: 1
}

.project-body {
    padding: 0.7rem
}

.project-tags {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    margin-bottom: .75rem
}

.project-tag {
    padding: .2rem .6rem;
    border-radius: 100px;
    font-size: .65rem;
    font-family: var(--font-mono);
    background: rgba(59, 130, 246, .15);
    color: var(--accent);
    border: 1px solid rgba(59, 130, 246, .25)
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: .5rem
}

.project-desc {
    font-size: .875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.2rem
}

.project-links {
    display: flex;
    gap: .75rem;
    /* margin-bottom: -10px; */
}

.project-link {
    padding: .45rem 1rem;
    border-radius: 100px;
    font-size: .8rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--ease);
    display: flex;
    align-items: center;
    gap: .4rem
}

.project-link:hover {
    border-color: var(--accent);
    color: var(--accent)
}

/* ══════════════════════════════════════════════════
   CERTIFICATIONS
══════════════════════════════════════════════════ */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
    gap: 3.5rem;
    margin-top: 20px;
}

.cert-card {
    padding: 1.8rem;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden
}

.cert-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--glow) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--ease)
}

.cert-card:hover::before {
    opacity: 1
}

.cert-badge {
    /*width: 70px;   Set your desired size */
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    overflow: hidden;
    /* Clips the image to the border radius */
    border-radius: 12px;
    /*background: #fff;  White background to match the logo edges */
    padding: 0;
    /* Remove all padding */
}

.cert-badge img {
    /* width: 100%; */
    height: 100%;
    object-fit: cover;
    /* Fills the entire box area */
    display: block;
}

.cert-org {
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent3);
    margin-bottom: .3rem
}

.cert-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .3rem
}

.cert-year {
    font-size: .8rem;
    color: var(--text-muted)
}

.cert-status {
    position: absolute;
    right: 2.2rem;
    padding: .25rem 1.6rem;
    border-radius: 100px;
    font-size: .75rem;
    font-weight: 600;
    background: rgba(34, 197, 94, .15);
    margin-top: -12px;
    border: 1px solid rgba(34, 197, 94, .4);
    color: #22c55e
}

.img-cert {
    max-width: 100%;
    display: block;
    width: 137px;
    /* align-items: center; */
    margin-left: 150px;
}

/* This happens when you move the mouse over the button */
.cert-status:hover {
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
    /* Adds a soft glow */
}

/* This happens when you click the button */
.cert-status:active {
    transform: translateY(-1px);
    /* Pushes it back down slightly when clicked */
}

/* ══════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem
}

.size {
    margin-top: 10px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0
}

.contact-label {
    font-size: .75rem;
    color: var(--text-muted);
    margin-bottom: .2rem
}

.contact-value {
    font-weight: 700;
    font-size: .9rem
}

.social-links {
    display: flex;
    gap: .75rem;
    margin-top: 1rem
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--ease)
}

.social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--glow)
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .5rem
}

.form-label {
    font-size: .8rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: .5px
}

.form-input,
.form-textarea {
    width: 100%;
    padding: .9rem 1.2rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-body);
    font-size: .9rem;
    transition: all var(--ease);
    outline: none
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .1)
}

.form-textarea {
    resize: vertical;
    min-height: 85px
}

.form-error {
    font-size: .75rem;
    color: #ef4444;
    display: none
}

.form-error.show {
    display: block
}

.form-success {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    background: rgba(34, 197, 94, .1);
    border: 1px solid rgba(34, 197, 94, .3);
    color: #22c55e;
    font-size: .875rem;
    display: none
}

.form-success.show {
    display: block
}

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.footer-copy {
    font-size: .8rem;
    color: var(--text-muted);
    text-align: center
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end
}

.footer-nav a {
    font-size: .8rem;
    color: var(--text-muted);
    transition: color var(--ease)
}

.footer-nav a:hover {
    color: var(--accent)
}

/* ══════════════════════════════════════════════════
   BACK TO TOP
══════════════════════════════════════════════════ */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 900;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--ease);
    box-shadow: 0 4px 20px var(--glow)
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0)
}

#back-to-top:hover {
    transform: translateY(-4px)
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media(max-width:900px) {
    .about-grid {
        grid-template-columns: 1fr
    }

    .about-visual {
        order: -1
    }

    .skills-categories {
        grid-template-columns: 1fr 1fr
    }

    .contact-grid {
        grid-template-columns: 1fr
    }

    footer {
        grid-template-columns: 1fr;
        text-align: center
    }

    .footer-nav {
        justify-content: center
    }
}

@media(max-width:700px) {

    /* Hide pill, show hamburger on mobile */
    .nav-links {
        display: none !important
    }

    .hamburger {
        display: flex
    }

    nav {
        display: flex;
        justify-content: space-between
    }

    .skills-categories {
        grid-template-columns: 1fr
    }

    section {
        padding: 5rem 1.25rem
    }

    .projects-grid {
        grid-template-columns: 1fr
    }

    .certs-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:480px) {
    .certs-grid {
        grid-template-columns: 1fr
    }

    .hero-name {
        letter-spacing: -1px
    }
}
