/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== LIGHT MODE ===== */
:root {
  --bg:        #f2f6fc;
  --surface:   #ffffff;
  --surface2:  #e8f0fb;
  --border:    #d4e2f4;
  --text:      #0d1b2a;
  --muted:     #587290;
  --accent:    #1156b8;
  --accent2:   #1a6dd4;
  --accent-lt: #ddeafc;
  --warm:      #f59e0b;
  --warm-lt:   #fef3c7;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 2px 16px rgba(17,86,184,.09);
  --shadow-md: 0 8px 32px rgba(17,86,184,.15);
  --tr:        .22s cubic-bezier(.4,0,.2,1);
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
  --bg:        #0b1726;
  --surface:   #122035;
  --surface2:  #1a2d46;
  --border:    #203550;
  --text:      #d8e8f8;
  --muted:     #7ca4c8;
  --accent:    #4d9eff;
  --accent2:   #6bb0ff;
  --accent-lt: #152540;
  --warm:      #fbbf24;
  --warm-lt:   #281d08;
  --shadow:    0 2px 20px rgba(0,0,0,.45);
  --shadow-md: 0 8px 40px rgba(0,0,0,.55);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.65; font-size: 16px;
  overflow-x: hidden;
  transition: background .3s, color .3s;
}
h1,h2,h3,h4 { font-family: 'DM Serif Display', serif; font-weight: 400; line-height: 1.2; }
em { font-style: italic; color: var(--accent2); }
a  { text-decoration: none; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section    { padding: 6rem 0; }

.eyebrow {
  font-size: .72rem; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--warm);
  display: block; margin-bottom: .5rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .72rem 1.65rem; border-radius: 50px;
  font-family: 'DM Sans', sans-serif; font-size: .88rem;
  font-weight: 500; cursor: pointer; border: none; transition: var(--tr);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(17,86,184,.3); }
.btn-outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.btn-sm { padding: .5rem 1.2rem; font-size: .8rem; }

/* ===== HEADER ===== */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(242,246,252,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--tr), box-shadow var(--tr), background .3s;
}
[data-theme="dark"] #header { background: rgba(11,23,38,.94); }
#header.scrolled { border-color: var(--border); box-shadow: var(--shadow); }

.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 66px; gap: 1.5rem;
}

/* LOGO */
.logo { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.logo-img { height: 38px; width: auto; object-fit: contain; display: block; }
.logo-img.error + .logo-fallback { display: grid !important; }
.logo-img.error { display: none !important; }
.logo-fallback {
  width: 36px; height: 36px; background: var(--accent); color: #fff;
  border-radius: 8px; display: none;
  place-items: center; font-family: 'DM Serif Display', serif; font-size: 1.1rem;
}
.logo-name { font-family: 'DM Serif Display', serif; font-size: 1rem; color: var(--text); white-space: nowrap; }

/* CENTER NAV */
.nav-links { display: flex; gap: 1.8rem; align-items: center; flex: 1; justify-content: center; }
.nav-link {
  font-size: .875rem; font-weight: 500; color: var(--muted);
  transition: color var(--tr); position: relative; padding-bottom: 3px;
  white-space: nowrap;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--accent);
  border-radius: 2px; transition: width var(--tr);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::after, .nav-link:hover::after { width: 100%; }

/* ===== RIGHT CONTROLS (dil + dark mode) ===== */
.nav-controls {
  display: flex; align-items: center; gap: .5rem; flex-shrink: 0;
}

/* LANG SWITCHER */
.lang-switcher {
  display: flex; align-items: center; gap: .2rem;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 50px; padding: .2rem .4rem;
}
.lang-sep  { color: var(--border); font-size: .75rem; user-select: none; }
.lang-toggle {
  background: none; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: .75rem; font-weight: 600;
  color: var(--muted); padding: .25rem .5rem; border-radius: 50px;
  transition: var(--tr); letter-spacing: .04em;
}
.lang-toggle:hover    { color: var(--accent); }
.lang-toggle.lang-active {
  background: var(--accent); color: #fff;
}

/* THEME TOGGLE */
.theme-toggle-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface2); border: 1px solid var(--border);
  cursor: pointer; display: grid; place-items: center;
  font-size: 1rem; transition: var(--tr); flex-shrink: 0;
  color: var(--text);
}
.theme-toggle-btn:hover { background: var(--accent-lt); border-color: var(--accent); }

/* HAMBURGER */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .4rem;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--tr); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE MENU */
.mobile-menu {
  display: none; flex-direction: column;
  padding: 1rem 2rem 1.5rem; gap: .7rem;
  border-top: 1px solid var(--border); background: var(--bg);
}
.mobile-menu.open { display: flex; }
.mob-util-row {
  display: flex; align-items: center; gap: .75rem;
  padding-top: .5rem; border-top: 1px solid var(--border); margin-top: .25rem;
}

/* ===== FOOTER ===== */
.footer { background: #050d18; color: rgba(255,255,255,.45); padding: 2.5rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer .logo-name  { color: rgba(255,255,255,.85); }
.footer .logo-fallback { background: var(--accent); display: grid !important; }
.footer-tagline { font-size: .78rem; margin-top: .25rem; color: rgba(255,255,255,.3); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links .nav-link { font-size: .82rem; color: rgba(255,255,255,.4); transition: color var(--tr); }
.footer-links .nav-link:hover { color: #fff; }
.footer-links .nav-link::after { display: none; }
.footer-copy { font-size: .78rem; }

/* ===== PAGE HERO ===== */
.page-hero {
  padding: 9rem 0 4rem;
  background: linear-gradient(135deg, var(--accent-lt) 0%, var(--surface2) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.page-hero p  { color: var(--muted); max-width: 540px; font-size: 1.05rem; }

/* SEC HEAD */
.sec-head { text-align: center; margin-bottom: 3rem; }
.sec-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .75rem; }
.sec-head p  { color: var(--muted); max-width: 480px; margin: 0 auto; }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .45s ease forwards; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
}
@media (max-width: 640px) {
  .section   { padding: 4rem 0; }
  .page-hero { padding: 7rem 0 3rem; }
}
