/* 
  COLOR SCHEME: Neon Indigo
  FONT: Exo 2
*/
:root {
  --font-main: 'Exo 2', sans-serif;

  --color-bg: #0a0b1e;
  --color-surface: #111428;
  --color-primary: #6366f1;
  /* Indigo */
  --color-primary-dark: #4f46e5;
  --color-accent: #00f0ff;
  /* Cyan */
  --color-text: #e0e7ff;
  --color-text-muted: #94a3b8;
  --color-danger: #ef4444;
  --color-success: #10b981;

  --radius-xl: 1.5rem;
  /* 2xl radius */
  --radius-md: 0.75rem;

  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 80px;
}

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

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

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Utility */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mb-20 {
  margin-bottom: 1.25rem;
}

.mb-30 {
  margin-bottom: 1.875rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

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

.btn--outline:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--color-accent);
  color: #fff;
}

.btn--full {
  width: 100%;
}

.btn--small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-link {
  color: var(--color-accent);
  font-weight: 600;
  margin-top: 1rem;
  display: inline-block;
}

.btn-link:hover {
  color: #fff;
  transform: translateX(5px);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(10, 11, 30, 0.85);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.header__container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.logo__icon {
  width: 32px;
  height: 32px;
}

.logo__accent {
  color: var(--color-accent);
}

.nav__list {
  display: none;
  /* Mobile First hidden */
}

/* Burger */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  z-index: 110;
}

.burger__line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

.burger.is-active .burger__line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.burger.is-active .burger__line:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.burger.is-active .burger__line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu State */
.nav.is-open .nav__list {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background-color: var(--color-bg);
  padding: 2rem;
  align-items: center;
  gap: 2rem;
  justify-content: center;
}

.nav__link {
  color: var(--color-text);
  font-weight: 500;
  transition: var(--transition);
}

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

.nav.is-open .nav__link {
  font-size: 1.5rem;
}

/* Hero Section */
.hero {
  position: relative;
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 4rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 240, 255, 0.1);
  color: var(--color-accent);
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.hero__title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  max-width: 500px;
}

.hero__note {
  font-size: 0.875rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
  font-style: italic;
  opacity: 0.8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__image-wrapper {
  width: 100%;
  border-radius: var(--radius-xl);
  position: relative;
  box-shadow: var(--shadow-glow);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--color-surface);
}

.hero__img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.hero__image-wrapper:hover .hero__img {
  transform: scale(1.03);
}

.hero__image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 11, 30, 0.4));
  pointer-events: none;
}

/* Sections General */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--color-text-muted);
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius-xl);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
  transform: translateY(-5px);
  background: #161a35;
  border-color: rgba(99, 102, 241, 0.3);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  background: rgba(99, 102, 241, 0.1);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.service-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  /* Split layout inside card for aesthetics if possible, regular stacking for now */
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.service-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-card);
}

.service-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: #2a2d45;
  /* Placeholder color */
}

.service-content {
  padding: 2rem;
}

.service-card.promo {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #000;
}

.service-card.promo p {
  color: rgba(0, 0, 0, 0.7);
}

.service-card.promo .btn {
  margin-top: 1rem;
  background: #000;
  color: #fff;
  border: none;
}

/* Reviews Section */
.reviews-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.review-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.review-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), var(--shadow-glow);
}

.review-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  right: 2rem;
  font-size: 5rem;
  font-family: serif;
  color: var(--color-primary);
  opacity: 0.15;
  line-height: 1;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.review-header h4 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.role {
  font-size: 0.875rem;
  color: var(--color-accent);
  font-weight: 600;
  opacity: 0.8;
}

.review-card p {
  font-style: italic;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contacts-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-text-muted);
}

.contact-icon {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.contacts-list a:hover {
  color: var(--color-accent);
}

.contacts-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-form {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius-xl);
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.error-msg {
  color: var(--color-danger);
  font-size: 0.75rem;
  position: absolute;
  bottom: -1.2rem;
  left: 0;
  opacity: 0;
  transition: opacity 0.2s;
}

.form-group.error input {
  border-color: var(--color-danger);
}

.form-group.error .error-msg {
  opacity: 1;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-group input {
  width: auto;
}

.form-status {
  margin-top: 1rem;
  text-align: center;
  min-height: 20px;
}

/* CTA Section */
.cta-card {
  background: linear-gradient(135deg, var(--color-surface), #1a1b3a);
  padding: 4rem 2rem;
  border-radius: var(--radius-xl);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-glow);
}

.cta-card .section-title {
  margin-bottom: 1rem;
}

.cta-card .section-subtitle {
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  background: #05060f;
  padding: 4rem 0 2rem;
}

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

.footer h4 {
  margin-bottom: 1.5rem;
}

.footer__col ul li a {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  transition: var(--transition);
  display: inline-block;
  padding: 4px 0;
}

.footer__col ul li a:hover {
  color: var(--color-accent);
  transform: translateX(5px);
}

.footer-link,
.footer-text {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  text-align: left;
  padding: 0;
  margin-bottom: 0.5rem;
  display: block;
}

.footer-text {
  line-height: 1.4;
}

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

.copyright {
  margin-top: 1rem;
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-surface);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  z-index: 1000;
  width: 90%;
  max-width: 400px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.cookie-popup.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.cookie-actions {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--color-bg);
  padding: 2rem;
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  display: none;
}

.modal-overlay.active .modal.active {
  display: block;
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  line-height: 1;
  color: var(--color-text-muted);
}

.modal-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

/* DESKTOP MEDIA QUERIES */
@media (min-width: 768px) {
  .hero__title {
    font-size: 3.5rem;
  }

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

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

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

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

@media (min-width: 1024px) {
  .burger {
    display: none;
  }

  .nav__list {
    display: flex;
    flex-direction: row;
    gap: 2rem;
  }

  .nav {
    position: static;
    height: auto;
    background: none;
    padding: 0;
    width: auto;
  }

  .nav__link {
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
  }

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

  /* Hover underline effect */
  .nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
  }

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

  /* Auto close logic needs to handle styling reset if switching from mobile open to desktop */
  .nav.is-open {
    position: static;
    height: auto;
    background: none;
  }

  .nav.is-open .nav__list {
    position: static;
    flex-direction: row;
    padding: 0;
    width: auto;
    height: auto;
    background: none;
  }
}

/* Contact Page */
.contact-page {
  padding-top: calc(var(--header-height) + 4rem);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

/* CTA Styles Fix */
.cta-card .hero__actions {
  justify-content: center;
  margin-top: 2rem;
}