/* ===================== */
/* GENERAL */
/* ===================== */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: rgb(245, 241, 241);
  color: #eee;

  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  margin-top: 0;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin: 2.5rem 0 3rem;
  color: rgb(249, 178, 45);
  position: relative;
  padding-bottom: 2rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  margin: 0.5rem auto 0;
  background: rgb(249, 178, 45);
}

/* ===================== */
/* HERO */
/* ===================== */
.hero {
  position: relative;
  height: 60vh;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(to right, #100f0f, #686767);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  color: rgb(244, 240, 158);
}

.hero h1 span {
  color: #fcfbfb;
}

.hero p {
  font-size: 1.3rem;
  color: #fcfbfb;
  margin-top: 1rem;
}

/* ===================== */
/* SERVICES (Timeline Style) */
/* ===================== */
.services {
  background: rgb(245, 241, 241);
  padding: 0rem 2rem;
  position: relative;
  
}

/* Vertical divider */
.services::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: #8e8d8d;
  transform: translateX(-50%);
  margin-top: 50px;
}

.service-stack {
  display: flex;
  flex-direction: column;
  align-items: center; /* center cards horizontally */
  gap: 4rem; /* spacing between cards */
  max-width: 1100px;  /* keeps layout neat on large screens */
  margin: 0 auto;
  position: relative;
  padding: 0 2rem;
}

.service-card {
  background-color: #1e1e1e;
  border: 1px solid #444;
  border-radius: 12px;
  padding: 2rem;
  width: 40%;        /* each card takes ~40% of screen */
  max-width: 480px;  /* prevents overexpansion */
  opacity: 0;
  transition: all 0.8s ease;
  position: relative;
}

/* Odd (left half, centered) */
.service-card:nth-child(odd) {
  margin-left: 2%;             /* give space from edge */
  margin-right: auto;
  transform: translateX(-10%); /* animate from left */
  text-align: left;
}

/* Even (right half, centered) */
.service-card:nth-child(even) {
  margin-right: 2%;            /* give space from edge */
  margin-left: auto;
  transform: translateX(10%);  /* animate from right */
  text-align: left;
}

/* Visible state */
.service-card.visible {
  opacity: 1;
  transform: translateX(0);
}
.service-card {
  background-color: #1e1e1e;
  border: 1px solid #444;
  border-radius: 12px;
  padding: 2rem;
  width: 100%;        /* default for mobile: full width */
  max-width: 500px;
  opacity: 0;
  transition: all 0.8s ease;
  position: relative;
  margin: 0 auto;     /* center on small screens */
}

/* Large screens (PC, >1200px) */
@media (min-width: 1500px) {
  .service-card {
    width: 40%;        /* each card ~40% of screen */
    max-width: 480px;
  }

  /* Odd (left half, centered) */
  .service-card:nth-child(odd) {
    margin-left: 15%;   /* centers in left half */
    margin-right: auto;
    transform: translateX(-10%);
    text-align: left;
  }

  /* Even (right half, centered) */
  .service-card:nth-child(even) {
    margin-right: 15%;  /* centers in right half */
    margin-left: auto;
    transform: translateX(10%);
    text-align: left;
  }
}

.service-card h3 {
  
  color: rgb(249, 178, 45);
  margin-bottom: 1rem;
 
}


.service-card ul {
  margin: 1rem 0;
  padding-left: 20px;
}

.service-card ul li {
  margin-bottom: 0.5rem;
  color: #aaa;
}

.impact {
  margin-top: 1.2rem;
  font-size: 0.95rem;
  color: #aaa;
  border-left: 3px solid rgb(249, 178, 45);
  padding-left: 1rem;
}

.details {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #888;
  font-style: italic;
}

.btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.9rem 1.7rem;
  background: rgb(249, 178, 45);
  color: rgb(249, 178, 45);
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #f7f8b1;
}

/* ===================== */
/* INTEGRATION SECTION */
/* ===================== */
.integration {
  padding: 4rem 2rem;
  background: rgb(245, 241, 241);
  text-align: center;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: rgb(249, 178, 45); /* gold */
}

/* Demo Grid */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns on large screens */
  gap: 2rem;
  max-width: 1200px; /* centers the grid */
  margin: 0 auto;
}

.demo-card {
  background: #2b2b2b;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgb(249, 178, 45);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.demo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgb(249, 178, 45);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.card-icon {
  font-size: 28px;
  color: rgb(249, 178, 45);
}

.demo-card h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: rgb(249, 178, 45);
}

.demo-card p {
  color: #ccc;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.btn-demo {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 12px;
  background-color: rgb(249, 178, 45);
  color: #000;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-demo:hover {
  background-color: rgb(249, 178, 45);
  color: #000;
}

/* ===================== */
/* RESPONSIVE ADJUSTMENTS */
/* ===================== */
@media (max-width: 992px) {
  .demo-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
  }
}

@media (max-width: 768px) {
  .demo-grid {
    grid-template-columns: 1fr; /* 1 column for mobile */
  }
}


/* RESPONSIVE */
@media (max-width: 992px) {
  .demo-grid {
    grid-template-columns: 1fr 1fr; /* 2 columns */
  }
}

@media (max-width: 768px) {
  .demo-grid {
    grid-template-columns: 1fr; /* 1 column */
  }
}
/* ===================== */
/* RESPONSIVE ADJUSTMENTS */
/* ===================== */

/* Tablets (≤ 992px) */
@media (max-width: 992px) {
  /* Services timeline stacks */
  .services::before {
    left: 8px; /* move divider to side */
    width: 2px;
  }
  .service-grid h3{
    margin-top: 25px;
  }
  .service-card {
    max-width: 100%;
    margin: 2rem 0;
    transform: translateX(0) !important; /* reset animation offset */
  }

  .service-card:nth-child(odd),
  .service-card:nth-child(even) {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }

  /* Integration section grid → 2 cols */
  .demo-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
  }
}

/* Mobiles (≤ 768px) */
@media (max-width: 768px) {
  /* Hero text */
  .hero h1 {
    font-size: 2rem;
  }
  .service-grid h3{
    margin-top: 25px;
  }
  .hero p {
    font-size: 1rem;
  }

  /* Stack services vertically */
  .services::before {
    display: none; /* remove divider line */
  }

  .service-card {
    margin: 1.5rem 0;
    padding: 1.5rem;
  }

  .service-card h3 {
    font-size: 1.4rem;
  }

  .service-card ul li {
    font-size: 0.9rem;
  }

  .impact {
    font-size: 0.85rem;
  }

  /* Integration section grid → 1 col */
  .demo-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .demo-card {
    padding: 1.5rem;
  }
}

/* Small Mobiles (≤ 480px) */
@media (max-width: 480px) {
  .hero {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.9rem;
  }
  .service-grid h3{
    margin-top: 25px;
  }
  .service-card {
    padding: 1rem;
  }

  .service-card h3 {
    font-size: 1.2rem;
  }

  .btn,
  .btn-demo {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
}
