﻿/* =========================================
   DESIGN SYSTEM
========================================= */
:root {
    --bg-primary: #080b12;
    --bg-secondary: #0d111a;
    --bg-card: #111722;
    --accent-blue: #1677ff;
    --accent-blue-bright: #2490ff;
    --accent-red: #ff3b1f;
    --accent-red-bright: #ff593f;
    --text-primary: #f5f5f5;
    --text-secondary: #a7adb8;
    --text-muted: #6f7682;
    --border: rgba(255, 255, 255, 0.10);
    --border-light: rgba(255, 255, 255, 0.16);
    --glass: rgba(12, 16, 25, 0.62);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --container-width: 1200px;
    --font-body: "Inter", sans-serif;
    --font-heading: "Space Grotesk", sans-serif;
    --font-display: "DM Serif Display", serif;
}

/* =========================================
   RESET
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    font: inherit;
}
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-blue-bright);
    outline-offset: 4px;
}

/* =========================================
   NAVBAR
========================================= */
.site-header {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
}
.navbar {
    width: min(calc(100% - 48px), var(--container-width));
    height: 68px;
    margin: 0 auto;
    padding: 0 10px 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    background: rgba(8, 11, 18, 0.68);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}
.brand-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    display: block;
}
.brand-name {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

/* Navigation */
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-link {
    position: relative;
    padding: 10px 15px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition:
        color 0.3s ease,
        background 0.3s ease;
}
.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}
.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 50%;
    width: 4px;
    height: 4px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: var(--accent-red);
    box-shadow:
        0 0 10px var(--accent-red);
}

/* Navbar CTA */
.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 17px;
    border-radius: 999px;
    background: var(--text-primary);
    color: #080b12;
    font-size: 12px;
    font-weight: 700;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 25px rgba(255, 255, 255, 0.15);
}
.nav-cta span {
    font-size: 15px;
}

/* Mobile menu */
.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--glass);
    cursor: pointer;
}
.mobile-menu-button span {
    display: block;
    width: 16px;
    height: 1px;
    margin: 5px auto;
    background: var(--text-primary);
}

/* =========================================
   HERO
========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

/* Background image */
.hero-background {
    position: absolute;
    inset: 0;
    z-index: -5;
    background-image:
        url("assets/images/hero-tech-bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.72;
}

/* Dark overlay */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -4;
    background:
        linear-gradient(
            90deg,
            rgba(8, 11, 18, 0.22),
            rgba(8, 11, 18, 0.35),
            rgba(8, 11, 18, 0.25)
        );
}

/* Bottom fade */
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 220px;
    z-index: -2;
    background:
        linear-gradient(
            to bottom,
            transparent,
            var(--bg-primary)
        );
}

/* =========================================
   ANIMATED LIGHTS
========================================= */
.hero-glow {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.16;
    z-index: -3;
    pointer-events: none;
}
.hero-glow-blue {
    left: -200px;
    top: 25%;
    background: var(--accent-blue);
    animation:
        blueGlow 8s ease-in-out infinite alternate;
}
.hero-glow-red {
    right: -200px;
    top: 20%;
    background: var(--accent-red);
    animation:
        redGlow 9s ease-in-out infinite alternate;
}
@keyframes blueGlow {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(180px, -40px, 0);
    }
}
@keyframes redGlow {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-160px, 50px, 0);
    }
}

/* =========================================
   MOVING TECH LINES
========================================= */
.tech-line {
    position: absolute;
    height: 1px;
    opacity: 0.55;
    pointer-events: none;
    z-index: -1;
}
.tech-line::after {
    content: "";
    position: absolute;
    top: -2px;
    width: 80px;
    height: 5px;
    border-radius: 50%;
    filter: blur(2px);
}
.tech-line-one {
    top: 28%;
    left: -20%;
    width: 55%;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(0, 102, 255, 0.15),
            var(--accent-blue),
            transparent
        );
    animation:
        lineMoveOne 7s linear infinite;
}
.tech-line-one::after {
    right: 0;
    background: var(--accent-blue);
}
.tech-line-two {
    top: 64%;
    right: -20%;
    width: 60%;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 59, 31, 0.15),
            var(--accent-red),
            transparent
        );
    animation:
        lineMoveTwo 9s linear infinite;
}
.tech-line-two::after {
    left: 0;
    background: var(--accent-red);
}
.tech-line-three {
    top: 47%;
    left: -30%;
    width: 40%;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(36, 144, 255, 0.15),
            var(--accent-blue),
            transparent
        );
    animation:
        lineMoveThree 11s linear infinite;
}
.tech-line-three::after {
    right: 0;
    background: var(--accent-blue);
}
@keyframes lineMoveOne {
    from {
        transform: translateX(-10%);
    }
    to {
        transform: translateX(150%);
    }
}
@keyframes lineMoveTwo {
    from {
        transform: translateX(10%);
    }
    to {
        transform: translateX(-150%);
    }
}
@keyframes lineMoveThree {
    from {
        transform: translateX(-20%);
    }
    to {
        transform: translateX(180%);
    }
}

/* =========================================
   HERO CONTENT
========================================= */
.hero-content {
    width: min(
        calc(100% - 48px),
        var(--container-width)
    );
    margin: 0 auto;
    padding-top: 80px;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    background:
        rgba(8, 11, 18, 0.45);
    backdrop-filter: blur(10px);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.13em;
    animation:
        heroReveal 0.8s ease both;
}
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #20d879;
    box-shadow:
        0 0 12px #20d879;
    animation:
        statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

/* =========================================
   HERO TITLE
========================================= */
.hero-title {
    max-width: 900px;
    margin-top: 28px;
    font-family: var(--font-heading);
    font-size: clamp(
        52px,
        7vw,
        94px
    );
    line-height: 0.98;
    font-weight: 600;
    letter-spacing: -0.055em;
    animation:
        heroReveal 0.9s 0.1s ease both;
}
.hero-title-accent {
    color: transparent;
    background:
        linear-gradient(
            100deg,
            #ffffff 0%,
            #a9c9ff 42%,
            var(--accent-blue) 100%
        );
    -webkit-background-clip: text;
    background-clip: text;
}
.hero-title-italic {
    font-family: var(--font-display);
    font-weight: 400;
    color: transparent;
    background:
        linear-gradient(
            100deg,
            #ff9a8b,
            var(--accent-red)
        );
    -webkit-background-clip: text;
    background-clip: text;
}

/* =========================================
   DESCRIPTION
========================================= */
.hero-description {
    max-width: 620px;
    margin-top: 30px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    animation:
        heroReveal 0.9s 0.2s ease both;
}

/* =========================================
   BUTTONS
========================================= */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 36px;
    animation:
        heroReveal 0.9s 0.3s ease both;
}
.button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}
.button-primary {
    background:
        linear-gradient(
            100deg,
            var(--accent-blue),
            #155be5
        );
    color: white;
    box-shadow:
        0 10px 35px rgba(22, 119, 255, 0.20);
}
.button-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 15px 40px rgba(22, 119, 255, 0.35);
}
.button-secondary {
    border: 1px solid var(--border-light);
    background:
        rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}
.button-secondary:hover {
    transform: translateY(-3px);
    background:
        rgba(255, 255, 255, 0.08);
}
.button-arrow {
    font-size: 17px;
}

/* =========================================
   HERO META
========================================= */
.hero-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 75px;
    animation:
        heroReveal 0.9s 0.4s ease both;
}
.meta-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.meta-label {
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.14em;
}
.meta-value {
    color: var(--text-secondary);
    font-size: 12px;
}
.meta-divider {
    width: 1px;
    height: 30px;
    background: var(--border);
}

/* =========================================
   SCROLL INDICATOR
========================================= */
.hero-scroll-indicator {
    position: absolute;
    right: 34px;
    bottom: 45px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 9px;
    letter-spacing: 0.15em;
    writing-mode: vertical-rl;
    animation:
        heroReveal 1s 0.6s ease both,
        scrollFloat 3s ease-in-out 1.6s infinite;
}
.scroll-line {
    width: 1px;
    height: 45px;
    background:
        linear-gradient(
            to bottom,
            var(--accent-red),
            transparent
        );
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%,
    100% {
        height: 45px;
        opacity: 1;
    }
    50% {
        height: 70px;
        opacity: 0.5;
    }
}
@keyframes scrollFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* =========================================
   HERO ANIMATION
========================================= */
@keyframes heroReveal {
    from {
        opacity: 0;
        transform:
            translateY(25px);
    }
    to {
        opacity: 1;
        transform:
            translateY(0);
    }
}

/* =========================================
   PLACEHOLDER SECTIONS
========================================= */
.section-placeholder {
    min-height: 1px;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    .nav-cta {
        display: none;
    }
    .mobile-menu-button {
        display: block;
    }
    .hero-title {
        font-size: clamp(
            48px,
            9vw,
            72px
        );
    }
}

@media (max-width: 600px) {
    .site-header {
        top: 12px;
        padding: 0 12px;
    }
    .navbar {
        width: 100%;
        height: 60px;
        padding-left: 12px;
        padding-right: 9px;
    }
    .brand-name {
        font-size: 11px;
    }
    .brand-mark {
        width: 34px;
        height: 34px;
        font-size: 11px;
    }
    .hero {
        min-height: 100svh;
    }
    .hero-background {
        background-position: center;
        opacity: 0.58;
    }
    .hero-content {
        width: calc(100% - 36px);
        padding-top: 80px;
    }
    .hero-eyebrow {
        font-size: 8px;
        padding: 7px 10px;
    }
    .hero-title {
        margin-top: 22px;
        font-size: clamp(
            43px,
            13vw,
            62px
        );
        line-height: 1;
    }
    .hero-description {
        margin-top: 24px;
        font-size: 14px;
        line-height: 1.7;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        margin-top: 28px;
    }
    .button {
        width: 100%;
    }
    .hero-meta {
        display: grid;
        grid-template-columns:
            1fr 1fr;
        gap: 18px;
        margin-top: 45px;
    }
    .meta-divider {
        display: none;
    }
    .meta-value {
        font-size: 11px;
    }
    .hero-scroll-indicator {
        display: none;
    }
    .tech-line {
        opacity: 0.35;
    }
}

/* =========================================
   REDUCED MOTION
========================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================
   NAVBAR SCROLL STATE
========================================= */
.site-header.scrolled .navbar {
    background:
        rgba(8, 11, 18, 0.86);
    border-color:
        rgba(255, 255, 255, 0.14);
    box-shadow:
        0 12px 45px rgba(0, 0, 0, 0.38);
}

/* =========================================
   MOBILE NAVIGATION STATE
========================================= */
@media (max-width: 900px) {
    .nav-links.mobile-open {
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid var(--border-light);
        border-radius: 20px;
        background:
            rgba(8, 11, 18, 0.92);
        backdrop-filter: blur(20px);
        box-shadow:
            0 20px 50px rgba(0, 0, 0, 0.35);
    }
    .nav-links.mobile-open .nav-link {
        padding: 14px;
        border-radius: 10px;
    }
    .nav-links.mobile-open .nav-link.active {
        display: inline-flex;
        align-items: center;
        width: fit-content;
        padding-left: 14px;
        padding-right: 14px;
    }
    .nav-links.mobile-open .nav-link.active::after {
        position: static;
        display: inline-block;
        flex: 0 0 4px;
        margin-left: 8px;
        transform: none;
    }
    .nav-links.mobile-open .nav-link:hover {
        background:
            rgba(255, 255, 255, 0.05);
    }
}

/* =========================================================
   ABOUT SECTION
   ========================================================= */
.about-section {
    position: relative;
    padding: 80px 0 70px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 10% 40%,
            rgba(0, 102, 255, 0.08),
            transparent 35%
        ),
        radial-gradient(
            circle at 90% 65%,
            rgba(255, 50, 50, 0.07),
            transparent 35%
        );
}

/* Container */
.section-container {
    width: min(1200px, calc(100% - 80px));
    margin: 0 auto;
}

/* Section label */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 15px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.025);
    color: #9da7b8;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
}
.label-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1677ff;
    box-shadow:
        0 0 10px rgba(22, 119, 255, 0.8);
}
.label-dot.red {
    background: #ff3b1f;
    box-shadow:
        0 0 10px rgba(255, 59, 31, 0.8);
}

/* Header */
.about-header {
    max-width: 850px;
    margin-bottom: 80px;
}
.about-header h2 {
    margin: 25px 0 0;
    font-size: clamp(48px, 6vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.045em;
    font-weight: 600;
    color: #f5f7fa;
}
.about-header h2 span {
    display: block;
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #6ea8ff 55%,
        #ff5a45 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Main grid */
.about-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);
    gap: 70px;
    align-items: start;
}

/* About text */
.about-content {
    max-width: 600px;
}
.about-content p {
    margin: 0 0 24px;
    color: #929baa;
    font-size: 17px;
    line-height: 1.8;
}
.about-content .about-intro {
    color: #e5e8ed;
    font-size: 21px;
    line-height: 1.65;
    margin-bottom: 28px;
}

/* Building cards */
.building-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.about-card {
    position: relative;
    min-height: 230px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.015)
        );
    backdrop-filter: blur(14px);
    overflow: hidden;
    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        background 0.35s ease;
}
.about-card::before {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    top: -45px;
    right: -45px;
    border-radius: 50%;
    background: rgba(22, 119, 255, 0.10);
    filter: blur(25px);
    pointer-events: none;
}
.about-card:hover {
    transform: translateY(-5px);
    border-color: rgba(22, 119, 255, 0.35);
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.02)
        );
}
.about-card-wide {
    grid-column: span 2;
    min-height: 190px;
}
.card-number {
    position: absolute;
    top: 22px;
    right: 25px;
    color: #596273;
    font-size: 12px;
    letter-spacing: 0.1em;
}
.card-icon {
    margin-bottom: 28px;
    color: #5c9dff;
    font-size: 27px;
}
.about-card h3 {
    margin: 0 0 12px;
    color: #f5f7fa;
    font-size: 20px;
    font-weight: 500;
}
.about-card p {
    margin: 0;
    color: #858f9f;
    font-size: 14px;
    line-height: 1.7;
}

/* =========================================================
   HOW I WORK
   ========================================================= */
.how-i-work {
    margin-top: 80px;
}
.work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 55px;
}
.work-header p {
    max-width: 430px;
    margin: 0;
    color: #858f9f;
    font-size: 15px;
    line-height: 1.7;
}

/* Process */
.work-process {
    display: grid;
    grid-template-columns:
        1fr
        auto
        1fr
        auto
        1fr
        auto
        1fr;
    align-items: center;
    gap: 20px;
    padding: 35px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.process-item {
    min-width: 0;
}
.process-number {
    display: block;
    margin-bottom: 25px;
    color: #4d8fff;
    font-size: 12px;
    letter-spacing: 0.12em;
}
.process-item h3 {
    margin: 0 0 10px;
    color: #f5f7fa;
    font-size: 18px;
    font-weight: 500;
}
.process-item p {
    margin: 0;
    color: #7f8999;
    font-size: 13px;
    line-height: 1.65;
}
.process-line {
    width: 35px;
    height: 1px;
    background:
        linear-gradient(
            90deg,
            rgba(22, 119, 255, 0.5),
            rgba(255, 59, 31, 0.5)
        );
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
    .section-container {
        width: min(100% - 40px, 700px);
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }
    .work-header {
        align-items: flex-start;
        flex-direction: column;
    }
    .work-process {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .process-line {
        display: none;
    }
}

@media (max-width: 600px) {
    .about-section {
        padding: 100px 0;
    }
    .section-container {
        width: calc(100% - 32px);
    }
    .about-header {
        margin-bottom: 55px;
    }
    .about-header h2 {
        font-size: 48px;
    }
    .about-content .about-intro {
        font-size: 18px;
    }
    .about-content p {
        font-size: 15px;
    }
    .building-cards {
        grid-template-columns: 1fr;
    }
    .about-card-wide {
        grid-column: span 1;
    }
    .work-process {
        grid-template-columns: 1fr;
    }
    .how-i-work {
        margin-top: 100px;
    }
}

/* =========================
   PROJECTS SECTION
========================= */
.projects-section {
    padding: 70px 5% 90px;
    position: relative;
    overflow: hidden;
}
.section-heading {
    max-width: 850px;
    margin-bottom: 70px;
}
.section-label {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #1677ff;
}
.section-heading h2 {
    margin: 0;
    font-size: clamp(42px, 6vw, 82px);
    line-height: 0.98;
    letter-spacing: -3px;
    color: #f5f7fa;
}
.section-heading h2 span {
    background: linear-gradient(
        90deg,
        #1677ff,
        #ff3b1f
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-heading p {
    max-width: 650px;
    margin-top: 25px;
    color: #94a3b8;
    font-size: 17px;
    line-height: 1.7;
}

/* PROJECT CONTAINER */
.projects-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* PROJECT CARD */
.project-card {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            rgba(22, 119, 255, 0.06),
            rgba(255, 59, 31, 0.04)
        ),
        rgba(11, 15, 25, 0.75);
    backdrop-filter: blur(15px);
    transition:
        transform 0.4s ease,
        border-color 0.4s ease;
}
.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(22, 119, 255, 0.35);
}

/* PROJECT IMAGE */
.project-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(
            circle at 30% 50%,
            rgba(22, 119, 255, 0.18),
            transparent 45%
        ),
        radial-gradient(
            circle at 75% 50%,
            rgba(255, 59, 31, 0.14),
            transparent 45%
        ),
        #080c14;
}
.project-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: opacity 0.45s ease;
}

.project-image-controls {
    position: absolute;
    right: 25px;
    bottom: 25px;
    left: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.project-progress {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex: 1;
}
.project-progress span {
    width: 18px;
    height: 2px;
    background: rgba(255, 255, 255, 0.35);
    transition: width 0.3s ease, background 0.3s ease;
}
.project-progress span.progress-active {
    width: 32px;
    background: #1677ff;
}
.project-arrow {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(5, 8, 15, 0.72);
    color: #f5f7fa;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease;
}
.project-arrow:hover,
.project-arrow:focus-visible {
    border-color: #1677ff;
    background: rgba(22, 119, 255, 0.35);
}

/* PROJECT NUMBER */
.project-number {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    background: rgba(5, 8, 15, 0.7);
    color: #f5f7fa;
    font-size: 13px;
    font-weight: 600;
}

/* PROJECT CONTENT */
.project-content {
    padding: 60px 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.project-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    font-size: 11px;
    letter-spacing: 1.8px;
    color: #64748b;
}
.project-content h3 {
    margin: 0 0 20px;
    font-size: clamp(30px, 3vw, 48px);
    line-height: 1.05;
    color: #f5f7fa;
}
.project-content p {
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* TECHNOLOGIES */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 35px;
}
.project-tech span {
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50px;
    color: #cbd5e1;
    font-size: 12px;
    background: rgba(255,255,255,0.025);
}

/* PROJECT LINK */
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: #f5f7fa;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: gap 0.3s ease;
}
.project-link:hover {
    gap: 16px;
}
.project-link span {
    color: #1677ff;
    font-size: 20px;
}

/* PLACEHOLDER */
.project-placeholder-content {
    text-align: center;
    color: #475569;
}
.project-placeholder-content span {
    display: block;
    font-size: 70px;
    font-weight: 700;
    opacity: 0.2;
}
.project-placeholder-content p {
    margin: 10px 0 0;
    font-size: 13px;
}

/* MOBILE */
@media (max-width: 900px) {
    .project-card {
        grid-template-columns: 1fr;
    }
    .project-image {
        aspect-ratio: 16 / 10;
    }
    .project-content {
        padding: 40px 30px;
    }
}

@media (max-width: 600px) {
    .projects-section {
        padding: 100px 5%;
    }
    .section-heading h2 {
        letter-spacing: -2px;
    }
    .project-image {
        aspect-ratio: 16 / 10;
    }
    .project-content {
        padding: 30px 22px;
    }
}

/* =========================
   SKILLS SECTION
========================= */
.skills-section {
    position: relative;
    padding: 95px 5% 110px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 8% 40%,
            rgba(22, 119, 255, 0.08),
            transparent 32%
        ),
        radial-gradient(
            circle at 92% 72%,
            rgba(255, 59, 31, 0.06),
            transparent 30%
        );
}
.skills-container {
    width: min(1100px, 100%);
    margin: 0 auto;
}
.skills-heading {
    max-width: 800px;
    margin-bottom: 58px;
}
.skills-heading .section-label {
    margin-bottom: 20px;
}
.skills-heading h2 {
    margin: 0;
    font-size: clamp(40px, 5.5vw, 72px);
    line-height: 1;
    letter-spacing: -2.5px;
    color: #f5f7fa;
}
.skills-heading h2 span {
    display: block;
    background: linear-gradient(90deg, #ffffff, #6ea8ff 58%, #ff5a45);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.skills-heading p {
    max-width: 590px;
    margin-top: 24px;
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.75;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.skill-card {
    position: relative;
    min-height: 184px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-md);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.014)),
        rgba(12, 16, 25, 0.62);
    backdrop-filter: blur(14px);
    overflow: hidden;
    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        background 0.35s ease;
}
.skill-card::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -35px;
    width: 125px;
    height: 125px;
    border-radius: 50%;
    background: rgba(22, 119, 255, 0.08);
    filter: blur(28px);
    pointer-events: none;
}
.skill-card:nth-child(2n)::before {
    background: rgba(255, 59, 31, 0.07);
}
.skill-card:hover {
    transform: translateY(-4px);
    border-color: rgba(22, 119, 255, 0.28);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
        rgba(12, 16, 25, 0.7);
}
.skill-card-wide {
    grid-column: span 2;
    min-height: 155px;
}
.skill-number {
    display: block;
    margin-bottom: 28px;
    color: #5f8fdc;
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 0.14em;
}
.skill-card h3 {
    position: relative;
    margin: 0 0 20px;
    color: #f5f7fa;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.25;
}
.skill-tags {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.skill-tags span {
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.2;
}
.skills-section.skills-ready .skill-card {
    opacity: 0;
    transform: translateY(18px);
}
.skills-section.skills-ready .skill-card.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.65s ease,
        transform 0.65s ease,
        border-color 0.35s ease,
        background 0.35s ease;
}

@media (max-width: 600px) {
    .skills-section {
        padding: 90px 5% 100px;
    }
    .skills-heading {
        margin-bottom: 42px;
    }
    .skills-heading h2 {
        letter-spacing: -1.8px;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .skill-card,
    .skill-card-wide {
        grid-column: span 1;
        min-height: 0;
        padding: 24px;
    }
}

/* =========================
   CONTACT SECTION
========================= */
.contact-section {
    position: relative;
    padding: 110px 5% 125px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 12% 55%,
            rgba(22, 119, 255, 0.09),
            transparent 31%
        ),
        radial-gradient(
            circle at 88% 38%,
            rgba(255, 59, 31, 0.07),
            transparent 30%
        );
}
.contact-container {
    width: min(1100px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: clamp(50px, 9vw, 130px);
    align-items: center;
}
.contact-copy {
    max-width: 670px;
}
.contact-copy .section-label {
    margin-bottom: 22px;
}
.contact-copy h2 {
    margin: 0;
    color: #f5f7fa;
    font-size: clamp(46px, 6vw, 80px);
    line-height: 0.98;
    letter-spacing: -3px;
}
.contact-copy h2 span {
    display: block;
    background: linear-gradient(90deg, #ffffff, #6ea8ff 58%, #ff5a45);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.contact-copy p {
    max-width: 560px;
    margin: 28px 0 0;
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.75;
}
.contact-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 36px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: #f5f7fa;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}
.contact-cta:hover,
.contact-cta:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(22, 119, 255, 0.55);
    background: rgba(22, 119, 255, 0.12);
}
.contact-cta-arrow,
.contact-social-arrow {
    color: var(--accent-blue-bright);
    font-size: 17px;
    transition: transform 0.3s ease;
}
.contact-cta:hover .contact-cta-arrow,
.contact-cta:focus-visible .contact-cta-arrow {
    transform: translate(3px, -3px);
}
.contact-panel {
    position: relative;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
        rgba(12, 16, 25, 0.66);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 65px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}
.contact-panel::before {
    content: "";
    position: absolute;
    top: -90px;
    right: -40px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(255, 59, 31, 0.08);
    filter: blur(35px);
    pointer-events: none;
}
.contact-details,
.contact-socials {
    position: relative;
}
.contact-details {
    display: grid;
    gap: 28px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.contact-detail {
    display: grid;
    gap: 8px;
}
.contact-detail-label {
    color: #6f7682;
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
}
.contact-email,
.contact-detail-value {
    color: #f5f7fa;
    font-size: 16px;
    line-height: 1.5;
}
.contact-email {
    width: fit-content;
    max-width: 100%;
    overflow-wrap: anywhere;
    transition: color 0.25s ease;
}
.contact-email:hover,
.contact-email:focus-visible {
    color: #8eb8ff;
}
.contact-socials {
    display: grid;
    margin-top: 20px;
}
.contact-social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: #cbd5e1;
    font-size: 13px;
    transition:
        color 0.25s ease,
        padding 0.25s ease;
}
.contact-social-link:last-child {
    border-bottom: 0;
}
.contact-social-link svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}
.contact-social-link .icon-fill {
    fill: currentColor;
    stroke: none;
}
.contact-social-link .contact-social-arrow {
    margin-left: auto;
    color: #6f7682;
    font-size: 16px;
}
.contact-social-link:hover,
.contact-social-link:focus-visible {
    padding-left: 5px;
    color: #f5f7fa;
}
.contact-social-link:hover .contact-social-arrow,
.contact-social-link:focus-visible .contact-social-arrow {
    color: var(--accent-blue-bright);
    transform: translate(2px, -2px);
}
.contact-cta:focus-visible,
.contact-email:focus-visible,
.contact-social-link:focus-visible {
    outline: 2px solid var(--accent-blue-bright);
    outline-offset: 4px;
}
.contact-section.contact-ready .contact-copy,
.contact-section.contact-ready .contact-panel {
    opacity: 0;
    transform: translateY(20px);
}
.contact-section.contact-ready .contact-panel {
    transform: translateY(26px);
}
.contact-section.contact-ready .contact-copy.is-visible,
.contact-section.contact-ready .contact-panel.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 55px;
    }
    .contact-copy {
        max-width: 760px;
    }
}

@media (max-width: 600px) {
    .contact-section {
        padding: 90px 5% 100px;
    }
    .contact-copy h2 {
        font-size: 48px;
        letter-spacing: -2px;
    }
    .contact-copy p {
        font-size: 15px;
    }
    .contact-panel {
        padding: 24px;
    }
    .contact-email,
    .contact-detail-value {
        font-size: 15px;
    }
}

/* =========================================
   SECTION DIVIDERS
========================================= */
.section-divider {
    position: relative;
    width: min(calc(100% - 80px), var(--container-width));
    height: 1px;
    margin: 0 auto;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent 100%
    );
}

/* Subtle glow accent in the center */
.section-divider::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-red));
    filter: blur(3px);
    opacity: 0.5;
    border-radius: 50%;
    pointer-events: none;
}

/* =========================
   FOOTER
========================= */
.site-footer {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(135deg, rgba(22, 119, 255, 0.045), transparent 45%),
        var(--bg-secondary);
}
.footer-container {
    width: min(var(--container-width), calc(100% - 80px));
    margin: 0 auto;
    padding: 56px 0 42px;
    display: grid;
    grid-template-columns: minmax(230px, 1.5fr) minmax(140px, 0.75fr) minmax(220px, 1fr);
    gap: 56px;
}
.footer-brand {
    max-width: 360px;
}
.footer-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}
.footer-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}
.footer-brand p {
    max-width: 340px;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.7;
}
.footer-navigation,
.footer-socials {
    display: grid;
    align-content: start;
    gap: 12px;
}
.footer-socials a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}
.footer-socials svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}
.footer-socials .icon-fill {
    fill: currentColor;
    stroke: none;
}
.footer-navigation a,
.footer-socials a,
.footer-email,
.back-to-top {
    width: fit-content;
    color: var(--text-secondary);
    font-size: 13px;
    transition: color 0.25s ease, transform 0.25s ease;
}
.footer-navigation a:hover,
.footer-navigation a:focus-visible,
.footer-socials a:hover,
.footer-socials a:focus-visible,
.footer-email:hover,
.footer-email:focus-visible,
.back-to-top:hover,
.back-to-top:focus-visible {
    color: var(--text-primary);
}
.footer-label {
    display: block;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
}
.footer-email {
    display: inline-block;
    margin-top: 18px;
    color: #cbd5e1;
    overflow-wrap: anywhere;
}
.footer-bottom {
    width: min(var(--container-width), calc(100% - 80px));
    margin: 0 auto;
    padding: 18px 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 11px;
}
.back-to-top {
    display: inline-flex;
    gap: 7px;
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .footer-container,
    .footer-bottom {
        width: calc(100% - 32px);
    }
    .footer-container {
        padding: 44px 0 34px;
        grid-template-columns: 1fr;
        gap: 34px;
    }
    .footer-brand {
        grid-column: auto;
    }
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}