/* ===========================
   Global Reset & Variables
   =========================== */
:root {
  --bg: #0b0f14;
  --bg-soft: #0f1620;
  --bg-card: #121a25;
  --text: #e6eef7;
  --muted: #9bb0c3;
  --accent: #22a2ff;
  --accent-soft: rgba(34, 162, 255, 0.15);
  --border: #1c2a3a;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1200px;
}

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

body {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

ul {
  list-style: none;
}

/* ===========================
   Layout Utilities
   =========================== */
.container {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(1.8rem, 2.2vw, 2.6rem);
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--muted);
  max-width: 720px;
}

.grid {
  display: grid;
  gap: 24px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

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

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

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}

/* ===========================
   Header & Navigation
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text);
}

.logo span {
  color: var(--accent);
}

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

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease;
}

/* ===========================
   Hero
   =========================== */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  text-align: left;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(11, 15, 20, 0.9) 20%, rgba(11, 15, 20, 0.35) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.2);
  z-index: -2;
}

.hero-home {
  background-image: url(\"https://images.pexels.com/photos/1571460/pexels-photo-1571460.jpeg?auto=compress&cs=tinysrgb&w=1600\");
}

.hero-solutions {
  background-image: url(\"https://images.pexels.com/photos/313691/pexels-photo-313691.jpeg?auto=compress&cs=tinysrgb&w=1600\");
}

.hero-expertise {
  background-image: url(\"https://images.pexels.com/photos/3184358/pexels-photo-3184358.jpeg?auto=compress&cs=tinysrgb&w=1600\");
}

.hero-projects {
  background-image: url(\"https://images.pexels.com/photos/106399/pexels-photo-106399.jpeg?auto=compress&cs=tinysrgb&w=1600\");
}

.hero-contact {
  background-image: url(\"https://images.pexels.com/photos/3182822/pexels-photo-3182822.jpeg?auto=compress&cs=tinysrgb&w=1600\");
}

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

.hero h1 {
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  margin-bottom: 16px;
}

.hero p {
  color: var(--muted);
  margin-bottom: 28px;
}

.button-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: #0a0f14;
  box-shadow: 0 10px 25px rgba(34, 162, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(34, 162, 255, 0.5);
}

.btn-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  transform: translateY(-2px);
  background: var(--accent-soft);
}

/* ===========================
   About & Services
   =========================== */
.about {
  display: grid;
  gap: 28px;
  align-items: center;
}

.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
}

.service-card h3 {
  margin-bottom: 8px;
}

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

/* ===========================
   Split Sections
   =========================== */
.split {
  display: grid;
  gap: 32px;
  align-items: center;
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* ===========================
   CTA Banner
   =========================== */
.cta-banner {
  background: linear-gradient(130deg, rgba(34, 162, 255, 0.2), rgba(18, 26, 37, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow);
}

/* ===========================
   Projects
   =========================== */
.project-card img {
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.project-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

/* ===========================
   Forms
   =========================== */
.form-grid {
  display: grid;
  gap: 20px;
}

.form-grid input,
.form-grid textarea {
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 1rem;
}

.form-grid input:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 162, 255, 0.2);
}

.input-error {
  border-color: #ff5c5c;
  box-shadow: 0 0 0 3px rgba(255, 92, 92, 0.2);
}

.form-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.map-placeholder {
  background: linear-gradient(120deg, rgba(34, 162, 255, 0.15), rgba(18, 26, 37, 0.8));
  border-radius: var(--radius);
  min-height: 240px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--muted);
}

/* ===========================
   Footer
   =========================== */
.site-footer {
  background: #080b10;
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.footer-grid h4 {
  margin-bottom: 12px;
}

.footer-grid p,
.footer-grid a,
.footer-grid li {
  color: var(--muted);
}

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

.socials {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.socials a:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 1rem;
    background: var(--bg-card);
    flex-direction: column;
    padding: 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: none;
  }

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

  .hamburger {
    display: flex;
  }

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

  .hero {
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .button-group {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .section {
    padding: 60px 0;
  }

  .cta-banner {
    padding: 32px;
  }
}
