/* =================================
   DESIGN TOKENS & CSS VARIABLES
   ================================= */
:root {
  /* Colors - Apple Dark Mode Inspired */
  --color-bg: #1c1c1e;
  --color-surface: #2c2c2e;
  --color-text-primary: #f5f5f0;
  --color-text-secondary: #a8a8a8;
  --color-border: #3a3a3c;
  --color-accent: #f5f5f0;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-base: 16px;
  --font-size-small: 14px;
  --line-height-base: 1.6;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;

  /* Shadows */
  --shadow-base: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.4);

  /* Transitions */
  --transition-fast: 200ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 600ms ease;
}

/* =================================
   BASE RESET & GLOBAL STYLES
   ================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text-primary);
  background: var(--color-bg);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Grain Effect Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* =================================
   TYPOGRAPHY
   ================================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 950;
  margin-bottom: var(--space-md);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: var(--space-md);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-sm);
  color: var(--color-text-secondary);
}

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

a:hover {
  opacity: 0.7;
}

/* =================================
   LAYOUT CONTAINERS
   ================================= */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--space-md);
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .container {
    padding: var(--space-lg);
  }
}

section {
  padding: var(--space-lg) 0;
  position: relative;
}

@media (min-width: 768px) {
  section {
    padding: var(--space-xl) 0;
  }
}

/* =================================
   HEADER/HERO SECTION
   ================================= */
.hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-lg) var(--space-md);
}

.hero h1 {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
  margin-bottom: var(--space-md);
}

/* =================================
   BUTTONS
   ================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-base);
  font-weight: 600;
  font-family: var(--font-family);
  color: var(--color-bg);
  background: var(--color-text-primary);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-hover);
  opacity: 1;
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
}

/* =================================
   GALLERY SECTION
   ================================= */
.gallery-section {
  padding: var(--space-lg) 0;
}

.gallery-section h2 {
  text-align: center;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 1s;
  opacity: 0;
}

@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
}

.gallery-item {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  cursor: pointer;
  transition: all var(--transition-base);
}

.gallery-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
  mix-blend-mode: overlay;
}

.gallery-item:hover::after {
  opacity: 0.3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* =================================
   FOOTER
   ================================= */
footer {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-xl);
}

footer p {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
}

/* =================================
   ANIMATIONS
   ================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* =================================
   UTILITIES
   ================================= */
.text-center {
  text-align: center;
}

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

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

/* =================================
   PLACEHOLDER/UNDER CONSTRUCTION
   ================================= */
.under-construction {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-md);
}

.under-construction h1 {
  margin-bottom: var(--space-md);
}

.under-construction p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: var(--space-lg);
}

.under-construction .links {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
}
