/* 
  Universal Styles
  Reset, root variables, color tokens, spacing scale, 
  typography foundations, buttons, links, containers, 
  shared utilities, shared animation helpers
*/

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

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

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  overflow-x: hidden;
}

/* Root Variables */
:root {
  /* Color Tokens - Dark/Luxury Theme */
  --color-bg-primary: #000000;
  --color-bg-secondary: #111111;
  --color-bg-tertiary: #222222;
  
  --color-text-primary: #ffffff;
  --color-text-secondary: #e0e0e0;
  --color-text-tertiary: #b0b0b0;
  
  --color-accent: #ff6b6b;
  --color-accent-hover: #ff5252;
  
  --color-border: #333333;
  
  /* Spacing Scale (8px base) */
  --spacing-0: 0rem;
  --spacing-1: 0.25rem; /* 4px */
  --spacing-2: 0.5rem;   /* 8px */
  --spacing-3: 0.75rem;  /* 12px */
  --spacing-4: 1rem;     /* 16px */
  --spacing-5: 1.25rem;  /* 20px */
  --spacing-6: 1.5rem;   /* 24px */
  --spacing-7: 1.75rem;  /* 28px */
  --spacing-8: 2rem;     /* 32px */
  --spacing-9: 2.5rem;   /* 40px */
  --spacing-10: 3rem;    /* 48px */
  --spacing-12: 3.5rem;  /* 56px */
  --spacing-16: 4rem;    /* 64px */
  --spacing-20: 5rem;    /* 80px */
  --spacing-24: 6rem;    /* 96px */
  --spacing-32: 8rem;    /* 128px */
  
  /* Typography */
  --font-family-base: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-family-mono: 'Courier New', Courier, monospace;
  
  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 2rem;     /* 32px */
  --font-size-4xl: 2.5rem;   /* 40px */
  --font-size-5xl: 3rem;     /* 48px */
  --font-size-6xl: 4rem;     /* 64px */
  
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.35s ease;
}

/* Typography Foundations */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin-bottom: var(--spacing-4);
}

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

p {
  margin-bottom: var(--spacing-4);
  font-size: var(--font-size-base);
}

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

a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Buttons */
.button {
  display: inline-block;
  padding: var(--spacing-3) var(--spacing-6);
  background-color: var(--color-bg-secondary);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: var(--transition-normal);
  text-align: center;
}

.button:hover {
  background-color: var(--color-bg-tertiary);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.button.primary {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg-primary);
}

.button.primary:hover {
  background-color: var(--color-accent-hover);
}

/* Links with button-like appearance */
.button__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
  margin-right: var(--spacing-2);
  vertical-align: middle;
}

.button__label {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  vertical-align: middle;
}

/* Containers */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--spacing-4);
}

/* Shared Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.gap-2 { gap: var(--spacing-2); }
.gap-4 { gap: var(--spacing-4); }
.gap-6 { gap: var(--spacing-6); }
.gap-8 { gap: var(--spacing-8); }

.overflow-hidden { overflow: hidden; }
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }

.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }

/* Animation Helpers (based on observed classes in source) */
.anima {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-normal) ease-out,
              transform var(--transition-normal) ease-out;
}

.anima.in {
  opacity: 1;
  transform: translateY(0);
}

.fade {
  opacity: 0;
  transition: opacity var(--transition-normal) ease-out;
}

.fade.in {
  opacity: 1;
}

.fadeUp {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-normal) ease-out,
              transform var(--transition-normal) ease-out;
}

.fadeUp.in {
  opacity: 1;
  transform: translateY(0);
}

.scroll {
  /* Will be triggered by JS when in viewport */
}

/* Hide on mobile/desktop utilities */
.u-hideMobile { display: none; }
.u-showMobile { display: none; }

@media (max-width: 800px) {
  .u-hideMobile { display: block !important; }
  .u-showMobile { display: none !important; }
  
  .u-showMobile { display: block !important; }
  .u-hideMobile { display: none !important; }
}

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

/* Picture element for responsive images */
picture {
  display: block;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-tertiary);
}