.main-container {
  width: 98%;
  height: 98%;
  max-width: 1800px;
  height: 92%;
  background: linear-gradient(0deg, #911517 0%, #ffffff 100%);
  color: white;
  border-radius: 25px;
  padding: 20px;
  
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  overflow: hidden;
  position: relative;
}

header {
  text-align: center;
  padding: 40px 0 30px 0;
}

.navbar-custom {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 20px 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
}

.navbar-custom a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding-bottom: 5px;
}

.navbar-custom a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 5px;
  background: linear-gradient(90deg, rgba(255,0,150,1) 0%, rgb(255, 217, 0) 100%);
  left: 0;
  bottom: 0;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
}

.navbar-custom a:hover::after {
  width: 100%;
  color: rgba(240, 255, 255, 0.664); 
}

.content {
  margin: 150px 0 20px 0;
  text-align: center;
  font-size: 20px;
  line-height: 1.8;
}

footer {
  text-align: center;
  padding: 10px 0;
}

.social-links {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.social-links a:hover {
  background: white;
  color: #333;
}





 /* Section container - full viewport */
 .services-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

/* Content wrapper */
.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 50px 0;
    position: relative;
}

/* Curved lines decoration */
.curved-lines {
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 400px;
    pointer-events: none;
    z-index: 1;
}

.curved-line {
    position: absolute;
    border: 2px solid;
    border-radius: 50%;
    width: 200px;
    height: 400px;
    border-color: transparent transparent transparent #ff1f8e;
    transform: rotate(-30deg);
}

.curved-line:nth-child(2) {
    left: 20px;
    opacity: 0.7;
}

.curved-line:nth-child(3) {
    left: 40px;
    opacity: 0.4;
}

/* Section title */
.section-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 50px;
    padding-left: 100px;
    position: relative;
    z-index: 2;
}

.section-title .dot {
    color: #005273;
}

/* Services grid container */
.services-container {

    padding: 40px;
    width: 100%;
}

/* All Services button */
.all-services-btn {
    position: absolute;
    right: 50px;
    bottom: 50px;
    background: transparent;
    border: 2px solid #ffd700;
    color: #ffd700;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    z-index: 2;
}

.all-services-btn:hover {
    background: #ffd700;
    color: #0a0a14;
}

/* Social Media Icons */
.social-icons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp {
    background: #25D366;
}

.phone {
    background: #0088cc;
}

.snapchat {
    background: #FFFC00;
    color: #000;
}

.social-icon:hover {
    transform: scale(1.1);
    color: white;
}

/* Hall of Fame title */
.hall-of-fame {
    font-size: 3.5rem;
    font-weight: bold;
    margin-top: 50px;
    padding-left: 100px;
    position: relative;
    z-index: 2;
}

.hall-of-fame .dot {
    color: #005273;
}

/* Responsive styles */
@media (max-width: 991.98px) {
    .section-title, .hall-of-fame {
        font-size: 2.5rem;
        padding-left: 50px;
    }

    .curved-lines {
        left: -100px;
        opacity: 0.5;
    }
.h-6 {
    height: 6.5rem;
}
    .services-container {
        padding: 20px;
        width: 95%;
    }

    .all-services-btn {
        right: 20px;
        bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    .content-wrapper {
        padding: 30px 0;
    }
    
    .section-title, .hall-of-fame {
        font-size: 2rem;
        padding-left: 20px;
        margin-bottom: 30px;
    }

    .curved-lines {
        display: none;
    }

    .social-icons {
        position: fixed;
        bottom: 20px;
        top: auto;
        right: 20px;
        transform: none;
        flex-direction: row;
    }

    .services-container {
        margin: 10px auto;
        padding: 15px;
        width: 95%;
    }
    
    .all-services-btn {
        bottom: 20px;
        font-size: 0.9rem;
        padding: 8px 20px;
    }
}

/* Service Grid Styles from Version 9 */
.service-container {
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    opacity: 0; /* Start invisible */
    transform: translateX(-100vw); /* Start off-screen to the left */
    filter: blur(10px); /* Start blurred */
    animation-fill-mode: forwards;
    position: relative; /* For more precise positioning */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); /* Consistent shadow */
    height: 100%; /* Ensure consistent height */
}

/* First container animation */
.col-md-3:nth-child(1) .service-container {
    animation: slideInFirst 2s 0.1s cubic-bezier(0.25, 0.1, 0.25, 1.2) forwards;
}

/* Second container animation */
.col-md-3:nth-child(2) .service-container {
    animation: slideInSecond 2s 0.2s cubic-bezier(0.25, 0.1, 0.25, 1.2) forwards;
}

/* Third container animation */
.col-md-3:nth-child(3) .service-container {
    animation: slideInThird 2s 0.3s cubic-bezier(0.25, 0.1, 0.25, 1.2) forwards;
}

/* Fourth container animation */
.col-md-3:nth-child(4) .service-container {
    animation: slideInFourth 2s 0.4s cubic-bezier(0.25, 0.1, 0.25, 1.2) forwards;
}
/* First container keyframes */
@keyframes slideInFirst {
    0% {
      transform: translateX(-120vw);
      opacity: 0;
      filter: blur(20px); /* Strong blur at start */
    }
    40% {
      filter: blur(10px); /* Gradually reduce blur */
      opacity: 0.7;
    }
    70% {
      transform: translateX(0);
      filter: blur(0); /* Clear when near position */
      opacity: 1;
    }
    100% {
      transform: translateX(0);
      filter: blur(0);
      opacity: 1;
    }
  }
  
  /* Second container keyframes */
  @keyframes slideInSecond {
    0% {
      transform: translateX(-120vw);
      opacity: 0;
      filter: blur(20px);
    }
    40% {
      filter: blur(10px);
      opacity: 0.7;
    }
    65% {
      transform: translateX(-10px); /* Stops slightly before */
      filter: blur(0);
      opacity: 1;
    }
    100% {
      transform: translateX(0);
      filter: blur(0);
      opacity: 1;
    }
  }
  
  /* Third container keyframes */
  @keyframes slideInThird {
    0% {
      transform: translateX(-120vw);
      opacity: 0;
      filter: blur(20px);
    }
    40% {
      filter: blur(10px);
      opacity: 0.7;
    }
    60% {
      transform: translateX(-20px); /* Slight push effect */
      filter: blur(0);
      opacity: 1;
    }
    100% {
      transform: translateX(0);
      filter: blur(0);
      opacity: 1;
    }
  }
  
  /* Fourth container keyframes */
  @keyframes slideInFourth {
    0% {
      transform: translateX(-120vw);
      opacity: 0;
      filter: blur(20px);
    }
    40% {
      filter: blur(10px);
      opacity: 0.7;
    }
    55% {
      transform: translateX(-30px); /* Small push */
      filter: blur(0);
      opacity: 1;
    }
    100% {
      transform: translateX(0);
      filter: blur(0);
      opacity: 1;
    }
  }
  
/* Mobile animation keyframes */
@keyframes slideInMobile {
    0% {
        transform: translateX(-100vw);
        opacity: 0;
        filter: blur(10px);
    }
    60% {
        transform: translateX(10px);
        opacity: 0.8;
        filter: blur(2px);
    }
    80% {
        transform: translateX(-5px);
        opacity: 0.9;
        filter: blur(0px);
    }
    100% {
        transform: translateX(0);
        opacity: 1;
        filter: blur(0);
    }
}

.top-section {
    background: linear-gradient(135deg, #033e55 0%, #005273 100%);
    padding: 30px 20px;
    text-align: center;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.bottom-section {
    background: linear-gradient(135deg, #60686b 0%, #005273 100%);
    padding: 30px 20px;
    text-align: center;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.service-title {
    font-weight: bold;
    margin: 0;
}

.subtitle {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.custom-icon {
    width: 32px;
    height: 32px;
    display: inline-block;
    margin-bottom: 10px;
}

/* Responsive adjustments for service grid */
@media (max-width: 1199.98px) {
    .service-icon {
        font-size: 1.8rem;
    }
    
    .service-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 991.98px) {
    .top-section, .bottom-section {
        padding: 25px 15px;
    }
    
    .service-icon {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 767.98px) {
    /* On mobile, make the animation more suitable */
    .service-container {
        animation-duration: 1.5s !important; /* Faster animation on mobile */
    }
    
    /* Apply mobile animation to all containers */
    .col-md-3:nth-child(1) .service-container {
        animation: slideInMobile 1.5s 0.1s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
    }
    
    .col-md-3:nth-child(2) .service-container {
        animation: slideInMobile 1.5s 0.4s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
    }
    
    .col-md-3:nth-child(3) .service-container {
        animation: slideInMobile 1.5s 0.7s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
    }
    
    .col-md-3:nth-child(4) .service-container {
        animation: slideInMobile 1.5s 1s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
    }
    
    /* Ensure consistent heights on mobile */
    .row {
        display: flex;
        flex-wrap: wrap;
    }
    
    .col-sm-6 {
        display: flex;
        margin-bottom: 15px;
    }
    
    .service-container {
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .top-section, .bottom-section {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 20px 15px;
    }
}

@media (max-width: 575.98px) {
    /* Extra small devices */
    .service-icon {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }
    
    .service-title {
        font-size: 1.1rem;
    }
    
    .subtitle {
        font-size: 0.8rem;
    }
    
    .top-section, .bottom-section {
        padding: 15px 10px;
    }
    
    /* Make each card take full width on very small screens */
    .col-sm-6 {
        width: 100%;
    }
}

@media (max-width: 345.98px) {
    
    
}