:root {
  --bg-dark: #050816;
  --bg-light: #0f172a;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.15);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --card-bg: #111827;
  --border-soft: #1f2937;
  --danger: #ef4444;
  --success: #22c55e;

  --eng-accent: #38bdf8;
  --foot-accent: #38bdf8;

  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* GLOBAL RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: radial-gradient(circle at top, #1e293b 0, #020617 55%);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
}

/* KPI's */
.data-flow {
  position: absolute;
  right: 0%;
  top: 0%;
  width: 80%;
  height: 60%;
  background: radial-gradient(circle, rgba(56,189,248,0.2) 2px, transparent 2px);
  background-size: 60px 40px;
  animation: moveFlow 10s linear infinite;
}
@keyframes moveFlow {
  from { background-position: 0 0; }
  to { background-position: 400px 200px; }
}

/* ANIMATIONS */
.fade-in {
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 8%;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  transition: padding 0.3s ease, background 0.3s ease;
}

.navbar-shrink {
  padding: 0.5rem 8%;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(16px);
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.navbar a {
  color: var(--text-muted);
  text-decoration: none;
  transition: 0.2s ease;
}

.navbar a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

/* PAGE HEADER ALIGNMENT */
.page-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 8% 0.5rem;
  margin-top: -0.5rem;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.page-header p {
  color: var(--text-muted);
  max-width: 1220px;
}

/* HERO */
.hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  padding: 2rem 8% 1rem;
}

.hero-content {
  max-width: 2200px;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

/* CTA BUTTON */
.cta-btn {
  margin-top: 1.5rem;
  background: var(--accent);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.6);
}

/* BUTTONS — Enhanced Hover (Option 1) */
.primary-btn {
  display: inline-block;
  background: var(--accent);
  color: #0b1120;
  padding: 0.65rem 1.4rem;
  margin-top: 1.5rem;
  border-radius: 999px;
  font-weight: 550;
  font-size: 0.95rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}


.primary-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.55),
              0 8px 25px rgba(56, 189, 248, 0.35);
  background: #4fd4ff;
}

/* BUTTON ALIGNMENT FIX */
.btn-align {
  margin-top: auto;
  display: inline-block;
}

/* SECTIONS */
.section {
  padding: 2rem 8%;
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.section p {
  max-width: 1420px;
  color: var(--text-muted);
}

/* CAPABILITIES SECTION */
.section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.section ul {
  list-style: none;
  margin-left: 0;
  margin-bottom: 1rem;
}

.section ul li {
  margin-bottom: 0.4rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: flex;
  align-items: center;
}

.section ul li i {
  color: var(--accent);
  margin-right: 0.6rem;
  font-size: 0.9rem;
}

/* STAGGERED LIST ITEM ANIMATION */
.cap-column ul li.visible {
  opacity: 1;
  transform: translateY(0);
}

/* CAPABILITIES GRID */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 1.5rem;
  position: relative;
}

/* Animated Divider */
.capabilities-grid::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--accent-soft),
    var(--accent),
    var(--accent-soft),
    transparent
  );
  opacity: 0;
  transform: scaleY(0.6);
  transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.4s ease;
}

.capabilities-grid.visible::before {
  opacity: 1;
  transform: scaleY(1);
}

.capabilities-grid:hover::before {
  box-shadow: 0 0 18px var(--accent);
}

.cap-column h3 {
  margin-bottom: 0.75rem;
}

/* CARDS - Equal Height + Enhanced Hover */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: stretch;
}

.card {
  background: var(--card-bg);
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border-soft);
  box-shadow: 0 0 0 rgba(56, 189, 248, 0);
  transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.45);
  border-color: var(--accent);
}

.card .primary-btn {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  align-self: center;
  width: 70%;
}

/* Add spacing between multiple buttons in the same card */
.card .primary-btn + .primary-btn {
  margin-top: 0.75rem; /* space between buttons */
}


/* FOOTER */
.footer {
  padding: 1.5rem 8%;
  border-top: 1px solid var(--border-soft);
  color: var(--text-muted);
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.footer-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
}

.footer-link {
  position: absolute;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--text-main);
}

.linkedin-icon {
  width: 20px;
  height: 20px;
}

/* CONTACT SECTION */
.contact-section {
  display: flex;
  justify-content: flex-start;
  padding: 2rem 8%;
}

.contact-form {
  max-width: 600px;
  width: 100%;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.form-group input,
.form-group textarea {
  width: 100%;
  text-align: left;
  padding: 0.9rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border-soft);
  background: #020617;
  color: var(--text-main);
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

/* CONTACT FORM BUTTON */
.contact-form .primary-btn {
  background: var(--accent);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: inline-block;
  margin-top: 1rem;
}

.contact-form .primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.6);
}

/* NAVBAR – evenly spaced on smaller screens */
@media (max-width: 900px) {
  .navbar {
    justify-content: space-evenly;
    padding: 1rem 4%;
  }

  .navbar ul {
    gap: 1rem;
  }
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .contact-section {
    flex-direction: column;
    align-items: center;
  }

  .footer-content {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-link {
    position: static;
  }
}

/* ALIGN CARD BUTTONS ON MOBILE & SMALL DESKTOP */
@media (max-width: 900px) {
  .cards {
    align-items: stretch;
  }

  .card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .card .primary-btn {
    margin-top: auto;
    align-self: center;
    position: center;
  }
}
/* MODAL — FIXED & STABLE */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90vw;              /* 90% of screen width */
  height: 90vh;             /* 90% of screen height */
  background: rgba(0,0,0,0.85);
  z-index: 9999;

  /* Center the modal */
  transform: translate(-50%, -50%);
  
  /* Hidden by default */
  display: none;
  opacity: 0;
  pointer-events: none;

  /* Smooth fade */
  transition: opacity 0.25s ease;
}

.modal.active {
  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 1;
  pointer-events: auto;

  /* Mobile Safari repaint fix */
  will-change: opacity, transform;
}

.modal .close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 42px;
  font-weight: 300;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
  transition: opacity 0.2s ease;
}

.modal .close:hover {
  opacity: 0.7;
}



/* CAROUSEL */
.carousel-container {
  width: 70vw;
  height: 70vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-slide {
  display: flex;
  width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 85%;        /* each image takes full width */
  height: 85%;       /* each image takes full height */
  object-fit: contain;
  flex-shrink: 0;     /* prevents shrinking */
  display: block;
}




/* Controls positioned left & right of the image */
.carousel-controls {
  display: flex;
  flex-direction: column;   /* stack arrows vertically */
  justify-content: center;  /* center arrows vertically */
  align-items: center;
}

.carousel-controls button {
  background: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 22px;
  cursor: pointer;
  border-radius: 6px;
  margin: 10px 0;           /* spacing between up/down buttons */
}

.pdf-container {
  width: 85%;
  max-width: 1000px;
  height: 85vh;
  background: #0b1120;
  border-radius: 10px;
  overflow: hidden;
}

.pdf-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}
/* BACK TO TOP BUTTON (Mobile Only) */
.back-to-top {
  display: none; /* always hidden until JS shows it */
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #0b1120;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.3);
  border: none;
  cursor: pointer;
  z-index: 999;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}


.back-to-top:hover {
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.55);
}


