/* ============================================================
      PIYUSH BAGHEL — PORTFOLIO
      style.css
      ============================================================ */

/* ── Google Fonts imported in HTML ── */

/* ────────────────────────────────────────
      1. CSS VARIABLES
──────────────────────────────────────── */
:root {
    /* Colors — Dark theme (default) */
    --bg:        #05060f;
    --bg2:       #080a18;
    --card:      rgba(8, 12, 30, 0.92);

    --accent:    #00f7ff;
    --accent2:   #4a9eff;
    --accent3:   #7eb8ff;

    --white:     #f0f4ff;
    --muted:     rgba(160, 190, 255, 0.55);

    --border:    rgba(74, 158, 255, 0.18);
    --border2:   rgba(0, 247, 255, 0.28);
    --glow:      rgba(0, 247, 255, 0.10);

    /* Typography */
    --fm: 'Audiowide', sans-serif;
    --fc: 'Fira Code', monospace;
    --fb: 'DM Sans', sans-serif;

    /* Misc */
    --radius: 8px;
    --transition: 0.25s ease;
}

/* ── Light theme overrides ── */
body.light {
    --bg:      #eef2ff;
    --bg2:     #e4eaff;
    --card:    rgba(255, 255, 255, 0.88);

    --white:   #080d2e;
    --muted:   rgba(20, 40, 110, 0.60);

    --border:  rgba(74, 158, 255, 0.22);
    --border2: rgba(0, 180, 220, 0.32);
    --glow:    rgba(0, 180, 220, 0.08);
}


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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--fb);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
    transition: background 0.35s, color 0.35s;
}

/* Subtle grid overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(74, 158, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 158, 255, 0.045) 1px, transparent 1px);
    background-size: 52px 52px;
    pointer-events: none;
    z-index: 0;
}

body.light::before {
    background-image:
        linear-gradient(rgba(74, 158, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 158, 255, 0.08) 1px, transparent 1px);
}

main {
    position: relative;
    z-index: 2;
}


/* ────────────────────────────────────────
      3. NAVIGATION
──────────────────────────────────────── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: 64px;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: rgba(5, 6, 15, 0.90);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.35s, border-color 0.35s;
}

body.light nav {
    background: rgba(238, 242, 255, 0.92);
}

.nav-logo {
    font-family: var(--fm);
    font-size: 1rem;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-family: var(--fc);
    font-size: 0.75rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width 0.3s;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Theme toggle button */
.theme-btn {
    background: rgba(74, 158, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: 6px;
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    flex-shrink: 0;
    transition: border-color var(--transition), background var(--transition);
}

.theme-btn:hover {
    border-color: var(--accent);
    background: rgba(0, 247, 255, 0.07);
}


/* ────────────────────────────────────────
      4. SECTION LAYOUT HELPERS
──────────────────────────────────────── */
section {
    padding: 96px 6%;
}

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    width: 100%;
}

/* Section label (e.g. "01 · about") */
.sec-label {
    font-family: var(--fc);
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sec-label::before {
    content: '';
    width: 18px; height: 1px;
    background: var(--accent);
}

.sec-title {
    font-family: var(--fm);
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    letter-spacing: 0.03em;
    margin-bottom: 10px;
}

.sec-line {
    width: 44px; height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin-bottom: 52px;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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


/* ────────────────────────────────────────
      5. BUTTONS
──────────────────────────────────────── */
.btn {
    font-family: var(--fc);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    padding: 11px 26px;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all var(--transition);
}

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

.btn-primary:hover {
    background: transparent;
    color: var(--accent);
    box-shadow: 0 0 22px rgba(0, 247, 255, 0.28);
}

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

.btn-outline:hover {
    border-color: var(--accent2);
    background: rgba(74, 158, 255, 0.07);
    box-shadow: 0 0 18px rgba(74, 158, 255, 0.13);
}


/* ────────────────────────────────────────
      6. HERO SECTION
──────────────────────────────────────── */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 64px;
    position: relative;
    overflow: hidden;
}

/* Background glow blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.blob-a {
    width: 580px; height: 380px;
    background: #0c1d60;
    opacity: 0.50;
    top: -80px; right: -60px;
}

.blob-b {
    width: 380px; height: 280px;
    background: #003399;
    opacity: 0.35;
    bottom: -40px; left: 8%;
}

.blob-c {
    width: 240px; height: 240px;
    background: #004488;
    opacity: 0.20;
    top: 45%; left: 38%;
}

body.light .blob-a { background: #bdd0ff; opacity: 0.55; }
body.light .blob-b { background: #aac0ff; opacity: 0.45; }

.hero-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 64px;
    align-items: center;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.hero-tag {
    font-family: var(--fc);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-tag::before {
    content: '';
    width: 28px; height: 1px;
    background: var(--accent);
}

.hero-name {
    font-family: var(--fm);
    font-size: clamp(2.6rem, 5.5vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: 0.02em;
    margin-bottom: 14px;
}

.hero-name .blue {
    background: linear-gradient(90deg, var(--accent), var(--accent2) 55%, var(--accent3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-role {
    font-family: var(--fc);
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 22px;
}

.hero-role span {
    color: var(--accent2);
}

.hero-desc {
    font-size: 0.97rem;
    color: var(--muted);
    max-width: 500px;
    margin-bottom: 34px;
    line-height: 1.88;
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Profile photo */
.photo-wrap {
    position: relative;
    flex-shrink: 0;
}

.photo-wrap::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: conic-gradient(var(--accent), var(--accent2), var(--accent3), var(--accent));
    opacity: 0.65;
    z-index: -1;
}

.photo-wrap::after {
    content: '';
    position: absolute;
    inset: -18px;
    border-radius: 50%;
    border: 1px solid rgba(0, 247, 255, 0.15);
    z-index: -1;
}

.hero-photo {
    width: 230px; height: 230px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    display: block;
    border: 3px solid var(--bg);
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 32px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-family: var(--fc);
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.15em;
    animation: bob 2.2s ease-in-out infinite;
}

.scroll-hint::after {
    content: '';
    width: 1px; height: 36px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

@keyframes bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(7px); }
}


/* ────────────────────────────────────────
      7. ABOUT SECTION
──────────────────────────────────────── */
#about {
    background: var(--bg2);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.about-p {
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.88;
}

/* Stats row */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 28px;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
    border-color: var(--border2);
    box-shadow: 0 0 18px var(--glow);
}

.stat-num {
    font-family: var(--fm);
    font-size: 1.7rem;
    color: var(--accent);
    display: block;
    margin-bottom: 3px;
}

.stat-label {
    font-family: var(--fc);
    font-size: 0.68rem;
    color: var(--muted);
    letter-spacing: 0.07em;
}

/* Terminal card */
.terminal {
    background: rgba(4, 7, 20, 0.94);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 0 36px rgba(0, 247, 255, 0.05);
}

body.light .terminal {
    background: rgba(210, 225, 255, 0.75);
}

.term-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 13px;
    background: rgba(74, 158, 255, 0.05);
    border-bottom: 1px solid var(--border);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.term-title {
    font-family: var(--fc);
    font-size: 0.68rem;
    color: rgba(100, 155, 255, 0.42);
    margin-left: 5px;
    letter-spacing: 0.09em;
}

.term-body {
    padding: 18px 20px;
    font-family: var(--fc);
    font-size: 0.80rem;
    line-height: 1.95;
    overflow-x: auto;
}

/* JSON syntax colors */
.t-key   { color: #7eb8ff; }
.t-str   { color: #79e8b0; }
.t-num   { color: #f0a060; }
.t-bool  { color: #ff8fab; }
.t-brace { color: rgba(155, 195, 255, 0.38); }


/* ────────────────────────────────────────
      8. SKILLS SECTION
──────────────────────────────────────── */
#skills {
    background: var(--bg);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 20px;
}

.skill-group {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.skill-group:hover {
    border-color: var(--border2);
    transform: translateY(-4px);
    box-shadow: 0 10px 36px rgba(0, 247, 255, 0.07);
}

.skill-group-title {
    font-family: var(--fc);
    font-size: 0.70rem;
    color: var(--accent);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--border);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.skill-tag {
    font-family: var(--fc);
    font-size: 0.73rem;
    padding: 5px 11px;
    border-radius: 4px;
    border: 1px solid rgba(74, 158, 255, 0.22);
    color: rgba(130, 195, 255, 0.88);
    background: rgba(74, 158, 255, 0.06);
    letter-spacing: 0.04em;
    transition: all var(--transition);
}

.skill-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 247, 255, 0.05);
}


/* ────────────────────────────────────────
      9. EXPERIENCE SECTION
──────────────────────────────────────── */
#experience {
    background: var(--bg2);
}

.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.exp-card {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 0 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 28px 28px 20px;
    margin-bottom: 20px;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    position: relative;
    overflow: visible;
}

.exp-card:hover {
    border-color: var(--border2);
    box-shadow: 0 10px 40px rgba(0, 247, 255, 0.07);
    transform: translateY(-3px);
}

/* Left timeline column */
.exp-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 6px;
}

.exp-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg);
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.6);
    flex-shrink: 0;
    z-index: 1;
}

.exp-line {
    flex: 1;
    width: 1px;
    background: linear-gradient(to bottom, rgba(0, 247, 255, 0.4), rgba(0, 247, 255, 0.05));
    margin-top: 6px;
    min-height: 40px;
}

/* Right content column */
.exp-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.exp-role {
    font-family: var(--fm);
    font-size: 1.05rem;
    color: var(--white);
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}

.exp-company {
    font-family: var(--fc);
    font-size: 0.78rem;
    color: var(--accent2);
    letter-spacing: 0.06em;
}

.exp-type {
    color: var(--muted);
    font-weight: 400;
}

.exp-date {
    font-family: var(--fc);
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.08em;
    white-space: nowrap;
    background: rgba(0, 247, 255, 0.06);
    border: 1px solid rgba(0, 247, 255, 0.18);
    padding: 4px 12px;
    border-radius: 20px;
    flex-shrink: 0;
}

.exp-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
}

.exp-bullets li {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.78;
    padding-left: 18px;
    position: relative;
}

.exp-bullets li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.72rem;
    top: 3px;
}

.exp-bullets li strong {
    color: var(--white);
    font-weight: 600;
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.exp-tags span {
    font-family: var(--fc);
    font-size: 0.68rem;
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(74, 158, 255, 0.07);
    border: 1px solid rgba(74, 158, 255, 0.18);
    color: var(--accent2);
    letter-spacing: 0.04em;
}

@media (max-width: 600px) {
    .exp-header {
        flex-direction: column;
        gap: 8px;
    }
    .exp-card {
        grid-template-columns: 1fr;
        padding-left: 28px;
    }
    .exp-left {
        display: none;
    }
}


/* ────────────────────────────────────────
      10. PROJECTS SECTION
──────────────────────────────────────── */
#projects {
    background: var(--bg2);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}

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

.project-card:hover {
    border-color: var(--border2);
    transform: translateY(-5px);
    box-shadow: 0 14px 44px rgba(0, 247, 255, 0.08);
}

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

.project-icon {
    font-size: 1.7rem;
}

.project-name {
    font-family: var(--fm);
    font-size: 1.05rem;
    letter-spacing: 0.03em;
}

.project-desc {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.78;
    flex: 1;
}

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

.project-tech span {
    font-family: var(--fc);
    font-size: 0.68rem;
    padding: 3px 9px;
    border-radius: 3px;
    background: rgba(74, 158, 255, 0.07);
    border: 1px solid rgba(74, 158, 255, 0.18);
    color: var(--accent2);
}

.project-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.project-features li {
    font-size: 0.80rem;
    color: rgba(150, 185, 255, 0.68);
    padding-left: 14px;
    position: relative;
}

.project-features li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.68rem;
}

.project-links {
    display: flex;
    gap: 9px;
    margin-top: 4px;
}

.proj-btn {
    font-family: var(--fc);
    font-size: 0.70rem;
    letter-spacing: 0.07em;
    padding: 7px 16px;
    border-radius: 4px;
    text-decoration: none;
    transition: all var(--transition);
    border: 1px solid;
}

.proj-btn.live {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    font-weight: 600;
}

.proj-btn.live:hover {
    background: transparent;
    color: var(--accent);
}

.proj-btn.repo {
    background: transparent;
    color: var(--muted);
    border-color: var(--border);
}

.proj-btn.repo:hover {
    color: var(--white);
    border-color: var(--accent2);
}


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

.project-fallback {
    grid-column: 1 / -1;
    background: var(--card);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 60px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ────────────────────────────────────────
      10. ACHIEVEMENTS SECTION
──────────────────────────────────────── */
#achievements {
    background: var(--bg);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.achieve-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.achieve-card:hover {
    border-color: var(--border2);
    box-shadow: 0 6px 26px var(--glow);
}

.achieve-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.achieve-title {
    font-family: var(--fc);
    font-size: 0.80rem;
    color: var(--white);
    margin-bottom: 3px;
    letter-spacing: 0.04em;
}

.achieve-sub {
    font-size: 0.76rem;
    color: var(--muted);
}

/* Coding profile badges */
.profiles-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 44px;
}

.profile-badge {
    font-family: var(--fc);
    font-size: 0.76rem;
    padding: 10px 12px;
    border-radius: var(--radius);
    text-decoration: none;
    border: 1px solid var(--border);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition);
    height: 100%;
}

.profile-badge:hover {
    border-color: var(--accent2);
    color: var(--white);
    background: rgba(74, 158, 255, 0.07);
}


/* ────────────────────────────────────────
      11. CONTACT SECTION
──────────────────────────────────────── */
#contact {
    background: var(--bg2);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 56px;
    align-items: start;
}

.contact-intro {
    font-size: 0.94rem;
    color: var(--muted);
    line-height: 1.88;
    margin-bottom: 28px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 13px;
    font-family: var(--fc);
    font-size: 0.80rem;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 18px;
    transition: color var(--transition);
}

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

.contact-icon {
    width: 36px; height: 36px;
    border: 1px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    background: rgba(74, 158, 255, 0.05);
    transition: border-color var(--transition);
}

.contact-item:hover .contact-icon {
    border-color: var(--accent);
}

/* Contact form */
.contact-form {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px;
}

.form-title {
    font-family: var(--fm);
    font-size: 1rem;
    margin-bottom: 24px;
    letter-spacing: 0.03em;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

label {
    font-family: var(--fc);
    font-size: 0.70rem;
    color: var(--accent2);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

input,
textarea {
    background: rgba(4, 8, 22, 0.75);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--white);
    font-family: var(--fb);
    font-size: 0.90rem;
    padding: 12px 15px;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    width: 100%;
}

body.light input,
body.light textarea {
    background: rgba(210, 220, 255, 0.55);
    color: #080d2e;
}

input:focus,
textarea:focus {
    border-color: var(--accent2);
    box-shadow: 0 0 14px rgba(74, 158, 255, 0.09);
}

input::placeholder,
textarea::placeholder {
    color: rgba(100, 140, 200, 0.45);
}

textarea {
    resize: vertical;
    min-height: 130px;
}

.form-submit {
    width: 100%;
    font-family: var(--fm);
    font-size: 0.82rem;
    letter-spacing: 0.10em;
    padding: 13px 28px;
    border-radius: var(--radius);
    background: var(--accent);
    color: #000;
    border: 1px solid var(--accent);
    cursor: pointer;
    transition: all var(--transition);
    margin-top: 6px;
}

.form-submit:hover {
    background: transparent;
    color: var(--accent);
    box-shadow: 0 0 24px rgba(0, 247, 255, 0.22);
}


/* ────────────────────────────────────────
      12. FOOTER
──────────────────────────────────────── */
footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 28px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    position: relative;
    z-index: 2;
}

.footer-name {
    font-family: var(--fm);
    font-size: 0.88rem;
    color: var(--accent);
}

.footer-copy {
    font-family: var(--fc);
    font-size: 0.70rem;
    color: var(--muted);
}

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

.footer-links a {
    font-family: var(--fc);
    font-size: 0.70rem;
    color: var(--muted);
    text-decoration: none;
    transition: color var(--transition);
}

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


/* ────────────────────────────────────────
      13. RESPONSIVE
──────────────────────────────────────── */
@media (max-width: 860px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .photo-wrap {
        margin: 0 auto;
    }

    .hero-tag,
    .hero-btns {
        justify-content: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 480px) {
    .blob {
        max-width: 100vw;
    }
    .photo-wrap::before, .photo-wrap::after {
        max-width: 90vw;
    }
    .hero-photo {
        max-width: 80vw;
        height: auto;
    }
    .hero-btns {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    .profiles-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* ────────────────────────────────────────
      14. UI ENHANCEMENTS (GLOW & TYPING)
──────────────────────────────────────── */

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease-out;
}

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

@keyframes blink {
    50% { opacity: 0; }
}

.glow-card {
    position: relative;
    overflow: hidden;
}

.glow-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        600px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
        rgba(0, 247, 255, 0.08),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

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

body.light .glow-card::after {
    background: radial-gradient(
        600px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
        rgba(0, 180, 220, 0.12),
        transparent 40%
    );
}

.skill-group, .project-card, .stat-card, .achieve-card {
    z-index: 2;
}

/* ────────────────────────────────────────
      15. CUSTOM SCROLLBAR
──────────────────────────────────────── */

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

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

::-webkit-scrollbar-thumb {
    background: rgba(74, 158, 255, 0.3);
    border-radius: 4px;
}

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