body {
  padding-top: 90px;
}

.page-header {
  background: linear-gradient(135deg, #001145 0%, #002966 50%, #0055aa 100%);
  padding: 80px 0 60px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/><circle cx="20" cy="20" r="0.5" fill="white" opacity="0.05"/><circle cx="80" cy="30" r="0.8" fill="white" opacity="0.08"/></svg>');
  animation: float 20s infinite linear;
  opacity: 0.1;
  z-index: 1;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(-100px);
  }
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.services-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.service-card {
  background: white;
  border-radius: 15px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid #e0e0e0;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.92);
  z-index: 1;
}

.service-card > * {
  position: relative;
  z-index: 2;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #001145, #002966, #0055aa);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  z-index: 3;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 85, 170, 0.15);
  border-color: #0055aa;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #001145, #002966);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2.2rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, #0055aa, #0077ee);
  transform: scale(1.1);
}

.service-card h4 {
  color: #001145;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.service-card p {
  color: #666;
  line-height: 1.7;
  font-size: 0.95rem;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  text-align: left;
}

.service-features li {
  color: #666;
  padding: 0.3rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #0055aa;
  font-weight: bold;
}

.cta-section {
  background: linear-gradient(135deg, #001145, #002966);
  color: white;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/><circle cx="20" cy="20" r="0.5" fill="white" opacity="0.05"/><circle cx="80" cy="30" r="0.8" fill="white" opacity="0.08"/></svg>');
  animation: float 20s infinite linear;
  opacity: 0.1;
  z-index: 1;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-btn {
  background: white;
  color: #001145;
  border: none;
  border-radius: 30px;
  padding: 15px 40px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.cta-btn:hover {
  background: #f8f9fa;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  color: #001145;
  text-decoration: none;
}

/* RESPONSIVE STYLES */
@media screen and (max-width: 1200px) {
  .page-header h1 {
    font-size: 2.8rem;
  }

  .service-card {
    padding: 2rem;
  }
}

@media screen and (max-width: 1024px) {
  .services-section {
    padding: 60px 0;
  }

  .service-card {
    padding: 1.8rem;
    margin-bottom: 1.5rem;
  }
}

/* TABLET RESPONSIVE */
@media screen and (max-width: 768px) {
  /* Page Header Mobile */
  .page-header {
    padding: 60px 0 40px;
  }

  .page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }

  .page-header p {
    font-size: 1.1rem;
    max-width: 90%;
  }

  /* Services Mobile */
  .services-section {
    padding: 50px 0;
  }

  .service-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  .service-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .service-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
  }

  .service-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .service-features {
    margin-top: 1rem;
  }

  .service-features li {
    padding: 0.2rem 0;
    font-size: 0.85rem;
    padding-left: 1.2rem;
  }

  /* CTA Mobile */
  .cta-section {
    padding: 50px 0;
  }

  .cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .cta-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  .cta-btn {
    padding: 12px 30px;
    font-size: 1rem;
  }
}

/* MOBILE RESPONSIVE */
@media screen and (max-width: 480px) {
  /* Page Header Extra Small Mobile */
  .page-header {
    padding: 50px 0 30px;
  }

  .page-header h1 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 0.8rem;
  }

  .page-header p {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 95%;
  }

  /* Services Extra Small Mobile */
  .services-section {
    padding: 40px 0;
  }

  .service-card {
    padding: 1.2rem;
    border-radius: 12px;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }

  .service-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
  }

  .service-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
  }

  .service-features {
    margin-top: 0.8rem;
  }

  .service-features li {
    font-size: 0.8rem;
    padding: 0.15rem 0;
    padding-left: 1rem;
  }

  /* CTA Extra Small Mobile */
  .cta-section {
    padding: 40px 0;
  }

  .cta-section h2 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 0.8rem;
  }

  .cta-section p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
  }

  .cta-btn {
    padding: 10px 25px;
    font-size: 0.95rem;
  }
}

/* VERY SMALL SCREENS */
@media screen and (max-width: 360px) {
  .page-header h1 {
    font-size: 1.6rem;
  }

  .page-header p {
    font-size: 0.95rem;
  }

  .cta-section h2 {
    font-size: 1.6rem;
  }

  .service-card {
    padding: 1rem;
  }

  .service-icon {
    width: 55px;
    height: 55px;
    font-size: 1.3rem;
  }
}

/* LANDSCAPE ORIENTATION FIX */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .page-header {
    padding: 40px 0 30px;
  }

  .page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .page-header p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .services-section {
    padding: 40px 0;
  }

  .service-card {
    padding: 1.5rem;
  }
}

/* TOUCH IMPROVEMENTS */
@media (hover: none) and (pointer: coarse) {
  .cta-btn,
  .service-card {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  }

  .service-card:hover {
    transform: none;
  }

  .service-card:active {
    transform: scale(0.98);
  }
}

/* ACCESSIBILITY IMPROVEMENTS */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scrolling-text {
    animation: none;
  }

  .page-header::before,
  .cta-section::before {
    animation: none;
  }
}

/* GRID ADJUSTMENTS FOR BETTER MOBILE LAYOUT */
@media screen and (max-width: 991px) {
  .row .col-lg-4 {
    margin-bottom: 2rem;
  }
}

@media screen and (max-width: 767px) {
  .row .col-md-6 {
    margin-bottom: 1.5rem;
  }
}
