/* ===== ROOT VARIABLES ===== */
:root {
    --primary: #bdea00;           /* Contact accent lime */
    --primary-dark: #a9d100;
    --secondary: #d2e800;
    --accent: #d2e800;
    --green-accent: #bdea00;
    --warm: #facc15;

    --dark: #0a0f05;              /* Main background (contact style) */
    --dark-secondary: #0f1409;
    --surface: #12180d;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;

    --border-color: rgba(189, 234, 0, 0.24);

    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    --nav-height: 60px;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: none;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark);
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

#particles-js {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

#particles-js canvas {
    pointer-events: none !important;
}

/* ===== SIDEBAR NAVIGATION ===== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(30px);
    border-right: 1px solid var(--border-color);
    padding: 2rem 0;
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-normal);
}

.sidebar-toggle-btn {
    position: fixed;
    top: 50%;
    left: 292px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.78);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1100;
    transform: translateY(-50%);
    transition: all var(--transition-normal);
}

.sidebar-toggle-btn:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(calc(-50% - 2px));
}

.sidebar-toggle-btn:focus,
.sidebar-toggle-btn:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0 1.5rem;
}

.sidebar-profile {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    margin-bottom: 1.5rem;
    object-fit: cover;
    box-shadow: 0 0 30px rgba(189, 234, 0, 0.32);
    transition: transform var(--transition-normal);
}

.sidebar-avatar:hover {
    transform: scale(1.05);
}

.sidebar-name {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    font-weight: 500;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transform: translateX(-4px);
    transition: transform var(--transition-normal);
}

.nav-item:hover,
.nav-item.active,
.nav-item:focus,
.nav-item:focus-visible {
    background: rgba(189, 234, 0, 0.1);
    color: var(--primary);
}

.nav-item:hover::before,
.nav-item.active::before,
.nav-item:focus::before,
.nav-item:focus-visible::before {
    transform: translateX(0);
}

.nav-item:focus,
.nav-item:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px; /* non‑invasive ring for high contrast */
}

.nav-item i {
    font-size: 1.3rem;
    width: 24px;
}

.sidebar-social {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    justify-content: center;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(189, 234, 0, 0.1);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
    transform: translateY(-3px);
}

/* ===== HEADER (Mobile) ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 900;
    display: none;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition-normal);
}

.menu-toggle:hover {
    color: var(--primary);
}

/* ===== MAIN CONTENT ===== */
main {
    margin-left: 280px;
    position: relative;
    z-index: 1;
    transition: margin-left var(--transition-normal);
}

body.sidebar-collapsed .sidebar {
    transform: translateX(-100%);
}

body.sidebar-collapsed .sidebar-toggle-btn {
    left: 14px;
}

body.sidebar-collapsed .sidebar-toggle-btn i {
    transform: rotate(180deg);
}

body.sidebar-collapsed main {
    margin-left: 0;
}

section {
    min-height: 100svh;
    padding: clamp(2.75rem, 6vh, 4rem) clamp(1.5rem, 4vw, 3rem);
    scroll-margin-top: 60px;
    scroll-snap-align: none;
}

.section-title {
    font-size: clamp(2rem, 3.8vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.2rem;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: clamp(3rem, 7vh, 5rem) clamp(1.5rem, 4vw, 3rem);
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5.8vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-content h1 .name {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typing-text {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    height: 4rem;
    font-weight: 600;
    min-height: 60px;
}

.cursor {
    animation: blink 0.7s infinite;
}

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

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 20px;
    border: 2px solid var(--primary);
    box-shadow: 0 0 50px rgba(189, 234, 0, 0.18)
                0 20px 40px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.hero-image img:hover {
    transform: translateY(-10px) scale(1.02);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary);
    color: var(--dark);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(189, 234, 0, 0.3);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(189, 234, 0, 0.5);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left var(--transition-normal);
    pointer-events: none;
}

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

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(189, 234, 0, 0.5);
}

.btn.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(189, 234, 0, 0.35);
    box-shadow: none;
}

.btn.btn-ghost:hover {
    background: rgba(189, 234, 0, 0.12);
    border-color: rgba(189, 234, 0, 0.5);
    box-shadow: none;
}

.btn:disabled {
    opacity: 0.72;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* specialized contact submit button */
.contact-btn {
    background: var(--green-accent);
    color: var(--dark);
}

.contact-btn:hover {
    background: var(--secondary);
}

.btn:focus,
.btn:focus-visible {
    /* visible, high‑contrast focus indicator matching the visual rhythm */
    outline: 3px solid var(--secondary);
    outline-offset: 3px;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(189, 234, 0, 0.3)
}

.btn:focus::before,
.btn:focus-visible::before {
    left: 100%;
}

/* ===== ABOUT SECTION ===== */
.about {
    background: rgba(0, 0, 0, 0.38);
}

.about-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 460px) 1fr;
    gap: 3rem;
    align-items: center;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-photo-card {
    width: 100%;
    max-width: 460px;
    background: linear-gradient(165deg, rgba(189, 234, 0, 0.38), rgba(0, 0, 0, 0.8));
    border: 1px solid rgba(189, 234, 0, 0.35);
    border-radius: 24px;
    padding: 1rem;
    box-shadow: 0 20px 50px rgba(189, 234, 0, 0.14);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.about-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    background: rgba(255, 255, 255, 0.9);
    color: #1e293b;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
}

.about-chip i {
    color: #f97316;
    font-size: 0.55rem;
}

.about-chip-bottom {
    align-self: center;
}

.about-photo-wrap {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    overflow: hidden;
}

.about-photo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.about-content {
    max-width: none;
    margin: 0;
    text-align: left;
    padding: 0;
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.about-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem 0 1.5rem;
}

.stat-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    flex: 1 1 180px;
    text-align: center;
    transition: all var(--transition-normal);
}

.stat-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-3px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.about .contact-line {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 0.95rem;
}

.about .contact-line a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.about .contact-line a:hover,
.about .contact-line a:focus-visible {
    color: var(--secondary);
    border-bottom-color: currentColor;
}

.about .contact-line:last-of-type {
    margin-bottom: 0;
}

.about-btn {
    margin-top: 1rem;
}

.about-btn:hover {
    background: var(--secondary);
}

.about h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 2;
    max-width: 100%;
}

/* ===== EDUCATION SECTION ===== */
.education {
    --edu-title-sticky-top: calc(var(--nav-height) + 0.35rem);
    --edu-title-lane: clamp(3.6rem, 8vw, 5rem);
    --edu-title-fixed-left: clamp(1.5rem, 4vw, 3rem);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.76), rgba(18, 24, 13, 0.82));
    position: relative;
    overflow: visible;
}

.education .section-title {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: sticky;
    top: var(--edu-title-sticky-top);
    z-index: 12;
    width: fit-content;
    margin-bottom: 0;
}

.education.edu-title-fixed .section-title {
    position: sticky;
    top: var(--edu-title-sticky-top);
    left: auto;
    margin-bottom: 0;
    z-index: 12;
}

.education-scroll {
    position: relative;
    max-width: 1600px;
    height: 260svh;
    padding-top: var(--edu-title-lane);
    margin: 0 auto;
}

.edu-curve-board {
    position: sticky;
    top: calc(var(--edu-title-sticky-top) + var(--edu-title-lane));
    height: clamp(560px, calc(100svh - (var(--edu-title-sticky-top) + var(--edu-title-lane) + 0.9rem)), 760px);
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    background-color: var(--dark-secondary);
    background-image:
        linear-gradient(to right, rgba(189, 234, 0, 0.16) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(189, 234, 0, 0.16) 1px, transparent 1px);
    background-size: 44px 44px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.34);
}

.edu-curve-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.edu-line-track,
.edu-line-progress {
    fill: none;
    stroke: rgba(189, 234, 0, 0.26);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.edu-line-progress {
    stroke: rgba(210, 232, 0, 0.95);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 0;
    stroke-dashoffset: 0;
}

.edu-timeline-item {
    position: absolute;
    z-index: 2;
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    filter: blur(8px);
    transition: opacity 420ms ease, transform 420ms ease, filter 420ms ease;
}

.edu-timeline-item.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.edu-item-1 {
    left: 18%;
    top: 66%;
}

.edu-item-2 {
    left: 46%;
    top: 52%;
}

.edu-item-3 {
    left: 70%;
    top: 28%;
}

.edu-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 0 8px rgba(189, 234, 0, 0.2);
    transform: translate(-50%, -50%);
}

.edu-year-tag {
    position: absolute;
    right: 76px;
    top: -58px;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--secondary);
    line-height: 1;
    padding: 0.04em 0.2em;
    border-radius: 10px;
    background: rgba(10, 15, 5, 0.92);
    z-index: 3;
}

.edu-item-1 .edu-year-tag {
    right: 42px;
    top: -72px;
}

.edu-entry-card {
    position: absolute;
    left: 40px;
    top: 10px;
    width: clamp(246px, 25vw, 340px);
    background: rgba(10, 15, 5, 0.97);
    border: 1px solid rgba(189, 234, 0, 0.25);
    border-radius: 18px;
    padding: 1.1rem 1.15rem;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.edu-item-1 .edu-entry-card {
    left: 10px;
    top: 26px;
}

.edu-item-2 .edu-entry-card {
    left: 8px;
    top: 36px;
}

.edu-item-3 .edu-entry-card {
    left: 8px;
    right: auto;
    top: 12px;
    width: clamp(258px, 24vw, 350px);
}

.edu-item-3 .edu-year-tag {
    right: 88px;
    top: -66px;
}

.edu-entry-card h3 {
    color: var(--primary);
    font-size: 1.12rem;
    margin-bottom: 0.32rem;
}

.edu-entry-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 0.64rem;
}

.edu-duration {
    display: inline-block;
    font-size: 0.84rem;
    color: var(--secondary);
    font-weight: 700;
    background: rgba(189, 234, 0, 0.12);
    border: 1px solid rgba(189, 234, 0, 0.25);
    border-radius: 999px;
    padding: 0.3rem 0.72rem;
}

.edu-timeline-item:hover .edu-entry-card {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(189, 234, 0, 0.2);
}

@media (max-width: 980px) {
    .education.edu-title-fixed .section-title {
        position: static;
        left: auto;
    }

    .education .section-title {
        position: static;
    }

    .education-scroll {
        height: auto;
        padding-top: 0;
    }

    .edu-curve-board {
        position: relative;
        top: auto;
        min-height: 0;
        padding: 1.25rem 1rem 1.1rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        background-size: 32px 32px;
    }

    .edu-curve-svg {
        display: none;
    }

    .edu-curve-board::before {
        content: '';
        position: absolute;
        left: 1.44rem;
        top: 1.2rem;
        bottom: 1.2rem;
        width: 3px;
        border-radius: 3px;
        background: rgba(210, 232, 0, 0.8);
    }

    .edu-timeline-item {
        position: relative;
        left: auto;
        top: auto;
        padding-left: 2.75rem;
        opacity: 1;
        transform: none;
        filter: none;
    }

    .edu-dot {
        width: 18px;
        height: 18px;
        left: 0.42rem;
        top: 0.36rem;
        box-shadow: 0 0 0 5px rgba(189, 234, 0, 0.2);
        transform: none;
    }

    .edu-year-tag {
        position: static;
        display: block;
        margin-bottom: 0.42rem;
        font-size: 1.55rem;
    }

    .edu-entry-card {
        position: static;
        width: 100%;
    }
}

/* ===== SKILLS SECTION ===== */
.skills {
    background: rgba(0, 0, 0, 0.38);
}

.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.skills-column {
    background: rgba(189, 234, 0, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all var(--transition-normal);
}

.skills-column:hover {
    background: rgba(189, 234, 0, 0.1);
    border-color: rgba(189, 234, 0, 0.3);
    transform: translateY(-5px);
}

.skills-category {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.skills-category::before {
    content: '';
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.skill-item {
    margin-bottom: 1.8rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px dashed rgba(189, 234, 0, 0.18);
}

.skill-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.7rem;
}

.skill-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.skill-level {
    border: 1px solid rgba(189, 234, 0, 0.35);
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.level-advanced {
    color: #0a0f05;
    background: var(--secondary);
    border-color: transparent;
}

.level-strong {
    color: var(--secondary);
    background: rgba(189, 234, 0, 0.12);
}

.level-working {
    color: #f8fafc;
    background: rgba(148, 163, 184, 0.16);
    border-color: rgba(148, 163, 184, 0.35);
}

.skill-context {
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.skill-tags span {
    font-size: 0.78rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(189, 234, 0, 0.22);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    letter-spacing: 0.01em;
}

.skill-item:hover .skill-tags span {
    border-color: rgba(189, 234, 0, 0.38);
}

/* ===== CODING PROGRESS SECTION ===== */
.coding-progress {
    background: linear-gradient(135deg, rgba(10, 15, 5, 0.95), rgba(18, 24, 13, 0.9));
    padding-top: calc(var(--nav-height) + 1rem);
}

.coding-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1.4rem;
}

.coding-links a {
    text-decoration: none;
    color: var(--primary);
    background: rgba(189, 234, 0, 0.1);
    border: 1px solid rgba(189, 234, 0, 0.28);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.coding-links a:hover {
    color: #0a0f05;
    background: var(--secondary);
    border-color: transparent;
}

.coding-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.coding-card {
    background: rgba(189, 234, 0, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.2rem;
}

.coding-card h3 {
    margin-bottom: 0.9rem;
    font-size: 1.12rem;
    color: var(--secondary);
}

.coding-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 1px solid rgba(189, 234, 0, 0.22);
    background: #0a0f05;
}

.coding-card-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.coding-block {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(189, 234, 0, 0.18);
    border-radius: 12px;
    padding: 0.8rem;
}

.coding-block h4 {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.coding-card-wide {
    grid-column: 1 / -1;
}

/* ===== PROJECTS SECTION ===== */
.projects {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.76), rgba(18, 24, 13, 0.82));
    padding-top: calc(var(--nav-height) + 1rem);
}

.projects h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(189, 234, 0, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(189, 234, 0, 0.14), transparent);
    transition: left var(--transition-slow);
    pointer-events: none;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    background: rgba(189, 234, 0, 0.1);
    border-color: rgba(189, 234, 0, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(189, 234, 0, 0.2);
}

.project-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

.project-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

.project-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--dark);
    padding-top: calc(var(--nav-height) + 1rem);
    /* optional grid pattern can be added if desired
       background-image: url('assets/images/grid.png');
       background-size: cover;
    */
}

/* layout grid for form + info */
.contact-grid,
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 4rem;
    align-items: start;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.contact-form-container {
    background: rgba(0,0,0,0.6);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.7);
}

.contact-label {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--green-accent);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
}
.contact-header h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--green-accent);
}

.contact-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.contact-form-container .section-title {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.contact-form-container .section-subtitle {
    margin-bottom: 2.5rem;
}

/* ===== CONTACT FORM STYLES ===== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-row.full {
    grid-template-columns: 1fr;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.required {
    color: var(--warm);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--green-accent);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(203, 213, 225, 0.5);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--green-accent);
    box-shadow: 0 0 0 4px rgba(189, 234, 0, 0.3);
}

.form-group select option {
    color: #0a0f05;
    background: #f8fafc;
}

.form-group select option:checked {
    color: #0a0f05;
    background: #d2e800;
}

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

.btn-submit {
    align-self: flex-start;
    margin-top: 1rem;
}

.contact-btn {
    width: 100%;
    margin-top: 1rem;
    background: var(--green-accent);
    color: var(--dark);
    box-shadow: 0 4px 20px rgba(189,234,0,0.5);
    text-align: center;
    padding: 16px 0;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
}

.contact-btn:hover {
    background: var(--secondary);
    box-shadow: 0 6px 30px rgba(189,234,0,0.7);
}/* ===== CONTACT SIDEBAR ===== */
.contact-sidebar,
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-block,
.info-block {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(189,234,0,0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all var(--transition-normal);
}

.contact-info-block:hover {
    background: rgba(189, 234, 0, 0.1);
    border-color: rgba(189, 234, 0, 0.3);
}

.contact-info-block h3 {
    color: var(--green-accent);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-block h4 {
    color: var(--green-accent);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info-block h3 i {
    font-size: 1.2rem;
}

.contact-info-block p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.contact-detail {
    color: var(--text-primary);
    font-weight: 500;
}

.contact-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.8rem !important;
}

.contact-socials {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.contact-socials a {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(189,234,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all var(--transition-normal);
}

.contact-socials a:hover {
    background: var(--green-accent);
    border-color: var(--green-accent);
    color: var(--dark);
    transform: translateY(-3px);
}

.contact-socials a:focus,
.contact-socials a:focus-visible {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}


.contact-icons a {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(189, 234, 0, 0.1);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.5rem;
    transition: all var(--transition-normal);
}

.contact-icons a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(189, 234, 0, 0.2);
}

.contact-icons a:focus,
.contact-icons a:focus-visible {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(189, 234, 0, 0.2);
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* ===== FOOTER ===== */
.footer-gradient {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.84), rgba(18, 24, 13, 0.82));
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2.3rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-container h3,
.footer-container h4 {
    color: var(--primary);
    margin-bottom: 1.1rem;
    font-size: 1.2rem;
}

.footer-container p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-links ul,
.footer-social {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.55rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

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

.social-icons {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.social-icons a {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    background: rgba(189, 234, 0, 0.1);
    border: 1px solid rgba(189, 234, 0, 0.35);
    font-size: 1.35rem;
    transition: transform var(--transition-normal), background var(--transition-normal), color var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.social-icons a:hover,
.social-icons a:focus-visible {
    color: var(--dark);
    background: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(189, 234, 0, 0.28);
    outline: none;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 3rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-top-btn {
    position: fixed;
    right: clamp(1rem, 2vw, 1.6rem);
    bottom: clamp(1rem, 2.2vw, 1.6rem);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(189, 234, 0, 0.45);
    background: rgba(10, 15, 5, 0.86);
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
    z-index: 1300;
    opacity: 0;
    transform: translateY(14px) scale(0.92);
    pointer-events: none;
    transition: opacity var(--transition-normal), transform var(--transition-normal), background var(--transition-normal), color var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.scroll-top-btn.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.scroll-top-btn:hover,
.scroll-top-btn:focus-visible {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--dark);
    box-shadow: 0 14px 32px rgba(189, 234, 0, 0.28);
    transform: translateY(-2px) scale(1.02);
    outline: none;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes textFloatIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(8px);
        letter-spacing: 0.02em;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
        letter-spacing: normal;
    }
}

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

@keyframes textGlowPulse {
    0%, 100% {
        text-shadow: 0 0 0 rgba(189, 234, 0, 0);
    }
    50% {
        text-shadow: 0 0 18px rgba(189, 234, 0, 0.26);
    }
}

/* ===== TEXT DISPLAY ANIMATIONS ===== */
.hero-content h1 {
    animation: textFloatIn 760ms cubic-bezier(0.22, 1, 0.36, 1) 70ms both;
}

.typing-text {
    animation: textFloatIn 780ms cubic-bezier(0.22, 1, 0.36, 1) 180ms both,
               textGlowPulse 3.4s ease-in-out 1.1s infinite;
}

.hero-content p {
    animation: textFloatIn 800ms cubic-bezier(0.22, 1, 0.36, 1) 320ms both;
}

.section-reveal .section-title,
.section-reveal .section-subtitle {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(6px);
}

/* Keep Education heading fixed/visible during timeline scroll */
#education.section-reveal .section-title {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
}

.section-reveal.section-in .section-title {
    animation: textFloatIn 760ms cubic-bezier(0.22, 1, 0.36, 1) 70ms both;
}

.section-reveal.section-in .section-subtitle {
    animation: textFloatIn 820ms cubic-bezier(0.22, 1, 0.36, 1) 170ms both;
}

.reveal-ready.reveal-in h3,
.reveal-ready.reveal-in p,
.reveal-ready.reveal-in .skill-context,
.reveal-ready.reveal-in .skill-tags span {
    animation: textSoftRise 540ms ease-out both;
}

.reveal-ready.reveal-in p {
    animation-delay: 50ms;
}

/* ===== SCROLL REVEAL ===== */
.section-reveal {
    opacity: 0;
    transform: translate3d(0, 52px, 0) scale(0.985);
    filter: blur(8px);
    transition:
        opacity 780ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 860ms cubic-bezier(0.16, 1, 0.3, 1),
        filter 640ms ease-out;
    will-change: opacity, transform, filter;
}

.section-reveal.section-in {
    opacity: 1;
    transform: none;
    filter: none;
}

.reveal-ready {
    --reveal-x: 0px;
    --reveal-y: 36px;
    --reveal-scale: 0.96;
    --reveal-delay: 0ms;
    --reveal-duration: 760ms;
    transition:
        opacity var(--reveal-duration) cubic-bezier(0.22, 1, 0.36, 1),
        transform var(--reveal-duration) cubic-bezier(0.16, 1, 0.3, 1),
        filter calc(var(--reveal-duration) - 120ms) ease-out;
    transition-delay: var(--reveal-delay);
    will-change: opacity, transform, filter;
}

.reveal-ready[data-reveal="up"] {
    --reveal-x: 0px;
    --reveal-y: 40px;
    --reveal-scale: 0.96;
}

.reveal-ready[data-reveal="left"] {
    --reveal-x: -48px;
    --reveal-y: 8px;
    --reveal-scale: 0.97;
}

.reveal-ready[data-reveal="right"] {
    --reveal-x: 48px;
    --reveal-y: 8px;
    --reveal-scale: 0.97;
}

.reveal-ready[data-reveal="zoom"] {
    --reveal-x: 0px;
    --reveal-y: 18px;
    --reveal-scale: 0.9;
}

.reveal-ready:not(.reveal-in) {
    opacity: 0;
    transform: translate3d(var(--reveal-x), var(--reveal-y), 0) scale(var(--reveal-scale));
    filter: blur(10px);
}

.reveal-ready.reveal-in {
    opacity: 1;
    filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
    .hero-content h1,
    .typing-text,
    .hero-content p,
    .section-reveal.section-in .section-title,
    .section-reveal.section-in .section-subtitle,
    .reveal-ready.reveal-in h3,
    .reveal-ready.reveal-in p,
    .reveal-ready.reveal-in .skill-context,
    .reveal-ready.reveal-in .skill-tags span {
        animation: none !important;
    }

    .section-reveal .section-title,
    .section-reveal .section-subtitle {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .section-reveal,
    .section-reveal.section-in {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
        will-change: auto;
    }

    .reveal-ready {
        transition: none;
        will-change: auto;
    }

    .reveal-ready:not(.reveal-in) {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

/* ===== MOBILE RESPONSIVE (768px and below) ===== */
@media (max-width: 768px) {
    .sidebar-toggle-btn {
        display: none;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: var(--nav-height);
        width: 100%;
        height: calc(100vh - var(--nav-height));
        flex-direction: column;
        border-right: none;
        border-top: 1px solid var(--border-color);
        padding: 1.5rem 0;
        transform: translateY(-100%);
        transition: transform var(--transition-normal);
        z-index: 800;
        overflow-y: auto;
    }

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

    .sidebar-content {
        flex-direction: column;
        padding: 0 1.5rem;
    }

    .sidebar-profile {
        display: none;
    }

    .sidebar-nav {
        flex-direction: column;
        margin: 0;
        gap: 0.5rem;
    }

    .nav-item {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }

    .nav-item span {
        display: inline;
    }

    .sidebar-social {
        margin: 1.5rem 0 0;
        padding: 1.5rem 0 0;
        border-top: 1px solid var(--border-color);
    }

    .header {
        display: block;
    }

    .menu-toggle {
        display: block;
    }

    main {
        margin-left: 0;
        margin-top: var(--nav-height);
    }

    section {
        min-height: calc(100svh - var(--nav-height));
        padding: 2.5rem 1.25rem;
        scroll-margin-top: var(--nav-height);
    }

    .section-title {
        font-size: 2rem;
    }

    .hero {
        min-height: calc(100svh - var(--nav-height));
        padding: 3rem 1.25rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .typing-text {
        font-size: 1.3rem;
    }

    .hero-image img {
        max-width: 280px;
    }

    .education-wrapper {
        padding-left: 2.3rem;
        gap: 1.2rem;
    }

    .education-wrapper::before {
        left: 0.72rem;
    }

    .education-card {
        padding: 1.25rem 1.1rem;
    }

    .education-card::before {
        left: -1.98rem;
        top: 1.3rem;
        width: 12px;
        height: 12px;
    }

    .skills-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .about-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-photo-card {
        max-width: 420px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
    }

    .footer-bottom {
        padding: 1.5rem;
    }
}

/* ===== SMALL MOBILE (480px and below) ===== */
@media (max-width: 480px) {
    :root {
        --nav-height: 56px;
    }

    section {
        min-height: calc(100svh - var(--nav-height));
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .typing-text {
        font-size: 1.1rem;
    }

    .hero-content p {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .hero-image img {
        max-width: 220px;
    }

    .about-photo-card {
        max-width: 100%;
        border-radius: 18px;
        padding: 0.85rem;
    }

    .about-chip {
        font-size: 0.8rem;
    }

    .btn {
        padding: 11px 24px;
        font-size: 0.9rem;
    }

    .skill-item {
        margin-bottom: 1.5rem;
    }

    .contact-icons a {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* ===== EXTRA SMALL (360px and below) ===== */
@media (max-width: 360px) {
    .section-title {
        font-size: 1.5rem;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .typing-text {
        font-size: 0.95rem;
    }

    .hero-image img {
        max-width: 180px;
    }
}

/* ===== COMPACT VIEW TUNING ===== */
@media (min-width: 769px) {
    body {
        font-size: 14px;
    }

    section {
        min-height: calc(100svh - 0.5rem);
        padding: clamp(1.8rem, 4.5vh, 3rem) clamp(1.1rem, 2.8vw, 2.4rem);
    }

    .hero {
        min-height: calc(100svh - 0.5rem);
        padding: clamp(2rem, 5vh, 3.25rem) clamp(1.1rem, 2.8vw, 2.4rem);
    }

    .hero-container {
        gap: clamp(1.5rem, 2.5vw, 2.5rem);
    }

    .hero-content h1 {
        font-size: clamp(2rem, 4.1vw, 3.1rem);
        margin-bottom: 1rem;
    }

    .typing-text {
        font-size: clamp(1.15rem, 2vw, 1.45rem);
        min-height: 2.5rem;
        height: auto;
        margin-bottom: 1.1rem;
    }

    .hero-content p {
        font-size: 0.98rem;
        line-height: 1.65;
        margin-bottom: 1.3rem;
        max-width: 100%;
    }

    .hero-image img {
        max-width: clamp(220px, 24vw, 300px);
    }

    .section-title,
    .about h2,
    .projects h2,
    .contact h2 {
        font-size: clamp(1.7rem, 3vw, 2.35rem);
        margin-bottom: 0.75rem;
    }

    .section-subtitle,
    .contact > p {
        font-size: 0.96rem;
        margin-bottom: 1.6rem;
    }

    .education-card,
    .skills-column,
    .project-card,
    .about-photo-card,
    .contact-card,
    .contact-form-card {
        padding: clamp(1rem, 2vw, 1.5rem);
    }

    .education-wrapper,
    .skills-container,
    .project-grid,
    .contact-wrapper {
        gap: clamp(0.9rem, 1.8vw, 1.4rem);
    }

    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    }

    .btn {
        padding: 11px 22px;
        font-size: 0.92rem;
    }
}

/* ===== DESKTOP VIEWPORT SCALE (100% browser zoom ~= 90% look) ===== */
@media (min-width: 1024px) {
    html {
        zoom: 0.9;
    }

    /* Compensate for zoom shrink so first section still fills one viewport */
    .hero {
        min-height: calc(111.12svh - 0.5rem);
    }
}

/* Fallback for browsers without zoom support */
@supports not (zoom: 1) {
    @media (min-width: 1024px) {
        html {
            font-size: 90%;
        }
    }
}

/* ===== TOP NAV OVERRIDE ===== */
:root {
    --nav-height: 74px;
}

.sidebar,
.sidebar-toggle-btn {
    display: none !important;
}

main {
    margin-left: 0 !important;
    padding-top: var(--nav-height);
}

.header {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    border-bottom: none;
    background: transparent;
    backdrop-filter: none;
    z-index: 1200;
    padding: 0.45rem 0.8rem 0;
}

.navbar {
    max-width: 1240px;
    margin: 0 auto;
    background: rgb(12, 18, 8);
    border: 1px solid rgba(189, 234, 0, 0.24);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
    border-radius: 999px;
    padding: 0.42rem 0.72rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    margin-left: 0.1rem;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    color: #0a0f05;
    background: linear-gradient(145deg, var(--secondary), var(--primary));
}

.logo-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-links {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.24rem;
}

.nav-links .nav-item {
    padding: 0.42rem 0.68rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid transparent;
    transition: all var(--transition-normal);
}

.nav-links .nav-item::before {
    display: none;
}

.nav-links .nav-item:hover,
.nav-links .nav-item.active {
    color: var(--text-primary);
    background: rgba(189, 234, 0, 0.12);
    border-color: rgba(189, 234, 0, 0.32);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

@media (min-width: 981px) {
    .header {
        display: flex !important;
        justify-content: center;
    }

    .navbar {
        width: fit-content;
        max-width: calc(100vw - 1.6rem);
        display: grid;
        grid-template-columns: auto auto;
        gap: 0.5rem;
    }

    .nav-links {
        flex: none;
        justify-content: flex-start;
        gap: 0.16rem;
    }

    .nav-actions {
        margin-left: 0;
        justify-content: flex-end;
    }
}

.nav-cta {
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.84rem;
}

.menu-toggle {
    width: 36px;
    height: 36px;
    display: none;
    border-radius: 50%;
    border: 1px solid rgba(189, 234, 0, 0.26);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

section {
    scroll-margin-top: calc(var(--nav-height) + 0.5rem);
}

.hero {
    min-height: calc(112svh - var(--nav-height));
}

@media (max-width: 980px) {
    :root {
        --nav-height: 66px;
    }

    .header {
        padding-top: 0.35rem;
    }

    .navbar {
        border-radius: 18px;
        padding: 0.42rem 0.62rem;
    }

    .logo-text {
        font-size: 0.94rem;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-cta {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: calc(var(--nav-height) + 0.35rem);
        left: 0.9rem;
        right: 0.9rem;
        transform: none;
        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        background: rgba(12, 18, 8, 0.95);
        border: 1px solid rgba(189, 234, 0, 0.24);
        border-radius: 16px;
        padding: 0.55rem;
        box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35);
        z-index: 1250;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links .nav-item {
        text-align: left;
        padding: 0.76rem 0.9rem;
        border-radius: 12px;
    }

    main {
        padding-top: var(--nav-height);
    }

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

    .coding-card-wide {
        grid-column: auto;
    }
}

/* ===== ABOUT + EDUCATION LIGHT ZOOM-OUT ===== */
@media (min-width: 981px) {
    .about-layout {
        max-width: 1120px;
        grid-template-columns: minmax(260px, 420px) 1fr;
        gap: 2.2rem;
    }

    .about-photo-card {
        max-width: 420px;
        border-radius: 20px;
        padding: 0.85rem;
        gap: 0.8rem;
    }

    .about h2 {
        font-size: 2.25rem;
        margin-bottom: 1.2rem;
    }

    .about-content h3 {
        font-size: 1.7rem;
        margin-bottom: 0.8rem;
    }

    .about p {
        font-size: 1rem;
        line-height: 1.8;
    }

    .about-stats {
        gap: 1.2rem;
        margin: 1.4rem 0 1.1rem;
    }

    .stat-card {
        padding: 1.1rem 1.3rem;
        flex: 1 1 160px;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.88rem;
    }

    .about .contact-line {
        font-size: 0.93rem;
        margin-bottom: 0.72rem;
    }

    .education-wrapper {
        max-width: 900px;
        padding-left: 2.5rem;
        gap: 1.1rem;
    }

    .education-wrapper::before {
        left: 0.75rem;
    }

    .education-card {
        padding: 1.2rem 1.35rem;
        gap: 0.6rem;
    }

    .education-card::before {
        left: -2.12rem;
        top: 1.2rem;
        width: 12px;
        height: 12px;
        box-shadow: 0 0 0 4px rgba(189, 234, 0, 0.18);
    }

    .education-left h3 {
        font-size: 1.15rem;
        margin-bottom: 0.35rem;
    }

    .education-left p {
        font-size: 0.93rem;
    }

    .edu-year {
        padding: 0.38rem 0.82rem;
        font-size: 0.86rem;
    }
}

/* ===== SKILLS + PROJECTS + CONTACT LIGHT ZOOM-OUT ===== */
@media (min-width: 981px) {
    .coding-grid {
        gap: 1.2rem;
    }

    .coding-card {
        padding: 1rem;
    }

    .coding-card h3 {
        font-size: 1.02rem;
        margin-bottom: 0.7rem;
    }

    .skills-container {
        gap: 2rem;
    }

    .skills-column {
        padding: 1.6rem;
    }

    .skills-category {
        font-size: 1.12rem;
        margin-bottom: 1.2rem;
    }

    .skill-item {
        margin-bottom: 1.25rem;
        padding-bottom: 1rem;
    }

    .skill-name {
        font-size: 1rem;
    }

    .skill-context {
        font-size: 0.9rem;
        line-height: 1.55;
    }

    .skill-tags span {
        font-size: 0.74rem;
        padding: 0.18rem 0.58rem;
    }

    .projects h2 {
        margin-bottom: 1.7rem;
    }

    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1.25rem;
    }

    .project-card {
        padding: 1.4rem;
        min-height: 285px;
        gap: 0.9rem;
    }

    .project-card h3 {
        font-size: 1.32rem;
    }

    .project-card p {
        font-size: 0.96rem;
        line-height: 1.65;
    }

    .contact-wrapper {
        grid-template-columns: minmax(0, 1fr) 330px;
        gap: 1.8rem;
    }

    .contact-form-container {
        padding: 1.8rem;
    }

    .contact-form {
        gap: 1.1rem;
    }

    .form-row {
        gap: 1rem;
    }

    .form-group label {
        margin-bottom: 0.5rem;
        font-size: 0.94rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 13px;
        font-size: 0.95rem;
    }

    .contact-info-block {
        padding: 1.2rem;
    }

    .contact-info-block p {
        font-size: 0.9rem;
        line-height: 1.65;
    }
}
