/* =========================================================
   ROOT
========================================================= */

:root {
    color-scheme: dark light;

    --bg: #08090b;
    --bg-soft: #0e1013;
    --surface: #111419;
    --surface-2: #15181e;

    --text: #f5f5f2;
    --text-soft: #a6a9b1;
    --text-muted: #70747e;

    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.15);

    --accent: #ff7a18;
    --accent-dark: #d85d00;

    --success: #72e6a1;

    --shadow:
        0 25px 80px rgba(0, 0, 0, 0.35);

    --radius: 22px;

    --container: 1180px;

    --font-body: "DM Sans", sans-serif;
    --font-display: "Space Grotesk", sans-serif;

    --transition:
        0.3s cubic-bezier(0.22, 1, 0.36, 1);
}


/* =========================================================
   LIGHT THEME
========================================================= */

html[data-theme="light"] {

    --bg: #f5f5f0;
    --bg-soft: #eeeeea;
    --surface: #ffffff;
    --surface-2: #f0f0eb;

    --text: #111214;
    --text-soft: #555860;
    --text-muted: #777b83;

    --border: rgba(0, 0, 0, 0.09);
    --border-strong: rgba(0, 0, 0, 0.15);

    --shadow:
        0 25px 80px rgba(0, 0, 0, 0.10);
}


/* =========================================================
   RESET
========================================================= */

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


html {
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;

    background: var(--bg);
    color: var(--text);

    font-family: var(--font-body);

    line-height: 1.6;

    overflow-x: hidden;

    transition:
        background var(--transition),
        color var(--transition);
}


body.no-scroll {
    overflow: hidden;
}


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


button,
input,
textarea {
    font: inherit;
}


button {
    border: 0;
    cursor: pointer;
}


img {
    display: block;
    max-width: 100%;
}


::selection {
    background: var(--accent);
    color: #08090b;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: min(
        calc(100% - 48px),
        var(--container)
    );

    margin-inline: auto;
}


/* =========================================================
   LOADER
========================================================= */

.loader {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: grid;
    place-items: center;

    background: var(--bg);

    transition:
        opacity 0.7s ease,
        visibility 0.7s ease;
}


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


.loader-content {
    width: 240px;

    text-align: center;
}


.loader-logo {
    width: 64px;
    height: 64px;

    margin: 0 auto 25px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border-strong);

    font-family: var(--font-display);

    font-size: 26px;
    font-weight: 700;

    color: var(--accent);
}


.loader-bar {
    height: 2px;

    overflow: hidden;

    background: var(--border);

    margin-bottom: 15px;
}


.loader-bar span {
    display: block;

    width: 0;
    height: 100%;

    background: var(--accent);

    animation:
        loaderProgress 1.5s ease forwards;
}


.loader p {
    color: var(--text-muted);

    font-size: 12px;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


@keyframes loaderProgress {

    to {
        width: 100%;
    }

}


/* =========================================================
   SCROLL PROGRESS
========================================================= */

.scroll-progress {
    position: fixed;

    top: 0;
    left: 0;

    z-index: 10000;

    width: 0;
    height: 3px;

    background: var(--accent);
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    position: fixed;

    top: 0;
    left: 0;

    z-index: 1000;

    width: 100%;

    border-bottom: 1px solid transparent;

    transition:
        background var(--transition),
        border var(--transition),
        backdrop-filter var(--transition);
}


.navbar.scrolled {
    background: rgba(8, 9, 11, 0.78);

    border-bottom-color: var(--border);

    backdrop-filter: blur(18px);
}


html[data-theme="light"] .navbar.scrolled {
    background: rgba(245, 245, 240, 0.82);
}


.nav-container {
    height: 84px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


.logo {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    flex-shrink: 0;
}


.logo-mark {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border-strong);

    color: var(--accent);

    font-family: var(--font-display);

    font-size: 16px;
    font-weight: 700;
}


.logo-text {
    font-family: var(--font-display);

    font-size: 19px;

    font-weight: 700;
}


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


.nav-links {
    display: flex;

    align-items: center;

    gap: 34px;
}


.nav-link {
    position: relative;

    color: var(--text-soft);

    font-size: 14px;
    font-weight: 500;

    transition: color var(--transition);
}


.nav-link:hover,
.nav-link.active {
    color: var(--text);
}


.nav-link::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: var(--accent);

    transition: width var(--transition);
}


.nav-link.active::after {
    width: 100%;
}


.nav-actions {
    display: flex;

    align-items: center;

    gap: 10px;
}


.theme-toggle,
.menu-toggle {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);

    border-radius: 50%;

    background: var(--surface);

    color: var(--text);

    transition:
        transform var(--transition),
        border var(--transition);
}


.theme-toggle:hover {
    transform: rotate(15deg);

    border-color: var(--accent);
}


.resume-nav,
.nav-cta {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    min-height: 42px;

    padding: 0 17px;

    border: 1px solid var(--border);

    border-radius: 999px;

    font-size: 13px;
    font-weight: 600;

    transition:
        transform var(--transition),
        border var(--transition),
        background var(--transition);
}


.resume-nav:hover {
    border-color: var(--accent);

    transform: translateY(-2px);
}


.nav-cta {
    border-color: var(--accent);

    background: var(--accent);

    color: #0b0c0d;
}


.nav-cta:hover {
    transform: translateY(-2px);

    background: #ff9a3d;
}


.menu-toggle {
    display: none;

    border-radius: 10px;
}


.menu-toggle span {
    width: 18px;
    height: 2px;

    background: currentColor;

    transition:
        transform var(--transition),
        opacity var(--transition);
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    min-height: 100vh;

    display: flex;

    align-items: center;

    overflow: hidden;

    padding:
        150px 0
        100px;
}


.hero-grid {
    position: absolute;

    inset: 0;

    opacity: 0.4;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.035) 1px,
            transparent 1px
        );

    background-size:
        55px 55px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent
        );
}


.hero-glow {
    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    background: var(--accent);

    filter: blur(150px);

    opacity: 0.06;

    pointer-events: none;
}


.hero-glow-one {
    top: 5%;
    left: -15%;
}


.hero-glow-two {
    right: -15%;
    bottom: 5%;
}


.hero-container {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        1fr
        0.9fr;

    align-items: center;

    gap: 70px;
}


.hero-content {
    max-width: 650px;
}


.availability {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 8px 13px;

    margin-bottom: 30px;

    border: 1px solid var(--border);

    border-radius: 999px;

    background: var(--surface);

    color: var(--text-soft);

    font-size: 12px;
}


.availability-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--success);

    box-shadow:
        0 0 0 5px
        rgba(114,230,161,0.09);

    animation: pulse 2s infinite;
}


@keyframes pulse {

    50% {
        box-shadow:
            0 0 0 9px
            rgba(114,230,161,0);
    }

}


.hero-small {
    margin-bottom: 8px;

    color: var(--text-muted);

    font-size: 13px;

    letter-spacing: 0.18em;

    font-weight: 600;
}


.hero h1 {
    font-family: var(--font-display);

    font-size: clamp(
        60px,
        8vw,
        108px
    );

    line-height: 0.94;

    letter-spacing: -0.06em;

    font-weight: 600;
}


.hero h1 span {
    display: block;

    color: var(--accent);
}


.hero-role {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 30px;

    color: var(--text-soft);

    font-size: 15px;
}


.role-line {
    width: 35px;
    height: 1px;

    background: var(--accent);
}


.role-dot {
    color: var(--accent);
}


.hero-description {
    max-width: 570px;

    margin-top: 25px;

    color: var(--text-soft);

    font-size: 17px;

    line-height: 1.8;
}


.hero-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 34px;
}


.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    min-height: 50px;

    padding:
        0 21px;

    border-radius: 999px;

    font-size: 14px;

    font-weight: 700;

    transition:
        transform var(--transition),
        background var(--transition),
        color var(--transition),
        border var(--transition);
}


.btn:hover {
    transform: translateY(-3px);
}


.btn-primary {
    background: var(--accent);

    color: #0a0b0d;
}


.btn-primary:hover {
    background: #ff9a3d;
}


.btn-secondary {
    border: 1px solid var(--border-strong);

    background: var(--surface);

    color: var(--text);
}


.btn-secondary:hover {
    border-color: var(--accent);
}


.hero-stats {
    display: flex;

    align-items: center;

    gap: 25px;

    margin-top: 55px;
}


.stat {
    display: flex;

    flex-direction: column;
}


.stat strong {
    font-family: var(--font-display);

    font-size: 25px;

    color: var(--text);
}


.stat span {
    color: var(--text-muted);

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}


.stat-divider {
    width: 1px;
    height: 32px;

    background: var(--border);
}


/* =========================================================
   HERO VISUAL
========================================================= */

.hero-visual {
    position: relative;

    min-height: 580px;

    display: grid;

    place-items: center;
}


.visual-orbit {
    position: absolute;

    border: 1px solid var(--border);

    border-radius: 50%;

    transform: rotate(-15deg);
}


.orbit-one {
    width: 510px;
    height: 300px;
}


.orbit-two {
    width: 400px;
    height: 500px;

    transform: rotate(45deg);
}


.code-card {
    position: relative;

    z-index: 3;

    width: min(100%, 480px);

    border: 1px solid var(--border-strong);

    border-radius: 18px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            var(--surface-2),
            var(--surface)
        );

    box-shadow: var(--shadow);

    transform:
        perspective(900px)
        rotateY(-5deg)
        rotateX(3deg);

    transition:
        transform 0.5s ease;
}


.code-card:hover {
    transform:
        perspective(900px)
        rotateY(0)
        rotateX(0)
        translateY(-5px);
}


.code-header {
    height: 50px;

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 0 18px;

    border-bottom: 1px solid var(--border);

    color: var(--text-muted);

    font-family: monospace;

    font-size: 12px;
}


.window-buttons {
    display: flex;

    gap: 6px;
}


.window-buttons span {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--border-strong);
}


.code-body {
    padding: 27px;

    font-family: "Courier New", monospace;

    font-size: 14px;

    line-height: 2;
}


.code-body p {
    color: var(--text-soft);
}


.indent {
    padding-left: 25px;
}


.code-purple {
    color: #c58cff;
}


.code-yellow {
    color: #ffd866;
}


.code-green {
    color: #72e6a1;
}


.code-orange {
    color: #ffae70;
}


.code-comment {
    margin-top: 15px;

    color: var(--text-muted) !important;
}


.floating-card {
    position: absolute;

    z-index: 4;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 13px 16px;

    border: 1px solid var(--border-strong);

    border-radius: 14px;

    background:
        rgba(17,20,25,0.9);

    box-shadow: var(--shadow);

    backdrop-filter: blur(15px);

    animation:
        floatCard 5s ease-in-out infinite;
}


html[data-theme="light"] .floating-card {
    background: rgba(255,255,255,0.88);
}


.floating-card > span {
    width: 34px;
    height: 34px;

    display: grid;

    place-items: center;

    border-radius: 10px;

    background: var(--surface-2);

    color: var(--accent);

    font-family: var(--font-display);

    font-weight: 700;
}


.floating-card div {
    display: flex;

    flex-direction: column;
}


.floating-card strong {
    font-size: 12px;
}


.floating-card small {
    color: var(--text-muted);

    font-size: 10px;
}


.card-html {
    top: 10%;

    left: -5%;
}


.card-web {
    right: -5%;

    bottom: 14%;

    animation-delay: -2.5s;
}


@keyframes floatCard {

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

}


.hero-badge {
    position: absolute;

    right: 4%;
    top: 5%;

    width: 90px;
    height: 90px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 1px;

    border: 1px solid var(--border);

    border-radius: 50%;

    background: var(--surface);

    transform: rotate(12deg);

    font-size: 9px;
}


.hero-badge span {
    color: var(--accent);

    font-size: 15px;
}


.hero-badge strong {
    font-size: 9px;
}


.hero-badge small {
    font-size: 7px;

    color: var(--text-muted);
}


/* =========================================================
   SECTIONS
========================================================= */

.section {
    padding: 125px 0;
}


.section-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 50px;

    margin-bottom: 60px;
}


.section-heading > p {
    max-width: 330px;

    color: var(--text-soft);

    font-size: 14px;
}


.section-heading.centered {
    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;
}


.section-heading.centered > p {
    max-width: 600px;
}


.eyebrow {
    display: inline-block;

    margin-bottom: 17px;

    color: var(--accent);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.16em;
}


.section-heading h2,
.contact-section h2,
.cta-box h2 {
    font-family: var(--font-display);

    font-size: clamp(
        40px,
        5vw,
        70px
    );

    line-height: 1;

    letter-spacing: -0.045em;

    font-weight: 600;
}


.section-heading h2 span,
.contact-section h2 span,
.cta-box h2 span {
    color: var(--accent);
}


/* =========================================================
   ABOUT
========================================================= */

.about-section {
    border-top: 1px solid var(--border);
}


.about-grid {
    display: grid;

    grid-template-columns:
        1.2fr
        0.8fr;

    gap: 90px;
}


.about-main {
    max-width: 680px;
}


.about-main p {
    margin-bottom: 22px;

    color: var(--text-soft);

    font-size: 16px;
}


.about-main .large-text {
    color: var(--text);

    font-size: 24px;

    line-height: 1.5;
}


.about-main strong {
    color: var(--accent);
}


.about-details {
    border-top: 1px solid var(--border);
}


.detail-item {
    display: flex;

    justify-content: space-between;

    gap: 25px;

    padding: 18px 0;

    border-bottom: 1px solid var(--border);
}


.detail-item span {
    color: var(--text-muted);

    font-size: 12px;
}


.detail-item strong {
    max-width: 60%;

    text-align: right;

    font-size: 13px;
}


.green-text {
    color: var(--success) !important;
}


.about-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 35px;
}


/* =========================================================
   SKILLS — PREMIUM MATRIX
========================================================= */

.skills-section {
    position: relative;

    background:
        radial-gradient(
            circle at 12% 20%,
            rgba(255,122,24,0.08),
            transparent 28%
        ),
        radial-gradient(
            circle at 88% 80%,
            rgba(255,122,24,0.05),
            transparent 28%
        ),
        var(--bg-soft);

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);
}


.skill-matrix {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}


.skill-panel {
    position: relative;

    min-width: 0;

    padding: 28px;

    border: 1px solid rgba(255, 122, 24, 0.48);

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.018),
            transparent 45%
        ),
        var(--surface);

    box-shadow:
        0 20px 60px rgba(0,0,0,0.18),
        inset 0 1px 0 rgba(255,255,255,0.03);

    overflow: hidden;

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}


.skill-panel::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(255,122,24,0.11),
            transparent 32%
        );

    pointer-events: none;
}


.skill-panel:hover {
    transform: translateY(-7px);

    border-color: rgba(255, 122, 24, 0.9);

    box-shadow:
        0 28px 75px rgba(0,0,0,0.25),
        0 0 35px rgba(255,122,24,0.07);
}


.skill-panel-head {
    position: relative;

    z-index: 1;

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 30px;
}


.skill-kicker {
    display: block;

    margin-bottom: 8px;

    color: var(--accent);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.14em;
}


.skill-panel h3 {
    font-family: var(--font-display);

    font-size: 27px;

    letter-spacing: -0.03em;
}


.skill-panel-icon {
    width: 46px;
    height: 46px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    border: 1px solid rgba(255, 122, 24, 0.28);

    border-radius: 13px;

    background: rgba(255,122,24,0.08);

    color: var(--accent);

    font-family: var(--font-display);

    font-size: 14px;

    font-weight: 800;
}


.skill-list {
    position: relative;

    z-index: 1;

    display: flex;

    flex-direction: column;

    gap: 23px;
}


.skill-item {
    min-width: 0;
}


.skill-meta {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 9px;
}


.skill-meta span {
    color: var(--text);

    font-size: 13px;

    font-weight: 600;
}


.skill-meta strong {
    color: var(--text-soft);

    font-size: 12px;

    font-weight: 600;
}


.skill-track {
    width: 100%;

    height: 8px;

    overflow: hidden;

    border-radius: 999px;

    background: #202a3a;

    box-shadow:
        inset 0 1px 2px rgba(0,0,0,0.25);
}


.skill-track span {
    display: block;

    width: var(--skill);

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #ff9a3d,
            #ff5a00
        );

    box-shadow:
        0 0 14px rgba(255,122,24,0.2);

    transform-origin: left;

    animation:
        skillFill 1.1s
        cubic-bezier(0.22,1,0.36,1)
        both;
}


@keyframes skillFill {

    from {
        transform: scaleX(0);

        opacity: 0.2;
    }

    to {
        transform: scaleX(1);

        opacity: 1;
    }

}


.stack-strip {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 8px;

    margin-top: 18px;
}


.stack-strip span {
    padding: 7px 10px;

    border: 1px solid var(--border);

    border-radius: 999px;

    background: var(--surface);

    color: var(--text-muted);

    font-size: 10px;

    transition:
        border var(--transition),
        color var(--transition),
        transform var(--transition);
}


.stack-strip span:hover {
    color: var(--accent);

    border-color:
        rgba(255,122,24,0.45);

    transform: translateY(-2px);
}


/* =========================================================
   ARCHITECTURE
========================================================= */

.architecture-grid {
    display: grid;

    grid-template-columns:
        1fr
        50px
        1fr
        50px
        1fr;

    align-items: stretch;

    gap: 10px;
}


.architecture-card {
    min-height: 330px;

    height: 100%;

    padding: 32px;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    background: var(--surface);

    transition:
        transform var(--transition),
        border var(--transition);
}


.architecture-card:hover {
    transform: translateY(-6px);

    border-color: var(--accent);
}


.architecture-icon {
    width: 48px;
    height: 48px;

    display: grid;

    place-items: center;

    margin-bottom: 28px;

    border-radius: 12px;

    background: var(--surface-2);

    color: var(--accent);

    font-family: var(--font-display);

    font-weight: 700;
}


.architecture-card > span {
    color: var(--accent);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.15em;
}


.architecture-card h3 {
    margin-top: 8px;

    margin-bottom: 12px;

    font-family: var(--font-display);

    font-size: 24px;
}


.architecture-card p {
    color: var(--text-soft);

    font-size: 14px;
}


.architecture-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 25px;
}


.architecture-tags span {
    padding: 6px 9px;

    border: 1px solid var(--border);

    border-radius: 999px;

    color: var(--text-muted);

    font-size: 10px;
}


.architecture-connector {
    align-self: center;

    color: var(--accent);

    font-size: 25px;

    text-align: center;
}


/* =========================================================
   PROJECTS
========================================================= */

.projects-section {
    background: var(--bg-soft);

    border-top: 1px solid var(--border);
}


.projects-list {
    display: flex;

    flex-direction: column;

    gap: 20px;
}


.project-card {
    display: grid;

    grid-template-columns:
        55px
        0.8fr
        1.2fr;

    align-items: center;

    gap: 30px;

    min-height: 410px;

    padding: 40px;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    background: var(--surface);

    overflow: hidden;

    transition:
        border var(--transition),
        transform var(--transition);
}


.project-card:hover {
    transform: translateY(-5px);

    border-color: var(--border-strong);
}


.project-card.reverse {
    grid-template-columns:
        55px
        1.2fr
        0.8fr;
}


.project-number {
    align-self: start;

    color: var(--text-muted);

    font-family: var(--font-display);

    font-size: 12px;
}


.project-info {
    max-width: 430px;
}


.project-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 20px;
}


.project-tags span {
    padding: 6px 9px;

    border: 1px solid var(--border);

    border-radius: 999px;

    color: var(--text-muted);

    font-size: 10px;
}


.project-info h3 {
    margin-bottom: 15px;

    font-family: var(--font-display);

    font-size: 35px;

    letter-spacing: -0.03em;
}


.project-info p {
    color: var(--text-soft);

    font-size: 14px;
}


.project-tech-line {
    margin-top: 18px;

    color: var(--accent);

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.1em;
}


.project-link {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-top: 25px;

    color: var(--text);

    font-size: 13px;

    font-weight: 700;
}


.project-link span {
    color: var(--accent);

    transition:
        transform var(--transition);
}


.project-link:hover span {
    transform:
        translate(4px, -4px);
}


/* =========================================================
   PROJECT PREVIEWS
========================================================= */

.project-preview {
    min-height: 310px;

    display: grid;

    place-items: center;

    border-radius: 17px;

    background: var(--surface-2);

    overflow: hidden;
}


/* =========================================================
   CV PREVIEW
========================================================= */

.mini-window {
    width: 78%;

    border: 1px solid var(--border);

    border-radius: 12px;

    overflow: hidden;

    box-shadow: var(--shadow);
}


.mini-top {
    height: 30px;

    display: flex;

    align-items: center;

    gap: 5px;

    padding: 0 10px;

    border-bottom: 1px solid var(--border);

    background: var(--surface);
}


.mini-top span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--border-strong);
}


.resume-mini {
    display: grid;

    grid-template-columns:
        28%
        1fr;

    min-height: 220px;

    background: #fff;
}


.resume-sidebar {
    background: #171a1e;
}


.resume-content {
    padding: 20px;
}


.resume-title {
    width: 45%;
    height: 13px;

    margin-bottom: 12px;

    background: #222;
}


.resume-line {
    width: 90%;
    height: 5px;

    margin-bottom: 7px;

    background: #ddd;
}


.resume-line.short {
    width: 65%;
}


.resume-block {
    width: 100%;
    height: 35px;

    margin-top: 17px;

    border: 1px solid #eee;
}


/* =========================================================
   LUXURY PREVIEW
========================================================= */

.luxury-screen {
    width: 88%;

    min-height: 260px;

    overflow: hidden;

    border: 1px solid var(--border);

    background: #111;
}


.luxury-nav {
    height: 42px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 15px;

    color: #eee;

    font-size: 9px;

    letter-spacing: 0.1em;
}


.luxury-nav strong {
    color: #d7c59b;

    font-family: serif;

    font-size: 12px;
}


.luxury-image {
    position: relative;

    height: 220px;

    background:
        linear-gradient(
            135deg,
            #35302a,
            #171717 45%,
            #5b4a38
        );
}


.luxury-image::before {
    content: "";

    position: absolute;

    inset: 25% 20% 0 35%;

    border-radius: 3px;

    background:
        linear-gradient(
            120deg,
            #6e6253,
            #252525
        );

    transform:
        skewX(-8deg);
}


.luxury-overlay {
    position: absolute;

    z-index: 2;

    left: 25px;
    bottom: 22px;

    color: white;
}


.luxury-overlay small {
    display: block;

    margin-bottom: 8px;

    color: #d7c59b;

    font-size: 8px;

    letter-spacing: 0.15em;
}


.luxury-overlay strong {
    font-family: serif;

    font-size: 28px;

    line-height: 0.9;
}


/* =========================================================
   SALES PREVIEW
========================================================= */

.sales-screen {
    width: 82%;

    padding: 20px;

    border: 1px solid var(--border);

    border-radius: 14px;

    background: var(--surface);
}


.sales-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 18px;

    font-size: 10px;
}


.sales-header strong {
    color: var(--accent);
}


.sales-header span {
    color: var(--text-muted);
}


.sales-stats {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 10px;
}


.sales-stats div {
    padding: 13px;

    border: 1px solid var(--border);

    border-radius: 10px;
}


.sales-stats small {
    display: block;

    color: var(--text-muted);

    font-size: 9px;
}


.sales-stats strong {
    display: block;

    margin-top: 3px;

    font-family: var(--font-display);

    font-size: 18px;
}


.sales-chart {
    height: 125px;

    display: flex;

    align-items: flex-end;

    gap: 7px;

    margin-top: 18px;

    padding: 10px;

    border: 1px solid var(--border);

    border-radius: 10px;
}


.sales-chart span {
    flex: 1;

    min-height: 8px;

    border-radius:
        4px 4px 0 0;

    background: var(--accent);

    opacity: 0.8;
}


/* =========================================================
   SERVICES
========================================================= */

.services-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 14px;
}


.service-card {
    padding: 30px;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    background: var(--surface);

    transition:
        transform var(--transition),
        border var(--transition);
}


.service-card:hover {
    transform: translateY(-6px);

    border-color: var(--accent);
}


.service-card > span {
    color: var(--accent);

    font-family: var(--font-display);

    font-size: 12px;
}


.service-card h3 {
    margin: 35px 0 10px;

    font-family: var(--font-display);

    font-size: 20px;
}


.service-card p {
    color: var(--text-muted);

    font-size: 13px;
}


/* =========================================================
   CTA
========================================================= */

.cta-section {
    padding: 70px 0;
}


.cta-box {
    position: relative;

    padding: 85px 30px;

    border: 1px solid var(--border-strong);

    border-radius: 30px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at center,
            rgba(255,122,24,0.10),
            transparent 50%
        ),
        var(--surface);

    text-align: center;
}


.cta-box > *:not(.cta-glow) {
    position: relative;

    z-index: 2;
}


.cta-box h2 {
    max-width: 700px;

    margin: 10px auto 18px;
}


.cta-box p {
    max-width: 530px;

    margin: auto;

    color: var(--text-soft);
}


.cta-buttons {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 30px;
}


/* =========================================================
   CONTACT
========================================================= */

.contact-section {
    border-top: 1px solid var(--border);
}


.contact-grid {
    display: grid;

    grid-template-columns:
        1fr
        0.75fr;

    align-items: center;

    gap: 90px;
}


.contact-section h2 {
    max-width: 600px;
}


.contact-section p {
    max-width: 550px;

    margin-top: 25px;

    color: var(--text-soft);

    font-size: 16px;
}


.email-link {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-top: 30px;

    color: var(--accent);

    font-family: var(--font-display);

    font-size: 20px;

    font-weight: 600;
}


.email-link span {
    transition:
        transform var(--transition);
}


.email-link:hover span {
    transform:
        translate(4px, -4px);
}


.contact-card {
    position: relative;

    padding:
        10px 22px 22px;

    border: 1px solid var(--border);

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(255,122,24,0.05),
            transparent 38%
        ),
        var(--surface);

    box-shadow: var(--shadow);

    overflow: hidden;
}


.contact-card::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    right: -90px;
    bottom: -110px;

    border-radius: 50%;

    background:
        rgba(255,122,24,0.08);

    filter: blur(25px);

    pointer-events: none;
}


.contact-row {
    display: flex;

    align-items: center;

    gap: 15px;

    padding: 19px 0;

    border-bottom:
        1px solid var(--border);
}


.contact-icon {
    width: 48px;
    height: 48px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #ff9a3d,
            #ff5a00
        );

    color: #fff;

    box-shadow:
        0 8px 25px
        rgba(255,122,24,0.16);
}


.contact-icon svg {
    width: 23px;
    height: 23px;
}


.contact-content {
    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 2px;
}


.contact-content small {
    color: var(--text);

    font-size: 13px;

    font-weight: 700;
}


.contact-content strong,
.contact-content a {
    color: var(--text-soft);

    font-size: 14px;

    font-weight: 500;

    overflow-wrap: anywhere;
}


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


.contact-phone-list {
    display: flex;

    flex-wrap: wrap;

    gap: 3px 10px;
}


.contact-social-block {
    padding-top: 24px;
}


.contact-social-block > span {
    display: block;

    margin-bottom: 18px;

    color: var(--text);

    font-size: 14px;

    font-weight: 700;
}


.social-links {
    display: flex;

    align-items: center;

    gap: 12px;
}


.social-link {
    width: 49px;
    height: 49px;

    display: grid;

    place-items: center;

    border: 1px solid var(--border);

    border-radius: 50%;

    background: #202b3e;

    color: #aeb5c2;

    transition:
        transform var(--transition),
        color var(--transition),
        border var(--transition),
        background var(--transition);
}


.social-link svg {
    width: 21px;
    height: 21px;
}


.social-link:hover {
    transform: translateY(-4px);

    color: #fff;

    border-color:
        rgba(255,122,24,0.65);

    background:
        linear-gradient(
            135deg,
            #ff9a3d,
            #ff5a00
        );
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    border-top: 1px solid var(--border);

    padding: 35px 0;
}


.footer-container {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


.footer-brand p {
    margin-top: 10px;

    color: var(--text-muted);

    font-size: 12px;
}


.footer-right {
    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 5px;

    color: var(--text-muted);

    font-size: 11px;

    text-align: right;
}


/* =========================================================
   BACK TO TOP
========================================================= */

.back-to-top {
    position: fixed;

    right: 25px;
    bottom: 25px;

    z-index: 900;

    width: 45px;
    height: 45px;

    display: grid;

    place-items: center;

    border: 1px solid var(--border);

    border-radius: 50%;

    background: var(--surface);

    color: var(--text);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(15px);

    transition:
        opacity var(--transition),
        visibility var(--transition),
        transform var(--transition),
        border var(--transition);
}


.back-to-top.visible {
    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);
}


.back-to-top:hover {
    border-color: var(--accent);

    color: var(--accent);
}


/* =========================================================
   REVEAL ANIMATION
========================================================= */

.reveal {
    opacity: 0;

    transform:
        translateY(25px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}


.reveal.visible {
    opacity: 1;

    transform:
        translateY(0);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

    .nav-links {
        gap: 20px;
    }


    .resume-nav {
        display: none;
    }


    .hero-container {
        grid-template-columns: 1fr;

        text-align: center;
    }


    .hero-content {
        margin-inline: auto;
    }


    .hero-role,
    .hero-buttons,
    .hero-stats {
        justify-content: center;
    }


    .hero-description {
        margin-inline: auto;
    }


    .hero-visual {
        min-height: 500px;
    }


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


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


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


    .architecture-connector {
        transform: rotate(90deg);
    }

}


@media (max-width: 800px) {

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


    .nav-links {
        position: fixed;

        top: 84px;
        left: 16px;
        right: 16px;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding: 12px;

        border: 1px solid var(--border);

        border-radius: 18px;

        background: var(--surface);

        box-shadow: var(--shadow);

        opacity: 0;

        visibility: hidden;

        transform:
            translateY(-10px);

        transition:
            opacity var(--transition),
            visibility var(--transition),
            transform var(--transition);
    }


    .nav-links.open {
        opacity: 1;

        visibility: visible;

        transform:
            translateY(0);
    }


    .nav-link {
        padding: 14px;

        border-radius: 10px;
    }


    .nav-link:hover,
    .nav-link.active {
        background: var(--surface-2);
    }


    .nav-link::after {
        display: none;
    }


    .nav-cta {
        display: none;
    }


    .menu-toggle {
        display: flex;

        flex-direction: column;

        justify-content: center;

        gap: 4px;
    }


    .menu-toggle.active span:nth-child(1) {
        transform:
            translateY(6px)
            rotate(45deg);
    }


    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }


    .menu-toggle.active span:nth-child(3) {
        transform:
            translateY(-6px)
            rotate(-45deg);
    }


    .section {
        padding: 90px 0;
    }


    .section-heading {
        flex-direction: column;

        align-items: flex-start;

        gap: 20px;
    }


    .section-heading.centered {
        align-items: center;
    }


    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }


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


    .project-card,
    .project-card.reverse {
        grid-template-columns: 1fr;

        padding: 25px;
    }


    .project-number {
        margin-bottom: -15px;
    }


    .project-preview {
        min-height: 280px;
    }


    .footer-container {
        flex-direction: column;

        align-items: flex-start;
    }


    .footer-right {
        align-items: flex-start;

        text-align: left;
    }

}


@media (max-width: 560px) {

    .nav-container {
        height: 72px;
    }


    .navbar .logo-text {
        display: none;
    }


    .theme-toggle {
        width: 38px;
        height: 38px;
    }


    .menu-toggle {
        width: 38px;
        height: 38px;
    }


    .hero {
        padding:
            130px 0
            70px;
    }


    .hero h1 {
        font-size:
            clamp(
                50px,
                16vw,
                80px
            );
    }


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


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


    .hero-stats {
        gap: 15px;
    }


    .stat strong {
        font-size: 20px;
    }


    .hero-visual {
        min-height: 400px;
    }


    .code-card {
        width: 100%;
    }


    .code-body {
        padding: 20px;

        font-size: 11px;
    }


    .floating-card {
        display: none;
    }


    .hero-badge {
        width: 70px;
        height: 70px;

        right: 0;
    }


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


    .detail-item {
        flex-direction: column;

        gap: 5px;
    }


    .detail-item strong {
        max-width: 100%;

        text-align: left;
    }


    .project-info h3 {
        font-size: 30px;
    }


    .mini-window,
    .luxury-screen,
    .sales-screen {
        width: 95%;
    }


    .cta-box {
        padding:
            65px 20px;
    }


    .email-link {
        font-size: 16px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }

}


/* =========================================================
   FINAL POLISH
========================================================= */

.project-card,
.architecture-card,
.service-card,
.cta-box,
.contact-card,
.skill-panel {
    -webkit-backdrop-filter:
        blur(12px);

    backdrop-filter:
        blur(12px);
}


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


.nav-cta,
.btn-primary {
    box-shadow:
        0 10px 28px
        rgba(255,122,24,0.13);
}


.nav-cta:hover,
.btn-primary:hover {
    box-shadow:
        0 14px 35px
        rgba(255,122,24,0.2);
}


::selection {
    background: var(--accent);

    color: #fff;
}


/* =========================================================
   SKILL MATRIX RESPONSIVE FIX
========================================================= */

@media (max-width: 1000px) {

    .skill-matrix {
        grid-template-columns: 1fr;
    }


    .skill-panel {
        min-height: 0;
    }

}


@media (max-width: 560px) {

    .skill-panel {
        padding: 22px;

        border-radius: 18px;
    }


    .skill-panel-head {
        margin-bottom: 24px;
    }


    .skill-panel h3 {
        font-size: 24px;
    }


    .contact-card {
        padding-inline: 18px;
    }


    .contact-phone-list {
        flex-direction: column;

        gap: 2px;
    }


    .contact-icon {
        width: 44px;
        height: 44px;
    }


    .social-link {
        width: 46px;
        height: 46px;
    }

}