@font-face {
    font-family: vazirmatn;
    src: url("../fonts/Vazir.ttf");
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url("../fonts/IBMPlexMono.ttf");
}

:root {
    --bg: #050508;
    --bg2: #0a0b12;
    --surface: #0f1018;
    --surface2: #161820;
    --border: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(99, 211, 255, 0.3);
    --cyan: #63d3ff;
    --cyan2: #00c8ff;
    --violet: #a78bff;
    --violet2: #7c5cfc;
    --green: #4dffb4;
    --text: #e8e9f0;
    --text2: #8b8d9e;
    --text3: #4a4c5e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: vazirmatn;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    cursor: none;
}

a {
    text-decoration: none;
}

/* ========== CUSTOM CURSOR ========== */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, background 0.2s;
    mix-blend-mode: screen;
}

.cursor-ring {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(99, 211, 255, 0.4);
    backdrop-filter: grayscale(100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.2s, height 0.2s, border-color 0.2s;
    will-change: left, top;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--violet2);
    border-radius: 10px;
}

/* ========== NOISE OVERLAY ========== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: repeating-linear-gradient(0deg,
            rgba(255, 255, 255, 0.01) 0px,
            rgba(255, 255, 255, 0.01) 1px,
            transparent 1px,
            transparent 2px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.2;
}

/* ========== NAVIGATION ========== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 72px;
    border-bottom: 1px solid var(--border);
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-logo {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 15px;
    color: var(--cyan);
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(77, 255, 180, 0.4);
    }

    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 6px rgba(77, 255, 180, 0);
    }
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--text2);
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--cyan);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--cyan);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ========== MOBILE NAV ========== */
.mobile-nav {
    display: none;
    position: fixed;
    top: 90%;
    inset-inline: 0;
    margin: auto;
    width: fit-content;
    z-index: 100;
    background: rgba(15, 16, 24, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 10px 28px;
    gap: 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    justify-content: center;
}

.mobile-nav a {
    color: var(--text3);
    font-size: 18px;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav a:hover,
.mobile-nav a:focus {
    color: var(--cyan);
}

.mobile-nav a:focus {
    outline: 2px solid var(--cyan);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ========== HERO SECTION ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 48px 80px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(99, 211, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 211, 255, 0.02) 1px, transparent 1px);
    background-size: 100px 100px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 30%, transparent 100%);
    pointer-events: none;
    will-change: transform;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(99, 211, 255, 0.07);
    top: -100px;
    right: -100px;
    animation: float1 12s ease-in-out infinite;
    will-change: transform;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(167, 139, 255, 0.08);
    bottom: -50px;
    left: -50px;
    animation: float2 15s ease-in-out infinite;
    will-change: transform;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(77, 255, 180, 0.05);
    top: 40%;
    left: 30%;
    animation: float3 10s ease-in-out infinite;
    will-change: transform;
}

@keyframes float1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-40px, 30px) scale(1.05);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -40px) scale(1.08);
    }
}

@keyframes float3 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, 20px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--cyan);
    background: rgba(99, 211, 255, 0.08);
    border: 1px solid rgba(99, 211, 255, 0.2);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 32px;
    opacity: 0;
    animation: fade-up 0.8s 0.3s forwards;
}

.hero-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--cyan);
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero-name {
    font-size: clamp(52px, 8vw, 100px);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    opacity: 0;
    animation: fade-up 0.8s 0.5s forwards;
}

.hero-name .line1 {
    display: block;
    color: var(--text);
}

.hero-name .line2 {
    display: block;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 17px;
    color: var(--text2);
    margin-bottom: 48px;
    letter-spacing: 0.01em;
    line-height: 1.6;
    opacity: 0;
    animation: fade-up 0.8s 0.7s forwards;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fade-up 0.8s 0.9s forwards;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== BUTTONS ========== */
.btn-primary {
    position: relative;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--cyan2), var(--violet2));
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.15em;
    border: none;
    border-radius: 4px;
    cursor: none;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    will-change: transform;
    backface-visibility: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(0, 200, 255, 0.3);
}

.btn-primary:focus {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    padding: 14px 32px;
    background: transparent;
    color: var(--text2);
    font-size: 12px;
    letter-spacing: 0.15em;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: none;
    text-decoration: none;
    transition: border-color 0.3s, color 0.3s, transform 0.2s;
    will-change: transform;
    backface-visibility: hidden;
}

.btn-secondary:hover,
.btn-secondary:focus {
    border-color: var(--cyan);
    color: var(--cyan);
    transform: translateY(-1px);
}

.btn-secondary:focus {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

/* ========== SECTION BASE ========== */
section {
    padding: 120px 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--cyan);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--cyan);
}

.section-title {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 60px;
}

/* ========== ABOUT SECTION ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-img-wrap {
    position: relative;
}

.about-img-frame {
    position: relative;
    aspect-ratio: 1;
    max-width: 400px;
}

.about-img-frame::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    border-radius: 8px;
    z-index: 0;
}

.about-img-frame::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: var(--surface);
    border-radius: 7px;
    z-index: 1;
}

.about-img-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 7px;
}

.about-img-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) contrast(1.05);
    transition: filter 0.3s;
}

.about-img-inner:hover img {
    filter: grayscale(0%) contrast(1.1);
}

.corner-tl,
.corner-br {
    position: absolute;
    width: 20px;
    height: 20px;
    z-index: 3;
}

.corner-tl {
    top: -8px;
    right: -8px;
    border-top: 2px solid var(--cyan);
    border-right: 2px solid var(--cyan);
}

.corner-br {
    bottom: -8px;
    left: -8px;
    border-bottom: 2px solid var(--violet);
    border-left: 2px solid var(--violet);
}

.about-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--green);
    background: rgba(77, 255, 180, 0.08);
    border: 1px solid rgba(77, 255, 180, 0.2);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.about-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.about-desc {
    color: var(--text2);
    line-height: 1.8;
    margin-bottom: 32px;
    font-size: 15px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    transition: transform 0.2s;
}

.tag:hover {
    transform: translateY(-1px);
}

.tag-cyan {
    background: rgba(99, 211, 255, 0.08);
    border: 1px solid rgba(99, 211, 255, 0.2);
    color: var(--cyan);
}

.tag-violet {
    background: rgba(167, 139, 255, 0.08);
    border: 1px solid rgba(167, 139, 255, 0.2);
    color: var(--violet);
}

.tag-green {
    background: rgba(77, 255, 180, 0.08);
    border: 1px solid rgba(77, 255, 180, 0.2);
    color: var(--green);
}

/* ========== SKILLS SECTION ========== */
.skills-section {
    background: linear-gradient(to bottom, transparent, var(--bg2), transparent);
    padding: 120px 48px;
}

.skills-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.skill-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    will-change: transform;
    backface-visibility: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(99, 211, 255, 0.04));
    opacity: 0;
    transition: opacity 0.3s;
}

.skill-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 211, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(99, 211, 255, 0.1);
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-icon {
    font-size: 28px;
    margin-bottom: 16px;
}

.skill-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.skill-bar-wrap {
    direction: ltr;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.skill-bar {
    height: 100%;
    border-radius: 10px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.skill-bar.animated {
    transform: scaleX(1);
}

.skill-bar-cyan {
    background: linear-gradient(90deg, var(--cyan2), var(--cyan));
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.5);
}

.skill-bar-violet {
    background: linear-gradient(90deg, var(--violet2), var(--violet));
    box-shadow: 0 0 10px rgba(124, 92, 252, 0.5);
}

.skill-pct {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--text3);
    letter-spacing: 0.05em;
}

/* ========== PROJECTS SECTION ========== */
.projects-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 60px;
}

.projects-header a {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--text2);
    text-decoration: none;
    transition: color 0.3s;
}

.projects-header a:hover {
    color: var(--cyan);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    cursor: none;
    position: relative;
    will-change: transform;
    backface-visibility: hidden;
}

.project-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(99, 211, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 211, 255, 0.05);
}

.project-img {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.project-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, var(--surface));
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.08);
}

.project-body {
    padding: 24px;
}

.project-no {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    color: var(--text3);
    letter-spacing: 0.2em;
    margin-bottom: 10px;
}

.project-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.project-desc {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

.project-footer {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-dots {
    display: flex;
    gap: 6px;
}

.project-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.dot-cyan {
    background: var(--cyan2);
    box-shadow: 0 0 6px var(--cyan2);
}

.dot-violet {
    background: var(--violet2);
    box-shadow: 0 0 6px var(--violet2);
}

.project-arrow {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text3);
    font-size: 14px;
    transition: border-color 0.3s, color 0.3s, transform 0.3s;
}

.project-card:hover .project-arrow {
    border-color: var(--cyan);
    color: var(--cyan);
    transform: rotate(-45deg);
}

/* ========== TIMELINE SECTION ========== */
.timeline-section {
    background: var(--bg2);
    padding: 120px 48px;
}

.timeline-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding-right: 40px;
}

.timeline-line {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--cyan), var(--violet), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 64px;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    right: -44px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 4px rgba(99, 211, 255, 0.15), 0 0 12px var(--cyan);
}

.timeline-dot.violet {
    background: var(--violet);
    box-shadow: 0 0 0 4px rgba(167, 139, 255, 0.15), 0 0 12px var(--violet);
}

.timeline-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px 28px;
    max-width: 520px;
    transition: border-color 0.3s;
}

.timeline-card:hover {
    border-color: rgba(99, 211, 255, 0.15);
}

.timeline-year {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--cyan);
    margin-bottom: 10px;
}

.timeline-year.violet {
    color: var(--violet);
}

.timeline-h {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.timeline-p {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.7;
}

/* ========== SERVICES SECTION ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    will-change: transform;
    backface-visibility: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan2), var(--violet2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.1);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-icon {
    font-size: 32px;
    margin-bottom: 20px;
}

.service-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.7;
}

/* ========== STATS SECTION ========== */
.stats-section {
    background: linear-gradient(135deg, rgba(99, 211, 255, 0.04), rgba(167, 139, 255, 0.04));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 80px 48px;
}

.stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--text3);
}

/* ========== CONTACT SECTION ========== */
.contact-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    position: relative;
    overflow: hidden;
}

.contact-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 211, 255, 0.06), transparent 70%);
    pointer-events: none;
}

.contact-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.contact-desc {
    color: var(--text2);
    line-height: 1.7;
    margin-bottom: 40px;
    font-size: 14px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-link {
    display: flex;
    flex-direction: row-reverse;
    direction: ltr;
    align-items: center;
    gap: 14px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: var(--text2);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--cyan);
}

.contact-link-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: border-color 0.3s, background 0.3s;
}

.contact-link:hover .contact-link-icon {
    border-color: rgba(99, 211, 255, 0.3);
    background: rgba(99, 211, 255, 0.06);
}

/* ========== FORM ========== */
.form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-field {
    position: relative;
}

.form-field input,
.form-field textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 14px 16px;
    color: var(--text);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
    direction: rtl;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: rgba(99, 211, 255, 0.3);
    background: rgba(99, 211, 255, 0.04);
    box-shadow: 0 0 0 3px rgba(99, 211, 255, 0.1);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--text3);
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--cyan2), var(--violet2));
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.15em;
    border: none;
    border-radius: 6px;
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    position: relative;
    will-change: transform;
    backface-visibility: hidden;
}

.btn-submit:hover,
.btn-submit:focus {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(0, 200, 255, 0.3);
}

.btn-submit:focus {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

.btn-submit .arrow {
    transition: transform 0.3s;
}

.btn-submit:hover .arrow,
.btn-submit:focus .arrow {
    transform: translateX(-6px);
}

/* ========== FOOTER ========== */
footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 60px 48px;
    text-align: center;
}

.footer-logo {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 16px;
    color: var(--cyan);
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
}

.footer-links a {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--text3);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-copy {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--text3);
    letter-spacing: 0.1em;
}

/* ========== ANIMATIONS & OBSERVE ========== */
.observe {
    opacity: 0;
    transform: translateY(30px);
}

.observe.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.observe.visible.observe-delay-1 {
    transition-delay: 0.1s;
}

.observe.visible.observe-delay-2 {
    transition-delay: 0.2s;
}

.observe.visible.observe-delay-3 {
    transition-delay: 0.3s;
}

.observe.visible.observe-delay-4 {
    transition-delay: 0.4s;
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .observe {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    section {
        padding: 100px 32px;
    }

    .hero {
        padding: 80px 32px 60px;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrap {
        gap: 60px;
        padding: 48px;
    }

    .stats-inner {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0 16px;
        height: 64px;
    }

    .nav-logo {
        font-size: 13px;
    }

    .nav-links {
        display: none;
    }

    .mobile-nav {
        display: flex;
    }

    section {
        padding: 60px 16px;
    }

    .hero {
        padding: 60px 16px 40px;
        min-height: 85vh;
    }

    .hero-tag {
        font-size: 10px;
        padding: 5px 12px;
        margin-bottom: 24px;
    }

    .hero-name {
        font-size: clamp(32px, 8vw, 52px);
        margin-bottom: 12px;
    }

    .hero-sub {
        font-size: 15px;
        margin-bottom: 32px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 12px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 12px 24px;
        font-size: 11px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-img-frame {
        max-width: 100%;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .skill-card {
        padding: 20px 16px;
    }

    .skill-icon {
        font-size: 24px;
    }

    .skill-name {
        font-size: 13px;
    }

    .skill-pct {
        font-size: 10px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-img {
        height: 200px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 28px 20px;
    }

    .service-icon {
        font-size: 28px;
    }

    .service-title {
        font-size: 16px;
    }

    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stat-number {
        font-size: clamp(28px, 6vw, 48px);
    }

    .stat-label {
        font-size: 10px;
    }

    .contact-wrap {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 24px;
        border-radius: 8px;
    }

    .contact-title {
        font-size: 24px;
    }

    .contact-desc {
        font-size: 13px;
    }

    .form-field input,
    .form-field textarea {
        padding: 12px 14px;
        font-size: 13px;
    }

    .form-field textarea {
        min-height: 100px;
    }

    .btn-submit {
        padding: 12px 24px;
        font-size: 11px;
        width: 100%;
    }

    .skills-section,
    .timeline-section {
        padding: 60px 16px;
    }

    .timeline {
        padding-right: 20px;
    }

    .timeline-dot {
        right: -34px;
    }

    .timeline-card {
        max-width: 100%;
        padding: 20px;
    }

    .timeline-item {
        margin-bottom: 48px;
    }

    .stats-section {
        padding: 48px 16px;
    }

    footer {
        padding: 40px 16px;
    }

    .footer-logo {
        font-size: 14px;
    }

    .footer-links {
        gap: 16px;
    }

    .section-label {
        font-size: 10px;
    }

    .section-title {
        font-size: clamp(24px, 6vw, 36px);
        margin-bottom: 40px;
    }

    .projects-header {
        margin-bottom: 40px;
    }

    .projects-header a {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0 12px;
        height: 56px;
    }

    .nav-logo {
        font-size: 12px;
        gap: 6px;
    }

    .nav-logo span {
        width: 6px;
        height: 6px;
    }

    section {
        padding: 40px 12px;
    }

    .hero {
        padding: 50px 12px 30px;
    }

    .hero-tag {
        font-size: 9px;
        padding: 4px 10px;
    }

    .hero-name {
        font-size: clamp(24px, 7vw, 40px);
    }

    .hero-sub {
        font-size: 13px;
    }

    .about-img-frame {
        max-width: 90vw;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .skill-card {
        padding: 16px 12px;
    }

    .skill-icon {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .stats-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-wrap {
        padding: 20px;
        border-radius: 6px;
    }

    .contact-title {
        font-size: 20px;
    }

    .contact-desc {
        font-size: 12px;
    }

    .contact-link {
        font-size: 11px;
        gap: 10px;
    }

    .contact-link-icon {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .form-field input,
    .form-field textarea {
        padding: 10px 12px;
        font-size: 12px;
    }

    .form {
        gap: 16px;
    }

    .btn-submit {
        padding: 10px 20px;
        font-size: 10px;
    }

    .timeline-item {
        margin-bottom: 40px;
    }

    .timeline-card {
        padding: 16px;
    }

    .timeline-year {
        font-size: 10px;
    }

    .timeline-h {
        font-size: 15px;
    }

    .timeline-p {
        font-size: 12px;
    }

    .project-img {
        height: 150px;
    }

    .service-card {
        padding: 20px 16px;
    }

    .service-icon {
        font-size: 24px;
    }

    .service-title {
        font-size: 14px;
    }

    .service-desc {
        font-size: 12px;
    }

    .stats-section {
        padding: 40px 12px;
    }

    .stat-number {
        font-size: clamp(24px, 5vw, 36px);
    }

    .stat-label {
        font-size: 9px;
    }

    .footer-logo {
        font-size: 12px;
    }

    .footer-links {
        gap: 12px;
        flex-wrap: wrap;
    }

    .footer-links a {
        font-size: 9px;
    }

    .footer-copy {
        font-size: 9px;
    }

    .mobile-nav {
        padding: 8px 20px;
        gap: 20px;
    }

    .mobile-nav a {
        font-size: 16px;
    }

    .section-title {
        font-size: clamp(20px, 5vw, 28px);
    }
}