@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600;700;900&display=swap');

:root {
  /* Core Colors */
  --color-bg-primary: #121212;
  --color-bg-secondary: #1a1a1a;
  --color-bg-tertiary: #242424;
  --color-text-primary: #f2f2f2;
  --color-text-secondary: #b8b8b8;
  --color-text-tertiary: #808080;
  --color-accent: #ffffff;
  --color-accent-dim: #e0e0e0;

  /* Glow System */
  --glow-primary: 0 0 20px rgba(255, 255, 255, 0.1);
  --glow-hover: 0 0 30px rgba(255, 255, 255, 0.2);
  --glow-active: 0 0 40px rgba(255, 255, 255, 0.3);
  --glow-text: 0 0 10px rgba(255, 255, 255, 0.05);

  /* Gradients */
  --gradient-text: linear-gradient(180deg, #ffffff 0%, #d0d0d0 100%);
  --gradient-text-subtle: linear-gradient(180deg, #f2f2f2 0%, #b8b8b8 100%);
  --gradient-glow: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);

  /* Typography */
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', monospace;

  /* Type Scale */
  --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: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;
  --text-8xl: 6rem;
  --text-9xl: 8rem;
  --text-10xl: 10rem;

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.2;
  --leading-base: 1.3;
  --leading-relaxed: 1.5;
  --leading-loose: 1.75;

  /* Font Weights */
  --font-thin: 100;
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-black: 900;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;
  --space-48: 12rem;
  --space-56: 14rem;
  --space-64: 16rem;

  /* Animation */
  --ease-default: 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-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Durations */
  --duration-instant: 75ms;
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 700ms;
  --duration-slowest: 1000ms;

  /* Breakpoints */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

::selection {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-accent);
}

/* Focus States */
*:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  box-shadow: var(--glow-active);
}

/* Smooth Transitions */
a,
button {
  transition: all var(--duration-normal) var(--ease-default);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-snap-type: none;
  }
}

/* Webkit Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--color-bg-tertiary);
  border-radius: 0;
}

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

/* Typography Components */
.headline-primary {
  font-size: var(--text-8xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-none);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: var(--glow-text);
  letter-spacing: -0.03em;
}

.thin-slash {
  font-weight: var(--font-thin);
  display: inline-block;
  margin: 0 0.1em;
}

.narrow-title {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  line-height: 0.95;
}

.headline-secondary {
  font-size: var(--text-5xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
  text-shadow: var(--glow-text);
  letter-spacing: -0.01em;
}

.subtitle {
  font-size: var(--text-xl);
  font-weight: var(--font-light);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  letter-spacing: 0.01em;
}

.hero-subtitle {
  font-size: var(--text-2xl);
  font-weight: var(--font-medium);
  color: var(--color-text-primary);
  line-height: var(--leading-relaxed);
  max-width: 850px;
  margin-top: 24px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
}

.body-text {
  font-size: var(--text-base);
  line-height: var(--leading-base);
  color: var(--color-text-primary);
  font-weight: var(--font-normal);
}

/* Link Styles */
.link {
  color: var(--color-text-primary);
  text-decoration: none;
  position: relative;
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: var(--font-normal);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: all var(--duration-normal) var(--ease-default);
}

.link:hover {
  color: var(--color-accent);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  transition: width var(--duration-normal) var(--ease-default);
}

.link:hover::after {
  width: 100%;
}

/* Card Components */
.card {
  background: var(--color-bg-primary);
  padding: var(--space-10);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all var(--duration-normal) var(--ease-default);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0);
  transition: border-color var(--duration-slow) var(--ease-default);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-1px);
}

.card:hover::before {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: var(--font-medium);
  color: var(--color-accent);
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
  transition: all var(--duration-normal) var(--ease-default);
}

.card:hover .card-title {
  color: var(--color-accent);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  width: 100%;
  height: 100%;
  transition: all var(--duration-normal) var(--ease-default);
}

.card:hover .card-icon svg {
  color: var(--color-text-primary);
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.card-subtitle {
  font-size: var(--text-sm);
  font-weight: var(--font-light);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-body {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  flex: 1;
}

/* Section Layouts */
.section {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--color-bg-primary);
}

.section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
  pointer-events: none;
}

.section-grid {
  position: relative;
}

.section-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size:
    10px 10px,
    10px 10px,
    50px 50px,
    50px 50px;
  background-position:
    0 0,
    0 0,
    0 0,
    0 0;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.section-content {
  max-width: 1400px;
  width: 90%;
  margin: 0 auto;
  padding: var(--space-16) 0;
  position: relative;
  z-index: 1;
}

.section-grid .section-content {
  padding-top: calc(var(--space-16) + var(--space-8));
}

.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: flex-start;
  margin-bottom: var(--space-12);
  width: 100%;
}

.section-title {
  grid-column: 1;
}

.section-description {
  grid-column: 3;
  text-align: left;
}

.section-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  position: relative;
  background-image: url('/images/hero.png');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}

.section-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(18, 18, 18, 0.3) 0%, rgba(18, 18, 18, 0.7) 50%, rgba(18, 18, 18, 0.9) 100%);
  pointer-events: none;
}

/* Grid Layouts */
.grid {
  display: grid;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.grid > * {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Animation Classes */
.fade-in {
  animation: fadeIn var(--duration-slower) var(--ease-out) both;
  opacity: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  position: relative;
  display: flex;
  justify-content: center;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% {
    opacity: 0;
    top: 8px;
  }
  40% {
    opacity: 1;
  }
  80% {
    opacity: 0;
    top: 20px;
  }
  100% {
    opacity: 0;
    top: 20px;
  }
}

.scroll-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.scroll-arrows span {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transform: rotate(45deg);
  animation: scrollArrow 2s ease-in-out infinite;
}

.scroll-arrows span:nth-child(1) {
  animation-delay: 0s;
}

.scroll-arrows span:nth-child(2) {
  animation-delay: 0.15s;
}

.scroll-arrows span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes scrollArrow {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(0, -5px);
  }
  50% {
    opacity: 1;
    transform: rotate(45deg) translate(0, 0);
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) translate(0, 5px);
  }
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 60px;
  padding: 0 var(--space-8);
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--duration-normal) var(--ease-default);
  display: flex;
  align-items: center;
}

.nav-scrolled {
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  height: 30px;
  width: auto;
  filter: drop-shadow(var(--glow-primary));
  transition: all var(--duration-normal) var(--ease-default);
}

.nav-logo:hover {
  filter: drop-shadow(var(--glow-hover));
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}

.nav-links .link {
  color: var(--color-text-primary);
  opacity: 0.9;
}

.nav-links .link:hover {
  opacity: 1;
  color: var(--color-accent);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
  position: relative;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text-primary);
  transition: all var(--duration-normal) var(--ease-default);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Slider Components */
.slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.slider-arrow {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-normal) var(--ease-default);
}

.slider-arrow:hover {
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--color-text-primary);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.slider-arrow svg {
  width: 20px;
  height: 20px;
}

.slider-dots {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-default);
  padding: 0;
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.4);
}

.slider-dot.active {
  background: var(--color-text-primary);
  width: 24px;
  border-radius: 4px;
}

.slider-wrapper {
  overflow: hidden;
  width: 100%;
  background: var(--color-bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.slider-track {
  display: flex;
  transition: transform var(--duration-slow) var(--ease-default);
}

.slider-card {
  flex: 0 0 calc(33.333% - 1px);
  padding: var(--space-10);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-primary);
}

.slider-card:last-child {
  border-right: none;
}

/* Contact Section */
.section-contact {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  position: relative;
  background-image: url('/images/cta.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(18, 18, 18, 0.3) 0%, rgba(18, 18, 18, 0.7) 50%, rgba(18, 18, 18, 0.9) 100%);
  pointer-events: none;
}

.cta-button {
  display: inline-block;
  padding: var(--space-4) var(--space-8);
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-bg-primary);
  font-size: 16px;
  font-weight: var(--font-semibold);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  position: relative;
  transition: all var(--duration-normal) var(--ease-default);
}

.cta-button:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.8),
              0 0 60px rgba(255, 255, 255, 0.4),
              0 0 80px rgba(255, 255, 255, 0.2);
}

.glow-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: var(--gradient-glow);
  filter: blur(100px);
  opacity: 0.5;
  pointer-events: none;
}

/* Footer */
.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  padding: 0 var(--space-8);
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
}

.footer-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.footer-logo {
  height: 24px;
  width: auto;
  filter: drop-shadow(var(--glow-primary));
  opacity: 0.8;
  transition: all var(--duration-normal) var(--ease-default);
}

.footer-logo:hover {
  filter: drop-shadow(var(--glow-hover));
  opacity: 1;
  transform: scale(1.05);
}

.footer-copyright {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  opacity: 0.8;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mt-8 { margin-top: var(--space-8); }

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .slider-card {
    flex: 0 0 calc(50% - 1px);
  }
}

@media (max-width: 768px) {
  html {
    scroll-snap-type: none;
    font-size: 14px;
  }

  :root {
    --text-10xl: 5rem;
    --text-9xl: 4rem;
    --text-8xl: 3.5rem;
    --text-7xl: 3rem;
    --text-6xl: 2.5rem;
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
    --text-3xl: 1.5rem;
    --text-base: 0.9375rem;
  }

  .section {
    scroll-snap-align: none;
  }

  .section-content {
    padding: var(--space-4);
    width: calc(100% - var(--space-8));
    margin: 0 auto;
  }

  .headline-primary {
    font-size: var(--text-8xl);
  }

  .headline-secondary {
    font-size: var(--text-3xl);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
    align-items: center;
  }

  .section-title,
  .section-description {
    grid-column: unset;
  }

  .section-description {
    text-align: center;
    max-width: 600px;
  }

  /* Footer */
  .footer {
    height: auto;
    min-height: 80px;
    padding: var(--space-4);
  }

  .footer-container {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
    height: auto;
    display: flex;
    justify-content: center !important;
    align-items: center;
  }

  .footer-copyright {
    font-size: var(--text-xs);
  }

  /* Mobile Navigation */
  .hamburger {
    display: flex;
  }

  .nav-logo {
    height: 24px;
    width: 24px;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - 60px);
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: var(--space-12);
    gap: var(--space-8);
    transform: translateX(100%);
    transition: transform var(--duration-normal) var(--ease-default);
    z-index: 99;
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links .link {
    font-size: var(--text-2xl);
    padding: var(--space-4) 0;
    width: 80%;
    text-align: center;
  }

  .slider-card {
    flex: 0 0 100%;
    border-right: none;
  }
}

@media (max-width: 640px) {
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
