/* TechBytesHouse Design System
 * Author: AI Assistant
 * Date: 2025-06-03
 */

:root {
  /* Color System */
  --light-shades: #F5F5F7; /* Light text color */
  --light-accent: #A8A8A9; /* Secondary light text color */
  --main-brand: #F6851F;  /* Ecstasy - remains the same */
  --dark-accent: #1A1A1C; /* Card and accent background */
  --dark-shades: #0D0D0F; /* Main dark background */
  
  /* Extended Color Palette - Calculated from base colors */
  --main-brand-light: #f8a05a;
  --main-brand-dark: #d46c0e;
  --light-shades-90: rgba(255, 236, 199, 0.9);
  --light-accent-90: rgba(243, 243, 243, 0.9);
  --dark-shade-90: rgba(22, 20, 21, 0.9);
  --dark-accent-90: rgba(24, 23, 23, 0.9);
  
  /* Feedback Colors */
  --success: #38b048;
  --warning: #f5cf5e;
  --error: #eb5757;
  --info: #3b82f6;
  
  /* Typography */
  --font-family-base: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-family-heading: var(--font-family-base);
  --font-family-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  
  /* Font Sizes */
  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-md: 1.125rem;  /* 18px */
  --font-size-lg: 1.25rem;   /* 20px */
  --font-size-xl: 1.5rem;    /* 24px */
  --font-size-2xl: 1.75rem;  /* 28px */
  --font-size-3xl: 2rem;     /* 32px */
  --font-size-4xl: 2.5rem;   /* 40px */
  --font-size-5xl: 3rem;     /* 48px */
  
  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-snug: 1.375;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.75;
  
  /* Spacing System */
  --space-xxs: 0.25rem; /* 4px */
  --space-xs: 0.5rem;   /* 8px */
  --space-sm: 0.75rem;  /* 12px */
  --space-md: 1rem;     /* 16px */
  --space-lg: 1.5rem;   /* 24px */
  --space-xl: 2rem;     /* 32px */
  --space-2xl: 3rem;    /* 48px */
  --space-3xl: 4rem;    /* 64px */
  
  /* Border Radius */
  --radius-sm: 0.125rem;  /* 2px */
  --radius-md: 0.25rem;   /* 4px */
  --radius-lg: 0.5rem;    /* 8px */
  --radius-xl: 0.75rem;   /* 12px */
  --radius-2xl: 1rem;     /* 16px */
  --radius-3xl: 1.5rem;   /* 24px */
  --radius-full: 9999px;  /* Fully rounded */
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(246, 133, 31, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(246, 133, 31, 0.1), 0 2px 4px -2px rgba(246, 133, 31, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(246, 133, 31, 0.1), 0 4px 6px -4px rgba(246, 133, 31, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(246, 133, 31, 0.1), 0 8px 10px -6px rgba(246, 133, 31, 0.1);
  --shadow-inner: inset 0 2px 4px 0 rgba(246, 133, 31, 0.05);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  /* Z-index layers */
  --z-below: -1;
  --z-normal: 1;
  --z-above: 10;
  --z-dropdown: 50;
  --z-sticky: 100;
  --z-fixed: 200;
  --z-modal: 500;
  --z-popover: 950;
  --z-tooltip: 990;
  --z-toast: 999;
  
  /* Layout */
  --container-max-width: 1200px;
  --header-height: 72px;
  --footer-height: auto;
}

/* Scroll Animation Utilities */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.fade-in {
  transform: translateY(20px);
}

.animate-on-scroll.slide-in-left {
  transform: translateX(-50px);
}

.animate-on-scroll.slide-in-right {
  transform: translateX(50px);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* Base Reset Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--light-accent);
  background-color: var(--dark-shades);
  background-image: radial-gradient(
    at 70% var(--scroll-y),
    var(--dark-accent) 0,
    var(--dark-shades) 50%
  );
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

/* Typography Base Styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-md);
  color: var(--dark-shades);
}

h1 {
  font-size: var(--font-size-3xl);
}

h2 {
  font-size: var(--font-size-2xl);
}

h3 {
  font-size: var(--font-size-xl);
}

h4 {
  font-size: var(--font-size-lg);
}

h5 {
  font-size: var(--font-size-md);
}

h6 {
  font-size: var(--font-size-base);
}

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

a {
  color: var(--main-brand);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--main-brand-dark);
  text-decoration: underline;
}

small, .text-small {
  font-size: var(--font-size-sm);
}

.text-large {
  font-size: var(--font-size-lg);
}

/* Utility Classes */

.section-padding {
  padding-top: var(--space-3xl, 4rem);
  padding-bottom: var(--space-3xl, 4rem);
}
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-xs {
  gap: var(--space-xs);
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.gap-lg {
  gap: var(--space-lg);
}

.gap-xl {
  gap: var(--space-xl);
}

.mb-xs {
  margin-bottom: var(--space-xs);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.mt-xs {
  margin-top: var(--space-xs);
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
