:root {
    --ink: #14213D;
    --ink-soft: #46506A;
    --muted: #5F6880;
    --accent: #FCA311;
    --accent-ink: #9A5B00;
    --bg: #FFFFFF;
    --tint: #F6F5F1;
    --line: #E6E4DC;
    --radius: 20px;
    --shadow: 0 18px 50px rgba(20, 33, 61, 0.10);
    --display: "Unbounded", system-ui, sans-serif;
    --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink-soft);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.02rem; font-weight: 600; line-height: 1.4; }

.accent { color: var(--accent); }
.container { width: min(1180px, 100% - 48px); margin-inline: auto; }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 200;
    background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 16px; }

.eyebrow {
    font-family: var(--display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-ink);
    margin-bottom: 18px;
}

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(20, 33, 61, 0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
    display: grid; place-items: center;
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--accent); color: var(--ink);
    font-family: var(--display); font-weight: 700; font-size: 1.05rem;
}
.brand-name { font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: var(--ink); }

.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a { font-size: 0.94rem; font-weight: 500; color: var(--ink-soft); transition: color 0.2s ease; }
.site-nav a:hover, .site-nav a.active { color: var(--ink); }
.site-nav a.active:not(.nav-cta) { box-shadow: 0 2px 0 var(--accent); }
.site-nav .nav-cta {
    padding: 11px 22px; border-radius: 999px;
    background: var(--ink); color: #fff;
    transition: background 0.2s ease, transform 0.2s ease;
}
.site-nav .nav-cta:hover { background: #0C1630; color: #fff; transform: translateY(-1px); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--ink); transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 28px; border-radius: 999px;
    font-weight: 600; font-size: 0.98rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn svg, .card-icon svg, .contact-place svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--accent); color: var(--ink); box-shadow: 0 10px 26px rgba(252, 163, 17, 0.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(252, 163, 17, 0.42); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-lg { padding: 18px 34px; font-size: 1.05rem; }

/* Hero */
.hero { padding: 72px 0 0; background: linear-gradient(180deg, #FFFFFF 0%, var(--tint) 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.lead { font-size: 1.14rem; max-width: 34em; margin: 26px 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-media { position: relative; justify-self: end; width: min(100%, 440px); }
.hero-media::before {
    content: ""; position: absolute; inset: 28px -24px -24px 28px;
    border-radius: 200px 28px 28px 28px; background: var(--accent); opacity: 0.9;
}
.portrait { position: relative; border-radius: 200px 28px 28px 28px; overflow: hidden; box-shadow: var(--shadow); background: #dfe6ee; }
.portrait img { width: 100%; aspect-ratio: 7 / 8; object-fit: cover; }
.hero-badge {
    position: absolute; left: -36px; bottom: 34px;
    background: #fff; border-radius: 16px; padding: 14px 20px;
    box-shadow: var(--shadow); display: grid; gap: 2px;
}
.hero-badge strong { font-family: var(--display); font-size: 0.82rem; color: var(--ink); }
.hero-badge span { font-size: 0.84rem; color: var(--muted); }

.stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    margin-top: 72px; background: var(--ink); color: #fff;
    border-radius: var(--radius) var(--radius) 0 0;
}
.stats li { padding: 30px 34px; display: flex; align-items: baseline; gap: 14px; border-left: 1px solid rgba(255, 255, 255, 0.12); }
.stats li:first-child { border-left: 0; }
.stats strong { font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--accent); }
.stats span { font-size: 0.95rem; color: rgba(255, 255, 255, 0.82); }

/* Sections */
.section { padding: 110px 0; }
.section-tint { background: var(--tint); }
.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; max-width: 720px; margin-inline: auto; margin-bottom: 56px; }
.section-sub { margin-top: 18px; }

/* About */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: start; }
.about-grid .section-head { position: sticky; top: 120px; margin-bottom: 0; }
.about-intro { font-size: 1.22rem; line-height: 1.6; color: var(--ink); }
.highlights { margin: 34px 0; display: grid; gap: 14px; }
.highlights li { position: relative; padding: 16px 20px 16px 52px; background: var(--tint); border-radius: 14px; }
.highlights li::before {
    content: ""; position: absolute; left: 20px; top: 22px;
    width: 16px; height: 9px; border-left: 2.5px solid var(--accent-ink); border-bottom: 2.5px solid var(--accent-ink);
    transform: rotate(-45deg);
}
.story summary {
    display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
    font-weight: 600; color: var(--ink); list-style: none;
    padding-bottom: 4px; border-bottom: 2px solid var(--accent);
}
.story summary::-webkit-details-marker { display: none; }
.story summary::after { content: "+"; font-size: 1.3rem; line-height: 1; }
.story[open] summary::after { content: "–"; }
.story-body { margin-top: 26px; display: grid; gap: 18px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 26px; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
    display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px;
    border-radius: 14px; background: rgba(252, 163, 17, 0.16); color: var(--accent-ink);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.94rem; line-height: 1.6; color: var(--muted); }

/* Experience */
.split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 72px; align-items: start; }
.timeline { position: relative; display: grid; gap: 34px; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; }
.timeline li::before {
    content: ""; position: absolute; left: -34px; top: 5px;
    width: 14px; height: 14px; border-radius: 50%;
    background: #fff; border: 3px solid var(--accent);
}
.timeline li:first-child::before { background: var(--accent); }
.tl-date { font-size: 0.86rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.tl-date .accent { color: var(--accent-ink); }
.tl-org { margin-top: 4px; }
.edu { display: grid; gap: 16px; }
.edu-item { padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); border-left: 4px solid var(--accent); }
.edu-item p { margin-top: 4px; }

/* Contact */
.contact {
    position: relative; padding: 120px 0; text-align: center; color: #fff;
    background: linear-gradient(180deg, rgba(20, 33, 61, 0.90), rgba(20, 33, 61, 0.94)), url("img/istanbul.jpg") center 60% / cover no-repeat;
}
.contact .eyebrow { color: var(--accent); }
.contact h2 { color: #fff; max-width: 18em; margin: 0 auto 36px; }
.contact-place { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; color: rgba(255, 255, 255, 0.82); }
.contact-inner { display: flex; flex-direction: column; align-items: center; }

/* Footer */
.site-footer { background: #0C1630; color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; }
.credit img { height: 14px; filter: brightness(0) invert(1); opacity: 0.6; transition: opacity 0.2s ease; }
.credit:hover img { opacity: 1; }

/* Reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 1080px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .hero-grid { gap: 40px; }
    .hero-badge { left: -12px; }
    .about-grid, .split { gap: 48px; }
}

@media (max-width: 820px) {
    body { font-size: 16px; }
    .nav-toggle { display: block; }
    .site-nav {
        position: absolute; left: 0; right: 0; top: 76px;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 8px 24px 24px; background: #fff;
        border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(20, 33, 61, 0.10);
        display: none;
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 15px 2px; font-size: 1.02rem; border-bottom: 1px solid var(--line); }
    .site-nav a.active:not(.nav-cta) { box-shadow: none; color: var(--accent-ink); }
    .site-nav .nav-cta { margin-top: 18px; text-align: center; border-bottom: 0; }

    .hero { padding-top: 40px; }
    .hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .hero-media { justify-self: center; width: min(78%, 340px); order: -1; }
    .hero-media::before { inset: 18px -14px -14px 18px; }
    .hero-copy { text-align: center; }
    .lead { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .hero-badge { left: 50%; transform: translateX(-50%); bottom: -22px; white-space: nowrap; text-align: center; }
    .stats { grid-template-columns: 1fr; margin-top: 56px; }
    .stats li { padding: 20px 26px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
    .stats li:first-child { border-top: 0; }

    .section { padding: 72px 0; }
    .about-grid, .split { grid-template-columns: 1fr; gap: 36px; }
    .about-grid .section-head { position: static; }
    .split { gap: 64px; }
    .contact { padding: 84px 0; }
    .btn-lg { padding: 16px 24px; font-size: 0.98rem; }
}

@media (max-width: 560px) {
    .cards { grid-template-columns: 1fr; }
    .card { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; align-items: center; padding: 22px 20px; }
    .card-icon { width: 48px; height: 48px; margin-bottom: 0; }
    .card h3 { margin-bottom: 0; }
    .card p { grid-column: 1 / -1; margin-top: 14px; }
    .container { width: min(1180px, 100% - 40px); }
    .brand-name { display: none; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .footer-inner { flex-direction: column; gap: 12px; }
}
