/* ==========================================================================
   BASE — Custom Properties, Reset & Base Styles, Typography
   Lines 1-147 from styles.css
   ========================================================================== */

/* ============================================
   EKRAM ALVI — PORTFOLIO
   Design: Ukiyo-e × Porcelain
   Cobalt · Cream · Gold · Vermillion
   ============================================ */

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
  /* Blue range */
  --color-primary: #0A192F;
  --color-primary-light: #172A46;
  --color-primary-dark: #020C1B;
  --color-primary-bright: #1E3A8A;
  --color-primary-pale: #A3B8CC;

  /* Gold */
  --color-accent: #D4AF37;
  --color-accent-light: #F3E5AB;
  --color-accent-dark: #996515;

  /* Vermillion (seal stamp red) */
  --color-vermillion: #C23B22;
  --color-vermillion-dark: #8B2500;

  /* Surfaces – Light theme */
  --color-bg: #F8F5F0;
  /* Porcelain white */
  --color-bg-alt: #EAE4D7;
  --color-surface: #FFFFFF;
  --color-text: #0A192F;
  /* Deep indigo text */
  --color-text-secondary: rgba(10, 25, 47, 0.75);
  --color-text-muted: rgba(10, 25, 47, 0.5);
  --color-border: rgba(10, 25, 47, 0.12);
  --color-border-gold: rgba(212, 175, 55, 0.4);

  /* Hero – always dark */
  --hero-bg: #020C1B;
  --hero-text: #F8F5F0;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container-max: 1200px;
  --section-py: 6rem;
  --section-px: 1.5rem;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.2s;
  --t-base: 0.35s;
  --t-slow: 0.6s;
}

[data-theme="dark"] {
  --color-bg: #020C1B;
  --color-bg-alt: #0A192F;
  --color-surface: #112240;
  --color-text: #F8F5F0;
  --color-text-secondary: rgba(248, 245, 240, 0.8);
  --color-text-muted: rgba(248, 245, 240, 0.5);
  --color-border: rgba(212, 175, 55, 0.15);
  --color-border-gold: rgba(212, 175, 55, 0.3);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--t-base) var(--ease-out),
    color var(--t-base) var(--ease-out);
}

/* Paper / parchment grain — visible, warm */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 512px 512px;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-px);
}

.hidden {
  display: none !important;
}

/* ---------- TYPOGRAPHY ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

/* ---------- CUSTOM SCROLLBAR ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-dark);
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) var(--color-bg);
}

