/* ===============================
   AI & ML HERO
================================= */

.ai-hero{
  position: relative;
  height: 90vh;
  background-image: url("../images/Ai_banner.jpg"); /* update path */
  background-size: cover;
  background-position: top - center;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:0 20px;
  color:#fff;
  overflow:hidden;
}

/* Overlay */
.ai-hero-overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.65);
  z-index:1;
}

/* Content */
.ai-hero-content{
  position:relative;
  z-index:2;
  max-width:900px;
}

/* Heading */
.ai-hero-content h1{
  font-size:60px;
  margin-bottom:20px;
  opacity:0;
  animation: fadeUp 1s ease forwards;
}

/* Paragraph */
.ai-hero-content p{
  font-size:20px;
  color:#e5e7eb;
  opacity:0;
  animation: fadeUp 1s ease forwards;
  animation-delay:0.4s;
}

/* Animation (reuse if already added) */
@keyframes fadeUp{
  from{
    opacity:0;
    transform: translateY(50px);
  }
  to{
    opacity:1;
    transform: translateY(0);
  }
}



/* =========================================
   RESPONSIVE - AI & ML HERO SECTION
========================================= */

/* =========================
   LARGE TABLET
========================= */

@media (max-width: 992px) {

  .ai-hero {
    height: 80vh;
    padding: 0 30px;
    background-position: center;
  }

  .ai-hero-content {
    max-width: 750px;
  }

  .ai-hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 18px;
  }

  .ai-hero-content p {
    font-size: 18px;
    line-height: 1.7;
  }
}


/* =========================
   TABLET
========================= */

@media (max-width: 768px) {

  .ai-hero {
    height: 75vh;
    padding: 0 25px;
    background-position: center;
  }

  .ai-hero-content {
    max-width: 100%;
  }

  .ai-hero-content h1 {
    font-size: 38px;
    line-height: 1.3;
    margin-bottom: 16px;
  }

  .ai-hero-content p {
    font-size: 16px;
    line-height: 1.7;
  }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 576px) {

  .ai-hero {
    height: 70vh;
    padding: 0 20px;
  }

  .ai-hero-content h1 {
    font-size: 30px;
    line-height: 1.3;
    margin-bottom: 14px;
  }

  .ai-hero-content p {
    font-size: 15px;
    line-height: 1.6;
  }
}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 400px) {

  .ai-hero {
    height: 65vh;
    padding: 0 16px;
  }

  .ai-hero-content h1 {
    font-size: 26px;
  }

  .ai-hero-content p {
    font-size: 14px;
    line-height: 1.6;
  }
}




/* ===============================
   AI & ML SERVICES
================================= */

.ai-services{
    width:85%;
    max-width:1200px;
    margin:auto;
    padding:60px 0;
}

/* Sections */
.ai-section,
.ml-section{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:50px;
    margin-bottom:80px;
}

.ai-section h2,
.ml-section h2{
    font-size:32px;
    margin-bottom:15px;
    color: #111827;
}

.ai-section p,
.ml-section p{
    margin-bottom:20px;
    color: #26334199;
    font-size: 17px;
    line-height: 1.7;
}

/* Text */
.ai-text,
.ml-text{
    width:50%;
    max-width:500px;
}

/* Image */
.ai-image,
.ml-image{
    width:50%;
    display:flex;
    justify-content:center;
}

.ai-image img,
.ml-image img{
   width:1200px;
    max-width:493px;   /* keeps it clean like previous layout */  
    border-radius:16px;
    height: 400px;
}

/* Points */
.ai-points,
.ml-points{
    display:flex;
    gap:40px;
    color: #26334199;
}

.ai-points ul,
.ml-points ul{
    list-style:none;
    padding-left:0;
}

.ai-points li,
.ml-points li{
    position:relative;
    padding-left:28px;
    margin-bottom:12px;
}

/* Tick */
.ai-points li::before,
.ml-points li::before{
    content:"✔";
    position:absolute;
    left:0;
    color:#000;
}

/* =========================================
   RESPONSIVE - AI & ML SERVICES
========================================= */

/* =========================
   LARGE TABLET
========================= */

@media (max-width: 992px) {

  .ai-services {
    width: 90%;
    padding: 50px 0;
  }

  .ai-section,
  .ml-section {
    flex-direction: column;
    gap: 40px;
    margin-bottom: 70px;
    text-align: center;
  }

  /* TEXT */
  .ai-text,
  .ml-text {
    width: 100%;
    max-width: 100%;
    order: 1;
  }

  /* IMAGE BELOW CONTENT */
  .ai-image,
  .ml-image {
    width: 100%;
    order: 2;
  }

  .ai-section h2,
  .ml-section h2 {
    font-size: 30px;
    line-height: 1.3;
  }

  .ai-section p,
  .ml-section p {
    font-size: 16px;
    line-height: 1.7;
  }

  .ai-image img,
  .ml-image img {
    width: 100%;
    max-width: 650px;
    height: auto;
    border-radius: 16px;
  }

  /* POINTS */
  .ai-points,
  .ml-points {
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    text-align: left;
  }
}


/* =========================
   TABLET
========================= */

@media (max-width: 768px) {

  .ai-services {
    width: 92%;
    padding: 45px 0;
  }

  .ai-section,
  .ml-section {
    gap: 35px;
    margin-bottom: 60px;
  }

  .ai-section h2,
  .ml-section h2 {
    font-size: 26px;
  }

  .ai-section p,
  .ml-section p {
    font-size: 15px;
    line-height: 1.7;
  }

  .ai-image img,
  .ml-image img {
    width: 100%;
    max-width: 100%;
    height: 320px;
    object-fit: cover;
  }

  .ai-points,
  .ml-points {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .ai-points li,
  .ml-points li {
    font-size: 15px;
    line-height: 1.6;
    padding-left: 24px;
  }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 576px) {

  .ai-services {
    width: 94%;
    padding: 40px 0;
  }

  .ai-section,
  .ml-section {
    gap: 30px;
    margin-bottom: 50px;
  }

  .ai-section h2,
  .ml-section h2 {
    font-size: 22px;
    line-height: 1.3;
  }

  .ai-section p,
  .ml-section p {
    font-size: 14px;
    line-height: 1.6;
  }

  .ai-image img,
  .ml-image img {
    height: 250px;
    border-radius: 14px;
  }

  .ai-points li,
  .ml-points li {
    font-size: 14px;
    margin-bottom: 10px;
  }
}