/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #080808;
    --black-2: #0d0d0d;
    --black-3: #141414;
    --black-4: #1c1c1c;
    --white: #f5f5f0;
    --white-2: #e8e8e2;
    --white-3: #b0b0a8;
    --gray: #666660;
    --gray-light: #444440;
    --accent: #c8c8c0;
    --gold: #d4af7a;
    --easing: cubic-bezier(0.65, 0, 0.35, 1);
    --easing-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Syne', sans-serif;
    background-color: var(--black);
    color: var(--white-2);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

body.loading {
    overflow: hidden;
}

/* ============ TYPOGRAPHY ============ */
.mono {
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--gray);
    text-transform: uppercase;
}

em {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 1.1em;
}

h1, h2, h3 { color: var(--white); }
a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; }

/* ============ CUSTOM CURSOR ============ */
.cursor {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, width 0.3s var(--easing), height 0.3s var(--easing), background 0.3s;
    mix-blend-mode: difference;
}

.cursor-trail {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(245, 245, 240, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.5s var(--easing), width 0.4s var(--easing), height 0.4s var(--easing), opacity 0.3s;
}

body:has(a:hover) .cursor,
body:has(button:hover) .cursor {
    width: 20px;
    height: 20px;
}

/* ============ LOADER ============ */
.loader {
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--easing), visibility 0.8s;
}

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

.loader-inner {
    text-align: center;
}

.loader-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 8rem;
    font-weight: 300;
    color: var(--white);
    display: block;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    animation: loaderPulse 1.5s var(--easing) infinite alternate;
}

@keyframes loaderPulse {
    from { opacity: 0.3; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.loader-bar {
    width: 200px;
    height: 1px;
    background: var(--black-4);
    margin: 0 auto;
    overflow: hidden;
}

.loader-fill {
    height: 100%;
    background: var(--white);
    width: 0%;
    animation: loaderFill 1.8s var(--easing-out) forwards;
}

@keyframes loaderFill {
    to { width: 100%; }
}

/* ============ NAVIGATION ============ */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: padding 0.4s var(--easing), background 0.4s;
}

nav.scrolled {
    padding: 1rem 4%;
    background: rgba(8, 8, 8, 0.95);
}

.logo-g {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: -0.02em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray);
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.4s var(--easing);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0); }
}

/* ============ SECTION GLOBALS ============ */
.section {
    padding: 120px 4% 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.label-line {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.08);
    max-width: 100px;
}

.section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 3rem;
    color: var(--white);
}

/* ============ REVEAL ANIMATION ============ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--easing-out), transform 0.9s var(--easing-out);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--easing-out), transform 0.7s var(--easing-out);
}

.reveal-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for children */
.reveal-item:nth-child(1) { transition-delay: 0.1s; }
.reveal-item:nth-child(2) { transition-delay: 0.2s; }
.reveal-item:nth-child(3) { transition-delay: 0.3s; }
.reveal-item:nth-child(4) { transition-delay: 0.4s; }

/* ============ HERO ============ */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 4%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    z-index: 1;
}

.hero-eyebrow {
    margin-bottom: 2rem;
    opacity: 0;
    animation: heroFadeUp 0.8s var(--easing-out) 2s forwards;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(4rem, 10vw, 11rem);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--white);
    overflow: hidden;
}

.hero-title .line {
    display: block;
    opacity: 0;
    transform: translateY(110%);
    animation: heroSlideUp 1s var(--easing-out) forwards;
}

.hero-title .line:nth-child(1) { animation-delay: 2.1s; }
.hero-title .line:nth-child(2) { animation-delay: 2.25s; }
.hero-title .line:nth-child(3) { animation-delay: 2.4s; }

.hero-title .italic {
    font-style: italic;
    color: var(--gray);
}

@keyframes heroSlideUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeUp {
    to { opacity: 1; }
}

.hero-sub {
    display: flex;
    align-items: flex-end;
    gap: 4rem;
    margin-top: 3rem;
    opacity: 0;
    animation: heroFadeUp 0.8s var(--easing-out) 2.8s forwards;
}

.hero-sub p {
    max-width: 380px;
    color: var(--white-3);
    font-size: 0.95rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 4px;
    white-space: nowrap;
    transition: border-color 0.3s, gap 0.3s;
}

.hero-cta:hover {
    border-color: var(--white);
    gap: 16px;
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 4%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: heroFadeUp 0.8s var(--easing-out) 3.2s forwards;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--gray));
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
}

.hero-counter {
    position: absolute;
    bottom: 3rem;
    right: 4%;
    display: flex;
    gap: 3rem;
    opacity: 0;
    animation: heroFadeUp 0.8s var(--easing-out) 3s forwards;
}

.counter-item {
    text-align: right;
}

.counter-num {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--white);
    line-height: 1;
}

.counter-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    color: var(--gray);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: block;
    margin-top: 4px;
}

/* ============ ABOUT ============ */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 6rem;
    align-items: start;
    max-width: 1200px;
}

.profile-frame {
    position: relative;
    display: inline-block;
}

.profile-frame img {
    width: 340px;
    height: 420px;
    object-fit: cover;
    filter: grayscale(80%) contrast(1.1);
    transition: filter 0.8s var(--easing);
}

.profile-frame:hover img {
    filter: grayscale(0%) contrast(1);
}

.frame-border {
    position: absolute;
    top: 16px;
    left: 16px;
    right: -16px;
    bottom: -16px;
    border: 1px solid rgba(255,255,255,0.1);
    pointer-events: none;
    transition: transform 0.4s var(--easing);
}

.profile-frame:hover .frame-border {
    transform: translate(-4px, -4px);
}

.frame-tag {
    position: absolute;
    bottom: -2rem;
    left: 0;
    font-size: 0.7rem;
    color: var(--gray);
}

.about-quote {
    margin-top: 3rem;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(255,255,255,0.1);
}

.about-quote blockquote {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--white-3);
    line-height: 1.6;
}

.about-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.about-bio {
    color: var(--white-3);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.value-card {
    padding: 1.25rem;
    border: 1px solid rgba(255,255,255,0.06);
    background: var(--black-3);
    transition: border-color 0.3s, background 0.3s;
}

.value-card:hover {
    border-color: rgba(255,255,255,0.15);
    background: var(--black-4);
}

.value-icon {
    display: block;
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 0.75rem;
}

.value-card h4 {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.value-card p {
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.6;
}

.stack-section h4 {
    margin-bottom: 1rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-stack span {
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--gray);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: border-color 0.3s, color 0.3s;
}

.tech-stack span:hover {
    border-color: rgba(255,255,255,0.3);
    color: var(--white);
}

/* ============ SERVICES ============ */
#services {
    background: var(--black-2);
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 900px;
}

.service-item {
    display: grid;
    grid-template-columns: 80px 1fr 40px;
    align-items: start;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s var(--easing);
    cursor: default;
}

.service-item:first-child {
    border-top: 1px solid rgba(255,255,255,0.06);
}

.service-item:hover {
    padding-left: 1rem;
}

.service-num {
    color: var(--gray-light);
    padding-top: 4px;
}

.service-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.service-item:hover .service-content h3 {
    color: var(--white);
}

.service-content p {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.service-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.service-tags span {
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    padding: 3px 8px;
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--gray-light);
    letter-spacing: 0.05em;
}

.service-arrow {
    color: var(--gray-light);
    font-size: 1.2rem;
    padding-top: 2px;
    transition: transform 0.3s var(--easing), color 0.3s;
}

.service-item:hover .service-arrow {
    transform: translateX(6px) translateY(-6px);
    color: var(--white);
}

/* ============ PROJECTS ============ */
.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.projects-header p {
    max-width: 280px;
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.7;
    text-align: right;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.project-item {
    display: grid;
    grid-template-columns: 60px 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
}

.project-item:first-child {
    border-top: 1px solid rgba(255,255,255,0.06);
}

.project-item.reverse {
    direction: ltr;
}

.project-item.reverse .project-image-wrap {
    order: 3;
}

.project-item.reverse .project-details {
    order: 2;
}

.project-number {
    color: var(--gray-light);
    font-size: 0.7rem;
    align-self: flex-start;
    padding-top: 4px;
}

.project-image {
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/10;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%);
    transition: transform 0.8s var(--easing), filter 0.6s;
}

.project-item:hover .project-image img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 8, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s;
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.overlay-link {
    font-family: 'DM Mono', monospace;
    font-size: 0.8rem;
    color: var(--white);
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--white);
    padding-bottom: 2px;
}

.project-meta {
    margin-bottom: 0.75rem;
}

.project-details h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--white);
}

.project-details p {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.project-links {
    display: flex;
    gap: 1.5rem;
}

.p-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding-bottom: 2px;
    transition: color 0.3s, border-color 0.3s;
}

.p-link:hover {
    color: var(--white);
    border-color: var(--white);
}

/* ============ PROCESS ============ */
#process {
    background: var(--black-2);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
}

.process-step {
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    position: relative;
}

.step-num {
    font-size: 0.7rem;
    color: var(--gray-light);
    margin-bottom: 1.5rem;
}

.step-connector {
    position: absolute;
    top: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.8s var(--easing-out);
}

.process-step.active .step-connector {
    width: 100%;
}

.process-step h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.process-step p {
    font-size: 0.82rem;
    color: var(--gray);
    line-height: 1.7;
}

/* ============ TECH ICON GRID ============ */
.stack-group-wrap {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 0.5rem;
}

.stack-label {
    margin-bottom: 1rem;
    color: var(--gray);
    letter-spacing: 0.1em;
}

.tech-icons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 14px 10px 10px;
    background: var(--black-3);
    border: 1px solid rgba(255,255,255,0.06);
    width: 70px;
    cursor: default;
    transition: border-color 0.3s, transform 0.35s var(--easing), background 0.3s;
}

.tech-icon:hover {
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-6px);
    background: var(--black-4);
}

.tech-icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.tech-icon.icon-invert img {
    filter: invert(1) brightness(0.85);
}

.tech-icon span {
    font-family: 'DM Mono', monospace;
    font-size: 0.57rem;
    color: var(--gray);
    text-align: center;
    letter-spacing: 0.03em;
    line-height: 1.2;
    text-transform: uppercase;
}

/* ============ EDUCATION TIMELINE ============ */
.edu-timeline {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem 0 2rem;
}

.edu-center-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255,255,255,0.07);
    transform: translateX(-50%);
}

.edu-item {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    align-items: start;
    margin-bottom: 4.5rem;
    position: relative;
}

.edu-item:last-child {
    margin-bottom: 0;
}

.edu-dot-wrap {
    display: flex;
    justify-content: center;
    padding-top: 10px;
    position: relative;
    z-index: 2;
}

.edu-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-past {
    background: #e06c75;
    box-shadow: 0 0 0 4px rgba(224, 108, 117, 0.12);
}

.dot-current {
    background: #4ade80;
    box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.18);
    animation: dotGlow 2.5s ease-in-out infinite;
}

@keyframes dotGlow {
    0%, 100% { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.18); }
    50% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0.05); }
}

/* Left entry: content in col 1, dot in col 2 */
.edu-left .edu-content {
    grid-column: 1;
    text-align: right;
    padding-right: 2.5rem;
}

.edu-left .edu-dot-wrap {
    grid-column: 2;
}

.edu-left .edu-spacer {
    grid-column: 3;
}

/* Right entry: dot in col 2, content in col 3 */
.edu-right .edu-spacer {
    grid-column: 1;
}

.edu-right .edu-dot-wrap {
    grid-column: 2;
}

.edu-right .edu-content {
    grid-column: 3;
    text-align: left;
    padding-left: 2.5rem;
}

.edu-period {
    display: block;
    font-size: 0.68rem;
    color: var(--gray-light);
    letter-spacing: 0.1em;
    margin-bottom: 0.6rem;
}

.edu-school {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 400;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 0.3rem;
}

.edu-type {
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    color: var(--gray);
    letter-spacing: 0.05em;
    margin-bottom: 0.85rem;
}

.edu-type-accent {
    color: #7ab8ff;
}

.edu-desc {
    font-size: 0.85rem;
    color: var(--white-3);
    line-height: 1.8;
    max-width: 360px;
}

.edu-left .edu-desc {
    margin-left: auto;
}

.edu-right .edu-desc {
    margin-left: 0;
}

.edu-badge {
    display: inline-block;
    margin-top: 1rem;
}

.edu-left .edu-badge {
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
}

.edu-badge span {
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    color: #4ade80;
    letter-spacing: 0.08em;
    border: 1px solid rgba(74, 222, 128, 0.25);
    padding: 5px 12px;
    background: rgba(74, 222, 128, 0.05);
}

/* ============ CONTACT ============ */
#contact {
    min-height: 80vh;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    max-width: 1200px;
    align-items: start;
}

.contact-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.contact-sub {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 380px;
}

.contact-email {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 12px;
    margin-bottom: 2rem;
    transition: border-color 0.3s, gap 0.3s;
    display: inline-flex;
}

.contact-email:hover {
    border-color: var(--white);
    gap: 20px;
}

.social-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.08);
    background: var(--black-3);
    transition: border-color 0.3s, background 0.3s, transform 0.35s var(--easing);
}

.social-icon-link img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.45;
    transition: opacity 0.3s;
}

.social-icon-link:hover {
    border-color: rgba(255,255,255,0.3);
    background: var(--black-4);
    transform: translateY(-4px);
}

.social-icon-link:hover img {
    opacity: 1;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.65rem;
    color: var(--gray);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--black-3);
    border: 1px solid rgba(255,255,255,0.07);
    color: var(--white);
    font-family: 'Syne', sans-serif;
    font-size: 0.9rem;
    padding: 12px 16px;
    outline: none;
    transition: border-color 0.3s;
    -webkit-appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4L6 8L10 4' stroke='%23666660' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.form-group select option {
    background: var(--black-3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(255,255,255,0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-light);
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--white);
    color: var(--black);
    border: none;
    font-family: 'Syne', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: none;
    transition: background 0.3s, gap 0.3s, transform 0.2s;
    width: 100%;
}

.submit-btn:hover {
    background: var(--accent);
    gap: 16px;
}

.submit-btn:active {
    transform: scale(0.98);
}

/* ============ FOOTER ============ */
footer {
    padding: 2.5rem 4%;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: var(--black);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-left .logo-g {
    font-size: 1.4rem;
}

.footer-center p {
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    color: var(--gray-light);
    letter-spacing: 0.06em;
}

.back-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    color: var(--gray);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.3s, gap 0.3s;
}

.back-top:hover {
    color: var(--white);
    gap: 12px;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-light);
}

/* ============ MOBILE RESPONSIVE ============ */
@media (max-width: 1024px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .profile-frame img {
        width: 100%;
        max-width: 300px;
        height: auto;
    }

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

    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .project-item {
        grid-template-columns: 40px 1fr;
        grid-template-rows: auto auto;
    }

    .project-number {
        grid-row: 1;
    }

    .project-image-wrap {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .project-details {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .project-item.reverse .project-image-wrap,
    .project-item.reverse .project-details {
        order: unset;
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 100px 5% 60px;
        min-height: auto;
    }

    nav {
        padding: 1.25rem 5%;
    }

    .nav-links {
        display: none;
    }

    .hero-sub {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .hero-counter {
        position: relative;
        bottom: auto;
        right: auto;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2rem;
        margin-top: 3rem;
    }

    .counter-item {
        text-align: left;
    }

    .hero-scroll {
        display: none;
    }

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

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

    .projects-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .projects-header p {
        text-align: left;
    }

    .service-item {
        grid-template-columns: 50px 1fr;
    }

    .service-arrow {
        display: none;
    }

    /* Timeline mobile: single column */
    .edu-center-line {
        left: 20px;
    }

    .edu-item {
        grid-template-columns: 40px 1fr !important;
        margin-bottom: 3rem;
    }

    .edu-left .edu-content,
    .edu-right .edu-content {
        grid-column: 2 !important;
        text-align: left !important;
        padding-right: 0 !important;
        padding-left: 1.5rem !important;
    }

    .edu-left .edu-dot-wrap,
    .edu-right .edu-dot-wrap {
        grid-column: 1 !important;
    }

    .edu-left .edu-spacer,
    .edu-right .edu-spacer {
        display: none;
    }

    .edu-left .edu-desc,
    .edu-right .edu-desc {
        margin-left: 0;
        max-width: 100%;
    }

    .edu-left .edu-badge {
        justify-content: flex-start;
    }

    /* Tech icon grid mobile */
    .tech-icon {
        width: 64px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}