/* ============================================
   Merve de Grave - Professional Portfolio
   Classic & Elegant Design — Rebuilt
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --primary: #1b1b2f;
  --primary-light: #252542;
  --accent: #c9a96e;
  --accent-hover: #dabb82;
  --accent-dark: #a88b4a;
  --secondary: #2d2d44;
  --bg-light: #f8f6f2;
  --bg-cream: #f0ece4;
  --white: #ffffff;
  --text: #2c2c2c;
  --text-light: #5a5a5a;
  --muted: #8a8a8a;
  --border: #ddd8cf;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* === LANGUAGE SYSTEM === */
[data-t] { display: none !important; }
[data-t="en"] { display: inline !important; }

body.de [data-t="en"] { display: none !important; }
body.de [data-t="de"] { display: inline !important; }

body.tr [data-t="en"] { display: none !important; }
body.tr [data-t="tr"] { display: inline !important; }

/* === LAYOUT === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

/* === SECTION STYLES === */
.bg-white { background: var(--white); }
.bg-cream { background: var(--bg-light); }
.bg-dark {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
}
.bg-dark h2, .bg-dark h3 { color: var(--white); }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.bg-dark .section-header h2 { color: var(--white); }

.section-header .line {
  display: block;
  width: 50px;
  height: 2px;
  background: var(--accent);
  margin: 14px auto 16px;
}

.section-header p {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 300;
}

.bg-dark .section-header p { color: rgba(255,255,255,0.45); }

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  background: rgba(27,27,47,0.96);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
  backdrop-filter: blur(12px);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
}
.nav-logo em { font-style: normal; color: var(--accent); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-menu a {
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  transition: color 0.3s;
  position: relative;
}
.nav-menu a:hover { color: var(--accent); }
.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav-menu a:hover::after { width: 100%; }

/* Lang Switcher */
.lang-switch {
  display: flex;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-left: 8px;
}
.lang-switch button {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 10px;
  letter-spacing: 0.05em;
  transition: all 0.3s;
}
.lang-switch button:hover { color: #fff; background: rgba(255,255,255,0.08); }
.lang-switch button.active { background: var(--accent); color: var(--primary); }

/* Mobile Toggle */
.burger {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 200;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  transition: all 0.3s;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, #141427 0%, var(--primary) 40%, var(--secondary) 100%);
  position: relative;
  padding: 100px 24px 60px;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 70%, rgba(201,169,110,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero .tagline {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--accent);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 10px;
}

.hero .langs {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero .desc {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 36px;
}

.btn-outline {
  display: inline-block;
  padding: 13px 36px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s;
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--primary);
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.scroll-hint span {
  display: block;
  width: 1px; height: 30px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
}

/* === ABOUT === */
.about-body {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.about-body p {
  font-size: 1.02rem;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 18px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 22px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
}
.badge svg { flex-shrink: 0; }

/* === SERVICES === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.svc {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.svc::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.svc:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.svc:hover::before { transform: scaleX(1); }
.svc .icon { font-size: 1.8rem; margin-bottom: 12px; }
.svc h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
}
.svc p { font-size: 0.83rem; color: var(--muted); line-height: 1.6; }

/* === STATS === */
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  text-align: center;
  padding: 60px 0;
}
.stat .num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}
.stat .lbl {
  margin-top: 6px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* === CLIENTS === */
.clients {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.client {
  padding: 16px 12px;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.3s, transform 0.3s;
}
.client:hover { border-color: var(--accent); transform: translateY(-2px); }
.client small {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* === EXPERTISE TAGS === */
.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 800px;
  margin: 0 auto;
}
.tag {
  padding: 9px 20px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text);
  background: var(--white);
  transition: all 0.3s;
}
.tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* === EXPERIENCE === */
.exp-list {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.exp {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--border);
  background: var(--white);
  align-items: start;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.exp:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(0,0,0,0.05); }
.exp .year {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  padding-top: 2px;
}
.exp h3 {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}
.exp p { font-size: 0.83rem; color: var(--muted); line-height: 1.55; }
.exp .type {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.68rem;
  padding: 3px 10px;
  background: var(--bg-light);
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* === BOOKS === */
.books {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  max-width: 880px;
  margin: 0 auto;
}
.book {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  background: var(--white);
  transition: border-color 0.3s;
}
.book:hover { border-color: var(--accent); }
.book .bi { font-size: 1.4rem; color: var(--accent); flex-shrink: 0; }
.book h3 { font-family: var(--font-heading); font-size: 0.92rem; font-weight: 600; color: var(--primary); }
.book p { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }

/* === TESTIMONIALS === */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}
.quote {
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.quote blockquote {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
}
.quote blockquote::before {
  content: '\201C';
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 0;
  vertical-align: -0.35em;
  margin-right: 4px;
}
.quote .author { font-size: 0.85rem; font-weight: 500; color: var(--accent); }
.quote .role { font-size: 0.75rem; color: rgba(255,255,255,0.35); margin-top: 3px; }

/* === EDUCATION === */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}
.edu-card {
  padding: 28px;
  border: 1px solid var(--border);
  background: var(--white);
}
.edu-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}
.edu-card .school { color: var(--accent-dark); font-size: 0.88rem; }
.edu-card .period { font-size: 0.8rem; color: var(--muted); margin: 4px 0 8px; }
.edu-card .thesis { font-size: 0.85rem; color: var(--text-light); font-style: italic; }

.certs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 700px;
  margin: 28px auto 0;
}
.cert {
  padding: 7px 16px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text);
}

/* === CONTACT === */
.contact-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.contact-inner .contact-intro {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 36px;
}
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
}
.contact-card {
  padding: 28px 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  transition: border-color 0.3s;
}
.contact-card:hover { border-color: var(--accent); }
.contact-card .cc-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.contact-card .cc-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 6px;
}
.contact-card .cc-value {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--accent);
}
.contact-card .cc-value a {
  color: var(--accent);
  transition: color 0.3s;
}
.contact-card .cc-value a:hover {
  color: var(--accent-hover);
}
.btn-gold {
  display: inline-block;
  padding: 14px 40px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.3s;
  text-decoration: none;
}
.btn-gold:hover { background: var(--accent-hover); color: var(--primary); }

@media (max-width: 480px) {
  .contact-cards { grid-template-columns: 1fr; }
}

/* === FOOTER === */
footer {
  padding: 24px 0;
  background: var(--primary);
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}

/* === ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.shown {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .burger { display: flex; }

  .nav-menu {
    position: fixed;
    inset: 0;
    background: var(--primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 150;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { font-size: 1rem; }
  .lang-switch { margin-left: 0; }

  section { padding: 56px 0; }
  .hero { min-height: 100svh; padding: 80px 20px 50px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 40px 0; }
  .stat .num { font-size: 2rem; }
  .exp { grid-template-columns: 1fr; gap: 4px; }
  .exp .year { font-size: 0.8rem; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .books { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: 1fr 1fr; }
}
