/* CSS Variables - Color System */
:root {
  --bg: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --fg: #ffffff;
  --fg-muted: #888888;
  --accent: #00ff88;
  --accent-hover: #00cc6a;
  --glass: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --noise: 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)' opacity='0.03'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Effects */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, 0.03) 50%, transparent 51%),
    linear-gradient(transparent 49%, rgba(255, 255, 255, 0.03) 50%, transparent 51%),
    var(--noise);
  background-size: 50px 50px, 50px 50px, 200px 200px;
  pointer-events: none;
  z-index: -1;
}

/* Parallax Container */
.parallax-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background: radial-gradient(circle at 20% 80%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(0, 255, 136, 0.05) 0%, transparent 50%);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 10, 0.8);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.nav-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.5px;
  font-family: 'Inter', monospace;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-instagram {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.instagram-icon {
  color: var(--accent);
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
  stroke: var(--accent);
  fill: none;
}

.nav-instagram:hover .instagram-icon {
  color: var(--accent-hover);
  stroke: var(--accent-hover);
  transform: scale(1.1);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-background spline-viewer {
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem 0;
  pointer-events: none;
}

.hero-content > * {
  pointer-events: auto;
}

.hero-headline {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.2s forwards;
}

.hero-subline {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.4s forwards;
}

.hero-motto {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-style: italic;
  color: var(--accent);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.6s forwards;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.8s forwards;
}

.cta-button:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 255, 136, 0.3);
}

/* What We Do Section */
.what-we-do {
  padding: 8rem 0;
  background: var(--bg-secondary);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  text-align: center;
  margin-bottom: 4rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.card-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon svg {
  color: var(--accent);
  width: 48px;
  height: 48px;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card:hover .card-icon svg {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 8px rgba(0, 255, 136, 0.3));
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.card-subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}

.card-description {
  color: var(--fg-muted);
  line-height: 1.7;
}

/* About Section */
.about {
  padding: 8rem 0;
  background: var(--bg);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-description {
  color: var(--fg-muted);
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.about-link {
  margin-top: 1.5rem;
}

.linkedin-link {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.linkedin-link:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 255, 136, 0.3);
}

/* Footer */
.footer {
  padding: 3rem 0;
  background: var(--bg);
  text-align: center;
  border-top: 1px solid var(--glass-border);
}

.footer-text {
  color: var(--fg-muted);
  font-size: 0.9rem;
}

.footer-link {
  color: var(--fg-muted);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: var(--accent);
}

/* Fade In Animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframes */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .nav {
    padding: 0 1rem;
  }
  
  .nav-logo {
    width: 28px;
    height: 28px;
  }
  
  .nav-text {
    font-size: 1.1rem;
  }
  
  .instagram-icon {
    width: 20px;
    height: 20px;
  }
  
  .hero-content {
    padding: 1rem 0;
  }
  
  .what-we-do {
    padding: 4rem 0;
  }
  
  .about {
    padding: 4rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .about-description {
    font-size: 1rem;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 1.8rem;
  }
  
  .hero-subline {
    font-size: 1rem;
  }
  
  .hero-motto {
    font-size: 0.9rem;
  }
  
  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --bg: #000000;
    --fg: #ffffff;
    --accent: #00ff00;
  }
}
