/* Services Page Specific Styles */

/* Animation Classes */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   SERVICES HERO
========================= */

.services-hero {
  position: relative;
  min-height: 90vh;
 padding-top: 200px;   /* space below fixed header */
  padding-bottom: 10px;
  align-items: flex-start;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
}

/* Background image + overlay */
.services-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      rgba(0, 0, 0, 0.65),
      rgba(0, 0, 0, 0.65)
    ),
    url("../assets/Caspy-pix/CaspyTechGASF.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
     padding: clamp(80px, 12vh, 140px) 20px;
  z-index: 0;
}


/* Content above background */
.services-hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}
.services-hero .hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* Title */
.services-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #fff;
  text-shadow: 2px 2px 12px rgba(0,0,0,0.4);
}

/* Description */
.services-hero p {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  line-height: 1.7;
  margin-bottom: 50px;
  color: rgba(255,255,255,0.95);
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-stat {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 22px 28px;
  min-width: 180px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: transform 0.3s ease, background 0.3s ease;
}

.hero-stat:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,0.18);
}

.hero-stat .stat-number {
  display: block;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--accent-color);
  margin-bottom: 6px;
}

.hero-stat .stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}


/* Services Overview */
.services-overview-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.services-overview {
    max-width: 1200px;
    margin: 60px auto 0;
}

.service-overview-item {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 60px;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-overview-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: var(--primary-color);
}

.service-overview-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.service-number {
    font-size: 5rem;
    font-weight: 900;
    color: rgba(19, 22, 123, 0.1);
    line-height: 1;
    flex-shrink: 0;
}

.service-content {
    flex: 1;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.service-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
}

.service-features {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.service-features span {
    background: var(--light-gray);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-features i {
    color: var(--accent-color);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(10px);
}

/* Service Statistics */
.service-stats-section {
    padding: 100px 0;
    background: var(--dark-blue, #0a1a35);
    color: white;
}

.service-stats-section h2,
.service-stats-section p {
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.stat-content {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
}

.stat-symbol {
    font-size: 2rem;
    color: var(--accent-color);
    font-weight: 700;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* Technology Section */
.technology-section {
    padding: 100px 0;
}

.technology-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.tech-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.tech-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.tech-icon i {
    font-size: 2.5rem;
    color: white;
}

.tech-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.tech-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 25px;
}

.tech-features {
    list-style: none;
    padding: 0;
    text-align: left;
}

.tech-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.tech-features i {
    color: var(--accent-color);
}

/* Process Section */
.process-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.process-timeline {
    max-width: 1000px;
    margin: 60px auto 0;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    opacity: 0.3;
    transform: translateX(-50%);
}

.process-step {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

.step-icon {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--primary-color);
    flex-shrink: 0;
}

.step-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.step-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    flex: 1;
}

.step-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.step-metrics {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.step-metrics span {
    background: var(--light-gray);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-metrics i {
    color: var(--accent-color);
}

/* Capabilities Section */
.capabilities-section {
    padding: 100px 0;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.capability-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.capability-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.capability-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.capability-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.capability-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 25px;
}

.capability-highlights {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.capability-highlights span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.capability-highlights i {
    color: var(--accent-color);
}

/* Services CTA */
.services-cta-section {
    position: relative;
    padding: 120px 0;
    color: white;
    overflow: hidden;
}

.services-cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
}

.services-cta-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cta-text h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 30px;
}

.cta-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.95);
}

.cta-benefits {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 15px;
}

.benefit i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.benefit span {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-actions {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-actions h3 {
    color: white;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
}

.cta-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.cta-buttons-group .btn {
    width: 100%;
    justify-content: center;
}

.cta-contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.contact-item i {
    font-size: 2rem;
    color: var(--accent-color);
}

.contact-item h5 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .stats-grid,
    .technology-grid,
    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-cta-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .process-timeline::before {
        left: 30px;
    }
    
    .process-step,
    .process-step:nth-child(even) {
        flex-direction: row;
    }
}

@media (max-width: 992px) {
    .service-overview-item {
        flex-direction: column;
        gap: 20px;
    }
    
    .service-number {
        font-size: 4rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 992px) {

  /* Move timeline line to the left */
  .process-timeline::before {
    left: 32px;
    transform: none;
  }

  /* Stack steps vertically */
  .process-step,
  .process-step:nth-child(even) {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    padding-left: 80px;
  }

  /* Align number + icon */
  .step-number {
    position: absolute;
    left: 0;
    top: 0;
  }

  .step-icon {
    margin-left: -10px;
  }

  /* Make content full width */
  .step-content {
    width: 100%;
  }
}
@media (max-width: 576px) {

  .process-section {
    padding: 70px 0;
  }

  .process-timeline {
    margin-top: 40px;
  }

  .process-step {
    padding-left: 70px;
    margin-bottom: 50px;
  }

  .step-number {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }

  .step-icon {
    width: 56px;
    height: 56px;
    border-width: 2px;
  }

  .step-icon i {
    font-size: 1.4rem;
  }

  .step-content {
    padding: 22px;
  }

  .step-content h3 {
    font-size: 1.25rem;
  }

  .step-content p {
    font-size: 0.95rem;
  }

  .step-metrics {
    gap: 10px;
  }

  .step-metrics span {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

@media (max-width: 768px) {
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
  }

  .hero-stat {
    width: 100%;
  }
}
@media (max-width: 375px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stat {
    width: 100%;
    min-width: unset;   /* 🔥 VERY IMPORTANT */
  }
  .services-hero {
  position: relative;
  min-height: 90vh;
 padding-top: 100px;   /* space below fixed header */
  padding-bottom: 10px;
  align-items: flex-start;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
}

@media (max-width: 768px) {
    .services-hero h1 {
        font-size: 2.5rem;
    }
    
    .services-hero p {
        font-size: 1.1rem;
    }
    
    .technology-grid,
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-text h2 {
        font-size: 2.2rem;
    }
    
    .cta-text p {
        font-size: 1.1rem;
    }
    
    .service-overview-item {
        padding: 30px 20px;
    }
    
    .step-content {
        padding: 25px;
    }
    
    .step-metrics {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .services-hero {
        height: 70vh;
    }
    
    .services-hero h1 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .cta-actions {
        padding: 30px 20px;
    }
    
    .btn-outline {
        width: 100%;
        justify-content: center;
    }
}
@media (max-width: 768px) {
  .services-hero {
    min-height: 85vh;
    padding-top: 40px;
  }

  .hero-stats {
    gap: 20px;
  }

  .hero-stat {
    min-width: 160px;
    padding: 20px;
  }
}
@media (max-width: 400px) {
  .services-hero {
    min-height: 100vh;
  }

  .services-hero .hero-content {
    text-align: left;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-stat {
    width: 100%;
    padding: 18px;
  }

  .hero-stat .stat-number {
    font-size: 1.8rem;
  }

  .hero-stat .stat-label {
    font-size: 0.9rem;
  }
}
