:root {
  --bg-primary: #0c0b0a;
  --bg-secondary: #1a1918;
  --bg-tertiary: #232020;
  --text-primary: #f2f0eb;
  --text-secondary: #9a9590;
  --accent: #c084fc;
  --accent-hover: #d8b4fe;
  --accent-dim: #c084fc22;
  --border: #3d3835;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "JetBrains Mono", monospace;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  margin: 0;
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 15px;
}

::selection {
  background: var(--accent);
  color: var(--bg-primary);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 14, 13, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.logo-text {
  font-family: "Audiowide", cursive;
  font-size: 1.3rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: all 0.3s ease;
}

.logo-text:hover {
  text-shadow: 0 0 12px var(--accent);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.header-nav a:hover {
  color: var(--accent);
}

.nav-divider {
  color: var(--border);
  opacity: 0.4;
}

.nav-contact {
  padding: 8px 16px;
  font-size: 0.7rem;
  background: var(--accent);
  color: var(--bg-primary) !important;
  border-radius: 4px;
  transition: all 0.25s ease;
}

.nav-contact:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 60px 24px;
  background: 
    radial-gradient(circle at 80% 20%, var(--accent-dim) 0%, transparent 40%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  overflow: hidden;
}

.hero-title {
  font-family: "Audiowide", cursive;
  font-size: clamp(2rem, 7vw, 4.5rem);
  font-weight: 400;
  text-align: center;
  line-height: 1.1;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}

.hero-title .highlight {
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  color: #c4beb2;
  margin-top: 2.5rem;
  max-width: 680px;
  text-align: center;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-top: 3.5rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: "Audiowide", cursive;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-primary {
  color: var(--bg-primary);
  background: var(--accent);
  border: 2px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--text-primary);
  background: transparent;
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Section Titles */
.section-subtitle {
  font-family: "Audiowide", cursive;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.section-subtitle::before,
.section-subtitle::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.section-title {
  font-family: "Audiowide", cursive;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  text-align: center;
  letter-spacing: 0.02em;
  text-shadow: 0 0 30px var(--accent-dim);
  margin-bottom: 16px;
}

.section-title-accent {
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-dim);
}

/* About Section */
.about-section {
  padding: 100px 24px;
  background: var(--bg-secondary);
}

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

.about-content p {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.about-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.about-content a:hover {
  border-color: var(--accent);
}

/* Products Section */
.products-section {
  padding: 100px 24px;
  background: var(--bg-secondary);
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 800px;
  margin: 48px auto 0;
}

.project-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  padding: 28px 24px;
  position: relative;
  transition: all 0.3s ease;
}

.project-card:hover {
  border-left-color: var(--accent);
}

.project-number {
  font-family: "Audiowide", cursive;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  opacity: 0.6;
  min-width: 40px;
}

.project-content h3 {
  font-family: "Audiowide", cursive;
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}

.project-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 16px;
  font-size: 1rem;
}

.project-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease;
}

.project-link:hover {
  gap: 14px;
}

.project-link svg {
  width: 16px;
  height: 16px;
}

/* Contact Section */
.contact-section {
  padding: 100px 24px;
  background: var(--bg-secondary);
}

.contact-form {
  max-width: 500px;
  margin: 40px auto 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: "Audiowide", cursive;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-success,
.form-error {
  padding: 14px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  border-radius: 4px;
}

.form-success {
  background: #7c3aed;
  color: var(--text-primary);
}

.form-error {
  background: #be1857;
  color: var(--text-primary);
}

.form-submit {
  width: 100%;
  margin-top: 12px;
}

.email-section {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.email-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.email-link {
  display: inline-block;
  padding: 12px 24px;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

.email-inline {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.email-inline:hover {
  border-color: var(--accent);
}

/* Footer */
.site-footer {
  padding: 60px 24px;
  background: var(--bg-secondary);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-text {
  font-family: "Audiowide", cursive;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

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

.footer-divider {
  color: var(--text-secondary);
  opacity: 0.4;
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 0;
}

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

.animate-fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }

/* Responsive */
@media (max-width: 768px) {
  .header {
    background: rgba(15, 14, 13, 0.95);
  }
  
  .header-nav a:not(.nav-contact) {
    display: none;
  }
  
  .nav-divider {
    display: none;
  }
  
  .hero-title {
    font-size: clamp(1.8rem, 10vw, 3rem);
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-buttons {
    width: 100%;
  }
  
  .hero-buttons a {
    width: 100%;
    justify-content: center;
  }
  
  .hero-section {
    padding: 120px 16px 60px;
    min-height: auto;
    padding-bottom: 80px;
  }
  
  .hero-subtitle {
    max-width: 100%;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    margin: 32px auto 0;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
  
  .footer-divider {
    display: none;
  }
}