/* =========================================
   VARIABLES & DESIGN TOKENS
========================================= */
:root {
    --bg-primary: #030914;
    --bg-surface: #071224;
    --bg-card: rgba(13, 28, 45, 0.65);
    --bg-card-hover: rgba(18, 38, 62, 0.85);
    --border-color: #172b40;
    --border-hover: #1687ff;

    --primary: #1687ff;
    --primary-light: #44a0ff;
    --primary-glow: rgba(22, 135, 255, 0.25);

    --text-main: #ffffff;
    --text-muted: #9aaabd;
    --text-dim: #63758b;

    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --nav-height: 86px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: #030914;
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

/* Global homepage background applied across all pages/sections */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background:
        radial-gradient(circle at 85% 35%, rgba(22, 135, 255, 0.16), transparent 45%),
        radial-gradient(circle at 15% 70%, rgba(0, 102, 255, 0.12), transparent 45%),
        linear-gradient(110deg, #030a13 0%, #020913 60%, #04152b 100%);
    z-index: -2;
    pointer-events: none;
}

/* Ambient glow that stays fixed behind all sections */
body::after {
    content: "";
    position: fixed;
    width: 600px;
    height: 600px;
    right: -150px;
    top: 60px;
    background: rgba(0, 102, 255, 0.08);
    filter: blur(120px);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

body.menu-open {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: min(1280px, calc(100% - 48px));
    margin: auto;
}

/* In-page Anchor Offset */
section[id],
.hero {
    scroll-margin-top: calc(var(--nav-height) + 16px);
}

/* Common Section Header */
.section-header {
    margin-bottom: 48px;
}

.section-label {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    font-family: var(--font-mono);
    display: inline-block;
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.2;
}

.section-title span {
    color: var(--primary);
}

/* =========================================
   NAVBAR
========================================= */
.navbar {
    height: var(--nav-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(3, 9, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: height 0.3s ease, background 0.3s ease;
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1.5px;
    display: inline-flex;
    align-items: center;
    z-index: 1002;
}

.logo span {
    color: var(--primary);
}

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

.nav-links a {
    position: relative;
    color: #d6dfed;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

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

.nav-links a.active::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 2px;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    background: var(--primary);
    border-radius: 2px;
}

.mobile-cv-btn {
    display: none;
}

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

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 22px;
    border: 1px solid var(--primary);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.download-btn:hover {
    background: var(--primary);
    box-shadow: 0 0 25px var(--primary-glow);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    background: rgba(22, 135, 255, 0.08);
    border: 1px solid rgba(22, 135, 255, 0.25);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1002;
}

.menu-toggle:hover {
    background: rgba(22, 135, 255, 0.2);
    border-color: var(--primary);
}

.menu-toggle .close-icon {
    display: none;
}

.menu-toggle.active .hamburger-icon {
    display: none;
}

.menu-toggle.active .close-icon {
    display: block;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 7, 16, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   HERO
========================================= */
.hero {
    min-height: 100vh;
    padding: calc(var(--nav-height) + 40px) 0 60px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(100px, 20vw, 130px);
    position: relative;
    width: 100%;
}

.hero-content {
    flex: 1 1 540px;
    max-width: 700px;
    z-index: 5;
}

.hello {
    color: #b7c7db;
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 500;
}

.hero-title {
    font-size: clamp(38px, 5.5vw, 68px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 18px;
    cursor: default;
    user-select: none;
    transition: text-shadow 0.3s ease;
}

.hero-title:hover {
    text-shadow: 0 0 25px rgba(22, 135, 255, 0.4), 0 0 50px rgba(22, 135, 255, 0.2);
}

.hero-title span {
    color: var(--primary);
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.hero-role {
    color: #c2cede;
    font-size: clamp(15px, 2vw, 18px);
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.4;
}

.hero-role span {
    margin: 0 8px;
    color: var(--text-dim);
}

.hero-description {
    max-width: 520px;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 15.5px;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.primary-btn,
.secondary-btn {
    height: 48px;
    padding: 0 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
    cursor: pointer;
    white-space: nowrap;
}

.primary-btn {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 25px rgba(22, 135, 255, 0.25);
    border: none;
}

.primary-btn:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(22, 135, 255, 0.4);
}

.secondary-btn {
    border: 1px solid #1f3b5c;
    background: transparent;
    color: #fff;
}

.secondary-btn:hover {
    background: rgba(22, 135, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.socials {
    display: flex;
    align-items: center;
    gap: 20px;
}

.socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    transition: 0.3s ease;
}

.socials a:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(22, 135, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(22, 135, 255, 0.2);
}

.hero-image {
    flex: 0 0 auto;
    width: min(100%, 460px);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    cursor: pointer;
}

.hero-image-backdrop {
    position: absolute;
    width: 85%;
    height: 85%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 135, 255, 0.22) 0%, rgba(0, 102, 255, 0.04) 60%, transparent 75%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image:hover .hero-image-backdrop,
.hero-image.touch-active .hero-image-backdrop {
    background: radial-gradient(circle, rgba(22, 135, 255, 0.45) 0%, rgba(0, 102, 255, 0.12) 60%, transparent 80%);
    filter: blur(50px);
    transform: scale(1.12);
}

.hero-image-wrapper {
    position: relative;
    display: grid;
    grid-template-areas: "stack";
    width: 100%;
    max-width: 460px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(22, 135, 255, 0.15);
    border: 1px solid rgba(22, 135, 255, 0.25);
    animation: floatImage 6s ease-in-out infinite;
    z-index: 2;
    transition: box-shadow 0.5s ease, border-color 0.5s ease;
}

.hero-image:hover .hero-image-wrapper,
.hero-image.touch-active .hero-image-wrapper {
    border-color: rgba(22, 135, 255, 0.65);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 45px rgba(22, 135, 255, 0.4);
}

/* Cyber scanline light sweep on hover */
.hero-image-wrapper::after {
    content: "";
    position: absolute;
    inset: -100% 0 auto 0;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(22, 135, 255, 0.18) 50%, transparent 100%);
    opacity: 0;
    pointer-events: none;
    z-index: 4;
    transition: opacity 0.4s ease;
}

.hero-image:hover .hero-image-wrapper::after,
.hero-image.touch-active .hero-image-wrapper::after {
    opacity: 1;
    animation: scanlineSweep 2.2s ease-in-out infinite;
}

@keyframes scanlineSweep {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(200%);
    }
}

.hero-image-wrapper img {
    grid-area: stack;
    width: 100%;
    height: 100%;
    max-height: 540px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image-wrapper .img-primary {
    position: relative;
    z-index: 2;
    opacity: 1;
    transform: scale(1);
    filter: brightness(1);
}

.hero-image:hover .img-primary,
.hero-image.touch-active .img-primary {
    opacity: 0;
    transform: scale(0.96) translateY(-4px);
    filter: brightness(1.2) blur(2px);
    pointer-events: none;
}

.hero-image-wrapper .img-hover {
    position: relative;
    z-index: 3;
    opacity: 0;
    transform: scale(1.05);
    filter: brightness(0.9) blur(3px);
    pointer-events: none;
}

.hero-image:hover .img-hover,
.hero-image.touch-active .img-hover {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1) blur(0);
    pointer-events: auto;
}

@keyframes floatImage {

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

    50% {
        transform: translateY(-8px);
    }
}

.signature {
    position: absolute;
    right: 20px;
    top: 40px;
    color: var(--primary-light);
    font-family: 'Brush Script MT', cursive, sans-serif;
    font-size: clamp(20px, 2.5vw, 26px);
    line-height: 1.15;
    transform: rotate(-8deg);
    z-index: 4;
    background: rgba(3, 9, 20, 0.7);
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px dashed rgba(22, 135, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.signature::after {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    margin-top: 6px;
    margin-left: 10px;
    background: var(--primary);
    transform: rotate(-10deg);
}

/* =========================================
   SERVICES / WHAT I DO
========================================= */
.services {
    position: relative;
    padding: 80px 0 100px;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.services-container {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 48px;
    align-items: start;
}

.section-description {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-top: 16px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.service-card {
    padding: 28px 24px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-card);
    transition: 0.35s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 16px 40px rgba(0, 80, 180, 0.15);
}

.service-icon {
    color: var(--primary);
    margin-bottom: 18px;
}

.service-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.6;
}

.scroll-down {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-dim);
    font-size: 10px;
    letter-spacing: 3px;
    font-family: var(--font-mono);
}

.scroll-line {
    width: 2px;
    height: 20px;
    background: var(--primary);
    margin: 0 auto 8px;
    animation: scrollAnimation 1.7s infinite;
}

@keyframes scrollAnimation {
    0% {
        transform: scaleY(0.4);
        transform-origin: top;
        opacity: 0.4;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }

    100% {
        transform: scaleY(0.4);
        transform-origin: bottom;
        opacity: 0.4;
    }
}

/* =========================================
   ABOUT & EDUCATION
========================================= */
.about-section {
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 32px;
}

.about-bio-card,
.education-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 36px;
}

.bio-icon {
    color: var(--primary);
    margin-bottom: 16px;
}

.about-bio-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

.about-bio-card p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 16px;
    line-height: 1.7;
}

.quick-facts {
    margin-top: 28px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13.5px;
}

.fact-title {
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.fact-val {
    color: #e2e8f0;
    font-weight: 500;
}

.fact-val.highlight {
    color: #10B981;
}

.edu-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    margin-bottom: 28px;
    color: #ffffff;
}

.edu-timeline {
    position: relative;
    padding-left: 24px;
    border-left: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.edu-item {
    position: relative;
}

.edu-dot {
    position: absolute;
    left: -31px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--bg-primary);
}

.edu-year {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}

.edu-item h4 {
    font-size: 16px;
    margin: 4px 0;
}

.edu-inst {
    font-size: 13.5px;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.edu-detail {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =========================================
   EXPERIENCE SECTION
========================================= */
.experience-section {
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

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

.exp-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 30px 24px;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
}

.exp-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.exp-card.highlight-card {
    border-color: rgba(22, 135, 255, 0.4);
    background: linear-gradient(160deg, rgba(22, 135, 255, 0.08), rgba(7, 18, 36, 0.8));
}

.exp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.exp-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 4px 10px;
    background: rgba(22, 135, 255, 0.15);
    color: var(--primary);
    border-radius: 20px;
    border: 1px solid rgba(22, 135, 255, 0.3);
}

.exp-date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
}

.exp-card h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.exp-company {
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 500;
}

.exp-bullets {
    margin-bottom: 24px;
    flex-grow: 1;
}

.exp-bullets li {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
    position: relative;
    padding-left: 18px;
    line-height: 1.55;
}

.exp-bullets li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: auto;
}

.exp-tags span {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 8px;
    border-radius: 4px;
}

/* =========================================
   PROJECTS SECTION
========================================= */
.projects-section {
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

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

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: 0.35s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
}

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.p-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--primary);
    font-family: var(--font-mono);
    font-weight: 500;
}

.p-num {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-dim);
}

.project-card h3 {
    font-size: 19px;
    margin-bottom: 4px;
}

.p-sub {
    font-size: 12.5px;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.p-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.p-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 24px;
}

.p-tech span {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 4px 9px;
    border-radius: 4px;
    background: rgba(22, 135, 255, 0.1);
    color: var(--primary-light);
}

.p-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.p-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.25s ease;
    cursor: pointer;
}

.p-btn.primary {
    background: rgba(22, 135, 255, 0.15);
    color: var(--primary);
    border: 1px solid rgba(22, 135, 255, 0.3);
}

.p-btn.primary:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

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

.p-btn.ghost:hover {
    border-color: #fff;
    color: #fff;
}

/* =========================================
   SKILLS & CERTIFICATIONS
========================================= */
.skills-section {
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.skills-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.skill-category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 28px;
    transition: 0.3s ease;
}

.skill-category-card:hover {
    border-color: rgba(22, 135, 255, 0.4);
}

.skill-category-card.wide-cat {
    grid-column: span 2;
}

.cat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    margin-bottom: 20px;
}

.cat-header h3 {
    font-size: 17px;
    color: #fff;
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-pills li {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: #cbd5e1;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: 0.25s ease;
}

.skill-pills li:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(22, 135, 255, 0.06);
    transform: translateY(-2px);
}

/* Certifications */
.certifications-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 36px;
}

.cert-block-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    margin-bottom: 28px;
    color: #fff;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(3, 9, 20, 0.4);
    transition: 0.3s ease;
}

.cert-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.cert-item.cert-full {
    grid-column: span 2;
}

.cert-icon {
    color: var(--primary);
    flex-shrink: 0;
}

.cert-content h4 {
    font-size: 14.5px;
    margin-bottom: 3px;
    color: #fff;
}

.cert-content p {
    font-size: 12.5px;
    color: var(--text-dim);
}

/* =========================================
   CONTACT
========================================= */
.contact-section {
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: start;
}

.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 36px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 13px;
    font-weight: 500;
    color: #cbd5e1;
    font-family: var(--font-mono);
}

.input-group input,
.input-group textarea {
    background: rgba(3, 9, 20, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 16px;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 14px;
    transition: 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(22, 135, 255, 0.2);
}

.submit-btn {
    width: fit-content;
    padding: 0 32px;
}

.form-status {
    font-family: var(--font-mono);
    font-size: 13px;
    min-height: 20px;
}

.form-status.success {
    color: #10B981;
}

.form-status.error {
    color: #EF4444;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px 20px;
    transition: 0.3s ease;
}

.info-card:hover {
    border-color: var(--primary);
    transform: translateX(4px);
    background: var(--bg-card-hover);
}

.info-icon {
    color: var(--primary);
    flex-shrink: 0;
}

.info-card h4 {
    font-size: 12px;
    color: var(--text-dim);
    font-family: var(--font-mono);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-card a,
.info-card p {
    font-size: 14.5px;
    color: #fff;
    font-weight: 500;
    word-break: break-all;
    transition: color 0.2s;
}

.info-card a:hover {
    color: var(--primary-light);
}

.status-box {
    background: linear-gradient(145deg, rgba(22, 135, 255, 0.08), rgba(7, 18, 36, 0.7));
    border: 1px solid rgba(22, 135, 255, 0.3);
    border-radius: 12px;
    padding: 22px;
    margin-top: 4px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: #10B981;
    font-weight: 600;
    margin-bottom: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 10px #10B981;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.status-box p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* =========================================
   FOOTER
========================================= */
.footer {
    padding: 36px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(2, 7, 16, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer p {
    font-size: 13.5px;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
    transition: 0.3s ease;
}

.footer-socials a:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(22, 135, 255, 0.1);
    transform: translateY(-2px);
}

/* =========================================
   RESPONSIVENESS / MEDIA QUERIES
========================================= */

/* Tablet Landscape & Laptops (<= 1024px) */
@media (max-width: 1024px) {
    :root {
        --nav-height: 76px;
    }

    .container {
        width: min(100% - 40px, 940px);
    }

    .services-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

    .hero-container {
        gap: 32px;
    }
}

/* Tablet Portrait & Small Laptops (<= 900px) */
@media (max-width: 900px) {
    :root {
        --nav-height: 72px;
    }

    .download-btn {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 82vw);
        height: 100vh;
        background: rgba(5, 14, 28, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-left: 1px solid rgba(22, 135, 255, 0.2);
        box-shadow: -15px 0 45px rgba(0, 0, 0, 0.7);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 96px 28px 40px;
        gap: 16px;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 16px;
        font-weight: 600;
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links a.active::after {
        left: 0;
        bottom: 0;
        transform: none;
        width: 40px;
    }

    .mobile-cv-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 14px 20px;
        margin-top: 14px;
        background: var(--primary);
        color: #fff;
        border-radius: 30px;
        font-weight: 600;
        font-size: 14px;
        border: none;
        box-shadow: 0 4px 18px var(--primary-glow);
    }

    .hero {
        min-height: auto;
        padding: calc(var(--nav-height) + 24px) 0 70px;
    }

    .hero-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 36px;
        text-align: left;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-image {
        width: 100%;
        max-width: 440px;
        margin: 10px auto 0;
    }

    .hero-image img,
    .hero-image-wrapper img {
        max-height: 480px;
    }

    .signature {
        right: 10px;
        top: 20px;
    }

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

    .scroll-down {
        display: none;
    }
}

/* Mobile & Phablet (<= 640px) */
@media (max-width: 640px) {
    :root {
        --nav-height: 68px;
    }

    .container {
        width: calc(100% - 32px);
    }

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

    .hero-title {
        font-size: clamp(34px, 9vw, 44px);
        letter-spacing: -1.5px;
    }

    .hero-role {
        font-size: 14px;
    }

    .hero-role span {
        margin: 0 4px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
    }

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

    .skills-categories-grid {
        grid-template-columns: 1fr;
    }

    .skill-category-card.wide-cat {
        grid-column: span 1;
    }

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

    .cert-item.cert-full {
        grid-column: span 1;
    }

    .about-bio-card,
    .education-card,
    .contact-form-wrapper,
    .certifications-block {
        padding: 24px 20px;
    }

    .fact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .submit-btn {
        width: 100%;
    }

    .footer-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Compact Mobile (<= 380px) */
@media (max-width: 380px) {
    .container {
        width: calc(100% - 24px);
    }

    .hero-title {
        font-size: 30px;
    }

    .logo {
        font-size: 24px;
    }

    .signature {
        font-size: 18px;
        right: 0;
        top: 10px;
        padding: 6px 12px;
    }
}