/* css/base.css (Improved with modern typography and colors for extraordinary feel) */
/* =========================================================
   IT NANBARGAL — BASE CSS (REFINED)
   Foundation: Reset, Variables, Typography, Mood
   Mobile-first • Calm • Human-readable
   ========================================================= */

/* -------------------------
   CSS RESET (MODERN & SAFE)
-------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto; /* JS controlled */
}
body {
  min-height: 100vh;
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.8; /* Improved readability */
  letter-spacing: 0.02em; /* Softer spacing */
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale; /* Extra smoothness */
}

/* -------------------------
   FORM & INTERACTION RESET
-------------------------- */
button,
input,
textarea {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

/* -------------------------
   LINKS
-------------------------- */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease; /* Subtle hover prep */
}

/* -------------------------
   MEDIA
-------------------------- */
img {
  max-width: 100%;
  display: block;
  border-radius: 8px; /* Softer edges */
}

/* -------------------------
   LISTS
-------------------------- */
ul {
  list-style: none;
}

/* =========================================================
   ROOT VARIABLES (ENHANCED MOOD SYSTEM)
========================================================= */
:root {
  /* 🎨 BRAND COLORS (Extraordinary: Deeper, richer tones) */
  --bg-main: #071013; /* Deeper calm dark */
  --bg-soft: #0d1926; /* Softer card bg */
  --bg-light: #f8f9fd; /* Light accents */
  --accent-primary: #1e4fd6; /* Deeper confidence blue */
  --accent-soft: #3b7dd8; /* Richer trust blue */
  --accent-success: #1ba548; /* Vibrant calm green */
  --accent-warn: #e07c0a; /* Warmer attention */

  /* 🧠 TEXT COLORS (Improved contrast) */
  --text-main: #f0f2f5;
  --text-muted: #a0a8b5;
  --text-soft: #d0d8e2;
  --text-dark: #0a111d;

  /* 🧱 BORDERS & SHADOWS (Softer, more dimensional) */
  --border-soft: rgba(255, 255, 255, 0.1);
  --border-hard: rgba(255, 255, 255, 0.18);
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 20px 48px rgba(0, 0, 0, 0.5);

  /* 🧬 TYPOGRAPHY (Premium fonts) */
  --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, Helvetica, Arial, sans-serif;
  --font-size-hero: clamp(2.2rem, 8vw, 3rem);
  --font-size-h2: clamp(1.5rem, 5.5vw, 2rem);
  --font-size-body: 1.05rem;
  --font-size-small: 0.9rem;

  /* 📐 SPACING RHYTHM (Golden ratio inspired) */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 36px;
  --space-xl: 52px;

  /* 🌀 MOTION BASE */
  --ease-main: cubic-bezier(0.2, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.35, 0, 0.15, 1);
  --ease-snap: cubic-bezier(0.3, 1.5, 0.6, 1);
}

/* =========================================================
   GLOBAL TEXT STYLES
========================================================= */
h1,
h2,
h3 {
  font-weight: 900; /* Bolder for impact */
  letter-spacing: -0.025em;
  color: var(--text-main);
}
h1 {
  font-size: var(--font-size-hero);
  line-height: 1.1;
}
h2 {
  font-size: var(--font-size-h2);
  line-height: 1.2;
}
h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-xs);
}
p {
  font-size: var(--font-size-body);
  color: var(--text-soft);
  line-height: 1.8;
}

/* Helper / muted text */
.muted {
  color: var(--text-muted);
  font-size: var(--font-size-small);
}

/* =========================================================
   SECTION BASE
========================================================= */
.section {
  position: relative;
  width: 100%;
  padding: var(--space-xl) var(--space-md);
}
.section-title {
  margin-bottom: var(--space-lg);
}

/* =========================================================
   SCROLL PROGRESS BAR (Thicker for mobile touch) */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px; /* Thicker */
  width: 0%;
  background: linear-gradient(
    90deg,
    var(--accent-primary),
    var(--accent-success)
  );
  z-index: 9999;
  pointer-events: none;
}

/* =========================================================
   CTA BASE (STATIC - More premium) */
.cta-btn {
  background: linear-gradient(
    135deg,
    var(--accent-success),
    #28d663
  ); /* Gradient for depth */
  color: #fff;
  font-weight: 900;
  font-size: 1.05rem;
  padding: 18px 30px;
  border-radius: 20px; /* Rounder */
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* =========================================================
   ACCESSIBILITY SAFETY
========================================================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
