/* ======================
   Theme Variables
   ====================== */
:root {
  --background: 240 4% 96%;
  --foreground: 0 0% 0%;
  --card: 30 10% 97%;
  --card-foreground: 0 0% 0%;
  --muted: 240 4% 93%;
  --muted-foreground: 0 0% 40%;
  --border: 240 4% 90%;
  --radius: 1rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.1;
}

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

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

/* ======================
   Layout
   ====================== */
.min-h-screen { min-height: 100vh; }
.bg-background { background-color: hsl(var(--background)); }
.mx-auto { margin-left: auto; margin-right: auto; }
.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }

/* Flexbox */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.block { display: block; }
.hidden { display: none; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

/* Gap */
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-\[2px\] { gap: 2px; }

/* ======================
   Spacing
   ====================== */
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-\[2px\] { padding: 2px; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.pb-5 { padding-bottom: 1.25rem; }
.pb-8 { padding-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-auto { margin-top: auto; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

/* ======================
   Sizing
   ====================== */
.w-full { width: 100%; }
.w-9 { width: 2.25rem; }
.h-9 { height: 2.25rem; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.min-h-\[480px\] { min-height: 480px; }

/* ======================
   Typography
   ====================== */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-5xl { font-size: 3rem; line-height: 1; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-black { font-weight: 900; }

.leading-\[0\.95\] { line-height: 0.95; }
.leading-snug { line-height: 1.375; }
.leading-tight { line-height: 1.25; }

.tracking-tighter { letter-spacing: -0.05em; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }

.uppercase { text-transform: uppercase; }

/* ======================
   Colors
   ====================== */
.text-foreground { color: hsl(var(--foreground)); }
.text-background { color: hsl(var(--background)); }
.text-background\/50 { color: hsl(var(--background) / 0.5); }
.text-background\/30 { color: hsl(var(--background) / 0.3); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-white { color: #fff; }

.bg-black { background-color: #000; }
.bg-card { background-color: hsl(var(--card)); }
.bg-muted { background-color: hsl(var(--muted)); }
.bg-foreground { background-color: hsl(var(--foreground)); }

/* ======================
   Borders & Radius
   ====================== */
.rounded-full { border-radius: 9999px; }
.rounded-2xl { border-radius: 1rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-tl-2xl { border-top-left-radius: 1rem; }
.rounded-tr-2xl { border-top-right-radius: 1rem; }
.rounded-b-2xl { border-bottom-left-radius: 1rem; border-bottom-right-radius: 1rem; }
.border { border-width: 1px; border-style: solid; border-color: hsl(var(--border)); }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: hsl(var(--border)); }
.border-border { border-color: hsl(var(--border)); }

/* ======================
   Positioning
   ====================== */
.inset-0 { inset: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.z-10 { z-index: 10; }

/* ======================
   Images
   ====================== */
.object-cover { object-fit: cover; }

/* ======================
   Gradients
   ====================== */
.bg-gradient-to-t.from-black\/60.via-black\/20.to-transparent {
  background-image: linear-gradient(to top, rgb(0 0 0 / 0.6), rgb(0 0 0 / 0.2), transparent);
}

/* ======================
   Transitions & Interactions
   ====================== */
.transition-all { transition: all 200ms ease; }
.transition-transform { transition: transform 500ms ease; }
.transition-colors { transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease; }
.duration-200 { transition-duration: 200ms; }
.duration-500 { transition-duration: 500ms; }
.cursor-pointer { cursor: pointer; }

.hover\:opacity-80:hover { opacity: 0.8; }
.hover\:text-foreground:hover { color: hsl(var(--foreground)); }
.hover\:bg-foreground:hover { background-color: hsl(var(--foreground)); }
.hover\:text-background:hover { color: hsl(var(--background)); }
.active\:scale-\[0\.97\]:active { transform: scale(0.97); }

/* Group hover */
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }

/* ======================
   Responsive: md (768px+)
   ====================== */
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:text-left { text-align: left; }
}

/* ======================
   Responsive: lg (1024px+)
   ====================== */
@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .lg\:text-5xl { font-size: 3rem; line-height: 1; }
  .lg\:text-7xl { font-size: 4.5rem; line-height: 1; }
  .lg\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .lg\:p-10 { padding: 2.5rem; }
  .lg\:p-12 { padding: 3rem; }
  .lg\:p-14 { padding: 3.5rem; }
  .lg\:px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
  .lg\:pb-10 { padding-bottom: 2.5rem; }
  .lg\:min-h-\[540px\] { min-height: 540px; }
}
