/* ===== Base ===== */
:root {
  --bg: #020617;
  --bg-alt: #0b1220;
  --surface: #0f172a;
  --surface-alt: #020617;
  --primary: #1d4ed8;
  --accent: #f59e0b;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #1f2937;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  background: radial-gradient(circle at top, #0b1220 0, #020617 50%, #000 100%);
  color: var(--text);
  line-height: 1.6;
}

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

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

main { min-height: 60vh; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 4rem 0; }

.section-alt {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 55%),
    radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.14), transparent 55%);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  font-size: 2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-header p { color: var(--muted); }

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
}

.cards-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

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

.list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.3rem;
  color: var(--muted);
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.muted { color: var(--muted); font-size: 0.9rem; }

/* ===== Header & Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
  border-bottom: 1px solid rgba(15, 23, 42, 0.95);
}

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

.logo {
  font-weight: 700;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.logo-main {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.logo-tagline {
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: radial-gradient(circle at top left, var(--primary), var(--accent));
  font-size: 0.8rem;
}

.logo-ar {
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.96);
  cursor: pointer;
}

.nav-toggle span {
  height: 2px;
  width: 1.2rem;
  margin: 0 auto;
  border-radius: 999px;
  background: #e5e7eb;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav a {
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.2s ease-out;
}

.nav a:hover::after,
.nav a.active::after { width: 100%; }

.nav a.active { color: #f9fafb; }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 1rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.lang-btn {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0.1rem 0.3rem;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.lang-btn.active {
  color: #f9fafb;
}

/* ===== Hero (Home) ===== */
.hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: center;
  color: #f9fafb;
  background-image:
    linear-gradient(to bottom, rgba(15, 23, 42, 0.3), rgba(2, 6, 23, 1)),
    url("https://images.pexels.com/photos/585419/pexels-photo-585419.jpeg?auto=compress&cs=tinysrgb&w=1400");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.97));
}

.hero-content {
  z-index: 2;
  position: relative;
  padding: 4.5rem 0;
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(2.4rem, 3vw + 1rem, 3.4rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero p {
  max-width: 600px;
  color: #e5e7eb;
}

.hero-actions {
  margin-top: 2.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s ease-out,
    border-color 0.15s ease-out, color 0.15s ease-out;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #020617;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.45);
}

.btn-primary:hover { transform: translateY(-1px); }

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

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

/* ===== Generic Sections ===== */
.section-text h2 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

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

.section-media img {
  border-radius: 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.85);
}

/* Cards */
.card {
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), rgba(15, 23, 42, 1));
  border-radius: 1.4rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(31, 41, 55, 0.96);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.card h3 { margin-top: 0.1rem; margin-bottom: 0.5rem; }

.card p { color: var(--muted); }

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.9);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.95);
}

.service-card { display: flex; flex-direction: column; gap: 0.8rem; }

.service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #020617;
  font-weight: 700;
  font-size: 0.9rem;
}

.team-card {
  text-align: center;
}

.team-card img {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  object-fit: cover;
  margin-bottom: 0.8rem;
}

/* Projects */
.projects-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.project-card img {
  border-radius: 1.1rem;
  margin-bottom: 0.9rem;
}

/* Timeline */
.timeline {
  position: relative;
  margin-top: 2rem;
  padding-left: 1.7rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.timeline-item { position: relative; margin-bottom: 1.7rem; }

.timeline-year {
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--muted);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.05rem;
  top: 0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: radial-gradient(circle at top left, var(--primary), var(--accent));
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
}

/* Logos */
.logo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
}

.logo-placeholder {
  padding: 1.1rem 1rem;
  border-radius: 1rem;
  border: 1px dashed rgba(148, 163, 184, 0.7);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--muted);
}

/* CTA */
.cta {
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.23), rgba(15, 23, 42, 1));
}

.cta-inner {
  text-align: center;
  max-width: 640px;
}

.cta-inner h2 { font-size: 1.9rem; margin-bottom: 0.7rem; }

/* Page Hero */
.page-hero {
  padding: 3.5rem 0 2.2rem;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.26), rgba(15, 23, 42, 1));
  border-bottom: 1px solid rgba(15, 23, 42, 0.96);
}

.page-hero h1 {
  font-size: 2.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-hero p { color: var(--muted); max-width: 520px; }

/* Contact */
.contact-form { display: flex; flex-direction: column; gap: 0.9rem; }

.form-group { display: flex; flex-direction: column; gap: 0.3rem; }

.form-group label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.form-group input,
.form-group textarea {
  border-radius: 0.9rem;
  border: 1px solid rgba(55, 65, 81, 0.95);
  background: rgba(15, 23, 42, 0.95);
  padding: 0.65rem 0.85rem;
  font: inherit;
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.map-placeholder {
  border-radius: 1.1rem;
  overflow: hidden;
  max-width: 420px;
}

.map-placeholder iframe {
  width: 100%;
  height: 220px;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.96);
  background: #020617;
  padding: 2.8rem 0 2.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
}

.site-footer h3 { margin-top: 0; }

.site-footer p { color: var(--muted); }

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li { margin-bottom: 0.35rem; }

.social-links {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.social-links a {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.social-links a:hover {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.18);
}

copyright { color: var(--muted); font-size: 0.85rem; }

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in.delay-1 { animation-delay: 0.12s; }

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

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-content {
    padding: 3rem 0;
  }

  .nav-toggle { display: flex; }

  .nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(31, 41, 55, 0.95);
    transform-origin: top;
    transform: scaleY(0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease-out, transform 0.18s ease-out;
  }

  .nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding: 0.6rem 1.5rem 0.9rem;
  }

  .nav.open {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }

  .hero { min-height: 70vh; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
