/* ==========================================================================
   ZenixAI Solution - Custom Software Development 
   Typography: Roboto (Headings) | Poppins (Body & UI)
   Brand Accents: #2d6df3 (Electric Blue), #feb542 (Warm Amber), #3fc68e (Mint)
   Section Padding: 40px Top & Bottom
   ========================================================================== */

/* 1. RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #0f172a;
  background-color: #ffffff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* 2. TYPOGRAPHY RULES */
h1, h2, h3, h4, h5, h6, .font-roboto {
  font-family: 'Roboto', sans-serif;
}

.mono {
  font-family: monospace;
}

/* Section Title Hierarchy */
.hero-title {
  font-size: 48px;
  line-height: 1.15;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.underline-accent {
  position: relative;
  display: inline-block;
  color: #ffffff;
  border-bottom: 3px solid #2d6df3;
}

.section-title {
  font-size: 36px;
  line-height: 1.25;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.cta-title {
  font-size: 36px;
  line-height: 1.25;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.card-title {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  color: #0f172a;
}

.value-title {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: #0f172a;
}

p, .section-desc, .hero-desc, .card-desc, .cta-desc {
  font-size: 16px;
  line-height: 28px;
  font-weight: 400;
}

.value-desc {
  font-size: 14px;
  line-height: 24px;
  color: #475569;
}

/* 3. LAYOUT & CONTAINERS */
.page-wrapper {
  width: 100%;
  min-height: 100vh;
}

.section {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
  position: relative;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.relative-z {
  position: relative;
  z-index: 10;
}

.center {
  text-align: center;
  align-items: center;
  justify-content: center;
}

.flex-align {
  display: flex;
  align-items: center;
}

.gap-2 { gap: 0.5rem; }
.h-full { height: 100%; }

/* Background Themes */
.bg-white { background-color: #ffffff; }
.bg-slate { background-color: #F8FAFC; }
.border-bottom { border-bottom: 1px solid #e2e8f0; }

.cta-bg {
  background-color: #090e18;
  border-top: 1px solid #1e293b;
}

/* Brand Colors */
.text-white { color: #ffffff; }
.text-blue { color: #2d6df3; }
.text-amber { color: #feb542; }
.text-emerald { color: #3fc68e; }
.text-slate-400 { color: #94a3b8; }
.text-slate-900 { color: #0f172a; }

.bg-blue { background-color: #2d6df3; }
.bg-amber { background-color: #feb542; }
.bg-emerald { background-color: #3fc68e; }

.icon-blue { color: #2d6df3; }
.icon-amber { color: #feb542; }
.icon-emerald { color: #3fc68e; }

/* 4. BUTTONS & BADGES */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(to right, #feb542, #ffc66a, #feb542);
  color: #070b14;
  box-shadow: 0 10px 20px -5px rgba(254, 181, 66, 0.3);
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.btn-primary-blue {
  background-color: #2d6df3;
  color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(45, 109, 243, 0.4);
  font-weight: 600;
}

.btn-primary-blue:hover {
  background-color: #255cd0;
  transform: translateY(-2px);
}

.btn-secondary-dark {
  background-color: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  border: 1px solid #334155;
}

.btn-secondary-dark:hover {
  background-color: #1e293b;
  transform: translateY(-2px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

.badge-dark {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #334155;
  color: #feb542;
}

.badge-text-gradient {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(to right, #2d6df3, #feb542, #3fc68e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-divider {
  color: #475569;
}

.badge-sub {
  font-size: 0.75rem;
  color: #cbd5e1;
  font-weight: 500;
}

.badge-light {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.badge-white {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #2d6df3;
}

.dot-blue {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #2d6df3;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #3fc68e;
}

/* 5. SECTION HEADERS */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  width: 100%;
}

.max-w-5xl {
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}

.section-desc {
  color: #475569;
  max-width: 100%;
}

/* ==========================================================================
   6. HERO SECTION STYLES (FULL SEAMLESS BACKGROUND BLEND)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 580px;
  background-color: #0b101b;
  padding-top: 40px !important;
  padding-bottom: 40px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #1e293b;
}

.hero-bg-media {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.9;
}

.hero-mask-horizontal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, #0b101b 0%, rgba(11, 16, 27, 0.95) 45%, rgba(11, 16, 27, 0.4) 75%, transparent 100%);
}

.hero-mask-vertical {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, #0b101b 0%, transparent 50%, rgba(11, 16, 27, 0.6) 100%);
}

.hero-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-content {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.hero-desc {
  color: #cbd5e1;
  max-width: 650px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(51, 65, 85, 0.8);
  margin-top: 0.5rem;
}

.stat-num {
  font-size: 1.75rem;
  font-weight: 900;
  font-family: 'Roboto', sans-serif;
  display: block;
}

.stat-label {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Ambient Glows */
.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.glow-blue {
  top: 15%;
  left: 5%;
  width: 450px;
  height: 450px;
  background: #2d6df3;
  filter: blur(140px);
  opacity: 0.2;
}

.glow-emerald {
  bottom: 10%;
  right: 20%;
  width: 400px;
  height: 400px;
  background: #3fc68e;
  filter: blur(150px);
  opacity: 0.15;
}

.glow-blue-cta {
  top: -80px;
  left: 25%;
  width: 500px;
  height: 500px;
  background: #2d6df3;
  filter: blur(160px);
  opacity: 0.2;
}

.glow-amber-cta {
  bottom: -80px;
  right: 25%;
  width: 450px;
  height: 450px;
  background: #feb542;
  filter: blur(150px);
  opacity: 0.15;
}

/* ==========================================================================
   7. ABOUT SECTION STYLES (PERFECT EQUAL-HEIGHT & 100% IMAGE FIT)
   ========================================================================== */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch; /* இரு நெடுவரிசைகளும் சம உயரத்தில் இருக்கும் */
}

@media (min-width: 1024px) {
  .two-col-grid {
    grid-template-columns: 7fr 5fr;
    gap: 3rem;
  }
}

.align-stretch {
  align-items: stretch;
}

.about-text-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
}

.text-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: #475569;
}

.quote-card {
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  border-left: 4px solid #2d6df3;
  border-top: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.quote-card p {
  font-size: 0.875rem;
  font-style: italic;
  font-weight: 500;
  color: #334155;
  line-height: 24px;
}

.chips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

@media (min-width: 640px) {
  .chips-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1e293b;
}

/* About Right Image Column & Card Container */
.about-image-col {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.media-card-light {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  background-color: #f8fafc;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 380px;
  flex: 1; /* கார்டின் முழு உயரத்தையும் பிடிக்கும் */
}

/* படம் முழு கார்டையும் கச்சிதமாக நிரப்பும் */
.media-card-light .cover-image {
  width: 100%;
  height: 100%;
  flex: 1;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.media-card-light .cover-image:hover {
  transform: scale(1.04);
}

.gradient-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(to right, #2d6df3, #feb542, #3fc68e);
  z-index: 5;
}

/* 8. WHAT WE OFFER (3-COLUMN CARDS) */
.three-col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .three-col-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .three-col-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.75rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.icon-bg-blue {
  background: rgba(45, 109, 243, 0.1);
  border: 1px solid rgba(45, 109, 243, 0.25);
}

.icon-bg-amber {
  background: rgba(254, 181, 66, 0.15);
  border: 1px solid rgba(254, 181, 66, 0.3);
}

.icon-bg-emerald {
  background: rgba(63, 198, 142, 0.12);
  border: 1px solid rgba(63, 198, 142, 0.25);
}

.card-desc {
  color: #475569;
  margin-top: 0.5rem;
}

.card-footer {
  padding-top: 1.5rem;
  margin-top: 1rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-blue { color: #2d6df3; }
.footer-amber { color: #feb542; }
.footer-emerald { color: #3fc68e; }

.footer-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.service-card:hover .footer-arrow {
  transform: translateX(4px);
}

.arrow-blue { background: #eff6ff; }
.arrow-amber { background: #fffbeb; }
.arrow-emerald { background: #ecfdf5; }

/* 9. HOW WE DELIVER (CONNECTED TIMELINE) */
.timeline-wrapper {
  position: relative;
  margin-top: 1rem;
}

.timeline-line {
  position: absolute;
  left: 24px;
  top: 24px;
  bottom: 48px;
  width: 2px;
  background: linear-gradient(to bottom, #2d6df3, #feb542, #3fc68e);
}

@media (min-width: 1024px) {
  .timeline-line {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.timeline-row {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 3.5rem;
}

@media (min-width: 1024px) {
  .timeline-row {
    flex-direction: row;
    align-items: center;
    padding-left: 0;
  }
}

.timeline-card-col {
  width: 100%;
}

@media (min-width: 1024px) {
  .timeline-card-col {
    width: 50%;
  }
  .row-left .timeline-card-col {
    padding-right: 4rem;
    text-align: right;
  }
  .row-right .timeline-card-col {
    order: 2;
    padding-left: 4rem;
    text-align: left;
  }
}

.timeline-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

.phase-pill {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.pill-blue { background: #eff6ff; color: #2d6df3; border: 1px solid #bfdbfe; }
.pill-amber { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.pill-emerald { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }

.deliverable-bar {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
}

@media (min-width: 1024px) {
  .row-left .deliverable-bar {
    justify-content: flex-end;
  }
  .row-right .deliverable-bar {
    justify-content: flex-start;
  }
}

.deliverable-label {
  font-weight: 600;
  color: #334155;
}

.timeline-node {
  position: absolute;
  left: 0;
  top: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 1rem;
  background: #ffffff;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  font-family: 'Roboto', sans-serif;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  z-index: 5;
}

@media (min-width: 1024px) {
  .timeline-node {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

.node-blue { border-color: #2d6df3; color: #2d6df3; }
.node-amber { border-color: #feb542; color: #d97706; }
.node-emerald { border-color: #3fc68e; color: #059669; }

.timeline-spacer-col {
  display: none;
}

@media (min-width: 1024px) {
  .timeline-spacer-col {
    display: block;
    width: 50%;
  }
  .row-left .timeline-spacer-col {
    order: 2;
    padding-left: 4rem;
  }
  .row-right .timeline-spacer-col {
    order: 1;
    padding-right: 4rem;
    text-align: right;
  }
}

.milestone-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.row-right .milestone-badge {
  justify-content: flex-end;
}

.milestone-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #94a3b8;
}

.milestone-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #334155;
  font-family: 'Roboto', sans-serif;
}

/* 10. WHY CHOOSE US (BENTO CARDS) */
.bento-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.75rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.bento-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0.8;
}

.bento-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.tag-pill {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

/* 11. VALUE CREATION (ROW GRID + IMAGE EQUAL HEIGHT) */
.value-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .value-layout-grid {
    grid-template-columns: 7fr 5fr;
    gap: 2.5rem;
  }
}

.value-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .value-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.value-item-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.value-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.06);
}

.value-border-accent {
  position: absolute;
  left: 0;
  top: 1rem;
  bottom: 1rem;
  width: 4px;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.value-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.icon-box-sm {
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-cat-tag {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.value-image-col {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.value-floating-footer {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.badge-tag-sm {
  font-size: 0.7rem;
  font-weight: 600;
  color: #2d6df3;
  background: #eff6ff;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
}

/* 12. CALL TO ACTION (CTA) */
.cta-box {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-desc {
  color: #cbd5e1;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}