/* ===== CSS VARIABLES / DESIGN TOKENS (Dark Earth-Tone Hybrid) ===== */
:root {
    /* Surface palette */
    --cream: #1A1714;           /* section alt backgrounds */
    --warm-white: #131110;      /* body background */
    --sand: #2E2820;            /* borders, dividers */
    --card: #1E1B16;            /* card backgrounds */
    --card-hover: #252118;      /* card hover state */

    /* Accent palette */
    --terracotta: #D4855E;      /* primary accent (brighter for dark) */
    --terracotta-dark: #B86740; /* hover state */
    --burnt: #D4956A;           /* accent text */
    --highlight: #E0A080;       /* highlight on dark surfaces */

    /* Text palette (light on dark) */
    --charcoal: #E8DCC8;        /* primary text */
    --mid: #A89880;             /* body text */
    --light-mid: #8A7A62;       /* subtle text */
    --muted: #5C4E3E;           /* very muted */
    --ink: #F0EAE0;             /* headings — strongest */

    /* Deep surfaces (for emphasis sections) */
    --deep: #0A0908;
    --deep-surface: #0E0C0A;
}

/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--warm-white); color: var(--charcoal); font-family: "Inter", sans-serif; font-size: 16px; line-height: 1.6; overflow-x: hidden; }

/* ===== NAVIGATION ===== */
.lang-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; display: flex; justify-content: space-between; align-items: center; padding: 14px 48px; background: rgba(19,17,16,0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: background 0.3s, border-color 0.3s, padding 0.3s; }
.lang-bar.scrolled { background: rgba(19,17,16,0.97); border-bottom-color: var(--sand); padding: 10px 48px; }
.lang-logo { font-family: "Playfair Display", serif; font-size: 18px; font-weight: 700; color: var(--charcoal); letter-spacing: 0.5px; }
.lang-logo span { color: var(--terracotta); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--mid); text-decoration: none; letter-spacing: 0.8px; text-transform: uppercase; transition: color 0.2s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--terracotta); transition: width 0.3s ease; }
.nav-links a:hover { color: var(--terracotta); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.lang-toggle { display: flex; gap: 4px; background: var(--sand); border-radius: 20px; padding: 4px; }
.lang-btn { padding: 4px 14px; border: none; background: none; border-radius: 16px; font-family: "Inter", sans-serif; font-size: 12px; font-weight: 600; color: var(--mid); cursor: pointer; transition: all 0.2s; letter-spacing: 0.5px; }
.lang-btn.active { background: var(--terracotta); color: white; }

/* Mobile Hamburger */
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--charcoal); margin: 5px 0; transition: all 0.3s ease; border-radius: 2px; }
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Drawer */
.mobile-drawer { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--warm-white); z-index: 999; padding: 80px 32px 32px; display: flex; flex-direction: column; gap: 24px; transition: right 0.35s ease; box-shadow: -4px 0 30px rgba(0,0,0,0.1); }
.mobile-drawer.open { right: 0; }
.mobile-drawer a { font-size: 16px; font-weight: 500; color: var(--mid); text-decoration: none; letter-spacing: 0.5px; text-transform: uppercase; transition: color 0.2s; padding: 8px 0; border-bottom: 1px solid var(--sand); }
.mobile-drawer a:hover { color: var(--terracotta); }
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 998; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

/* ===== HERO ===== */
.hero { min-height: 100vh; padding: 120px 48px 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; top: -100px; right: -200px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(212,133,94,0.08) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.hero::after { content: ""; position: absolute; bottom: -150px; left: -150px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(212,133,94,0.05) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.hero-eyebrow { display: inline-block; font-family: "DM Mono", monospace; font-size: 11px; font-weight: 500; color: var(--terracotta); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; padding: 6px 14px; background: rgba(212,133,94,0.1); border-radius: 20px; border: 1px solid rgba(212,133,94,0.2); }
.hero-title { font-family: "Playfair Display", serif; font-size: clamp(44px,5vw,68px); font-weight: 900; color: var(--ink); line-height: 1.1; margin-bottom: 8px; }
.hero-title .accent { color: var(--terracotta); font-style: italic; text-shadow: 0 0 40px rgba(212,133,94,0.2); }
.hero-subtitle { font-family: "Playfair Display", serif; font-size: clamp(20px,2.2vw,28px); font-weight: 400; font-style: italic; color: var(--light-mid); margin-bottom: 28px; line-height: 1.3; }
.hero-desc { font-size: 16px; color: var(--mid); line-height: 1.8; max-width: 480px; margin-bottom: 40px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 44px; }
.tag { font-family: "DM Mono", monospace; font-size: 11px; color: var(--mid); background: var(--sand); padding: 5px 12px; border-radius: 4px; letter-spacing: 0.5px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; background: var(--terracotta); color: white; text-decoration: none; border-radius: 6px; font-size: 14px; font-weight: 600; transition: all 0.25s; border: 2px solid var(--terracotta); }
.btn-primary:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,133,94,0.35); }
.btn-secondary { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; background: transparent; color: var(--charcoal); text-decoration: none; border-radius: 6px; font-size: 14px; font-weight: 600; border: 2px solid var(--sand); transition: all 0.25s; }
.btn-secondary:hover { border-color: var(--terracotta); color: var(--terracotta); transform: translateY(-2px); }
.hero-visual { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 16px; }
.stat-card { background: var(--card); border: 1px solid var(--sand); border-radius: 12px; padding: 20px 24px; display: flex; align-items: center; gap: 16px; box-shadow: 0 2px 16px rgba(0,0,0,0.2); transition: transform 0.2s, box-shadow 0.2s; }
.stat-card:hover { transform: translateX(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.stat-icon { font-size: 26px; flex-shrink: 0; }
.stat-num { font-family: "Playfair Display", serif; font-size: 18px; font-weight: 700; color: var(--terracotta); }
.stat-label { font-size: 12px; color: var(--light-mid); }

/* ===== SECTIONS ===== */
section { padding: 100px 48px; }
.section-label { font-family: "Space Grotesk", sans-serif; font-size: 11px; color: var(--terracotta); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px; font-weight: 500; }
.section-title { font-family: "Playfair Display", serif; font-size: clamp(30px,3.5vw,48px); font-weight: 900; color: var(--ink); line-height: 1.15; margin-bottom: 20px; }
.section-title .italic { font-style: italic; color: var(--terracotta); }
.section-intro { font-size: 16px; color: var(--mid); line-height: 1.8; max-width: 640px; margin-bottom: 56px; }
.divider { height: 1px; background: linear-gradient(to right, transparent, var(--sand), transparent); margin: 0 48px; }

/* ===== TIMELINE ===== */
.story-section { background: var(--cream); }
.timeline { position: relative; max-width: 900px; }
.timeline::before { content: ""; position: absolute; left: 32px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--terracotta), var(--sand)); }
.timeline-item { display: flex; gap: 40px; margin-bottom: 56px; position: relative; }
.timeline-dot { flex-shrink: 0; width: 64px; height: 64px; background: var(--card); border: 3px solid var(--terracotta); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 4px 16px rgba(0,0,0,0.3); position: relative; z-index: 1; }
.timeline-content { flex: 1; padding-top: 8px; }
.timeline-period { font-family: "DM Mono", monospace; font-size: 11px; color: var(--terracotta); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px; }
.timeline-heading { font-family: "Playfair Display", serif; font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.timeline-role { font-size: 13px; color: var(--light-mid); font-weight: 500; margin-bottom: 12px; }
.timeline-body { font-size: 14px; color: var(--mid); line-height: 1.8; margin-bottom: 14px; }
.timeline-outcome { display: inline-flex; align-items: center; gap: 8px; background: rgba(212,133,94,0.08); border-left: 3px solid var(--terracotta); padding: 8px 14px; border-radius: 0 6px 6px 0; font-size: 12px; color: var(--burnt); font-weight: 500; }

/* ===== WHY ===== */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 20px; margin-top: 40px; }
.why-card { background: var(--card); border: 1px solid var(--sand); border-radius: 12px; padding: 28px 24px; position: relative; overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; }
.why-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--terracotta); transform: scaleX(0); transition: transform 0.3s; transform-origin: left; }
.why-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.3); }
.why-card:hover::before { transform: scaleX(1); }
.why-num { font-family: "Playfair Display", serif; font-size: 44px; font-weight: 900; color: var(--sand); line-height: 1; margin-bottom: 12px; }
.why-title { font-size: 16px; font-weight: 600; color: var(--charcoal); margin-bottom: 10px; }
.why-body { font-size: 13px; color: var(--mid); line-height: 1.7; }

/* ===== PROJECTS ===== */
.projects-section { background: var(--cream); }
.project-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn { padding: 8px 18px; border: 1px solid var(--sand); background: var(--card); border-radius: 20px; font-size: 13px; font-weight: 500; color: var(--mid); cursor: pointer; transition: all 0.2s; }
.filter-btn:hover, .filter-btn.active { background: var(--terracotta); border-color: var(--terracotta); color: white; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px,1fr)); gap: 24px; }

/* ===== PROJECT CARD ===== */
.project-card { background: var(--card); border: 1px solid var(--sand); border-radius: 14px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; display: flex; flex-direction: column; position: relative; }
.project-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--terracotta), var(--highlight)); transform: scaleX(0); transition: transform 0.4s ease; transform-origin: left; z-index: 1; border-radius: 14px 14px 0 0; }
.project-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.35); border-color: rgba(212,133,94,0.2); }
.project-card:hover::before { transform: scaleX(1); }
.project-img-wrap { position: relative; overflow: hidden; height: 220px; background: var(--cream); }
.project-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.project-card:hover .project-img-wrap img { transform: scale(1.05); }
.project-img-multi { display: grid; grid-template-columns: 1fr 1fr; height: 220px; gap: 2px; overflow: hidden; background: var(--sand); }
.project-img-multi img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.project-card:hover .project-img-multi img { transform: scale(1.05); }
.project-img-multi .img-main { grid-row: span 2; }
.project-badge { position: absolute; top: 12px; left: 12px; font-family: "DM Mono", monospace; font-size: 10px; color: white; letter-spacing: 1.5px; text-transform: uppercase; background: var(--terracotta); padding: 4px 10px; border-radius: 4px; }
.project-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.project-category { font-family: "DM Mono", monospace; font-size: 10px; color: var(--terracotta); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.project-title { font-family: "Playfair Display", serif; font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.project-desc { font-size: 13px; color: var(--mid); line-height: 1.7; margin-bottom: 14px; flex: 1; }
.project-roles { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.role-chip { font-size: 11px; font-family: "DM Mono", monospace; background: rgba(212,133,94,0.1); color: var(--burnt); padding: 3px 10px; border-radius: 12px; border: 1px solid rgba(212,133,94,0.2); }
.project-impact { background: var(--cream); border-radius: 6px; padding: 10px 14px; font-size: 12px; color: var(--burnt); font-weight: 500; margin-bottom: 14px; }
.project-impact::before { content: "→ "; }
.project-tech { display: flex; flex-wrap: wrap; gap: 5px; }
.tech-tag { font-size: 10px; font-family: "DM Mono", monospace; color: var(--light-mid); background: var(--cream); padding: 2px 7px; border-radius: 3px; }
.project-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--terracotta); font-weight: 600; text-decoration: none; margin-top: 12px; transition: gap 0.2s, color 0.2s; }
.project-link:hover { gap: 10px; color: var(--highlight); }

/* ===== SOCIAL SECTION ===== */
.social-section { background: var(--warm-white); }
.social-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 16px; margin-top: 40px; }
.social-card { background: var(--cream); border-radius: 10px; padding: 20px; border: 1px solid var(--sand); }
.social-card-icon { font-size: 28px; margin-bottom: 12px; }
.social-card-title { font-size: 14px; font-weight: 600; color: var(--charcoal); margin-bottom: 6px; }
.social-card-body { font-size: 13px; color: var(--mid); line-height: 1.6; }

/* ===== PHILOSOPHY ===== */
.philosophy-section { background: var(--deep-surface); color: var(--ink); }
.philosophy-section .section-label { color: var(--highlight); }
.philosophy-section .section-title { color: var(--ink); }
.philosophy-section .italic { color: var(--highlight); }
.philosophy-section .section-intro { color: var(--light-mid); }
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 2px; margin-top: 40px; border: 1px solid var(--sand); border-radius: 12px; overflow: hidden; }
.pillar { padding: 30px 24px; background: rgba(255,255,255,0.02); border-right: 1px solid var(--sand); transition: background 0.3s, transform 0.3s; }
.pillar:last-child { border-right: none; }
.pillar:hover { background: rgba(212,133,94,0.12); transform: translateY(-2px); }
.pillar-icon { font-size: 26px; margin-bottom: 14px; }
.pillar-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.pillar-body { font-size: 12px; color: var(--light-mid); line-height: 1.7; }

/* ===== PERSONAL EDGE ===== */
.edge-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-top: 40px; max-width: 800px; }
.edge-item { display: flex; align-items: flex-start; gap: 14px; padding: 20px; background: var(--card); border: 1px solid var(--sand); border-radius: 12px; }
.edge-icon { font-size: 28px; flex-shrink: 0; }
.edge-title { font-size: 14px; font-weight: 600; color: var(--charcoal); margin-bottom: 5px; }
.edge-body { font-size: 12px; color: var(--mid); line-height: 1.6; }
.edge-insight { display: inline-block; font-size: 10px; font-family: "DM Mono", monospace; color: var(--terracotta); letter-spacing: 1px; text-transform: uppercase; margin-top: 6px; }

/* ===== CV ===== */
.cv-section { background: var(--cream); }
.cv-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; margin-top: 40px; }
.cv-intro-block { background: var(--deep-surface); color: var(--ink); border-radius: 12px; padding: 28px 24px; margin-bottom: 20px; border: 1px solid var(--sand); }
.cv-name { font-family: "Playfair Display", serif; font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.cv-headline { font-size: 11px; color: var(--highlight); font-family: "DM Mono", monospace; letter-spacing: 1px; text-transform: uppercase; line-height: 1.6; margin-bottom: 16px; }
.cv-summary { font-size: 12px; color: var(--mid); line-height: 1.7; }
.cv-skills-block { background: var(--card); border: 1px solid var(--sand); border-radius: 12px; padding: 24px; margin-bottom: 16px; }
.cv-block-title { font-family: "DM Mono", monospace; font-size: 10px; color: var(--terracotta); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; }
.skill-list { display: flex; flex-direction: column; gap: 10px; }
.skill-item { display: flex; justify-content: space-between; align-items: center; }
.skill-name { font-size: 13px; color: var(--charcoal); font-weight: 500; }
.skill-dots { display: flex; gap: 3px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sand); }
.dot.filled { background: var(--terracotta); }
.cv-exp-item { border-left: 2px solid var(--sand); padding-left: 22px; margin-bottom: 30px; position: relative; transition: border-color 0.3s; }
.cv-exp-item:hover { border-left-color: var(--terracotta); }
.cv-exp-item::before { content: ""; position: absolute; left: -5px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta); border: 2px solid var(--cream); }
.cv-exp-date { font-family: "DM Mono", monospace; font-size: 11px; color: var(--terracotta); letter-spacing: 1px; margin-bottom: 4px; }
.cv-exp-title { font-size: 15px; font-weight: 600; color: var(--charcoal); margin-bottom: 2px; }
.cv-exp-company { font-size: 12px; color: var(--light-mid); margin-bottom: 10px; }
.cv-exp-desc { font-size: 13px; color: var(--mid); line-height: 1.8; list-style: none; }
.cv-exp-desc li { margin-bottom: 4px; padding-left: 4px; }
.cv-exp-desc li::before { content: "· "; color: var(--terracotta); }
.cv-section-header { font-family: "Playfair Display", serif; font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 22px; padding-bottom: 10px; border-bottom: 1px solid var(--sand); }
.cv-download-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 24px; background: var(--terracotta); color: white; text-decoration: none; border-radius: 6px; font-size: 14px; font-weight: 600; margin-top: 24px; cursor: pointer; transition: all 0.25s; font-family: "Inter", sans-serif; border: none; }
.cv-download-btn:hover { background: var(--terracotta-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,133,94,0.35); }

/* ===== CONTACT ===== */
.contact-section { background: var(--deep); color: var(--ink); text-align: center; padding: 100px 48px; }
.contact-section .section-label { color: var(--highlight); }
.contact-quote { font-family: "Playfair Display", serif; font-size: clamp(26px,3.5vw,44px); font-weight: 700; font-style: italic; color: var(--ink); max-width: 680px; margin: 0 auto 16px; line-height: 1.3; }
.contact-sub { font-size: 15px; color: var(--mid); margin-bottom: 44px; }
.contact-links { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.contact-link { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border: 1px solid var(--sand); border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; transition: all 0.25s; }
.contact-link:hover { border-color: var(--terracotta); background: rgba(212,133,94,0.1); }
.contact-link.primary { background: var(--terracotta); border-color: var(--terracotta); }
.contact-link.primary:hover { background: var(--terracotta-dark); }

/* ===== FOOTER ===== */
.footer { background: var(--deep); border-top: 1px solid var(--sand); padding: 22px 48px; display: flex; justify-content: space-between; align-items: center; }
.footer-name { font-family: "Playfair Display", serif; font-size: 15px; color: var(--mid); }
.footer-copy { font-size: 12px; color: var(--light-mid); font-family: "DM Mono", monospace; }

/* ===== HERO ANIMATIONS (CSS fallback, enhanced by GSAP) ===== */
@keyframes heroFadeUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }
@keyframes floatIn { from{opacity:0;transform:translateX(30px)} to{opacity:1;transform:translateX(0)} }
.hero-eyebrow{animation:heroFadeUp 0.7s ease 0.1s both}
.hero-title{animation:heroFadeUp 0.7s ease 0.25s both}
.hero-subtitle{animation:heroFadeUp 0.7s ease 0.4s both}
.hero-desc{animation:heroFadeUp 0.7s ease 0.55s both}
.hero-tags{animation:heroFadeUp 0.7s ease 0.65s both}
.hero-ctas{animation:heroFadeUp 0.7s ease 0.75s both}
.js-ready .stat-card { opacity: 0; animation: floatIn 0.8s ease forwards; }
.js-ready .stat-card:nth-child(1){animation-delay:0.3s} .js-ready .stat-card:nth-child(2){animation-delay:0.5s} .js-ready .stat-card:nth-child(3){animation-delay:0.7s} .js-ready .stat-card:nth-child(4){animation-delay:0.9s}

/* ===== LANGUAGE TOGGLE ===== */
[data-lang="tr"]{display:none}
body.lang-tr [data-lang="en"]{display:none}
body.lang-tr [data-lang="tr"]{display:block}
body.lang-tr .inline-tr{display:inline}
body.lang-tr .inline-en{display:none}
.inline-tr{display:none}
.inline-en{display:inline}
body.lang-tr .block-tr{display:block}
body.lang-tr .block-en{display:none}
.block-tr{display:none}
.block-en{display:block}

/* ===== GSAP SCROLL ANIMATION STATES (JS-only) ===== */
/* GSAP's gsap.from() handles initial hidden state via JS.
   Elements are visible by default so the page works without JS. */

/* ===== NOORBLOOM GALLERY ===== */
.noorbloom-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; height: 260px; overflow: hidden; border-radius: 0; }
.noorbloom-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.noorbloom-gallery .main-img { grid-row: span 2; }
.project-card:hover .noorbloom-gallery img { transform: scale(1.05); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .skill-categories { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); }
}

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; padding: 100px 24px 60px; gap: 40px; }
    .cv-layout { grid-template-columns: 1fr; }
    .edge-grid { grid-template-columns: 1fr; }
    section { padding: 64px 24px; }
    .lang-bar { padding: 14px 24px; }
    .lang-bar.scrolled { padding: 10px 24px; }
    .nav-links { display: none; }
    .nav-hamburger { display: block; }
    .pillars-grid { grid-template-columns: 1fr 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .divider { margin: 0 24px; }
    .footer { flex-direction: column; gap: 8px; text-align: center; }
    .social-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .hero { padding: 90px 16px 40px; }
    section { padding: 48px 16px; }
    .lang-bar { padding: 12px 16px; }
    .lang-bar.scrolled { padding: 8px 16px; }
    .divider { margin: 0 16px; }
    .pillars-grid { grid-template-columns: 1fr; }
    .contact-links { flex-direction: column; align-items: center; }
    .why-grid { grid-template-columns: 1fr; }
    .footer { padding: 16px; }
    .hero-ctas { flex-direction: column; }
    .hero-ctas .btn-primary, .hero-ctas .btn-secondary { width: 100%; justify-content: center; }
    .project-filters { gap: 6px; }
    .filter-btn { padding: 6px 14px; font-size: 12px; }
}

/* ===== ACCESSIBILITY: FOCUS STATES ===== */
a:focus-visible, button:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }
.lang-btn:focus-visible { outline-offset: 1px; }
.nav-links a:focus-visible { outline-offset: 6px; }
.filter-btn:focus-visible { outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

/* ===== SMOOTH SCROLL target offset ===== */
:target { scroll-margin-top: 80px; }

/* ===== SELECTION COLOR ===== */
::selection { background: rgba(212,133,94,0.3); color: var(--ink); }

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

/* ========================================================================
   PRINT / PDF STYLESHEET
   — Dark tema → açık print paleti
   — Sabit elemanlar & animasyonlar kaldırılır
   — Sayfa kırılma (page-break) kuralları eklenir
   ======================================================================== */
@media print {

    /* ---------- OVERRIDE: CSS VARIABLES → PRINT-SAFE LIGHT PALETTE ---------- */
    :root {
        --cream: #F5F0E8;
        --warm-white: #FFFFFF;
        --sand: #D8CFC0;
        --card: #FFFFFF;
        --card-hover: #FFFFFF;
        --terracotta: #B85C38;
        --terracotta-dark: #9A4A2A;
        --burnt: #8B4513;
        --highlight: #C4714A;
        --charcoal: #1A1410;
        --mid: #3E3428;
        --light-mid: #6B5D4E;
        --muted: #A89880;
        --ink: #0F0D0A;
        --deep: #FFFFFF;
        --deep-surface: #F8F6F2;
    }

    /* ---------- GLOBAL RESET ---------- */
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    body {
        background: #fff !important;
        color: #1A1410 !important;
        font-size: 11pt;
        line-height: 1.5;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* ---------- PAGE SETTINGS ---------- */
    @page {
        size: A4;
        margin: 15mm 12mm;
    }

    /* ---------- HIDE NON-PRINT ELEMENTS ---------- */
    .lang-bar,
    .nav-hamburger,
    .mobile-drawer,
    .drawer-overlay,
    .hero-ctas,
    .project-filters,
    .filter-btn,
    .lang-toggle,
    .cv-download-btn,
    .btn-primary,
    .btn-secondary,
    .contact-link.primary {
        display: none !important;
    }

    /* ---------- SECTIONS ---------- */
    section {
        padding: 24px 0 !important;
        background: #fff !important;
        page-break-inside: auto;
    }
    .story-section,
    .projects-section,
    .cv-section,
    .social-section,
    .philosophy-section,
    .contact-section {
        background: #fff !important;
    }

    /* ---------- HERO ---------- */
    .hero {
        min-height: auto !important;
        padding: 20px 0 !important;
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    .hero::before, .hero::after { display: none !important; }

    /* ---------- TYPOGRAPHY FIX ---------- */
    .hero-title, .section-title, .cv-section-header,
    .timeline-heading, .project-title, .cv-name {
        color: #0F0D0A !important;
    }
    .hero-title .accent, .section-title .italic {
        color: #B85C38 !important;
    }
    .section-label {
        color: #B85C38 !important;
    }
    .hero-desc, .section-intro, .why-body, .project-desc,
    .timeline-body, .edge-body, .pillar-body, .cv-summary,
    .social-card-body {
        color: #3E3428 !important;
    }

    /* ---------- CARDS → BORDERED WHITE ---------- */
    .stat-card, .why-card, .project-card, .edge-item,
    .social-card, .cv-skills-block, .cv-intro-block {
        background: #fff !important;
        border: 1px solid #D8CFC0 !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    /* Remove hover-only pseudo borders */
    .project-card::before, .why-card::before { display: none !important; }

    /* ---------- GRIDS → PRINT-FRIENDLY COLUMNS ---------- */
    .cv-layout {
        grid-template-columns: 1fr 2fr !important;
        gap: 20px;
    }
    .projects-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 16px;
    }
    .why-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px;
    }
    .edge-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px;
    }
    .pillars-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        border: 1px solid #D8CFC0 !important;
    }
    .pillar {
        background: #F8F6F2 !important;
        border-right: 1px solid #D8CFC0 !important;
    }

    /* ---------- TIMELINE ---------- */
    .timeline::before {
        background: #D8CFC0 !important;
    }
    .timeline-item {
        opacity: 1 !important;
        transform: none !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    .timeline-dot {
        background: #fff !important;
        border-color: #B85C38 !important;
        box-shadow: none !important;
    }
    .timeline-outcome {
        background: #F5F0E8 !important;
        border-left-color: #B85C38 !important;
        color: #8B4513 !important;
    }

    /* ---------- PROJECT CARDS ---------- */
    .project-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    .project-img-wrap, .project-img-multi, .noorbloom-gallery {
        height: 140px !important;
    }
    .project-badge {
        background: #B85C38 !important;
        color: #fff !important;
    }
    .project-impact {
        background: #F5F0E8 !important;
        color: #8B4513 !important;
    }
    .role-chip {
        background: #F5F0E8 !important;
        border-color: #D8CFC0 !important;
        color: #8B4513 !important;
    }
    .tech-tag {
        background: #F5F0E8 !important;
        color: #6B5D4E !important;
    }

    /* ---------- CV SECTION ---------- */
    .cv-intro-block {
        background: #1A1410 !important;
        color: #F0EAE0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .cv-intro-block .cv-name { color: #fff !important; }
    .cv-intro-block .cv-headline { color: #D4956A !important; }
    .cv-intro-block .cv-summary { color: rgba(255,255,255,0.8) !important; }
    .cv-exp-item {
        break-inside: avoid;
        page-break-inside: avoid;
        border-left-color: #D8CFC0 !important;
    }
    .cv-exp-item::before {
        background: #B85C38 !important;
        border-color: #fff !important;
    }
    .dot { background: #D8CFC0 !important; }
    .dot.filled { background: #B85C38 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

    /* ---------- PHILOSOPHY SECTION ---------- */
    .philosophy-section {
        background: #F8F6F2 !important;
        color: #1A1410 !important;
    }
    .philosophy-section .section-title { color: #0F0D0A !important; }
    .philosophy-section .section-label { color: #B85C38 !important; }
    .philosophy-section .italic { color: #B85C38 !important; }
    .pillar-title { color: #1A1410 !important; }
    .pillar-body { color: #6B5D4E !important; }

    /* ---------- CONTACT SECTION ---------- */
    .contact-section {
        background: #F8F6F2 !important;
        color: #1A1410 !important;
    }
    .contact-quote { color: #0F0D0A !important; }
    .contact-sub { color: #6B5D4E !important; }
    .contact-links { display: flex !important; }
    .contact-link {
        border: 1px solid #D8CFC0 !important;
        color: #1A1410 !important;
        background: #fff !important;
    }

    /* ---------- FOOTER ---------- */
    .footer {
        background: #fff !important;
        border-top: 1px solid #D8CFC0 !important;
    }
    .footer-name { color: #3E3428 !important; }
    .footer-copy { color: #6B5D4E !important; }

    /* ---------- DIVIDER ---------- */
    .divider {
        background: #D8CFC0 !important;
        margin: 8px 0 !important;
    }

    /* ---------- EXPERTISE SECTION (inline-styled) ---------- */
    [id="expertise"] {
        background: #F8F6F2 !important;
    }
    [id="expertise"] div[style*="color:var(--highlight)"] {
        color: #B85C38 !important;
    }
    [id="expertise"] div[style*="color:white"] {
        color: #1A1410 !important;
    }

    /* ---------- INLINE STYLED DARK CARDS IN HTML ---------- */
    div[style*="background:var(--card)"] {
        background: #fff !important;
        border: 1px solid #D8CFC0 !important;
    }
    div[style*="background:var(--deep-surface)"] {
        background: #F8F6F2 !important;
    }
    div[style*="background:var(--cream)"] {
        background: #F5F0E8 !important;
    }

    /* ---------- LINKS: SHOW URL ---------- */
    .project-link::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #6B5D4E;
        font-weight: 400;
    }

    /* ---------- PAGE BREAK HELPERS ---------- */
    h1, h2, h3, .section-title, .cv-section-header {
        page-break-after: avoid;
        break-after: avoid;
    }
    .hero-visual { display: none !important; }

    /* ---------- TAG COLORS ---------- */
    .tag {
        background: #F5F0E8 !important;
        color: #3E3428 !important;
        border: 1px solid #D8CFC0 !important;
    }
    .hero-eyebrow {
        background: #F5F0E8 !important;
        border-color: #D8CFC0 !important;
        color: #B85C38 !important;
    }
}
