/* pages.css - Light Theme Page-Specific Styles with Clean Section Architecture */

/* ===== BODY AND MAIN CONTENT (LIGHT THEME) ===== */
body {
  background: #ffffff;
  color: #154357;
}

.main-content {
  background: #ffffff;
  color: #154357;
}

/* ===== HERO SECTION (DARK THEME - EXCEPTION) ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  background: #000;
  padding-top: 20vh;
  color: #ffffff;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  min-width: 1200px;
  height: 100vh;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
  transition: opacity 0.4s ease-in-out;
}

.hero-image.loading {
  opacity: 0.9;
}

.hero-image.loaded {
  opacity: 1;
}

@media (max-width: 768px) {
  .hero-image {
    min-width: 100%;
    object-position: center 20%;
  }
}

@media (max-width: 480px) {
  .hero-image {
    object-position: center 30%;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-title,
.hero-subtitle,
.hero-stats {
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem 0;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 400;
  line-height: 1.4;
  margin: 0 0 1.5rem 0;
}

.hero-stats {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  margin: 2rem 0;
}

.order-count {
  color: #90bfd5;
  font-weight: 700;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  color: white;
  text-decoration: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 300ms ease;
  backdrop-filter: blur(10px);
}

.scroll-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.scroll-btn:focus-visible {
  outline: 2px solid #8B008B;
  outline-offset: 2px;
}

/* ===== CONTENT SECTIONS (LIGHT THEME) ===== */
.section {
  background: #ffffff;
  color: #154357;
  padding: 4rem 0;
}

.section:nth-child(even) {
  background: #f8f9fa;
}

/* Section Headers */
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 2rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #154357;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  margin: 0;
  color: #154357;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards - Clean Light Theme */
.card {
  display: block;
  padding: 2rem;
  background: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  color: #154357;
  transition: all 300ms ease;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card:hover {
  text-decoration: none;
  color: #154357;
}

.card-interactive {
  cursor: pointer;
}

.card-interactive:hover {
  background: #f8f9fa;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #154357;
}

.card-description {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #154357;
  margin: 0;
}

/* Even sections get slightly different card styling for contrast */
.section:nth-child(even) .card {
  border: 1px solid #dee2e6;
}

/* ===== ARCHITECTURE SECTION ===== */
.arch-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin: 3rem 0;
}

@media (max-width: 768px) {
  .arch-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.arch-visual {
  position: relative;
}

.arch-diagram {
  width: 100%;
  height: auto;
  z-index: 2;
  position: relative;
}

.arch-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: auto;
  opacity: 0.1;
  z-index: 1;
}

.arch-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.arch-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #154357;
}

/* ===== BENEFITS SECTION ===== */
.benefits-section {
  margin: 3rem 0;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.section:nth-child(even) .benefits-section {
  background: #ffffff;
  border: 1px solid #dee2e6;
}

.benefits-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #154357;
}

/* ===== IMAGE MARQUEE (MARKETPLACE CONSULTING STYLE) ===== */
.custom__wrap {
  position: relative;
  overflow: hidden;
  margin: 3rem 0;
}

.image-marquee {
  display: flex;
  white-space: nowrap;
  animation: scroll 100s linear infinite;
  height: 320px;
}

.image-marquee img {
  flex-shrink: 0;
  height: 320px;
  width: auto;
  object-fit: cover;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Semi-transparent overlay card */
.custom__lable {
  position: absolute;
  left: 8%;
  top: 30%;
  height: 70%;
  width: 25%;
  background-color: rgba(2, 50, 70, 0.9);
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  text-align: center;
  z-index: 2;
}

@media (max-width: 991.98px) {
  .custom__lable {
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 80px;
    top: 200px;
    font-size: 1.25rem;
  }
}

.custom__text {
  padding-top: 35px;
  width: 65%;
  margin: 0 0 0 auto;
  font-size: 1rem;
  line-height: 1.6;
  color: #154357;
}

@media (max-width: 991.98px) {
  .custom__text {
    width: 100%;
    padding-top: 40px;
  }
}

@media (max-width: 767.98px) {
  .custom__text {
    font-size: 1rem;
    padding-top: 40px;
  }
}

/* ===== CONSULTING SECTION ===== */
.consulting-section {
  margin: 3rem 0;
  text-align: center;
}

.consulting-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #154357;
}

.consulting-content {
  max-width: 800px;
  margin: 0 auto;
}

.consulting-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #154357;
  margin-bottom: 1rem;
}

.consulting-content strong {
  color: #154357;
}

/* ===== SOLUTIONS GRID ===== */
.solutions-grid {
  margin: 3rem 0;
}

.solutions-title {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #154357;
}

.solution-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
  margin: 3rem 0;
  padding: 2rem;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.solution-item.reverse {
  grid-template-columns: 2fr 1fr;
}

.solution-item.reverse .solution-image {
  order: 2;
}

.solution-item.reverse .solution-content {
  order: 1;
}

@media (max-width: 768px) {
  .solution-item,
  .solution-item.reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .solution-item.reverse .solution-image {
    order: 1;
  }

  .solution-item.reverse .solution-content {
    order: 2;
  }
}

.solution-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.solution-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #154357;
  margin: 0;
}

/* ===== CASE STUDIES ===== */
.case-studies-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin: 3rem 0;
}

.case-study {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.case-study.reverse {
  grid-template-columns: 1fr 1fr;
}

.case-study.reverse .case-image {
  order: 2;
}

.case-study.reverse .case-content {
  order: 1;
}

@media (max-width: 768px) {
  .case-study,
  .case-study.reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .case-study.reverse .case-image,
  .case-study.reverse .case-content {
    order: initial;
  }
}

.case-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.case-header {
  margin-bottom: 1.5rem;
}

.case-category {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8B008B;
  margin-bottom: 0.5rem;
}

.case-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: #154357;
}

.case-challenge {
  font-size: 1rem;
  color: #154357;
  font-style: italic;
  margin: 0;
}

.case-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.case-section h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #8B008B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.case-section p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #154357;
  margin: 0;
}

/* ===== PAGE-SPECIFIC STYLES ===== */

/* Contact Page */
.contact-hero {
  background: linear-gradient(135deg, #154357 0%, #8B008B 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

/* About Page */
.about-hero {
  background: #f8f9fa;
  padding: 4rem 0;
  color: #154357;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.team-member {
  text-align: center;
  padding: 2rem;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.team-member img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.5rem auto;
  object-fit: cover;
}

/* Solutions Page */
.solution-hero {
  background: linear-gradient(135deg, #154357 0%, #8B008B 100%);
  color: white;
  padding: 4rem 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature-item {
  padding: 2rem;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem auto;
  color: #8B008B;
}

/* Technology Page */
.tech-hero {
  background: #154357;
  color: white;
  padding: 4rem 0;
}

.tech-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.tech-item {
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 300ms ease;
  color: #154357;
}

.tech-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ===== GENERIC SECTION TYPES ===== */

/* 1. Hero Section - For page headers with background images */
.section-hero {
  position: relative;
  padding: 8rem 0 6rem 0;
  background: url('../images/solution.jpeg') center/cover no-repeat;
  color: white;
  text-align: center;
}

.section-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.section-hero .container {
  position: relative;
  z-index: 2;
}

.section-hero .hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.section-hero .hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  line-height: 1.4;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 2. Text Content Section - For text-heavy content */
.section-content {
  padding: 4rem 0;
}

.section-content .content-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #154357;
}

.section-content .content-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #154357;
  margin-bottom: 1.5rem;
}

.section-content .content-text:last-child {
  margin-bottom: 0;
}

.section-content ul.content-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.section-content ul.content-list li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  line-height: 1.6;
  color: #154357;
}

.section-content ul.content-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #8B008B;
  font-weight: 700;
  font-size: 1.25rem;
}

/* 3. Feature Grid Section - For feature cards with overlays */
.section-features {
  padding: 4rem 0;
}

.section-features .features-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #154357;
}

.section-features .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.section-features .feature-card {
  position: relative;
  padding: 2rem;
  background: #ffffff;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 300ms ease;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-features .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.section-features .feature-card:hover .feature-overlay {
  opacity: 1;
  visibility: visible;
}

.section-features .feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem auto;
  object-fit: cover;
}

.section-features .feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #154357;
}

.section-features .feature-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(21, 67, 87, 0.95);
  color: white;
  padding: 2rem;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 300ms ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.section-features .feature-overlay h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.section-features .feature-overlay p,
.section-features .feature-overlay ul {
  font-size: 0.875rem;
  line-height: 1.6;
  color: white;
}

.section-features .feature-overlay ul {
  padding-left: 1.5rem;
}

/* 4. Call-to-Action Section - For highlighted content with actions */
.section-cta {
  padding: 4rem 0;
  background: #f8f9fa;
  text-align: center;
}

.section-cta .cta-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 2rem;
  color: #154357;
}

.section-cta .cta-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #154357;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-cta .cta-text:last-of-type {
  margin-bottom: 2rem;
}

/* Responsive adjustments for generic sections */
@media (max-width: 768px) {
  .section-hero {
    padding: 6rem 0 4rem 0;
  }
  
  .section-content,
  .section-features,
  .section-cta {
    padding: 3rem 0;
  }
  
  .section-features .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .section-features .feature-card {
    padding: 1.5rem;
  }
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .solutions-title,
  .consulting-title,
  .benefits-title {
    font-size: 1.25rem;
  }

  .case-title {
    font-size: 1.25rem;
  }

  .marquee-container {
    margin: 2rem 0;
  }

  .image-marquee img {
    width: 150px;
    height: 112px;
  }

  .hero-content {
    padding: 1rem;
  }

  .arch-container {
    gap: 1.5rem;
  }

  .case-studies-container {
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .solution-item,
  .benefits-section {
    padding: 1rem;
  }
}