@font-face {
    font-family: "Peyda";
    src: url("Font/Peyda-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Peyda";
    src: url("Font/Peyda-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Peyda";
    src: url("Font/Peyda-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Peyda";
    src: url("Font/Peyda-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Peyda";
    src: url("Font/Peyda-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Peyda";
    src: url("Font/Peyda-Black.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Peyda";
    src: url("Font/peyda-light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Peyda";
    src: url("Font/peyda-extralight.ttf") format("truetype");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Peyda";
    src: url("Font/Peyda-Thin.ttf") format("truetype");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #071411;
    --bg-dark: #040c0a;
    --green-1: #0b241b;
    --green-2: #12382c;
    --green-3: #1c4b3a;
    --cream: #efe5cc;
    --cream-light: #f6efdc;
    --cream-dark: #cfc2a6;
    --gold: #c6a354;
    --gold-light: #e4c875;
    --gold-dark: #8f7536;
    --muted: #94978c;
    --border: rgba(228, 200, 117, 0.15);
    --glass: rgba(255, 255, 255, 0.035);
    --ease: cubic-bezier(.16, 1, .3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(circle at 10% 10%, rgba(198, 163, 84, .08), transparent 28%), radial-gradient(circle at 90% 30%, rgba(28, 75, 58, .22), transparent 35%), radial-gradient(circle at 50% 100%, rgba(198, 163, 84, .035), transparent 35%), var(--bg);
    color: var(--cream);
    font-family: "Peyda", sans-serif;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: .025;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
    background: var(--gold);
    color: var(--bg);
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

.loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, #102b21, var(--bg-dark) 70%);
    transition: opacity 1s var(--ease), visibility 1s var(--ease);
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 72px;
    font-weight: 900;
    letter-spacing: 12px;
    color: var(--gold-light);
    text-shadow: 0 0 30px rgba(228, 200, 117, .25);
    animation: loaderPulse 1.4s infinite;
}

.loader-subtitle {
    margin-top: 5px;
    font-size: 10px;
    letter-spacing: 5px;
    color: var(--muted);
}

.loader-line {
    width: 200px;
    height: 2px;
    margin: 28px auto 0;
    background: rgba(255, 255, 255, .07);
    overflow: hidden;
}

.loader-line span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
    box-shadow: 0 0 20px var(--gold);
    animation: loaderProgress 1.7s ease forwards;
}

@keyframes loaderProgress {
    to {
        width: 100%;
    }
}

@keyframes loaderPulse {
    50% {
        opacity: .45;
    }
}

.cursor {
    position: fixed;
    width: 24px;
    height: 24px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 99997;
    transition: width .35s var(--ease), height .35s var(--ease), background .35s var(--ease);
}

.cursor-dot {
    position: fixed;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold-light);
    box-shadow: 0 0 10px var(--gold);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 99998;
}

body.cursor-hover .cursor {
    width: 70px;
    height: 70px;
    background: rgba(198, 163, 84, .05);
}

.mouse-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(198, 163, 84, .065), transparent 65%);
}

#particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .55;
}

.progress {
    position: fixed;
    top: 0;
    right: 0;
    width: 0;
    height: 3px;
    z-index: 99996;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
    box-shadow: 0 0 20px var(--gold);
}

nav {
    position: fixed;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1180px, calc(100% - 35px));
    height: 72px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(7, 20, 17, .68);
    border: 1px solid var(--border);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 22px;
    z-index: 9000;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .25);
}

.logo {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 5px;
    color: var(--gold-light);
    transition: .3s;
}

.logo span {
    color: var(--cream);
}

.logo:hover {
    text-shadow: 0 0 25px rgba(228, 200, 117, .35);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    position: relative;
    font-size: 13px;
    color: var(--muted);
    transition: .3s;
}

.nav-links a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -7px;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: .35s var(--ease);
}

.nav-links a:hover {
    color: var(--cream-light);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--muted);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #76c98a;
    box-shadow: 0 0 15px #76c98a;
    animation: statusBlink 2s infinite;
}

@keyframes statusBlink {
    50% {
        opacity: .3;
    }
}

.menu {
    display: none;
    border: 0;
    background: none;
    color: var(--gold-light);
    font-size: 22px;
    cursor: pointer;
}

main {
    position: relative;
    z-index: 2;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}

section {
    padding: 140px 0;
}

.section-head {
    margin-bottom: 65px;
}

.section-head.center {
    text-align: center;
}

.section-label {
    display: block;
    margin-bottom: 13px;
    color: var(--gold-light);
    font-size: 10px;
    letter-spacing: 4px;
    direction: ltr;
}

.section-head h2 {
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -2px;
}

.section-head p {
    margin-top: 18px;
    max-width: 650px;
    color: var(--muted);
    font-size: 14px;
    line-height: 2.2;
}

.section-head.center p {
    margin-left: auto;
    margin-right: auto;
}

.highlight {
    color: var(--gold-light);
}

.hero {
    min-height: 100vh;
    padding-top: 165px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 80px;
}

.hero-left {
    position: relative;
    z-index: 3;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 15px;
    margin-bottom: 25px;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--gold-light);
    background: rgba(198, 163, 84, .04);
    font-size: 11px;
    animation: heroIn .8s .2s both;
}

.hero-title {
    font-size: clamp(65px, 9vw, 122px);
    line-height: .84;
    font-weight: 900;
    letter-spacing: -6px;
    animation: heroIn .9s .35s both;
}

.hero-title .gold {
    color: var(--gold-light);
    text-shadow: 0 0 60px rgba(198, 163, 84, .08);
}

.hero-title .outline {
    color: transparent;
    -webkit-text-stroke: 1px rgba(239, 229, 204, .38);
    direction: ltr;
    display: inline-block;
}

.hero-description {
    max-width: 650px;
    margin-top: 35px;
    color: var(--muted);
    font-size: 15px;
    line-height: 2.2;
    animation: heroIn .9s .5s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 35px;
    animation: heroIn .9s .65s both;
}

@keyframes heroIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 50px;
    padding: 13px 23px;
    border-radius: 15px;
    border: 1px solid var(--border);
    overflow: hidden;
    font-size: 12px;
    transition: .4s var(--ease);
}

.btn i {
    font-size: 13px;
    transition: .3s;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .12);
    transform: translateX(-105%);
    transition: .5s var(--ease);
}

.btn:hover::before {
    transform: translateX(0);
}

.btn:hover i {
    transform: translateX(-4px);
}

.btn-primary {
    background: var(--gold);
    color: var(--bg);
    font-weight: 700;
    box-shadow: 0 10px 35px rgba(198, 163, 84, .08);
}

.btn-primary:hover {
    box-shadow: 0 20px 50px rgba(198, 163, 84, .2);
}

.btn-outline {
    color: var(--cream);
    background: rgba(255, 255, 255, .025);
}

.btn-outline:hover {
    color: var(--gold-light);
    border-color: rgba(228, 200, 117, .5);
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: visualIn 1.2s .3s both;
}

@keyframes visualIn {
    from {
        opacity: 0;
        transform: scale(.75) rotate(7deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.image-frame-3d {
    position: relative;
    width: min(410px, 75vw);
    aspect-ratio: 1;
}

.image-frame {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 9px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, var(--gold) 75deg, transparent 130deg, var(--green-3) 210deg, transparent 285deg, var(--gold-light) 345deg);
    animation: frameRotate 18s linear infinite;
}

@keyframes frameRotate {
    to {
        transform: rotate(360deg);
    }
}

.image-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 50%;
    border: 8px solid var(--bg);
    animation: imageCounterRotate 18s linear infinite;
}

@keyframes imageCounterRotate {
    to {
        transform: rotate(-360deg);
    }
}

.image-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.72) contrast(1.08);
    transition: .8s var(--ease);
}

.image-frame:hover img {
    transform: scale(1.08);
}

.orbit {
    position: absolute;
    inset: -35px;
    border: 1px dashed rgba(198, 163, 84, .17);
    border-radius: 50%;
    animation: orbitRotate 25s linear infinite;
}

@keyframes orbitRotate {
    to {
        transform: rotate(360deg);
    }
}

.orbit::before {
    content: "";
    position: absolute;
    top: 8%;
    left: 8%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 30px var(--gold);
}

.available {
    position: absolute;
    top: 10%;
    right: -35px;
    padding: 12px 17px;
    border: 1px solid var(--border);
    border-radius: 15px;
    color: var(--cream);
    background: rgba(7, 20, 17, .86);
    backdrop-filter: blur(15px);
    font-size: 10px;
    animation: floating 4s 1s ease-in-out infinite;
}

.available i {
    color: #76c98a;
    margin-left: 5px;
    font-size: 7px;
}

.code-floating {
    position: absolute;
    left: -40px;
    bottom: 5%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: rgba(7, 20, 17, .9);
    backdrop-filter: blur(15px);
    color: var(--gold-light);
    direction: ltr;
    font-family: monospace;
    font-size: 11px;
    animation: floating 4s ease-in-out infinite;
}

@keyframes floating {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-13px);
    }
}

.marquee {
    position: relative;
    z-index: 3;
    overflow: hidden;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(198, 163, 84, .025);
    transform: rotate(-1.1deg);
    width: 100%;
}

.marquee-track {
    display: flex;
    width: max-content;
    direction: ltr;
    animation: marquee 30s linear infinite;
    will-change: transform;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 0 25px;
    white-space: nowrap;
    color: var(--gold-light);
    font-size: 13px;
    direction: ltr;
    flex-shrink: 0;
}

.marquee-item i {
    color: var(--muted);
    font-size: 8px;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.about-card {
    position: relative;
    overflow: hidden;
    padding: 45px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(28, 75, 58, .45), rgba(255, 255, 255, .025));
}

.about-card::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--gold);
    filter: blur(150px);
    opacity: .05;
    left: -150px;
    bottom: -150px;
    pointer-events: none;
}

.about-card h3 {
    margin-bottom: 20px;
    font-size: 31px;
    font-weight: 800;
}

.about-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 2.25;
}

.code-window {
    overflow: hidden;
    border: 1px solid rgba(228, 200, 117, .12);
    border-radius: 20px;
    background: #06100d;
    direction: ltr;
    text-align: left;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, .2);
}

.window-head {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 13px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.window-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
}

.code {
    padding: 25px;
    color: #aaa;
    font-family: monospace;
    font-size: 12px;
    line-height: 2;
}

.code .key {
    color: #d6b65d;
}

.code .str {
    color: #8dbf91;
}

.code .comment {
    color: #596a61;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 20px;
}

.stat-card {
    padding: 27px 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--glass);
    text-align: center;
    transition: .4s var(--ease);
}

.stat-card:hover {
    transform: translateY(-7px);
    border-color: rgba(228, 200, 117, .4);
    background: rgba(198, 163, 84, .035);
}

.stat-number {
    color: var(--gold-light);
    font-size: 38px;
    font-weight: 800;
    direction: ltr;
}

.stat-card span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

.skills-wrapper {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 22px;
}

.skills-intro {
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(28, 75, 58, .5), rgba(255, 255, 255, .02));
}

.skills-intro h3 {
    margin-bottom: 17px;
    font-size: 35px;
    line-height: 1.15;
    font-weight: 800;
}

.skills-intro p {
    color: var(--muted);
    font-size: 14px;
    line-height: 2.1;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 9px;
}

.skill {
    position: relative;
    overflow: hidden;
    padding: 12px 16px;
    border: 1px solid rgba(228, 200, 117, .12);
    border-radius: 13px;
    background: rgba(255, 255, 255, .025);
    color: var(--cream);
    direction: ltr;
    font-family: monospace;
    font-size: 12px;
    transition: .35s var(--ease);
}

.skill i {
    margin-right: 7px;
    color: var(--gold);
}

.skill::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: .4s var(--ease);
}

.skill:hover {
    transform: translateY(-5px) scale(1.03);
    border-color: var(--gold);
    color: var(--gold-light);
    background: rgba(198, 163, 84, .04);
}

.skill:hover::after {
    width: 100%;
}

.projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project {
    position: relative;
    min-height: 350px;
    overflow: hidden;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(28, 75, 58, .5), rgba(255, 255, 255, .025));
    transform-style: preserve-3d;
    transition: transform .5s var(--ease), border .3s, box-shadow .3s;
}

.project:hover {
    border-color: rgba(228, 200, 117, .45);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}

.project.featured {
    grid-column: span 2;
    min-height: 430px;
}

.project-number {
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 2px;
    direction: ltr;
    display: inline-block;
}

.project-glow {
    position: absolute;
    top: -150px;
    right: -100px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: var(--gold);
    filter: blur(120px);
    opacity: 0;
    transition: .5s;
}

.project:hover .project-glow {
    opacity: .07;
}

.project-arrow {
    position: absolute;
    top: 25px;
    left: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--bg);
    font-size: 17px;
    transition: .4s var(--ease);
}

.project:hover .project-arrow {
    transform: rotate(-45deg) scale(1.1);
    background: var(--gold-light);
}

.project-content {
    position: absolute;
    right: 30px;
    left: 30px;
    bottom: 30px;
}

.project h3 {
    margin-bottom: 10px;
    font-size: 27px;
    font-weight: 800;
}

.project p {
    max-width: 650px;
    color: var(--muted);
    font-size: 12px;
    line-height: 2;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 15px;
}

.project-tech span {
    padding: 5px 9px;
    border: 1px solid rgba(228, 200, 117, .1);
    border-radius: 8px;
    color: var(--gold-light);
    font-family: monospace;
    font-size: 9px;
    direction: ltr;
}

.soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.soon-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 75px;
    margin-bottom: 20px;
    border: 1px solid rgba(228, 200, 117, .15);
    border-radius: 50%;
    color: var(--gold-light);
    background: rgba(198, 163, 84, .035);
    font-size: 27px;
    animation: slowRotate 12s linear infinite;
}

@keyframes slowRotate {
    to {
        transform: rotate(360deg);
    }
}

.soon h3 {
    margin-bottom: 7px;
    color: var(--gold-light);
    font-size: 22px;
    letter-spacing: 5px;
    direction: ltr;
}

.soon p {
    color: var(--muted);
    font-size: 11px;
    direction: ltr;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: auto;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 15px;
    width: 1px;
    background: linear-gradient(var(--gold), transparent);
}

.timeline-item {
    position: relative;
    padding-right: 55px;
    padding-bottom: 55px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    top: 5px;
    right: 9px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 20px rgba(198, 163, 84, .4);
}

.timeline-year {
    color: var(--gold-light);
    font-family: monospace;
    font-size: 10px;
    direction: ltr;
    display: inline-block;
}

.timeline-item h3 {
    margin: 7px 0;
    font-size: 24px;
    font-weight: 700;
}

.timeline-item p {
    color: var(--muted);
    font-size: 13px;
    line-height: 2;
}

.contact-box {
    position: relative;
    overflow: hidden;
    padding: 60px;
    border: 1px solid var(--border);
    border-radius: 35px;
    background: radial-gradient(circle at 80% 20%, rgba(198, 163, 84, .08), transparent 30%), linear-gradient(145deg, rgba(28, 75, 58, .55), rgba(255, 255, 255, .02));
    text-align: center;
}

.contact-box::before {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: var(--gold);
    filter: blur(180px);
    opacity: .04;
    left: -200px;
    bottom: -200px;
}

.contact-box h2 {
    font-size: clamp(42px, 6vw, 75px);
    line-height: .95;
    font-weight: 800;
    letter-spacing: -3px;
}

.contact-box h2 span {
    color: var(--gold-light);
}

.contact-box>p {
    max-width: 620px;
    margin: 22px auto 30px;
    color: var(--muted);
    font-size: 14px;
    line-height: 2.1;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 11px;
    margin-top: 35px;
}

.contact-item {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border: 1px solid rgba(228, 200, 117, .1);
    border-radius: 16px;
    background: rgba(255, 255, 255, .025);
    transition: .35s var(--ease);
}

.contact-item:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    background: rgba(198, 163, 84, .035);
}

.contact-item small {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-family: monospace;
    font-size: 9px;
    letter-spacing: 1px;
    direction: ltr;
}

.contact-item span {
    display: block;
    color: var(--cream);
    direction: ltr;
    font-size: 11px;
    word-break: break-word;
}

.contact-item i {
    margin-right: 6px;
    color: var(--gold-light);
}

footer {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
    padding: 35px 0;
    border-top: 1px solid rgba(228, 200, 117, .1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 11px;
}

footer strong {
    color: var(--gold-light);
}

.reveal {
    opacity: 0;
    transform: translateY(45px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.back-top {
    position: fixed;
    left: 25px;
    bottom: 25px;
    z-index: 8000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: rgba(7, 20, 17, .85);
    color: var(--gold-light);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
}

.back-top.show {
    opacity: 1;
    visibility: visible;
}

.back-top:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}


/* ===== GPU ACCELERATION FOR ANIMATED ELEMENTS ===== */

.image-frame,
.image-inner,
.orbit,
.marquee-track,
.project,
.soon-icon {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}


/* ===== RESPONSIVE ===== */

@media (max-width: 1000px) {
    /* خاموش کردن backdrop-filter سنگین */
    nav {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(7, 20, 17, .95);
    }
    /* خاموش کردن smooth scroll (jank در iOS) */
    html {
        scroll-behavior: auto;
    }
    /* مخفی کردن cursor و glow زیر ۱۰۰۰px */
    .cursor,
    .cursor-dot,
    .mouse-glow {
        display: none !important;
    }
    /* خاموش کردن blur سنگین روی کارت‌ها */
    .contact-box::before,
    .about-card::after,
    .project-glow {
        display: none;
    }
    /* خاموش کردن backdrop-filter روی available و code-floating */
    .available,
    .code-floating {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(7, 20, 17, .95);
    }
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 70px;
    }
    .hero-left {
        order: 2;
    }
    .hero-visual {
        order: 1;
    }
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .about-grid,
    .skills-wrapper {
        grid-template-columns: 1fr;
    }
    .projects {
        grid-template-columns: repeat(2, 1fr);
    }
    .project.featured {
        grid-column: span 2;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    nav {
        top: 10px;
        width: calc(100% - 20px);
        height: 65px;
        padding: 0 16px;
    }
    .logo {
        font-size: 20px;
        letter-spacing: 3px;
    }
    .nav-links {
        position: absolute;
        top: 75px;
        right: 0;
        width: 100%;
        padding: 25px;
        flex-direction: column;
        gap: 22px;
        background: rgba(7, 20, 17, .97);
        border: 1px solid var(--border);
        border-radius: 20px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: .3s;
    }
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .nav-links a {
        font-size: 16px;
    }
    .nav-status {
        display: none;
    }
    .menu {
        display: block;
    }
    .hero {
        padding-top: 120px;
        min-height: auto;
        gap: 40px;
    }
    .hero-title {
        font-size: 56px;
        letter-spacing: -3px;
    }
    .hero-description {
        font-size: 13px;
        line-height: 2;
        margin-top: 25px;
    }
    .hero-kicker {
        font-size: 10px;
        padding: 7px 12px;
        margin-bottom: 18px;
    }
    .btn {
        padding: 11px 18px;
        font-size: 11px;
        min-height: 44px;
    }
    .image-frame-3d {
        width: 260px;
    }
    .orbit {
        inset: -20px;
    }
    .available,
    .code-floating {
        display: none;
    }
    section {
        padding: 70px 0;
    }
    .section-head {
        margin-bottom: 35px;
    }
    .section-head h2 {
        font-size: 34px;
        letter-spacing: -1px;
    }
    .section-head p {
        font-size: 13px;
        line-height: 2;
    }
    .about-card,
    .skills-intro,
    .contact-box {
        padding: 24px;
        border-radius: 22px;
    }
    .about-card h3 {
        font-size: 24px;
    }
    .about-card p {
        font-size: 13px;
        line-height: 2;
    }
    .code {
        padding: 16px;
        font-size: 10px;
        line-height: 1.9;
    }
    .stats-grid {
        gap: 8px;
    }
    .stat-card {
        padding: 18px 10px;
        border-radius: 16px;
    }
    .stat-number {
        font-size: 28px;
    }
    .stat-card span {
        font-size: 10px;
    }
    .skills-intro h3 {
        font-size: 26px;
    }
    .skills-intro p {
        font-size: 13px;
    }
    .skill {
        font-size: 10px;
        padding: 9px 11px;
    }
    .projects {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .project {
        min-height: 280px;
        padding: 22px;
        border-radius: 22px;
    }
    .project.featured {
        grid-column: auto;
        min-height: 320px;
    }
    .project h3 {
        font-size: 20px;
    }
    .project p {
        font-size: 11px;
        line-height: 1.8;
    }
    .project-content {
        right: 22px;
        left: 22px;
        bottom: 22px;
    }
    .project-arrow {
        width: 42px;
        height: 42px;
        font-size: 14px;
        top: 18px;
        left: 18px;
    }
    .soon-icon {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }
    .soon h3 {
        font-size: 18px;
        letter-spacing: 4px;
    }
    .contact-box h2 {
        font-size: 36px;
        letter-spacing: -1.5px;
    }
    .contact-box>p {
        font-size: 13px;
        line-height: 2;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .contact-item {
        padding: 14px;
    }
    .timeline-item {
        padding-right: 40px;
        padding-bottom: 40px;
    }
    .timeline-item h3 {
        font-size: 18px;
    }
    .timeline-item p {
        font-size: 12px;
        line-height: 1.9;
    }
    footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        font-size: 10px;
        padding: 25px 0;
    }
    .back-top {
        left: 14px;
        bottom: 14px;
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 14px;
    }
    .marquee {
        padding: 14px 0;
    }
    .marquee-item {
        font-size: 11px;
        padding: 0 18px;
        gap: 18px;
    }
}

@media (max-width: 420px) {
    .container {
        width: calc(100% - 28px);
    }
    .hero-title {
        font-size: 44px;
        letter-spacing: -2px;
    }
    .hero-description {
        font-size: 12px;
        line-height: 1.9;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .image-frame-3d {
        width: 200px;
    }
    .orbit {
        inset: -16px;
    }
    .section-head h2 {
        font-size: 28px;
    }
    .about-card {
        padding: 18px;
    }
    .about-card h3 {
        font-size: 20px;
    }
    .about-card p {
        font-size: 12px;
    }
    .code {
        padding: 12px;
        font-size: 9px;
    }
    .stat-number {
        font-size: 22px;
    }
    .stat-card span {
        font-size: 9px;
    }
    .skill {
        font-size: 9px;
        padding: 8px 9px;
    }
    .skill i {
        margin-right: 4px;
    }
    .project {
        min-height: 240px;
        padding: 18px;
    }
    .project.featured {
        min-height: 280px;
    }
    .project h3 {
        font-size: 17px;
    }
    .project p {
        font-size: 10px;
    }
    .contact-box h2 {
        font-size: 28px;
    }
    .contact-box {
        padding: 18px;
    }
    .contact-item span {
        font-size: 10px;
    }
    .soon-icon {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    .soon h3 {
        font-size: 15px;
        letter-spacing: 3px;
    }
    .timeline-item h3 {
        font-size: 16px;
    }
    .timeline-item {
        padding-right: 35px;
        padding-bottom: 35px;
    }
    .timeline-dot {
        width: 10px;
        height: 10px;
        right: 11px;
        top: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}