@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Exo+2:wght@300;400;600&display=swap');

:root {
  --primary: #7c3aed;
  --secondary: #1a0b2e;
  --accent: #f59e0b;
  --bg: #16213e;
  --surface: #0f3460;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --transition: 0.3s ease;
  --shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
  --glow: 0 0 20px rgba(124, 58, 237, 0.6);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Exo 2', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

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

a:hover {
  color: var(--accent);
  text-shadow: var(--glow);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.95) 0%, transparent 100%);
  backdrop-filter: blur(10px);
  transform-origin: top;
  animation: headerSlide 0.6s ease-out;
}

@keyframes headerSlide {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
  animation: logoGlow 2s ease-in-out infinite;
}

@keyframes logoGlow {

  0%,
  100% {
    text-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
  }

  50% {
    text-shadow: 0 0 20px rgba(124, 58, 237, 0.8), 0 0 30px rgba(124, 58, 237, 0.4);
  }
}

nav ul {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

nav a {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 1px;
  position: relative;
  padding: 0.5rem 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
  box-shadow: 0 0 10px var(--primary);
}

nav a:hover::after {
  width: 100%;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.burger span {
  width: 25px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  box-shadow: 0 0 5px var(--primary);
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-image: url('../visuals/bg-image-1.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0f3360b2;
  background-blend-mode: overlay;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(45deg, transparent 48%, var(--primary) 49%, var(--primary) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, var(--primary) 49%, var(--primary) 51%, transparent 52%);
  background-size: 100px 100px;
  opacity: 0.03;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(100px, 100px);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease-out;
 background-color: #0f3360b2;
 padding: 2rem;
 border-radius: 1rem;
 box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
 backdrop-filter: blur(10px);
 border: 1px solid rgba(0, 212, 255, 0.2);
 margin: 1rem;
 max-width: 800px;
 margin: 0 auto;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShine 3s ease-in-out infinite;
}

@keyframes textShine {

  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.3);
  }
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-dim);
  margin-bottom: var(--space-md);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  font-size: 0.875rem;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(124, 58, 237, 0.5);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
}

.section-title h2 {
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: var(--space-sm) auto 0;
  box-shadow: var(--glow);
}

.grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--surface);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 212, 255, 0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(124, 58, 237, 0.15), transparent);
  transform: rotate(45deg);
  transition: var(--transition);
}

.card:hover::before {
  animation: cardShine 1.5s ease-in-out;
}

@keyframes cardShine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }

  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.card h3 {
  color: var(--primary);
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

.card p {
  color: var(--text-dim);
  position: relative;
  z-index: 1;
  font-size: 0.9375rem;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
}

.price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin: var(--space-sm) 0;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--surface);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.form-group {
  margin-bottom: var(--space-sm);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  transition: var(--transition);
  font-size: 0.9375rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.4);
}

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

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  margin: var(--space-sm) 0;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
}

.checkbox-group label {
  margin: 0;
  font-size: 0.875rem;
}

footer {
  background: var(--secondary);
  padding: var(--space-md) 0;
  text-align: center;
  border-top: 1px solid rgba(0, 212, 255, 0.2);
  font-size: 0.875rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.footer-links {
  display: flex;
  gap: var(--space-sm);
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.8125rem;
}

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 22, 40, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.popup.active {
  display: flex;
}

.popup-content {
  background: var(--surface);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 90%;
  border: 1px solid var(--primary);
  box-shadow: var(--glow);
  animation: popupSlide 0.3s ease-out;
}

@keyframes popupSlide {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.popup-content h3 {
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.popup-content p {
  margin-bottom: var(--space-sm);
  font-size: 0.9375rem;
}

.popup-buttons {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
}

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

.btn-secondary:hover {
  background: var(--primary);
  color: var(--secondary);
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.2);
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(1) invert(1) contrast(0.9);
}

.faq-item {
  background: var(--surface);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  border: 1px solid rgba(0, 212, 255, 0.1);
  cursor: pointer;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-dim);
  font-size: 0.9375rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  margin-top: var(--space-sm);
}

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-content h1 {
  font-size: 8rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 768px) {
  nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--secondary);
    flex-direction: column;
    padding: var(--space-lg) var(--space-md);
    transition: right var(--transition);
    border-left: 1px solid var(--primary);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    display: none;
  }

  nav ul.active {
    right: 0;
    display: flex;
    overflow: hidden;
  }

  .burger {
    display: flex;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}


@media(max-width: 500px) {
  .logo {
    font-size: 1rem;
    letter-spacing: 0;
  }
}

@media (max-width: 480px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 4rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: 1.875rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.8125rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .section-title h2{
    font-size: 1.2rem;
  }
}

@media (max-width: 320px) {
  :root {
    font-size: 14px;
  }
}