/*
  FILE GUIDE - EASY EDIT AREAS
  - Change brand palette in COLOR VARIABLES
  - Change fonts in TYPOGRAPHY
  - Update spacing/radius/shadows in DESIGN TOKENS
  - Edit page section styles (HOME / ABOUT / SERVICES PAGE / CONTACT FORM)
  - Update breakpoints in RESPONSIVE TABLET and RESPONSIVE MOBILE
*/

/* =========================
   COLOR VARIABLES
   ========================= */
:root {
  /* Primary brand colors inspired by Neftis direction */
  --color-primary: #00b3ff;
  --color-secondary: #0a74ff;
  --color-accent: #00d8c8;

  /* Core dark-tech surfaces */
  --color-bg: #060b14;
  --color-bg-alt: #0b1324;
  --color-surface: #111c30;
  --color-surface-2: #16233d;
  --color-border: rgba(131, 165, 214, 0.25);

  /* Text system */
  --text-primary: #f4f8ff;
  --text-secondary: #aec0dc;
  --text-muted: #7f96ba;

  /* Buttons */
  --button-bg: linear-gradient(135deg, #00b3ff 0%, #0a74ff 100%);
  --button-text: #ffffff;
  --button-hover-bg: linear-gradient(135deg, #17c2ff 0%, #2d8bff 100%);

  /* Design tokens */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container-width: 1180px;
  --transition-fast: 0.25s ease;
  --shadow-soft: 0 18px 50px rgba(3, 13, 32, 0.45);
}

/* =========================
   TYPOGRAPHY
   ========================= */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Manrope', 'Segoe UI', Tahoma, sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(0, 179, 255, 0.18), transparent 32%),
    radial-gradient(circle at 90% 85%, rgba(0, 216, 200, 0.14), transparent 35%),
    var(--color-bg);
  color: var(--text-primary);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: 'Sora', 'Segoe UI', Tahoma, sans-serif;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.6rem, 2.7vw, 2.5rem);
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.3;
}

p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
}

.section {
  padding: 50px 0;
}

.container {
  width: min(var(--container-width), 92%);
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(0, 179, 255, 0.4);
  color: #9fdfff;
  background: rgba(0, 179, 255, 0.1);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

/* =========================
   BUTTONS
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 13px 23px;
  font-weight: 700;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--button-bg);
  color: var(--button-text);
  box-shadow: 0 14px 34px rgba(10, 116, 255, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--button-hover-bg);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(145, 178, 230, 0.4);
  color: var(--text-primary);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(171, 216, 255, 0.65);
}

/* =========================
   HEADER
   ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(6, 11, 20, 0.82);
  border-bottom: 1px solid rgba(110, 148, 204, 0.2);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand img {
  height: 42px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.nav-dropdown {
  position: relative;
}

.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-parent::after {
  content: '▾';
  font-size: 0.72rem;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 230px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: rgba(8, 14, 26, 0.98);
  box-shadow: var(--shadow-soft);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown:hover .nav-parent::after,
.nav-dropdown:focus-within .nav-parent::after,
.nav-dropdown.open .nav-parent::after {
  transform: rotate(180deg);
}

.nav-links a.active,
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text-primary);
}

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

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.02);
}

.language-switcher a {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.language-switcher a.current {
  color: var(--text-primary);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1.1rem;
}

/* =========================
   HERO
   ========================= */
.hero {
  padding: 110px 0 90px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 40px;
  align-items: center;
}

.hero p {
  max-width: 60ch;
  font-size: 1.07rem;
}

.hero-cta {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  margin: 28px 0;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  background: linear-gradient(145deg, rgba(13, 22, 40, 0.85), rgba(20, 36, 64, 0.65));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.metric strong {
  display: block;
  font-size: 1.35rem;
  font-family: 'Sora', sans-serif;
}

.visual-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(11, 19, 36, 0.9), rgba(18, 34, 64, 0.9));
  border: 1px solid rgba(124, 164, 225, 0.3);
  box-shadow: var(--shadow-soft);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.visual-card::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  top: -70px;
  right: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 179, 255, 0.35), transparent 70%);
}

.visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  border: 0;
}

.hero-image-carousel {
  position: relative;
}

.hero-image-slide {
  display: none;
}

.hero-image-slide.active {
  display: block;
}

.hero-image-slide img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* =========================
   VALUE / CARDS / BENEFITS
   ========================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: linear-gradient(155deg, rgba(15, 25, 45, 0.9), rgba(18, 31, 58, 0.82));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(148, 194, 255, 0.55);
}

.icon-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(0, 179, 255, 0.95), rgba(0, 216, 200, 0.85));
  box-shadow: 0 10px 26px rgba(0, 179, 255, 0.28);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: stretch;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  margin-bottom: 11px;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.cta-band {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(139, 190, 255, 0.35);
  padding: 34px;
  background: linear-gradient(125deg, rgba(14, 27, 52, 0.95), rgba(8, 14, 27, 0.95));
  box-shadow: var(--shadow-soft);
}

/* =========================
   ABOUT PAGE
   ========================= */
.about-hero,
.services-hero,
.contact-hero {
  padding: 100px 0 70px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  background: rgba(20, 33, 58, 0.75);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

/* =========================
   SERVICES PAGE
   ========================= */
.service-block {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 26px;
}

.service-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(147, 182, 241, 0.3);
  box-shadow: var(--shadow-soft);
  background: rgba(10, 18, 32, 0.9);
}

.service-image img {
  width: 100%;
  display: block;
  height: 100%;
  object-fit: cover;
}

.service-image-fit img {
  height: auto;
  object-fit: contain;
}

.service-image-fit {
  align-self: start;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid rgba(131, 165, 214, 0.22);
  padding: 14px;
  text-align: left;
}

.comparison-table th {
  color: var(--text-primary);
  background: rgba(19, 34, 61, 0.85);
}

/* =========================
   CONTACT FORM
   ========================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}

.info-panel,
.form-panel {
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, rgba(15, 26, 46, 0.9), rgba(18, 32, 58, 0.82));
  border: 1px solid var(--color-border);
  padding: 24px;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.form-row {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.botcheck-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

label {
  font-size: 0.87rem;
  font-weight: 600;
  color: #d6e4f8;
}

input,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(130, 167, 227, 0.35);
  background: rgba(6, 11, 20, 0.85);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  padding: 12px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(120, 203, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(17, 154, 255, 0.17);
}

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

.form-message {
  margin-top: 12px;
  padding: 11px;
  border-radius: 12px;
  display: none;
  font-weight: 600;
}

.form-message.success {
  display: block;
  border: 1px solid rgba(0, 216, 200, 0.5);
  background: rgba(0, 216, 200, 0.14);
  color: #8efff0;
}

.form-message.error {
  display: block;
  border: 1px solid rgba(255, 112, 125, 0.54);
  background: rgba(255, 112, 125, 0.14);
  color: #ffc1c8;
}

.form-panel .btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-panel .btn.is-loading {
  filter: saturate(0.85);
}

/* =========================
   MEDIA PAGE
   ========================= */
.media-hero {
  padding: 100px 0 70px;
}

.media-guide {
  margin-bottom: 28px;
}

.media-guide ol {
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
}

.media-guide li {
  margin-bottom: 10px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.media-card {
  height: 100%;
}

.media-embed {
  margin: 0 0 16px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(147, 182, 241, 0.3);
  background: rgba(8, 14, 26, 0.92);
}

.media-embed video,
.media-embed iframe,
.media-embed img {
  width: 100%;
  display: block;
}

.media-embed video,
.media-embed iframe {
  aspect-ratio: 16 / 9;
}

.media-embed img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.media-image-grid img {
  border-radius: 12px;
  border: 1px solid rgba(147, 182, 241, 0.3);
}

/* =========================
   FOOTER
   ========================= */
.site-footer {
  border-top: 1px solid rgba(123, 165, 226, 0.2);
  margin-top: 64px;
  background: rgba(5, 9, 17, 0.92);
}

.footer-wrap {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* =========================
   OPTIONAL UI INTERACTIONS
   ========================= */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RESPONSIVE TABLET
   ========================= */
@media (max-width: 1024px) {
  .hero-grid,
  .split,
  .service-block,
  .contact-grid,
  .media-grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    padding-top: 94px;
  }

  .nav-links {
    gap: 16px;
  }

}

/* =========================
   RESPONSIVE MOBILE
   ========================= */
@media (max-width: 760px) {
  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    background: rgba(8, 14, 26, 0.98);
    border-bottom: 1px solid rgba(137, 173, 228, 0.28);
    padding: 20px 4%;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-parent {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    min-width: 100%;
    margin-top: 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .header-actions .btn {
    display: none;
  }

  .metrics,
  .grid-3 {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 68px 0;
  }

  .cta-band {
    padding: 24px;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}
