:root {
  --bg-primary: #0a0a0a;
  --bg-gradient-inner: #1a1a2e;
  --bg-gradient-outer: #0a0a0a;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-tertiary: rgba(255, 255, 255, 0.5);
  --text-shadow: rgba(0, 0, 0, 0.5);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.15);
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.3);
}

.light-mode {
  --bg-primary: #f5f5f5;
  --bg-gradient-inner: #e0e7ff;
  --bg-gradient-outer: #f5f5f5;
  --text-primary: #1a1a1a;
  --text-secondary: rgba(0, 0, 0, 0.7);
  --text-tertiary: rgba(0, 0, 0, 0.5);
  --text-shadow: rgba(255, 255, 255, 0.5);
  --glass-bg: rgba(255, 255, 255, 0.4);
  --glass-border: rgba(255, 255, 255, 0.6);
  --accent: #4f46e5;
  --accent-glow: rgba(79, 70, 229, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
  background: var(--bg-primary);
  transition: background 0.3s ease;
  color: var(--text-primary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'DM Serif Display', serif;
}

/* Fixed canvas background */
#hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.canvas-background {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(ellipse at center, var(--bg-gradient-inner) 0%, var(--bg-gradient-outer) 100%);
  overflow: hidden;
  transition: background 0.3s ease;
  z-index: 0;
}

/* Content container */
.content-wrapper {
  position: relative;
  z-index: 1;
}

/* Glass morphism effect */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
}

/* Logo */
.logo {
  position: fixed;
  top: 30px;
  left: 30px;
  z-index: 100;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Zalando Sans Expanded', sans-serif;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.logo:hover {
  opacity: 0.8;
}

.theme-toggle {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  padding: 6px;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

/* Sections */
section {
  min-height: 100vh;
  padding: 120px 20px 60px;
  margin-bottom: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

section:last-of-type {
  margin-bottom: 0;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Hero Section */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.hero-content {
  max-width: 900px;
  padding: 60px 40px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px var(--accent-glow);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Content Sections */
.section-content {
  padding: 60px 40px;
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-intro {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* Services List */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.service-item {
  padding: 48px;
  max-width: 700px;
  margin-bottom: 4rem;
}

.service-item:nth-child(odd) {
  margin-right: auto;
}

.service-item:nth-child(even) {
  margin-left: auto;
}

.service-item h2 {
  margin-bottom: 1rem;
}

.service-item h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 2rem;
  height: 2rem;
  stroke: var(--accent);
}

.service-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Tech Tags */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.5rem;
}

.tech-tag {
  padding: 6px 12px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--accent);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--accent);
}

/* Contact Section */
#contact {
  min-height: 80vh;
}

.contact-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 40px;
}

.contact-content h2 {
  margin-bottom: 1.5rem;
}

.contact-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.7;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 3rem;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.contact-item a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-item a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
}

/* Footer */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-tertiary);
  font-size: 0.9rem;
  font-family: 'Inconsolata', monospace;
}

/* Responsive */
@media (max-width: 768px) {
  .logo {
    top: 20px;
    left: 20px;
    font-size: 1.2rem;
  }

  .theme-toggle {
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
  }

  section {
    padding: 100px 20px 40px;
  }

  .section-content,
  .hero-content,
  .contact-content {
    padding: 40px 24px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .service-item {
    padding: 32px;
    max-width: 100%;
    margin-bottom: 3rem;
  }

  .service-item:nth-child(odd),
  .service-item:nth-child(even) {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 24px;
  border-left: 2px solid var(--text-tertiary);
  border-bottom: 2px solid var(--text-tertiary);
  transform: rotate(-45deg);
}