/* ═══════════════════════════════════════════════════════════
   KUWS BASE STYLES - Design System & Variables
   ══════════════════════════════════════════════════════════ */

:root {
  /* ── Color System: Blue & White ────────────────────────── */
  --color-primary: #1e40af; /* Deep Blue */
  --color-primary-light: #3b82f6; /* Sky Blue */
  --color-primary-lighter: #60a5fa; /* Light Sky Blue */
  --color-primary-lightest: #dbeafe; /* Very Light Blue */

  --color-white: #ffffff;
  --color-white-hover: #f8fafc;
  --color-white-bg: #f9fafb;
  --color-gray: #e5e7eb;
  --color-gray-dark: #6b7280;
  --color-gray-darker: #374151;
  --color-text-dark: #1f2937;
  --color-text-light: #4b5563;

  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  /* ── Typography ────────────────────────────────────────── */
  --font-heading:
    "Outfit", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* ── Spacing ───────────────────────────────────────────── */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-1: 1rem;
  --space-2: 1.5rem;
  --space-3: 2rem;
  --space-4: 2.5rem;
  --space-5: 3rem;
  --space-6: 3.5rem;
  --space-8: 4rem;
  --space-10: 5rem;
  --space-12: 6rem;
  --space-16: 8rem;

  /* ── Transitions ───────────────────────────────────────── */
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-custom: cubic-bezier(0.34, 1.56, 0.64, 1);

  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  --trans-fast: var(--duration-fast) var(--ease-out);
  --trans-normal: var(--duration-normal) var(--ease-out);
  --trans-slow: var(--duration-slow) var(--ease-in-out);

  /* ── Border Radius ─────────────────────────────────────── */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* ── Shadows ───────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px 0 rgba(31, 41, 55, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);

  /* ── Layout ────────────────────────────────────────────── */
  --max-width: 1200px;
  --nav-height: 72px;
}

/* ── Dark Mode (Optional) ──────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --color-text-dark: #f8fafc;
    --color-text-light: #cbd5e1;
    --color-white-bg: #1e293b;
    --color-gray: #334155;
    --color-primary-lighter: #93c5fd;
  }
}

/* ── Reset & Base ──────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-white);
  overflow-x: hidden;
}

/* ── Typography ────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--text-5xl);
}
h2 {
  font-size: var(--text-4xl);
}
h3 {
  font-size: var(--text-3xl);
}
h4 {
  font-size: var(--text-2xl);
}
h5 {
  font-size: var(--text-xl);
}
h6 {
  font-size: var(--text-lg);
}

p {
  line-height: 1.7;
  margin-bottom: var(--space-2);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--trans-fast);
}

a:hover {
  color: var(--color-primary-light);
}

/* ── Lists ─────────────────────────────────────────────── */
ul,
ol {
  list-style: none;
}

/* ── Images ────────────────────────────────────────────── */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ── Forms ─────────────────────────────────────────────── */
input,
textarea,
select {
  font-family: var(--font-body);
  font-size: var(--text-base);
}

/* ═══════════════════════════════════════════════════════════
   MODERN ANIMATIONS
   ════════════════════════════════════════════════════════════ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-2rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(2rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.5rem);
  }
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(30, 64, 175, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(30, 64, 175, 0.6);
  }
}

/* ═══════════════════════════════════════════════════════════
   UTILITY CLASSES
   ════════════════════════════════════════════════════════════ */

/* Animation utilities */
.animate-fade-in {
  animation: fadeIn var(--trans-normal);
}

.animate-fade-in-up {
  animation: fadeInUp var(--trans-slow);
}

.animate-fade-in-down {
  animation: fadeInDown var(--trans-slow);
}

.animate-slide-in-left {
  animation: slideInLeft var(--trans-slow);
}

.animate-slide-in-right {
  animation: slideInRight var(--trans-slow);
}

.animate-scale-in {
  animation: scaleIn var(--trans-normal);
}

.animate-pulse {
  animation: pulse 2s var(--ease-in-out) infinite;
}

.animate-float {
  animation: float 3s var(--ease-in-out) infinite;
}

/* Visibility */
.fade-in-view {
  opacity: 0;
  transform: translateY(2rem);
  transition:
    opacity var(--trans-slow),
    transform var(--trans-slow);
}

.fade-in-view.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Flex utilities */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.items-end {
  align-items: flex-end;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-start {
  justify-content: flex-start;
}
.justify-end {
  justify-content: flex-end;
}
.gap-1 {
  gap: var(--space-1);
}
.gap-2 {
  gap: var(--space-2);
}
.gap-3 {
  gap: var(--space-3);
}
.gap-4 {
  gap: var(--space-4);
}

/* Grid utilities */
.grid {
  display: grid;
}
.grid-auto {
  grid-auto-flow: var(--grid-auto-flow, row);
}

/* Text utilities */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.text-primary {
  color: var(--color-primary);
}
.text-light {
  color: var(--color-text-light);
}
.text-muted {
  color: var(--color-gray-dark);
}

/* Spacing utilities (responsive) */
@media (min-width: 768px) {
  .p-1 {
    padding: var(--space-1);
  }
  .p-2 {
    padding: var(--space-2);
  }
  .p-3 {
    padding: var(--space-3);
  }
  .p-4 {
    padding: var(--space-4);
  }
  .m-1 {
    margin: var(--space-1);
  }
  .m-2 {
    margin: var(--space-2);
  }
  .m-3 {
    margin: var(--space-3);
  }
  .m-4 {
    margin: var(--space-4);
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ════════════════════════════════════════════════════════════ */

/* Mobile: Default */
/* Tablet: 768px+ */
/* Desktop: 1024px+ */
/* 4K: 1280px+ */

@media (max-width: 639px) {
  h1 {
    font-size: var(--text-3xl);
  }
  h2 {
    font-size: var(--text-2xl);
  }
  h3 {
    font-size: var(--text-xl);
  }
}

@media (min-width: 768px) {
  h1 {
    font-size: var(--text-5xl);
  }
  h2 {
    font-size: var(--text-4xl);
  }
  h3 {
    font-size: var(--text-3xl);
  }
}

@media (max-width: 767px) {
  body {
    font-size: var(--text-sm);
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin-bottom: var(--space-2);
  }

  p {
    margin-bottom: var(--space-1);
  }
}
