@font-face {
    font-family: IranSans;
    src: url(font/IRANSansXFaNum-Regular.ttf);
}

:root {

    --bg: #f5f1e8;
    --bg-alt: #ece6db;
    --surface: rgba(255, 251, 245, 0.72);
    --surface-strong: rgba(255, 252, 248, 0.9);
    --glass-surface: rgba(255, 250, 242, 0.46);

    --text: #161311;
    --text-soft: #2a2521;
    --muted: #6f675f;
    --muted-strong: #544d47;
    --line: rgba(76, 62, 51, 0.14);
    --line-strong: rgba(76, 62, 51, 0.22);

    --accent: #b56a3b;
    --accent-strong: #8f4e28;
    --accent-deep: #5f3118;
    --accent-soft: #f5e6dc;
    --accent-glow: rgba(181, 106, 59, 0.24);

    --metal: #a8a29a;
    --metal-soft: #d8d2ca;
    --sand-gold: #c8a978;
    --clay: #c08b65;
    --ember: #dd8452;

    --warm: #8f6a3c;
    --warm-soft: rgba(143, 106, 60, 0.14);

    --dark-bg: #0d0b0a;
    --dark-bg-alt: #171311;
    --dark-surface: rgba(24, 19, 17, 0.82);
    --dark-surface-strong: rgba(32, 25, 22, 0.92);
    --dark-glass: rgba(255, 255, 255, 0.035);

    --dark-text: #f7f1ea;
    --dark-text-soft: #ddd3ca;
    --dark-muted: #a89d92;
    --dark-line: rgba(255, 255, 255, 0.08);
    --dark-line-strong: rgba(255, 255, 255, 0.14);

    --shadow-xs: 0 8px 24px rgba(20, 14, 10, 0.05);
    --shadow-sm: 0 16px 40px rgba(20, 14, 10, 0.08);
    --shadow-md: 0 24px 60px rgba(20, 14, 10, 0.12);
    --shadow-lg: 0 30px 90px rgba(12, 9, 7, 0.18);
    --glow-accent: 0 0 34px rgba(181, 106, 59, 0.18);

    --gradient-hero:
        radial-gradient(circle at 18% 18%, rgba(181, 106, 59, 0.10), transparent 3),
        radial-gradient(circle at 78% 22%, rgba(200, 169, 120, 0.10), transparent 28%),
        radial-gradient(circle at 50% 80%, rgba(168, 162, 154, 0.12), transparent 30%),
        linear-gradient(180deg, #faf7f2 0%, #f5f1e8 100%);

    --gradient-bridge:
        linear-gradient(180deg,
            #ece6db 0%,
            rgba(141, 96, 62, 0.16) 30%,
            rgba(36, 25, 20, 0.72) 70%,
            #0d0b0a 100%);

    --gradient-dark-panel:
        linear-gradient(145deg,
            rgba(37, 28, 24, 0.96) 0%,
            rgba(17, 13, 11, 0.98) 100%);

    --gradient-accent:
        linear-gradient(135deg, #8f4e28 0%, #b56a3b 52%, #ddb078 100%);

    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --container: 1180px;

    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-snappy: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Vazirmatn", sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

img {
    display: block;
    max-width: 100%;
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 15% 20%, rgba(109, 40, 217, 0.06), transparent 30%),
        radial-gradient(circle at 85% 18%, rgba(217, 119, 6, 0.05), transparent 26%),
        radial-gradient(circle at 50% 80%, rgba(168, 85, 247, 0.04), transparent 28%),
        linear-gradient(180deg, #faf9f6 0%, #f6f5f0 100%);
}

.site-header {
    position: sticky;
    top: 18px;
    z-index: 1000;
    padding: 18px 0 0;
    transition: var(--transition-smooth);
}

.header-inner {
    width: min(var(--container), 92%);
    margin: 0 auto;
    min-height: 82px;
    background: var(--surface);
    border: 1px solid rgba(228, 223, 213, 0.7);
    border-radius: 999px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 10px 24px;
    transition: var(--transition-smooth);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.main-nav a {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.main-nav a:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    height: 64px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-action {
    display: flex;
    justify-content: flex-end;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    background: var(--text);
    color: #fff;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.contact-btn:hover {
    transform: translateY(-2px);
    background: var(--accent);
    box-shadow: 0 8px 20px rgba(109, 40, 217, 0.2);
}

.site-header.scrolled .header-inner {
    min-height: 70px;
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(228, 223, 213, 0.9);
}

.site-header.scrolled .brand-logo {
    height: 52px;
}

.hero {
    width: min(var(--container), 92%);
    margin: 34px auto 0;
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
}

.hero-inner {
    width: 100%;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 40px;
}

.hero-content {
    padding: 24px 0 24px 8px;
}

.hero-kicker {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 22px;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.hero-title span {
    display: inline-block;
    color: var(--accent);
    position: relative;
}

.hero-text {
    max-width: 620px;
    margin-top: 24px;
    font-size: 1.05rem;
    line-height: 2.1;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 36px;
}

.btn {
    min-height: 56px;
    padding: 0 28px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 14px 30px rgba(109, 40, 217, 0.18);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: var(--accent-strong);
    box-shadow: 0 20px 40px rgba(109, 40, 217, 0.28);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.6);
    color: var(--text);
    border-color: var(--line);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    background: #fff;
    border-color: var(--accent);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-wrap {
    position: relative;
    width: min(100%, 500px);
    aspect-ratio: 1/1.12;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-wrap::before {
    content: "";
    position: absolute;
    inset: 10% 12%;
    background: radial-gradient(circle at center, rgba(109, 40, 217, 0.14), transparent 60%);
    filter: blur(20px);
    z-index: 0;
}

.photo-frame {
    position: relative;
    z-index: 2;
    width: 330px;
    height: 420px;
    padding: 10px;
    border-radius: 36px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.75));
    border: 1px solid rgba(228, 223, 213, 0.85);
    box-shadow:
        0 30px 70px rgba(18, 14, 28, 0.08),
        0 8px 24px rgba(109, 40, 217, 0.05);
    transform: rotate(-4deg);
    transition: var(--transition-smooth);
}

.photo-frame:hover {
    transform: rotate(0deg) scale(1.02);
}

.photo-frame::after {
    content: "";
    position: absolute;
    inset: -14px;
    border: 1px dashed rgba(109, 40, 217, 0.2);
    border-radius: 44px;
    z-index: -1;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
}

.skill {
    position: absolute;
    z-index: 3;
    padding: 11px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(228, 223, 213, 0.8);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(18, 14, 28, 0.06);
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.skill:hover {
    transform: scale(1.05) translateY(-2px);
    border-color: var(--accent);
}

.skill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
    margin-left: 8px;
}

.skill-1 {
    top: 10%;
    right: 8%;
}

.skill-2 {
    top: 26%;
    left: 2%;
}

.skill-3 {
    bottom: 24%;
    right: 2%;
}

.skill-4 {
    bottom: 10%;
    left: 10%;
}

.skill-5 {
    top: 2%;
    left: 18%;
}

.skill-6 {
    bottom: 36%;
    left: -2%;
}


.manifesto {
    width: min(var(--container), 92%);
    margin: 140px auto;
    position: relative;
}

.manifesto-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px 48px;
    align-items: start;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.5);
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 22px;
}

.section-tag::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.manifesto-title {
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.manifesto-title span {
    color: var(--accent);
}

.manifesto-text {
    align-self: end;
    padding-top: 78px;
}

.manifesto-text p {
    color: var(--muted);
    line-height: 2.05;
    font-size: 1.02rem;
    margin-bottom: 20px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 700;
}

.text-link::after {
    content: "";
    width: 42px;
    height: 2px;
    background: var(--accent);
    transition: var(--transition-smooth);
}

.text-link:hover::after {
    width: 72px;
}

.dna-cards {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.dna-card {
    position: relative;
    min-height: 220px;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(228, 223, 213, 0.8);
    backdrop-filter: blur(14px);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.dna-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(109, 40, 217, 0.08), transparent 45%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.dna-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(18, 14, 28, 0.06);
    border-color: rgba(109, 40, 217, 0.24);
}

.dna-card:hover::before {
    opacity: 1;
}

.dna-card.featured {
    background: linear-gradient(145deg, var(--accent), var(--accent-strong));
    color: white;
    border-color: transparent;
    box-shadow: 0 20px 45px rgba(109, 40, 217, 0.25);
}

.dna-card.featured p,
.dna-card.featured .dna-index {
    color: rgba(255, 255, 255, 0.8);
}

.dna-index {
    display: block;
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 18px;
    font-weight: 800;
    font-family: IranSans;
}

.dna-card.featured .dna-index {
    color: var(--neon-accent);
}

.dna-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 850;
}

.dna-card p {
    color: var(--muted);
    line-height: 1.8;
    font-size: 0.95rem;
}

.projects-section {
    padding: 140px 0;
    background: #f1efe9;
    /* Subtly darker off-white to create depth */
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.projects-container {
    width: min(1200px, 90%);
    margin: auto;
}

.projects-heading {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 80px;
    letter-spacing: -0.02em;
}

.project-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 120px;
    text-decoration: none;
    color: var(--text);
    opacity: 0;
    transform: translateY(60px);
    transition: all .8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-card.show {
    opacity: 1;
    transform: translateY(0);
}

.project-card:nth-child(even) {
    grid-template-columns: 1fr 1.2fr;
}

.project-image {
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 60px rgba(18, 14, 28, 0.08);
    border: 1px solid rgba(228, 223, 213, 0.9);
}

.project-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform .8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-card:hover img {
    transform: scale(1.03);
}

.project-index {
    font-size: 14px;
    font-weight: 800;
    color: var(--muted);
    margin-bottom: 15px;
    display: block;
    letter-spacing: 0.1em;
    font-family: IranSans;
}

.project-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 18px;
    line-height: 1.3;
}

.project-meta {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.9;
    margin-bottom: 30px;
}

.project-link {
    font-weight: 700;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.project-link::after {
    content: "←";
    transition: transform 0.3s ease;
}

.project-card:hover .project-link::after {
    transform: translateX(-6px);
}

.transition-bridge {
    height: 250px;
    background: linear-gradient(180deg,
            #f5f1e8 0%,
            #2a211b 40%,
            var(--dark-bg) 100%);
    position: relative;
    z-index: 1;
    margin-top: -1px;
}

.tech-ecosystem {
    padding: 100px 20px 140px;
    background: var(--dark-bg);
    color: var(--dark-text);
    position: relative;
    z-index: 2;
}

.eco-header {
    text-align: center;
    margin-bottom: 80px;
}

.eco-header h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg,
            #ffffff 0%,
            #d7a17a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.eco-header p {
    color: var(--dark-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.eco-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

.eco-column {
    background: linear-gradient(145deg,
            #171311,
            #0d0b0a);
    border-radius: var(--radius-xl);
    padding: 40px;
    border: 1px solid var(--dark-line);
    transition: var(--transition-smooth);
    position: relative;
}

.eco-column::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right,
            rgba(181, 106, 59, 0.08),
            transparent 45%);
    opacity: 0;
    transition: opacity 0.4s;
}

.eco-column:hover {
    transform: translateY(-8px);
    border-color: rgba(181, 106, 59, 0.28);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.eco-column:hover::before {
    opacity: 1;
}

.eco-column h3 {
    margin-bottom: 25px;
    font-size: 1.35rem;
    font-weight: 800;
    border-bottom: 1px solid var(--dark-line);
    padding-bottom: 12px;
}

.skill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.skill-chip img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.skill-chip span {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.skill-chip:hover {
    background: rgba(181, 106, 59, 0.10);
    border-color: rgba(181, 106, 59, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .4);
}

.ai-future {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-bg);
    overflow: hidden;
    color: var(--dark-text);
    padding: 120px 20px;
    border-top: 1px solid var(--dark-line);
}

#aiGrid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: .18;
}

.ai-content {
    position: relative;
    max-width: 900px;
    text-align: center;
    z-index: 2;
}

.ai-title {
    font-size: clamp(40px, 7vw, 100px);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 50px;
}

.line1 {
    display: block;
    opacity: .6;
}

.line2 {
    display: block;
    color: var(--accent);
    min-height: 120px;
}

.line3 {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    transition: 1s;
}

.line3.show {
    opacity: 1;
    transform: translateY(0);
}

.ai-message {
    font-size: 1.25rem;
    line-height: 2.1;
    opacity: 0;
    transition: 1.2s;
    max-width: 650px;
    margin: auto;
    color: var(--dark-muted);
}

.ai-message.show {
    opacity: .85;
}

.ai-title span {
    text-shadow: 0 0 35px rgba(181, 106, 59, 0.35);
}

.final-cta {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-bg);
    color: var(--dark-text);
    overflow: hidden;
    padding: 120px 20px;
    text-align: center;
}

.cta-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle,
            rgba(181, 106, 59, 0.12),
            transparent);
    filter: blur(120px);
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.25) translate(20px, -20px);
    }
}

.cta-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.cta-tag {
    color: var(--accent);
    letter-spacing: 3px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.cta-title {
    font-size: clamp(45px, 7vw, 90px);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 30px;
}

.cta-title span {
    color: var(--accent);
    text-shadow: 0 0 40px rgba(181, 106, 59, 0.45);
}

.cta-text {
    color: var(--dark-muted);
    max-width: 600px;
    margin: 0 auto 50px;
    line-height: 1.95;
    font-size: 1.1rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 48px;
    border-radius: 50px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 15px 35px rgba(181, 106, 59, 0.28);
    transition: var(--transition-smooth);
}

.cta-btn:hover {
    transform: scale(1.04) translateY(-2px);
    background: var(--accent-strong);
    box-shadow: 0 20px 45px rgba(181, 106, 59, 0.42);
}

.cta-links {
    margin-top: 50px;
    display: flex;
    gap: 30px;
    justify-content: center;
}

.cta-links a {
    color: rgba(255, 255, 255, .4);
    font-size: 14px;
    transition: var(--transition-smooth);
}

.cta-links a:hover {
    color: var(--accent);
}

.cta-socials {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.neon-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition-smooth);
}

.neon-icon svg {
    width: 24px;
    fill: var(--dark-muted);
    transition: var(--transition-smooth);
}

.neon-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
    filter: blur(15px);
    transition: var(--transition-smooth);
}

.neon-icon:hover {
    transform: translateY(-6px) scale(1.08);
    border-color: var(--accent);
}

.neon-icon:hover svg {
    fill: white;
}

.neon-icon:hover::before {
    opacity: .4;
    filter: blur(25px);
}

.site-footer-v2 {
    position: relative;
    background:
        linear-gradient(180deg,
            rgba(13, 11, 10, 1) 0%,
            rgba(11, 9, 8, 1) 100%);
    color: var(--dark-text);
    padding: 120px 0 32px;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.site-footer-v2::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(181, 106, 59, 0.03) 0%,
            transparent 28%);
    pointer-events: none;
}

.footer-container-v2 {
    position: relative;
    z-index: 2;
    width: min(var(--container), 92%);
    margin: 0 auto;
}

.footer-heading-row {
    max-width: 820px;
    margin-bottom: 64px;
}

.footer-label {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(181, 106, 59, 0.18);
    background: rgba(181, 106, 59, 0.08);
    color: #d7a17a;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-main-title {
    font-size: clamp(2.4rem, 5vw, 5rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--dark-text);
}

.footer-main-title span {
    display: block;
    color: rgba(247, 241, 234, 0.58);
    margin-top: 8px;
    font-weight: 700;
}

.footer-grid-v2 {
    display: grid;
    grid-template-columns: 1.3fr 0.85fr 0.85fr;
    gap: 56px;
    padding: 42px 0 56px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-intro p {
    max-width: 520px;
    color: var(--dark-muted);
    font-size: 1.02rem;
    line-height: 2.1;
    margin-bottom: 26px;
}

.footer-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--dark-text);
    font-weight: 700;
    font-size: 0.98rem;
    position: relative;
}

.footer-cta-link::after {
    content: "";
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), rgba(181, 106, 59, 0.2));
    transition: width 0.3s ease;
}

.footer-cta-link:hover {
    color: #ffffff;
}

.footer-cta-link:hover::after {
    width: 74px;
}

.footer-links-col h3 {
    margin-bottom: 18px;
    color: rgba(247, 241, 234, 0.96);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.footer-links-col ul {
    list-style: none;
}

.footer-links-col li {
    margin-bottom: 14px;
}

.footer-links-col a {
    color: var(--dark-muted);
    font-size: 0.98rem;
    transition: var(--transition-snappy);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links-col a::before {
    content: "";
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.25s ease;
}

.footer-links-col a:hover {
    color: var(--dark-text);
    transform: translateX(-4px);
}

.footer-links-col a:hover::before {
    width: 18px;
}

.footer-bottom-v2 {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 20px;
    padding-top: 22px;
}

.footer-signature {
    display: flex;
    align-items: center;
}

.footer-availability {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(247, 241, 234, 0.7);
    font-size: 0.92rem;
}

.availability-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 16px rgba(181, 106, 59, 0.55);
}

.footer-copy {
    color: rgba(247, 241, 234, 0.46);
    font-size: 0.9rem;
    text-align: center;
}

.footer-top-btn {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(181, 106, 59, 0.18);
    border-radius: 50%;
    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.04) 0%,
            rgba(181, 106, 59, 0.08) 100%);
    color: var(--dark-text);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 10px 24px rgba(0, 0, 0, 0.24);
}

.footer-top-btn:hover {
    transform: translateY(-4px);
    border-color: rgba(181, 106, 59, 0.38);
    background:
        linear-gradient(180deg,
            rgba(181, 106, 59, 0.22) 0%,
            rgba(181, 106, 59, 0.10) 100%);
    box-shadow:
        0 16px 28px rgba(0, 0, 0, 0.28),
        0 0 24px rgba(181, 106, 59, 0.12);
}

.footer-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    opacity: 0.34;
}

.footer-orb-1 {
    width: 320px;
    height: 320px;
    top: 40px;
    left: -80px;
    background: rgba(181, 106, 59, 0.10);
}

.footer-orb-2 {
    width: 260px;
    height: 260px;
    bottom: 30px;
    right: -40px;
    background: rgba(200, 169, 120, 0.08);
}

.footer-noise {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    pointer-events: none;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.22) 0.6px, transparent 0.6px);
    background-size: 9px 9px;
    mix-blend-mode: soft-light;
}

@media (max-width: 1024px) {
    .footer-grid-v2 {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-intro {
        grid-column: 1 / -1;
    }

    .footer-bottom-v2 {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .footer-copy {
        text-align: right;
    }
}

@media (max-width: 768px) {
    .site-footer-v2 {
        padding: 88px 0 24px;
    }

    .footer-heading-row {
        margin-bottom: 42px;
    }

    .footer-main-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .footer-grid-v2 {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 32px 0 40px;
    }

    .footer-intro p,
    .footer-links-col a,
    .footer-copy {
        font-size: 0.94rem;
    }

    .footer-label {
        font-size: 0.66rem;
        letter-spacing: 0.12em;
    }

    .footer-bottom-v2 {
        gap: 16px;
    }

    .footer-top-btn {
        width: 48px;
        height: 48px;
    }
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--text);
}

@media (max-width: 1100px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-title,
    .hero-text {
        margin-inline: auto;
    }
}

@media (max-width: 1024px) {
    .dna-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .manifesto-grid {
        grid-template-columns: 1fr;
    }

    .manifesto-text {
        padding-top: 0;
    }
}

@media (max-width: 900px) {
    .project-card {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .project-image img {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 110%;
        right: 0;
        width: 100%;
        background: #fff;
        padding: 25px;
        border-radius: var(--radius-lg);
        flex-direction: column;
        align-items: center;
        gap: 18px;
        display: flex;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: var(--transition-smooth);
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .main-nav.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .header-action {
        display: none;
    }

    .hero {
        padding-top: 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-text {
        font-size: 0.98rem;
    }

    .photo-frame {
        width: 240px;
        height: 300px;
        transform: none;
    }

    .visual-wrap {
        max-width: 340px;
        margin: auto;
    }

    .skill-1 {
        top: -10px;
        right: 10px;
    }

    .skill-2 {
        top: 35px;
        left: -10px;
    }

    .skill-3 {
        bottom: 55px;
        right: -10px;
    }

    .skill-4 {
        bottom: -10px;
        left: 30px;
    }

}

@media (max-width: 640px) {
    .dna-cards {
        grid-template-columns: 1fr;
    }

    .manifesto {
        margin: 80px auto;
    }

    .manifesto-title {
        font-size: 1.9rem;
    }

    .dna-card {
        min-height: auto;
    }
}

.resume-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #161311;
    color: #f7f1ea;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
}

.resume-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-6px);
}

.status-widget {
    position: fixed;
    left: 24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(22, 19, 17, 0.96);
    color: #f7f1ea;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.9rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 9999;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.status-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-icon {
    font-size: 1.1rem;
}

.status-close {
    background: none;
    border: none;
    color: #f7f1ea;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.7;
}

.status-close:hover {
    opacity: 1;
}

.status-widget.hidden {
    transform: translateX(-120%);
    opacity: 0;
}

.status-toggle {
    position: fixed;
    left: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #161311;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: none;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {

    .status-widget {
        left: 12px;
        right: 12px;
        bottom: 16px;
        justify-content: center;
        font-size: 0.85rem;
    }

}

html {
    scrollbar-width: thin;
    scrollbar-color: #8a5334 #161311;
}

::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}

::-webkit-scrollbar-track {
    background:
        linear-gradient(180deg,
            rgba(13, 11, 10, 0.98) 0%,
            rgba(22, 19, 17, 0.96) 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.04);
}

::-webkit-scrollbar-thumb {
    background:
        linear-gradient(180deg,
            #6f432b 0%,
            #b56a3b 45%,
            #d08a57 100%);
    border-radius: 999px;
    border: 3px solid rgba(22, 19, 17, 0.95);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        0 0 12px rgba(181, 106, 59, 0.18);
    min-height: 60px;
}

::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(180deg,
            #8b5333 0%,
            #c77743 50%,
            #e09a63 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 18px rgba(199, 119, 67, 0.28);
}

::-webkit-scrollbar-thumb:active {
    background:
        linear-gradient(180deg,
            #5f3925 0%,
            #a76035 50%,
            #c9804a 100%);
}

::-webkit-scrollbar-corner {
    background: #161311;
}

.footer-top-btn .top-icon {
    transition: transform .25s ease;
}

.footer-top-btn:hover .top-icon {
    transform: translateY(-2px);
}

.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 0;
    z-index: 9999;
    pointer-events: none;
}

.scroll-indicator-track {
    position: relative;
    width: 100%;
    height: 4px;
    background:
        linear-gradient(90deg,
            rgba(255, 255, 255, 0.02),
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.02));
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.scroll-indicator-fill {
    position: relative;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg,
            #6f3d21 0%,
            #9a5a31 20%,
            #b56a3b 42%,
            #d08a5f 68%,
            #f0c29d 100%);
    box-shadow:
        0 0 12px rgba(181, 106, 59, 0.35),
        0 0 28px rgba(181, 106, 59, 0.22),
        0 0 60px rgba(181, 106, 59, 0.10);
    transition: width 0.08s linear;
    will-change: width;
}

.scroll-indicator-glow {
    position: absolute;
    inset: -6px 0 -6px 0;
    background: linear-gradient(90deg,
            rgba(181, 106, 59, 0.0) 0%,
            rgba(181, 106, 59, 0.14) 55%,
            rgba(240, 194, 157, 0.22) 100%);
    filter: blur(10px);
    opacity: 0.95;
    pointer-events: none;
}

.scroll-indicator-head {
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    width: 24px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.15),
            rgba(255, 255, 255, 0.92));
    box-shadow:
        0 0 10px rgba(255, 255, 255, 0.28),
        0 0 22px rgba(240, 194, 157, 0.35),
        0 0 38px rgba(181, 106, 59, 0.25);
    filter: blur(0.4px);
    opacity: 0.95;
}

.scroll-indicator-fill::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg,
            transparent 0%,
            rgba(255, 255, 255, 0.08) 35%,
            rgba(255, 255, 255, 0.24) 50%,
            rgba(255, 255, 255, 0.08) 65%,
            transparent 100%);
    background-size: 220% 100%;
    animation: scrollBarShimmer 3.8s linear infinite;
    mix-blend-mode: screen;
    opacity: 0.85;
}

@keyframes scrollBarShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -40% 0;
    }
}

.scroll-indicator-fill.is-start .scroll-indicator-head,
.scroll-indicator-fill.is-start .scroll-indicator-glow {
    opacity: 0;
}

.scroll-indicator-fill.is-scrolling {
    box-shadow:
        0 0 14px rgba(181, 106, 59, 0.42),
        0 0 34px rgba(181, 106, 59, 0.26),
        0 0 70px rgba(181, 106, 59, 0.14);
}

@media (max-width: 768px) {
    .scroll-indicator-track {
        height: 3px;
    }

    .scroll-indicator-head {
        width: 18px;
        height: 8px;
        right: -8px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .scroll-indicator-fill,
    .scroll-indicator-fill::before,
    .scroll-indicator-glow,
    .scroll-indicator-head {
        animation: none !important;
        transition: none !important;
    }
}

.skill-chip {
    position: relative;
    overflow: visible;
    -webkit-tap-highlight-color: transparent;
}

.skill-chip::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 14px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
    background: linear-gradient(135deg,
            rgba(181, 106, 59, 0.18),
            rgba(181, 106, 59, 0.03));
}

.skill-chip:hover::after,
.skill-chip.is-active::after {
    opacity: 1;
}

.skill-chip-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 14px);
    transform: translateX(-50%) translateY(8px) scale(0.96);
    width: 210px;
    padding: 14px 14px 12px;
    border-radius: 16px;
    background: linear-gradient(180deg,
            rgba(27, 22, 19, 0.98),
            rgba(13, 11, 10, 0.98));
    border: 1px solid rgba(181, 106, 59, 0.18);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.45),
        0 0 30px rgba(181, 106, 59, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.28s ease,
        transform 0.28s ease,
        visibility 0.28s ease;
    z-index: 30;
}

.skill-chip-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: rgba(13, 11, 10, 0.98) transparent transparent transparent;
}

.skill-chip:hover .skill-chip-tooltip,
.skill-chip.is-active .skill-chip-tooltip,
.skill-chip:focus-within .skill-chip-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.skill-tooltip-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.skill-tooltip-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
}

.skill-tooltip-level {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

.skill-tooltip-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
}

.skill-tooltip-fill {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg,
            #7f4726 0%,
            #b56a3b 45%,
            #e0ab81 100%);
    box-shadow:
        0 0 12px rgba(181, 106, 59, 0.25),
        0 0 22px rgba(181, 106, 59, 0.18);
    transition: width 0.55s cubic-bezier(.22, 1, .36, 1);
    position: relative;
}

.skill-tooltip-fill::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 245, 236, 0.95);
    box-shadow:
        0 0 10px rgba(255, 255, 255, 0.18),
        0 0 18px rgba(224, 171, 129, 0.35);
}

.skill-tooltip-caption {
    margin-top: 10px;
    font-size: 0.76rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.58);
}

@media (hover: none) and (pointer: coarse) {
    .skill-chip:hover .skill-chip-tooltip {
        opacity: 0;
        visibility: hidden;
        transform: translateX(-50%) translateY(8px) scale(0.96);
    }

    .skill-chip.is-active .skill-chip-tooltip {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .skill-chip-tooltip {
        width: 190px;
        bottom: calc(100% + 12px);
    }

    .skill-tooltip-name {
        font-size: 0.88rem;
    }
}

.footer-update-badge {
    margin-top: 12px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.02em;

}

.footer-update-badge svg {
    color: var(--accent);
    opacity: 0.7;
}

.idle-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(27, 22, 19, 0.9);
    border: 1px solid var(--accent);
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.idle-notification.show {
    transform: translateY(0);
    opacity: 1;
}