body {
  margin: 0;
  font-family: 'Nirmala UI', 'Aptos', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f0f5f9;
  color: #33475b;
  overflow-x: hidden;
}

header {
  display: flex;
  align-items: center;
  padding: 0.7em 1.5em;
  background: linear-gradient(135deg, #007acc, #00bfa5);
  color: white;
  flex-wrap: wrap;
  box-shadow: 0 4px 15px rgba(0, 191, 165, 0.4);
  position: relative;
  z-index: 10;
}

.logo-title {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-title img {
  height: 60px;
  margin-right: 1em;
  filter: drop-shadow(0 0 5px #009688);
}

.logo-title h1 {
  font-size: 2.5em;
  letter-spacing: 2.5px;
  color: #e0f7fa;
  margin: 0;
  font-weight: 700;
  text-shadow: 0 0 8px #00bfa5;
}

nav {
  display: flex;
  margin-left: 2em;
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav ul li {
  position: relative;
  margin: 0 1em;
}

nav ul li a {
  display: flex;
  align-items: center;
  padding: 0.7em 1.1em;
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: background-color 0.3s ease;
  border-radius: 5px;
}

nav ul li a .arrow {
  margin-left: 0.3em;
  font-size: 0.85em;
}

nav ul li a:hover {
  background-color: rgba(255 255 255 / 0.15);
  text-shadow: 0 0 6px #00bfa5;
}

nav ul li ul {
  display: none;
  position: absolute;
  top: 110%;
  background: #007acc;
  min-width: 210px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 191, 165, 0.7);
  z-index: 1000;
}

nav ul li:hover ul {
  display: block;
}

nav ul li ul li {
  margin: 0;
}

nav ul li ul li a {
  padding: 0.65em 1em;
  color: #caf0f8;
  font-weight: 500;
  transition: background-color 0.25s ease;
  border-radius: 5px;
}

nav ul li ul li a:hover {
  background-color: #00bfa5;
  color: white;
}

.animated-text-container {
  position: relative;
  width: 100vw;
  height: 2.5em;
  overflow: hidden;
  margin: 0;
  white-space: nowrap;
  background: transparent;
  border: none;
}

.animated-text-wrapper {
  display: inline-block;
  transform: translateX(100vw);
  animation: slideText 60s linear infinite;
  font-size: 1.3em;
  font-weight: 400;
  color: #004d40;
  will-change: transform;
  backface-visibility: hidden;
  text-shadow: none;
}

@keyframes slideText {
  0% {
    transform: translateX(100vw);
  }
  100% {
    transform: translateX(calc(-100% - 100vw));
  }
}

.animated-text-container:hover .animated-text-wrapper {
  animation-play-state: paused;
}

/* MAIN - full viewport width container */
main {
  max-width: 100vw;
  width: 100vw;
  margin: 2.5em 0 4em 0;
  padding: 0 1.5em;
  box-sizing: border-box;
}

/* BOX + IMAGE PAIR */
.box-image-pair {
  display: flex;
  align-items: stretch;
  gap: 1;
  margin-bottom: 2.5em;
  width: 96vw;
  max-width: 96vw;
  padding: 0;
}

/* LEFT BOX - 30% width */
.zigzag-box {
  flex: 0 0 30%;
  max-width: 30%;
  background: rgb(0, 0, 0);
  box-shadow: 0 6px 20px rgba(0, 191, 165, 0.15);
  border-radius: 15px 0 0 15px;
  padding: 2em 2.5em;
  color: #33475b;
  font-weight: normal;
  font-size: 1.3em;
  line-height: 1.4;
  border-left: 6px solid #3b89aa;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  box-sizing: border-box;
}

/* RIGHT IMAGE - 70% width */
.box-image-pair img {
  flex: 0 0 70%;
  max-width: 70%;
  height: auto;
  border-radius: 0 15px 15px 0;
  box-shadow: 0 8px 20px rgba(0, 191, 165, 0.2);
  object-fit: cover;
  display: block;
  box-sizing: border-box;
}

/* Hover effect for boxes */
.zigzag-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 191, 165, 0.3);
}

.box-image-pair:nth-child(odd) .zigzag-box {
  background: #e0f7fa;
}

.box-image-pair:nth-child(even) .zigzag-box {
  background: #caf0f8;
}

/* New container for the two box-image pairs side by side */
.side-by-side-container {
  display: flex;
  gap: 2em;
  max-width: 96vw;
  margin-bottom: 2.5em;
  flex-wrap: wrap; /* allow wrapping for small screens */
  justify-content: space-between;
}

/* Each side-by-side box-image pair takes roughly half width */
.side-by-side-container > .box-image-pair {
  flex: 1 1 48%;
  max-width: 48%;
  margin-bottom: 0; /* override margin-bottom to prevent double spacing */
  display: flex;
  align-items: stretch;
  gap: 1em;
  box-sizing: border-box;
}

/* Adjust zigzag-box and images inside side-by-side container */
.side-by-side-container > .box-image-pair .zigzag-box {
  flex: 0 0 40%;
  max-width: 40%;
  padding: 1.5em;
  font-size: 1.1em;
  box-sizing: border-box;
  border-radius: 15px 0 0 15px;
  border-left: 6px solid #3b89aa;
  background: #e0f7fa;
  box-shadow: 0 6px 20px rgba(0, 191, 165, 0.15);
  color: #33475b;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.side-by-side-container > .box-image-pair .zigzag-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 191, 165, 0.3);
}

.side-by-side-container > .box-image-pair img {
  flex: 0 0 60%;
  max-width: 60%;
  height: auto;
  border-radius: 0 15px 15px 0;
  box-shadow: 0 8px 20px rgba(0, 191, 165, 0.2);
  object-fit: contain;
  display: block;
  box-sizing: border-box;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1024px) {
  main {
    max-width: 95vw;
    margin: 2em auto 3em auto;
  }
  .box-image-pair {
    flex-direction: column;
    align-items: center;
    gap: 1em;
    margin-bottom: 2em;
  }
  .box-image-pair img,
  .box-image-pair .zigzag-box {
    flex: none;
    max-width: 100%;
    border-radius: 15px;
  }
  /* Override side-by-side pairs to stack vertically */
  .side-by-side-container > .box-image-pair {
    flex-direction: column;
    flex: 1 1 100%;
    max-width: 100%;
  }
  .side-by-side-container > .box-image-pair .zigzag-box,
  .side-by-side-container > .box-image-pair img {
    flex: none;
    max-width: 100%;
    width: 100%;
    padding: 1em 0;
    border-radius: 15px;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
  }
  nav {
    margin-left: 0;
    justify-content: center;
    margin-top: 0.6em;
  }
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  nav ul li {
    margin: 0.5em 0;
  }
  main h2 {
    font-size: 2em;
  }
  main p {
    font-size: 1em;
  }
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5em;
  margin: 1.5em 0;
}

.tool-tile {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 1.2em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.2s ease-in-out;
}

.tool-tile:hover {
  transform: scale(1.03);
}

.icon-circle {
  width: 50px;
  height: 50px;
  background-color: #007acc;
  color: white;
  font-weight: bold;
  font-size: 1.2em;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.8em auto;
  box-shadow: 0 0 10px rgba(0,122,204,0.4);
}

.snake-arrow-container {
  max-width: 800px;
  margin: 2em auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.snake-step {
  display: flex;
  align-items: center;
  margin: 1em 0;
  position: relative;
  padding-left: 2.5em;
}

.step-circle {
  background: #007acc;
  color: #fff;
  border-radius: 50%;
  width: 2em;
  height: 2em;
  text-align: center;
  line-height: 2em;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.step-text {
  font-size: 1.1em;
  color: #333;
  font-weight: 500;
}

.snake-line {
  height: 30px;
  border-left: 3px solid #007acc;
  margin-left: 1em;
  position: relative;
  left: 1em;
}

@keyframes floatIn {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-float {
  opacity: 0;
  animation: floatIn 0.8s ease forwards;
}

@keyframes floatZoomIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
}

.animate-on-scroll.visible {
  animation: floatZoomIn 0.8s ease-out forwards;
}

.section-title.fullwidth-center {
  width: 100vw;
  text-align: center;
  color: #ffffff;
  font-size: 1.6em;
  margin: 1em 0 0.5em 0;
  padding: 0 1.5em;
}

.section-title.fullwidth-centerSystem {
  width: 100vw;
  text-align: center;
  color: #007acc;
  font-size: 1.6em;
  margin: 1em 0 0.5em 0;
  padding: 0 1.5em;
}


/* Embedded coder */

/* Fonts & Base */
body.ai-theme {
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(135deg, #050505, #0f0f0f);
  color: #00fff7;
  margin: 0;
  padding: 0;
}

h2.ai-glow-title {
  font-size: 2.5rem;
  color: #ffffff; /* <-- Changed to white */
  text-align: center;
  margin-top: 2rem;
  text-shadow: 0 0 10px #ffffff, 0 0 20px #cccccc;
}

.hero-image img {
  width: 100%;
  display: block;
  margin: 1.5em 0;
  border-radius: 8px;
}

/* Paragraph Styling */
.ai-center-text {
  text-align: center;
  font-size: 1.2rem;
  color: #ffffffcc;
  margin-bottom: 2rem;
  text-shadow: 0 0 3px #00fff7;
}

/* Card Container */
.funky-card-container {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 0 1.5em;
}

/* Funky Flash Cards */
.funky-card {
  flex: 1 1 45%;
  background: linear-gradient(145deg, #101010, #1a1a1a);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 0 15px rgba(0,255,255,0.2);
  transition: all 0.3s ease;
  border: 1px solid #00fff7;
}

.funky-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(0,255,247,0.4);
}

.funky-card h3 {
  color: #00fff7;
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 1rem;
  text-shadow: 0 0 8px #00f6ff;
}

.funky-card ul {
  list-style-type: none;
  padding-left: 0;
  color: #ccf7ff;
}

.funky-card ul li {
  padding: 0.5em 0;
  position: relative;
  padding-left: 1.5em;
}

.funky-card ul li::before {
  content: "➤";
  position: absolute;
  left: 0;
  color: #00fff7;
}

/* Responsive */
@media (max-width: 768px) {
  .funky-card-container {
    flex-direction: column;
  }

  .funky-card {
    width: 100%;
  }
}

/* V1: related to 300ms dealy */
nav ul li.dropdown ul {
  display: none;
}

nav ul li.dropdown.open ul {
  display: block;
}




/* Footer */

footer.footer {
  background: linear-gradient(135deg, #007acc, #00bfa5);
  color: white;
  padding: 2em 1em;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-column {
  flex: 1 1 230px;
  margin: 1em;
}

.footer-column h3 {
  border-bottom: 2px solid #caf0f8;
  padding-bottom: 0.5em;
  margin-bottom: 0.7em;
  font-weight: 700;
  font-size: 1.3em;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin: 0.5em 0;
}

.footer-column ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.footer-column ul li a:hover {
  text-decoration: underline;
}

.footer-logo {
  width: 140px;
  filter: drop-shadow(0 0 5px #00bfa5);
  margin-bottom: 1em;
}

.footer-bottom {
  text-align: center;
  margin-top: 1.5em;
  font-size: 0.9em;
  opacity: 0.8;
}

/* New CSS for side-by-side "Capabilities We Offer" and "Tools Expertise" */

.syseng-container {
  display: flex;
  gap: 2em;
  max-width: 96vw;
  margin: 2em auto;
  flex-wrap: wrap;
  justify-content: space-between;
}

.syseng-capabilities, .syseng-tools {
  background: #e0f7fa;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 191, 165, 0.15);
  flex: 1 1 48%;
  max-width: 48%;
  padding: 2em;
  box-sizing: border-box;
  color: #33475b;
  font-size: 1.2em;
  line-height: 1.4;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.syseng-capabilities:hover, .syseng-tools:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 191, 165, 0.3);
}

.syseng-capabilities h2, .syseng-tools h2 {
  color: #007acc;
  font-weight: 700;
  margin-bottom: 1em;
  font-size: 1.8em;
  text-align: center;
}

@media (max-width: 1024px) {
  .syseng-container {
    flex-direction: column;
    max-width: 95vw;
  }
  .syseng-capabilities, .syseng-tools {
    flex: 1 1 100%;
    max-width: 100%;
    margin-bottom: 1.5em;
  }
}