/* ==========================================================
   DESIGN TOKENS
   ========================================================== */
:root {
    /* Palette */
    --c-bg:             #07080a;
    --c-bg-alt:         #0e1117;
    --c-card:           #12161e;
    --c-card-hover:     #181d28;
    --c-border:         #1e2533;
    --c-border-accent:  #2a3345;
    --c-text:           #e4e8f1;
    --c-text-sub:       #8892a8;
    --c-text-muted:     #555f75;
    --c-accent:         #22d3ee;
    --c-accent-dim:     rgba(34, 211, 238, 0.12);
    --c-accent-glow:    rgba(34, 211, 238, 0.25);
    --c-amber:          #f59e0b;
    --c-amber-dim:      rgba(245, 158, 11, 0.12);
    --c-green:          #34d399;
    --c-green-dim:      rgba(52, 211, 153, 0.12);
    --c-red:            #f87171;
    --c-red-dim:        rgba(248, 113, 113, 0.12);
    --c-purple:         #a882ff;
    --c-purple-dim:     rgba(168, 130, 255, 0.12);
    --c-yellow:         #fbbf24;
    --c-yellow-dim:     rgba(251, 191, 36, 0.12);

    /* Typography */
    --f-body:  'Sora', sans-serif;
    --f-mono:  'JetBrains Mono', monospace;

    /* Spacing */
    --radius:    10px;
    --radius-sm: 6px;
    --section-px: 2rem;
    --section-py: 6rem;
    --max-w:     1200px;
}


/* ==========================================================
   RESET
   ========================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html  { scroll-behavior: smooth; }
ul    { list-style: none; }

body {
    font-family: var(--f-body);
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.7;
    overflow-x: hidden;
}

::selection { background: var(--c-accent); color: var(--c-bg); }

a {
    color: var(--c-accent);
    text-decoration: none;
    transition: color .2s;
}
a:hover { color: #67e8f9; }


/* ==========================================================
   GRAIN OVERLAY
   ========================================================== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}


/* ==========================================================
   BLOCK: btn
   ========================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 1.8rem;
    border-radius: 50px;
    font: 600 .85rem var(--f-body);
    cursor: pointer;
    transition: all .25s;
    border: none;
}

.btn--primary {
    background: var(--c-accent);
    color: var(--c-bg);
}
.btn--primary:hover {
    background: #67e8f9;
    color: var(--c-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--c-accent-glow);
}

.btn--outline {
    background: transparent;
    color: var(--c-text);
    border: 1px solid var(--c-border-accent);
}
.btn--outline:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
    transform: translateY(-2px);
}

.btn--small { padding: .5rem 1.2rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }


/* ==========================================================
   BLOCK: tag  /  tag-list
   ========================================================== */
.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; }

.tag {
    font: 500 .7rem var(--f-mono);
    padding: .3rem .7rem;
    border-radius: 50px;
    background: var(--c-bg-alt);
    color: var(--c-text-sub);
    border: 1px solid var(--c-border);
    transition: border-color .2s;
}

.tag--accent {
    background: var(--c-accent-dim);
    color: var(--c-accent);
    border-color: rgba(34, 211, 238, .15);
    font-size: .65rem;
    padding: .2rem .6rem;
}


/* ==========================================================
   BLOCK: lang-switch
   ========================================================== */
.lang-switch {
    display: flex;
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: 50px;
    padding: 3px;
}

.lang-switch__btn {
    font: 600 .68rem var(--f-mono);
    padding: .3rem .7rem;
    border-radius: 50px;
    border: none;
    background: transparent;
    color: var(--c-text-muted);
    cursor: pointer;
    transition: all .25s;
    letter-spacing: .03em;
}

.lang-switch__btn--active {
    background: var(--c-accent);
    color: var(--c-bg);
}

.lang-switch__btn:hover:not(.lang-switch__btn--active) {
    color: var(--c-text-sub);
}


/* ==========================================================
   BLOCK: nav
   ========================================================== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1rem var(--section-px);
    backdrop-filter: blur(20px);
    background: rgba(7, 8, 10, .8);
    border-bottom: 1px solid var(--c-border);
    transition: background .3s;
}
.nav--scrolled { background: rgba(7, 8, 10, .95); }

.nav__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    font: 700 .85rem var(--f-mono);
    color: var(--c-accent);
    letter-spacing: -.02em;
}
.nav__logo-dot { color: var(--c-text-muted); }

.nav__center { display: flex; align-items: center; gap: 2rem; }

.nav__links { display: flex; gap: 2rem; }

.nav__link {
    color: var(--c-text-sub);
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.nav__link:hover { color: var(--c-text); }

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

.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}
.nav__hamburger-line {
    width: 24px; height: 2px;
    background: var(--c-text-sub);
    transition: all .3s;
}


/* ==========================================================
   BLOCK: mobile-nav
   ========================================================== */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 8, 10, .97);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}
.mobile-nav--open { display: flex; }

.mobile-nav__link { font-size: 1.3rem; color: var(--c-text); font-weight: 500; }

.mobile-nav__close {
    position: absolute;
    top: 1.2rem; right: 1.5rem;
    background: none; border: none;
    color: var(--c-text-sub);
    font-size: 1.8rem;
    cursor: pointer;
}

.mobile-nav .lang-switch { margin-top: 1rem; }


/* ==========================================================
   BLOCK: hero
   ========================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem var(--section-px) 4rem;
    position: relative;
}

.hero__bg {
    position: absolute; inset: 0;
    overflow: hidden;
}
.hero__bg::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(34, 211, 238, .06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(245, 158, 11, .04) 0%, transparent 50%);
    animation: hero-drift 20s ease-in-out infinite alternate;
}
@keyframes hero-drift {
    to { transform: translate(-3%, 2%) rotate(2deg); }
}

.hero__grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(30, 37, 51, .3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 37, 51, .3) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
}

.hero__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__content { animation: fade-up .8s ease-out both; }

@keyframes fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--c-green-dim);
    border: 1px solid rgba(52, 211, 153, .2);
    color: var(--c-green);
    padding: .4rem 1rem;
    border-radius: 50px;
    font: 500 .78rem var(--f-mono);
    margin-bottom: 1.5rem;
}
.hero__badge::before {
    content: '';
    width: 7px; height: 7px;
    background: var(--c-green);
    border-radius: 50%;
    animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
    50% { opacity: .3; }
}

.hero__title {
    font-size: clamp(2.5rem, 5.5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.03em;
    margin-bottom: .3rem;
}
.hero__title--accent { color: var(--c-accent); }

.hero__role {
    font: 400 clamp(.9rem, 1.5vw, 1.05rem) var(--f-mono);
    color: var(--c-text-sub);
    margin-bottom: 1.5rem;
    min-height: 1.8em;
}
.hero__cursor {
    display: inline-block;
    width: 2px; height: 1.1em;
    background: var(--c-accent);
    margin-left: 3px;
    vertical-align: text-bottom;
    animation: cursor-blink 1s step-end infinite;
}
@keyframes cursor-blink { 50% { opacity: 0; } }

.hero__desc {
    color: var(--c-text-sub);
    font-size: 1.05rem;
    max-width: 520px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__photo {
    display: flex;
    justify-content: center;
    animation: fade-up .8s ease-out .2s both;
}


/* ==========================================================
   BLOCK: photo-frame
   ========================================================== */
.photo-frame {
    position: relative;
    width: 300px; height: 360px;
}
.photo-frame::before {
    content: '';
    position: absolute; inset: -2px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--c-accent), transparent 50%, var(--c-amber));
    opacity: .5;
}

.photo-frame__image {
    position: relative; z-index: 1;
    width: 100%; height: 100%;
    border-radius: 18px;
    background: var(--c-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    overflow: hidden;
}
.photo-frame__image img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.photo-frame__placeholder-icon {
    width: 48px; height: 48px;
    border: 2px dashed var(--c-border-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.photo-frame__placeholder-text {
    font: .7rem var(--f-mono);
    color: var(--c-text-muted);
    text-align: center;
}

.photo-frame__badge {
    position: absolute;
    bottom: -12px; right: -12px;
    z-index: 2;
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: .6rem 1rem;
    font: .72rem var(--f-mono);
    color: var(--c-accent);
    display: flex;
    align-items: center;
    gap: .4rem;
}


/* ==========================================================
   BLOCK: gablab-hero  (MAIN HIGHLIGHT SECTION)
   ========================================================== */
.gablab-hero {
    position: relative;
    padding: 8rem var(--section-px);
    overflow: hidden;
    border-top: 2px solid var(--c-amber);
    border-bottom: 2px solid var(--c-amber);
}

.gablab-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(245, 158, 11, .10) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(34, 211, 238, .06) 0%, transparent 50%),
        linear-gradient(180deg, var(--c-bg-alt) 0%, var(--c-bg) 100%);
    animation: gablab-drift 15s ease-in-out infinite alternate;
}
@keyframes gablab-drift {
    to { filter: hue-rotate(8deg); }
}

.gablab-hero__inner {
    position: relative;
    z-index: 1;
    max-width: var(--max-w);
    margin: 0 auto;
}

.gablab-hero__label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font: 600 .78rem var(--f-mono);
    color: var(--c-amber);
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 1.5rem;
    background: var(--c-amber-dim);
    border: 1px solid rgba(245, 158, 11, .25);
    padding: .5rem 1.2rem;
    border-radius: 50px;
}

.gablab-hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gablab-hero__brand {
    background: linear-gradient(135deg, var(--c-amber), #fbbf24, var(--c-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gablab-hero__subtitle {
    font-size: 1.15rem;
    color: var(--c-text-sub);
    max-width: 620px;
    line-height: 1.8;
    margin-bottom: 3.5rem;
}

.gablab-hero__story {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.gablab-hero__chapter {
    display: flex;
    gap: 1rem;
    padding: 1.8rem;
    background: rgba(14, 17, 23, .7);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    transition: all .3s;
}
.gablab-hero__chapter:hover {
    border-color: var(--c-amber);
    background: var(--c-card-hover);
    transform: translateY(-3px);
}
.gablab-hero__chapter:last-child {
    border-color: rgba(245, 158, 11, .3);
    background: rgba(245, 158, 11, .05);
}
.gablab-hero__chapter:last-child:hover {
    border-color: var(--c-amber);
    box-shadow: 0 8px 30px rgba(245, 158, 11, .12);
}

.gablab-hero__chapter-num {
    font: 700 1.5rem var(--f-mono);
    color: var(--c-amber);
    opacity: .4;
    flex-shrink: 0;
    line-height: 1.3;
}

.gablab-hero__chapter-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: .5rem;
}

.gablab-hero__chapter-text {
    font-size: .85rem;
    color: var(--c-text-sub);
    line-height: 1.7;
}
.gablab-hero__chapter-text strong {
    color: var(--c-amber);
    font-weight: 600;
}

.gablab-hero__cta-wrap {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.gablab-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: 1rem 2.2rem;
    background: linear-gradient(135deg, var(--c-amber), #d97706);
    color: var(--c-bg);
    font: 600 .92rem var(--f-body);
    border-radius: 50px;
    transition: all .25s;
    text-decoration: none;
}
.gablab-hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, .3);
    color: var(--c-bg);
    filter: brightness(1.1);
}

.gablab-hero__cta-sub {
    font: .78rem var(--f-mono);
    color: var(--c-text-muted);
}

/* GABLAB timeline card highlight */
.timeline__card--gablab {
    border-color: rgba(245, 158, 11, .3);
    background: rgba(245, 158, 11, .04);
}
.timeline__card--gablab:hover {
    border-color: var(--c-amber);
    box-shadow: 0 4px 20px rgba(245, 158, 11, .1);
}

@media (max-width: 900px) {
    .gablab-hero__story { grid-template-columns: 1fr; }
    .gablab-hero { padding: 5rem var(--section-px); }
}

@media (max-width: 600px) {
    .gablab-hero__cta-wrap { flex-direction: column; align-items: flex-start; }
}


/* ==========================================================
   BLOCK: section  (shared wrapper)
   ========================================================== */
.section {
    padding: var(--section-py) var(--section-px);
    position: relative;
}
.section--alt { background: var(--c-bg-alt); }

.section__inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.section__label {
    font: .72rem var(--f-mono);
    color: var(--c-accent);
    text-transform: uppercase;
    letter-spacing: .15em;
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}
.section__label::before {
    content: '';
    width: 20px; height: 1px;
    background: var(--c-accent);
}

.section__title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 3rem;
}


/* ==========================================================
   BLOCK: stack-grid  /  stack-card
   ========================================================== */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.stack-card {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 1.8rem;
    transition: all .3s;
}
.stack-card:hover {
    border-color: var(--c-border-accent);
    background: var(--c-card-hover);
    transform: translateY(-3px);
}
.stack-card:hover .tag { border-color: var(--c-border-accent); }

.stack-card__header {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1.2rem;
}

.stack-card__icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.stack-card__icon--cyan   { background: var(--c-accent-dim); color: var(--c-accent); }
.stack-card__icon--amber  { background: var(--c-amber-dim);  color: var(--c-amber);  }
.stack-card__icon--green  { background: var(--c-green-dim);  color: var(--c-green);  }
.stack-card__icon--red    { background: var(--c-red-dim);    color: var(--c-red);    }
.stack-card__icon--purple { background: var(--c-purple-dim); color: var(--c-purple); }
.stack-card__icon--yellow { background: var(--c-yellow-dim); color: var(--c-yellow); }

.stack-card__title { font-size: 1rem; font-weight: 600; }


/* ==========================================================
   BLOCK: timeline
   ========================================================== */
.timeline { position: relative; }

.timeline::before {
    content: '';
    position: absolute;
    left: 24px; top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--c-accent), var(--c-border), transparent);
}

.timeline__item {
    position: relative;
    padding-left: 64px;
    padding-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all .5s ease-out;
}
.timeline__item.visible { opacity: 1; transform: translateY(0); }

.timeline__dot {
    position: absolute;
    left: 17px; top: 6px;
    width: 15px; height: 15px;
    border-radius: 50%;
    border: 2px solid var(--c-accent);
    background: var(--c-bg);
}
.timeline__dot--active {
    background: var(--c-accent);
    box-shadow: 0 0 12px var(--c-accent-glow);
}

.timeline__date {
    display: block;
    font: .72rem var(--f-mono);
    color: var(--c-text-muted);
    margin-bottom: .4rem;
    letter-spacing: .03em;
}

.timeline__card {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all .3s;
}
.timeline__card:hover {
    border-color: var(--c-border-accent);
    background: var(--c-card-hover);
}

.timeline__title  { font-size: 1.05rem; font-weight: 600; margin-bottom: .15rem; }
.timeline__company { display: block; font-size: .85rem; color: var(--c-accent); font-weight: 500; margin-bottom: .6rem; }
.timeline__desc   { color: var(--c-text-sub); font-size: .88rem; line-height: 1.7; margin-bottom: .8rem; }


/* ==========================================================
   BLOCK: project-grid  /  project-card
   ========================================================== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .3s;
}
.project-card:hover {
    border-color: var(--c-border-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
}

.project-card__thumb {
    height: 200px;
    background: var(--c-bg-alt);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    border-bottom: 1px solid var(--c-border);
    position: relative;
    overflow: hidden;
}
.project-card__img { width: 100%; height: 100%; object-fit: cover; }

.project-card__placeholder-icon {
    width: 52px; height: 52px;
    border: 2px dashed var(--c-border-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--c-text-muted);
}
.project-card__placeholder-text { font: .68rem var(--f-mono); color: var(--c-text-muted); }

.project-card__badge {
    position: absolute;
    top: 12px; right: 12px;
    font: .65rem var(--f-mono);
    padding: .25rem .6rem;
    border-radius: 50px;
    background: var(--c-amber-dim);
    color: var(--c-amber);
    border: 1px solid rgba(245, 158, 11, .2);
}

.project-card__body  { padding: 1.5rem; }
.project-card__title { font-size: 1.05rem; font-weight: 600; margin-bottom: .5rem; }
.project-card__desc  { color: var(--c-text-sub); font-size: .85rem; line-height: 1.7; margin-bottom: 1rem; }


/* ==========================================================
   BLOCK: cert-grid  /  cert-card
   ========================================================== */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.cert-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    transition: all .3s;
}
.cert-card:hover { border-color: var(--c-border-accent); background: var(--c-card-hover); }

.cert-card__icon {
    width: 42px; height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.cert-card__icon--cyan   { background: var(--c-accent-dim); color: var(--c-accent); }
.cert-card__icon--green  { background: var(--c-green-dim);  color: var(--c-green);  }
.cert-card__icon--amber  { background: var(--c-amber-dim);  color: var(--c-amber);  }
.cert-card__icon--purple { background: var(--c-purple-dim); color: var(--c-purple); }

.cert-card__title { font-size: .88rem; font-weight: 600; margin-bottom: .1rem; }
.cert-card__sub   { font-size: .75rem; color: var(--c-text-muted); }


/* ==========================================================
   BLOCK: contact
   ========================================================== */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact__heading { font-size: 1.4rem; margin-bottom: 1rem; }
.contact__desc    { color: var(--c-text-sub); font-size: .95rem; line-height: 1.8; margin-bottom: 2rem; }

.contact__links { display: flex; flex-direction: column; gap: .8rem; }

.contact__link {
    display: flex;
    align-items: center;
    gap: .8rem;
    color: var(--c-text-sub);
    font-size: .9rem;
    transition: color .2s;
}
.contact__link:hover { color: var(--c-accent); }

.contact__link-icon {
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    background: var(--c-accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    flex-shrink: 0;
}


/* ==========================================================
   BLOCK: form
   ========================================================== */
.form { display: flex; flex-direction: column; gap: 1rem; }

.form__group { display: flex; flex-direction: column; gap: .3rem; }

.form__label {
    font-size: .78rem;
    color: var(--c-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.form__input,
.form__textarea {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    padding: .8rem 1rem;
    color: var(--c-text);
    font: .9rem var(--f-body);
    transition: border-color .2s;
    outline: none;
}
.form__input:focus,
.form__textarea:focus { border-color: var(--c-accent); }

.form__textarea { min-height: 120px; resize: vertical; }

.form__submit { align-self: flex-start; margin-top: .5rem; }


/* ==========================================================
   BLOCK: footer
   ========================================================== */
.footer {
    padding: 2rem;
    border-top: 1px solid var(--c-border);
    text-align: center;
}
.footer__text { font: .78rem var(--f-mono); color: var(--c-text-muted); }


/* ==========================================================
   UTILITY: fade-in  (scroll reveal)
   ========================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: all .6s ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }


/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 900px) {
    .hero__inner        { grid-template-columns: 1fr; text-align: center; }
    .hero__desc         { margin-inline: auto; }
    .hero__actions      { justify-content: center; }
    .hero__badge        { margin-inline: auto; }
    .hero__photo        { order: -1; }
    .photo-frame        { width: 220px; height: 270px; }
    .contact            { grid-template-columns: 1fr; }
    .project-grid       { grid-template-columns: 1fr; }
    .nav__center        { display: none; }
    .nav__cta           { display: none; }
    .lang-switch.desktop { display: none; }  /* hide desktop switch, keep mobile one */
    .nav__hamburger     { display: flex; }
}

@media (max-width: 600px) {
    :root { --section-px: 1.2rem; --section-py: 4rem; }
    .hero             { padding: 7rem 1.2rem 3rem; }
    .stack-grid       { grid-template-columns: 1fr; }
    .cert-grid        { grid-template-columns: 1fr; }
}
