:root {
  --color-bg: #050810;
  --color-bg-alt: #0d111c;
  --color-card: #111827;
  --color-primary: #1e90ff;
  --color-primary-soft: rgba(30, 144, 255, 0.12);
  --color-text: #e5e7eb;
  --color-muted: #9ca3af;
  --color-border: #1f2937;
  --color-danger: #f97373;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --transition: 0.25s ease;
  --max-width: 1120px;
}

/* Global */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
  color: var(--color-text);
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.98),
    rgba(2, 6, 23, 0.99)
  );
}

/* Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
}

/* Branding */
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-logo {
  height: 42px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.brand-tagline {
  font-size: 0.7rem;
  color: var(--color-muted);
}

/* Nav */
.main-nav ul {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-muted);
  font-size: 0.86rem;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--color-text);
  border-color: var(--color-primary);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--color-text);
}

/* Hero */
.hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  background-image: radial-gradient(circle at top left, #1d4ed8 0, #020617 50%);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 10% 20%,
      rgba(59, 130, 246, 0.35),
      transparent 55%
    ),
    radial-gradient(circle at 80% 0, rgba(16, 185, 129, 0.25), transparent 55%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 3.1vw + 1.4rem, 3rem);
  margin: 0 0 1rem;
}

.hero-text p {
  margin: 0 0 1.6rem;
  color: var(--color-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.3rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.72rem;
}

.hero-badges span {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.25rem 0.8rem;
  background: rgba(15, 23, 42, 0.75);
}

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

.hero-image {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition),
    transform var(--transition), border-color var(--transition);
}

.btn-primary {
  background: var(--color-primary);
  color: #0b1020;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #2563eb;
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.7);
  color: var(--color-text);
  background: rgba(15, 23, 42, 0.7);
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: var(--color-primary);
}

.full-width {
  width: 100%;
}

/* Sections */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header.left {
  text-align: left;
}

.section-header h2 {
  margin: 0 0 0.6rem;
  font-size: 1.6rem;
}

.section-header p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Services */
.services-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.service-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 1rem 1rem 1.3rem;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.55);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition), background var(--transition);
}

.service-card img {
  width: 100%;
  border-radius: var(--radius-lg);
  height: 150px;
  object-fit: cover;
}

.service-card h3 {
  margin: 0.2rem 0 0.1rem;
  font-size: 1.05rem;
}

.service-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.7);
  background: radial-gradient(
    circle at top left,
    rgba(37, 99, 235, 0.18),
    var(--color-card)
  );
  box-shadow: var(--shadow-soft);
}

/* Vacancies */
.vacancies-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vacancy-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.vacancy-header {
  width: 100%;
  padding: 1rem 1.2rem;
  background: rgba(15, 23, 42, 0.95);
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: inherit;
}

.vacancy-header h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  text-align: left;
}

.vacancy-meta {
  display: block;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.vacancy-toggle {
  font-size: 1.2rem;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--color-border);
}

.vacancy-card.open .vacancy-toggle {
  transform: rotate(45deg);
  border-color: var(--color-primary);
}

.vacancy-body {
  padding: 0 1.2rem 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding-top 0.3s ease;
}

.vacancy-card.open .vacancy-body {
  padding-top: 0.5rem;
}

.vacancy-body ul {
  margin: 0 0 0.6rem 1.1rem;
  padding: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.vacancy-body p {
  margin: 0;
  font-size: 0.9rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: center;
}

.about-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.about-list li::before {
  content: "•";
  color: var(--color-primary);
  margin-right: 0.4rem;
}

.about-media {
  position: relative;
}

.about-media img {
  width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-soft);
}

.about-media-overlay {
  position: absolute;
  width: 68%;
  bottom: -14%;
  left: 8%;
  border-radius: var(--radius-xl);
  transform: rotate(-2.5deg);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
}

.contact-details {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item h3 {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
}

.contact-item p {
  margin: 0;
  font-size: 0.9rem;
}

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

.contact-item a:hover {
  text-decoration: underline;
}

.contact-map-placeholder img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(148, 163, 184, 0.5);
  opacity: 0.9;
}

/* Form */
.contact-form {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: #020617;
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition),
    background var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.4);
  background: #020617;
}

textarea {
  resize: vertical;
}

.error-message {
  display: block;
  min-height: 0.8rem;
  font-size: 0.75rem;
  color: var(--color-danger);
}

.form-status {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.3rem;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.95);
  color: var(--color-text);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  transition: opacity var(--transition), transform var(--transition);
}

.back-to-top.show {
  display: flex;
}

.back-to-top:hover {
  transform: translateY(-2px);
}

/* Footer */
.footer {
  border-top: 1px solid var(--color-border);
  background: #020617;
  padding: 1rem 0 1.3rem;
}

.footer-inner {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.footer-inner p {
  margin: 0.1rem 0;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-content,
  .about-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 4.2rem;
  }

  .hero-image-wrapper {
    order: -1;
  }

  .about-media-overlay {
    position: static;
    transform: none;
    margin-top: 1rem;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    inset: 100% 0 auto;
    background: rgba(2, 6, 23, 0.98);
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid transparent;
    transition: max-height 0.25s ease, border-color 0.25s ease;
  }

  .main-nav.open {
    max-height: 220px;
    border-color: var(--color-border);
  }

  .main-nav ul {
    flex-direction: column;
    padding: 0.4rem 1.5rem 0.9rem;
    gap: 0.8rem;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 600px) {
  .hero-text h1 {
    font-size: 1.9rem;
  }

  .header-inner {
    padding-inline: 0.6rem;
  }

  .container {
    padding-inline: 1rem;
  }
}
