/* ==========================================================================
   Services Page Styles (Spatial UI Theme matching Ingenious Design System)
   ========================================================================== */

:root {
  --services-blue: #1D428A;
  --services-cyan: #00A8CC;
  --services-dark: #0F172A;
  --services-orange: #FF6B00;
  --services-text-dark: #1E293B;
  --services-text-muted: #64748B;
  --services-card-bg: rgba(255, 255, 255, 0.94);
  --services-card-border: rgba(15, 23, 42, 0.08);
  --services-accent-gradient: linear-gradient(135deg, #1D428A 0%, #00A8CC 100%);
}

/* Base Body Styling for Services Page */
body.services-page {
  background-image: url('../assets/image/Main service bg.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #F7F5EE;
  color: var(--services-text-dark);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}

/* Header Navigation Menu Overrides (Services Page Only) */
body.services-page .navbar .nav-link {
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

body.services-page .navbar .nav-link:hover,
body.services-page .navbar .nav-link.active {
  color: #ffffff !important;
}

body.services-page .navbar .dropdown-chevron {
  stroke: #ffffff !important;
}

.services-main-container {
  max-width: min(calc(100% - 3rem), 1320px);
  margin: 0 auto;
  padding-top: 100px;
  padding-bottom: 80px;
}

/* Common Section Spacing */
.services-section {
  margin-bottom: 80px;
}

/* Full-Screen Entrance Image Hero Banner Section */
.services-fullscreen-banner-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
  height: calc(100vh - 100px);
  min-height: 480px;
  margin-top: -100px;
  margin-bottom: 60px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  background: transparent;
}



/* ==========================================================================
   Section 1: Hero Banner Layout ("Turning Ideas into Stronger Components")
   ========================================================================== */
.services-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 50px;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 32px;
  padding: 48px;
  border: 1px solid var(--services-card-border);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
}

.services-tag-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.tag-accent-line {
  width: 32px;
  height: 3px;
  background: var(--services-orange);
  border-radius: 2px;
}

.services-tag-text {
  font-size: 0.8rem;
  font-weight: 800;
  color: #475569;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.services-hero-title {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 900;
  color: var(--services-dark);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.text-orange-dot {
  color: var(--services-orange);
}

.services-hero-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--services-text-muted);
  margin-bottom: 32px;
  max-width: 600px;
}

/* CTA Button & Highlights Row */
.services-hero-cta-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.btn-services-explore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  background: var(--services-blue);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(29, 66, 138, 0.25);
  width: fit-content;
}

.btn-services-explore:hover {
  background: #14326c;
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(29, 66, 138, 0.35);
  color: #ffffff;
}

.btn-services-explore span {
  transition: transform 0.3s ease;
}

.btn-services-explore:hover span {
  transform: translateX(4px);
}

/* 3 Highlights Row */
.services-highlights-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.highlight-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(29, 66, 138, 0.08);
  color: var(--services-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--services-dark);
  line-height: 1.2;
}

.highlight-divider {
  width: 1px;
  height: 28px;
  background: rgba(15, 23, 42, 0.12);
}

/* Right Visual Frame Box */
.services-hero-visual-box {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.services-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.services-hero-visual-box:hover .services-hero-img {
  transform: scale(1.04);
}

/* Visual Floating Badge Overlay */
.services-visual-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  padding: 16px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  max-width: 200px;
}

.badge-line {
  width: 24px;
  height: 3px;
  background: var(--services-orange);
  margin-bottom: 8px;
  border-radius: 2px;
}

.badge-title {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--services-dark);
  text-transform: uppercase;
  line-height: 1.3;
}

/* ==========================================================================
   Section 2: Our Services / 4 Capabilities Grid
   ========================================================================== */
.our-services-card-wrapper {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 32px;
  padding: 48px;
  border: 1px solid var(--services-card-border);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
}

.services-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 40px;
}

.services-header-left {
  max-width: 540px;
}

.services-header-right {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 520px;
}

.services-header-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--services-text-muted);
}

.header-vertical-divider {
  width: 1px;
  height: 48px;
  background: rgba(15, 23, 42, 0.12);
  flex-shrink: 0;
}

.services-header-badge-text {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--services-blue);
  text-transform: uppercase;
  line-height: 1.4;
  flex-shrink: 0;
}

/* 4 Services Cards Grid */
.services-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card-item {
  background: var(--services-card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--services-card-border);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.service-card-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.12);
  border-color: rgba(0, 168, 204, 0.3);
}

.service-card-img-box {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #0f172a;
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card-item:hover .service-card-img {
  transform: scale(1.08);
}

/* Card Body Content */
.service-card-body {
  padding: 24px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.service-number {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--services-orange);
  line-height: 1;
}

.service-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(29, 66, 138, 0.08);
  color: var(--services-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--services-dark);
  line-height: 1.2;
}

.service-card-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--services-text-muted);
  margin-bottom: 20px;
  flex: 1;
}

.service-card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.service-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--services-dark);
  transition: all 0.3s ease;
}

.service-card-item:hover .service-arrow-btn {
  background: var(--services-blue);
  border-color: var(--services-blue);
  color: #ffffff;
  transform: translateX(3px);
}

/* ==========================================================================
   Section 3: Why Ingenious / More Than Manufacturing
   ========================================================================== */
.why-ingenious-card-wrapper {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  border-radius: 32px;
  padding: 48px;
  border: 1px solid var(--services-card-border);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
}

.why-header-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.why-header-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--services-text-muted);
  margin-bottom: 24px;
}

.btn-our-story {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  background: var(--services-blue);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(29, 66, 138, 0.2);
}

.btn-our-story:hover {
  background: #14326c;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(29, 66, 138, 0.3);
}

/* Pillars Grid Row with Visual Card */
.why-content-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}

.value-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.pillar-item-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.03);
  transition: transform 0.3s ease;
}

.pillar-item-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
}

.pillar-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(29, 66, 138, 0.08);
  color: var(--services-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.pillar-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--services-dark);
  margin-bottom: 8px;
}

.pillar-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--services-text-muted);
}

/* Right Visual Card for Section 3 */
.why-visual-card {
  position: relative;
  height: 280px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.why-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-visual-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  padding: 14px 20px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.why-badge-line {
  width: 24px;
  height: 3px;
  background: var(--services-orange);
  margin-bottom: 6px;
  border-radius: 2px;
}

.why-badge-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--services-dark);
  text-transform: uppercase;
}

/* Responsive Media Queries */
@media (max-width: 1100px) {
  .services-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-hero-grid {
    grid-template-columns: 1fr;
  }

  .why-header-row,
  .why-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .services-fullscreen-banner-section {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    height: auto;
    min-height: 220px;
    margin-top: -75px;
    margin-bottom: 30px;
  }

  .services-main-container {
    max-width: calc(100% - 1.5rem);
    padding-top: 75px;
    padding-bottom: 40px;
  }

  .services-section {
    margin-bottom: 40px;
  }

  .services-hero-title {
    font-size: clamp(1.85rem, 6.5vw, 2.6rem);
    line-height: 1.15;
  }

  .services-hero-desc {
    font-size: 0.92rem;
    margin-bottom: 24px;
  }

  .btn-services-explore {
    width: 100%;
  }

  .services-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .value-pillars-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .services-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .services-highlights-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .highlight-divider {
    display: none;
  }

  .services-hero-grid,
  .our-services-card-wrapper,
  .why-ingenious-card-wrapper {
    padding: 28px 18px;
    border-radius: 24px;
  }
}

@media (max-width: 480px) {
  .services-main-container {
    max-width: calc(100% - 1rem);
    padding-top: 70px;
    padding-bottom: 30px;
  }

  .services-hero-grid,
  .our-services-card-wrapper,
  .why-ingenious-card-wrapper {
    padding: 22px 14px;
    border-radius: 18px;
  }

  .services-hero-title {
    font-size: 1.75rem;
  }

  .service-item-card {
    border-radius: 18px;
  }

  .service-img-box {
    height: 180px;
  }

  .service-content-box {
    padding: 18px 14px 22px;
  }
}
