/* ==========================================================================
   VARIABLES.CSS — Design Tokens
   Arme Demir Premium Portfolio
   ========================================================================== */

:root {
  /* -----------------------------------------------------------------------
     Colors
     ----------------------------------------------------------------------- */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);

  --text-primary: #f5f5f5;
  --text-secondary: #999999;
  --text-muted: #666666;

  --accent: #d4870e;
  --accent-light: #f0a830;
  --accent-dark: #a66a0a;
  --accent-glow: rgba(212, 135, 14, 0.25);
  --accent-glow-strong: rgba(212, 135, 14, 0.5);

  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-strong: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.15);

  --overlay-bg: rgba(0, 0, 0, 0.85);

  --danger: #e74c3c;
  --success: #2ecc71;

  /* -----------------------------------------------------------------------
     Typography
     ----------------------------------------------------------------------- */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --fs-hero: clamp(2.5rem, 6vw, 5rem);
  --fs-h1: clamp(2rem, 4vw, 3.5rem);
  --fs-h2: clamp(1.5rem, 3vw, 2.5rem);
  --fs-h3: clamp(1.2rem, 2vw, 1.5rem);
  --fs-body: clamp(0.95rem, 1.2vw, 1.1rem);
  --fs-small: clamp(0.8rem, 1vw, 0.9rem);
  --fs-xs: 0.75rem;

  --lh-tight: 1.1;
  --lh-normal: 1.6;
  --lh-loose: 1.8;

  --ls-wide: 0.15em;
  --ls-wider: 0.3em;

  /* -----------------------------------------------------------------------
     Spacing
     ----------------------------------------------------------------------- */
  --section-padding: clamp(2rem, 4vw, 3.5rem);
  --container-max: 1200px;
  --container-padding: clamp(1.5rem, 4vw, 3rem);

  --gap-sm: 0.75rem;
  --gap-md: 1.5rem;
  --gap-lg: 2.5rem;
  --gap-xl: 3rem;

  /* -----------------------------------------------------------------------
     Border Radius
     ----------------------------------------------------------------------- */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* -----------------------------------------------------------------------
     Shadows
     ----------------------------------------------------------------------- */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px var(--accent-glow);
  --shadow-glow-strong: 0 0 60px var(--accent-glow-strong);

  /* -----------------------------------------------------------------------
     Transitions
     ----------------------------------------------------------------------- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 600ms;
  --duration-slower: 800ms;

  /* -----------------------------------------------------------------------
     Z-index Scale
     ----------------------------------------------------------------------- */
  --z-base: 1;
  --z-header: 100;
  --z-mobile-menu: 200;
  --z-modal: 300;
  --z-consent: 400;
  --z-toast: 500;
}

/* ---- Light Theme ---- */
[data-theme="light"] {
  --bg-primary: #f5f5f0;
  --bg-secondary: #eaeae5;
  --bg-tertiary: #e0e0db;
  --text-primary: #1a1a1a;
  --text-secondary: #444444;
  --text-tertiary: #666666;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.08);
  --card-bg: rgba(255, 255, 255, 0.8);
  --card-hover-bg: rgba(255, 255, 255, 0.95);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 20px rgba(212, 135, 14, 0.15);
}

[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(0,0,0,0.06);
}

[data-theme="light"] .nav__link {
  color: #333;
}

[data-theme="light"] .nav__link:hover,
[data-theme="light"] .nav__link.active {
  color: var(--accent);
}

[data-theme="light"] .stat-card,
[data-theme="light"] .about-card {
  background: rgba(255,255,255,0.8);
  border-color: rgba(0,0,0,0.06);
}

[data-theme="light"] .project-card {
  background: rgba(255,255,255,0.9);
  border-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .section-title {
  color: #1a1a1a;
}

[data-theme="light"] .footer {
  background: #1a1a1a;
  color: #e0e0e0;
}

[data-theme="light"] .consent-card {
  background: rgba(255,255,255,0.95);
  border-color: rgba(0,0,0,0.1);
}

[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form textarea {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.1);
  color: #1a1a1a;
}

[data-theme="light"] .projects-filter__btn {
  border-color: rgba(0,0,0,0.15);
  color: #555;
  background: rgba(0,0,0,0.03);
}

[data-theme="light"] .projects-filter__btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(212, 135, 14, 0.08);
}

[data-theme="light"] .projects-filter__btn.active {
  color: #fff;
}

[data-theme="light"] body {
  background: var(--bg-primary);
  color: var(--text-primary);
}

[data-theme="light"] .canvas-bg {
  opacity: 0.15;
}

[data-theme="light"] .header--scrolled {
  background: rgba(245, 245, 240, 0.9);
  border-bottom-color: rgba(0,0,0,0.06);
}

[data-theme="light"] .header__logo-text {
  color: #1a1a1a;
}

[data-theme="light"] .header__nav-link {
  color: #333;
}

[data-theme="light"] .header__nav-link:hover {
  color: var(--accent);
}

[data-theme="light"] .lang-btn {
  color: #555;
}

[data-theme="light"] .lang-btn.active {
  color: var(--accent);
}

[data-theme="light"] .mobile-menu-btn span {
  background: #333;
}

[data-theme="light"] .consent-card__text,
[data-theme="light"] .consent-card__title {
  color: #1a1a1a;
}

/* ─── Light theme: Section backgrounds ─── */
[data-theme="light"] .about--landing {
  background: linear-gradient(
    to bottom,
    rgba(245, 245, 240, 0.25) 0%,
    rgba(245, 245, 240, 0.55) 15%,
    rgba(245, 245, 240, 0.78) 35%,
    rgba(245, 245, 240, 0.90) 60%,
    rgba(245, 245, 240, 0.96) 100%
  ) !important;
}

[data-theme="light"] .about {
  background: rgba(245, 245, 240, 0.92);
}

[data-theme="light"] .stats {
  background: rgba(240, 240, 235, 0.95);
  border-top-color: rgba(0,0,0,0.06);
  border-bottom-color: rgba(0,0,0,0.06);
}

[data-theme="light"] .projects {
  background: rgba(245, 245, 240, 0.90);
}

[data-theme="light"] .contact {
  background: rgba(240, 240, 235, 0.95);
}

/* ─── Light theme: Cards ─── */
[data-theme="light"] .about__card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .about__card:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(212, 135, 14, 0.3);
}

[data-theme="light"] .about__card-icon {
  background: rgba(212, 135, 14, 0.1);
}

[data-theme="light"] .about__card-text {
  color: #555;
}

/* ─── Light theme: Project cards ─── */
[data-theme="light"] .project-card {
  border-color: rgba(0,0,0,0.08);
}

/* Project card text MUST stay white - cards have dark overlay */
[data-theme="light"] .project-card__category,
[data-theme="light"] .project-card__title,
[data-theme="light"] .project-card__desc {
  color: #fff !important;
}

[data-theme="light"] .project-card__overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.80) 0%,
    rgba(0, 0, 0, 0.15) 60%,
    transparent 100%
  );
}

/* ─── Light theme: Form inputs ─── */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.12);
  color: #1a1a1a;
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
  border-color: #d4870e;
  background: #fff;
}

[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder {
  color: #999;
}

[data-theme="light"] .form-group label {
  color: #333;
}

/* ─── Light theme: Contact info ─── */
[data-theme="light"] .contact__info-text,
[data-theme="light"] .contact__info-item span {
  color: #555;
}

/* ─── Light theme: Footer ─── */
[data-theme="light"] .footer {
  background: #f0f0eb;
  color: #333;
  border-top: 1px solid rgba(0,0,0,0.08);
}

[data-theme="light"] .footer__title,
[data-theme="light"] .footer__heading {
  color: #1a1a1a;
}

[data-theme="light"] .footer__text,
[data-theme="light"] .footer__link,
[data-theme="light"] .footer p,
[data-theme="light"] .footer a {
  color: #555;
}

[data-theme="light"] .footer a:hover {
  color: #d4870e;
}

[data-theme="light"] .footer__bottom {
  border-top-color: rgba(0,0,0,0.08);
  color: #888;
}

/* ─── Light theme: Map ─── */
[data-theme="light"] .map-section {
  background: rgba(240, 240, 235, 0.95);
}

/* ─── Light theme: 3D Canvas ─── */
[data-theme="light"] .canvas-bg {
  opacity: 0.08;
}

/* ─── Light theme: Stat numbers ─── */
[data-theme="light"] .stat-item__label {
  color: #555;
}

/* ─── Light theme: Project modal ─── */
[data-theme="light"] .project-detail-modal__content {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0,0,0,0.1);
}

/* ─── Light theme: Social links ─── */
[data-theme="light"] .footer__social-link {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.12);
  color: #333;
}

[data-theme="light"] .footer__social-link:hover {
  background: rgba(212, 135, 14, 0.1);
  border-color: #d4870e;
  color: #d4870e;
}

[data-theme="light"] .footer__social-link svg {
  color: #333;
}

[data-theme="light"] .footer__social-link:hover svg {
  color: #d4870e;
}

/* ─── Light theme: Consent overlay ─── */
[data-theme="light"] .consent-overlay {
  background: rgba(0,0,0,0.4);
}

[data-theme="light"] .consent-card {
  background: #fff;
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 16px 60px rgba(0,0,0,0.15);
}

/* ─── Light theme: Text colors ─── */
[data-theme="light"] .section-subtitle {
  color: #666;
}

[data-theme="light"] .section-title {
  color: #1a1a1a;
}
