html {
    background-color: white;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url(../../Images/bg_squares.svg);
    font-family: Open Sans, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    color: #333333; 
}

/* --------------------------------------Styles for the Title Card---------------------------------------------- */

.titleCard {
    max-width: 100%;
    background-image: url(../../Images/janitorial_header-scaled.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}

.titleCard h5 {
    font-size: 1.5rem;
    letter-spacing: 1.5px;
    color: #ff7c1a; 
    margin: 0 auto;
    padding-top: 2%;
    text-align: center;
}

.titleCard h2 {
    font-size: 2.5rem;
    color: #f9f9f9;
    text-transform: uppercase; /* Styling the header to stand out */
    font-weight: 500; 
    margin: 0 auto 20px;
    padding-bottom: 2%;
    text-align: center;
}

/* --------------------------------------Styles for the top content---------------------------------------------- */

/* Existing titleCard styles retained */


.topSection {
    max-width: 80%;
    height: auto;
    margin: 40px auto;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    animation: fadeInSlide 1s ease forwards;
}

.topSection::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 1s ease-in-out;
    z-index: 0;
}

.topSection:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.topSectionContent {
    width: 55%; 
    padding-right: 25px;  
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    position: relative;
    z-index: 1;
    animation: contentFadeIn 1.2s ease forwards;
}

.topSectionContent p {
    margin-bottom: 20px;
    animation: textFadeUp 1s ease forwards;
}

.topSectionButtons .imgOne a {
    text-decoration: none;
    color: #ff7c1a; 
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase; 
    transition: color 0.3s ease, text-shadow 0.3s ease;
    animation: bounce 2s infinite;
}

.topSectionButtons .imgOne a:hover {
    color: #e06b00;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.topSectionButtons .imgTwo button {
    background-color: #ff7c1a;
    color: white;
    border-radius: 20px;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 5%;
    position: relative;
    z-index: 1;
    animation: pulse 1.5s infinite;
}

.topSectionButtons .imgTwo button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.topSectionImgs {
    width: 40%; 
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 1;
    animation: slideInFromRight 1s ease forwards;
}

.topSectionImgs div {
    background-color: transparent;
    border: 2px solid #ff7c1a;
    padding: 10px;
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    animation: rotateIn 1.5s ease-in-out;
}

.topSectionImgs div:hover {
    transform: scale(1.03);
    border-color: #e06b00;
}

.topSectionImgs img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.topSectionImgs img:hover {
    transform: scale(1.05);
}

@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes contentFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes textFadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes rotateIn {
    0% {
        transform: rotate(-10deg) scale(0.9);
    }
    100% {
        transform: rotate(0deg) scale(1);
    }
}
/* --------------------------------------Styles for the second section---------------------------------------------- */

.serviceSection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 50px;
    background: transparent;
    justify-content: center;
    align-items: stretch;
    perspective: 1000px;
}

.serviceCard {
    background: linear-gradient(145deg, #3e2a75, #7a53a3);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center; /* Centering content horizontally */
    justify-content: space-between;
    height: 100%;
    color: white;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: slideIn 0.8s ease forwards;
    min-height: 300px;
    transform-style: preserve-3d;
    text-align: center; /* Centering text */
}

.serviceIcon {
    width: 80px;
    margin-bottom: 0.5em;
    z-index: 1;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 5px #ffdf6b);
}

.serviceCard:hover .serviceIcon {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 10px #ffdf6b);
}

.serviceCard h3 {
    color: #ffdf6b;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: bold;
    z-index: 1;
    text-transform: uppercase;
    transition: color 0.3s ease;
    width: 100%; /* Ensuring full width for proper centering */
    text-align: center; /* Centering the h3 text */
}

.serviceCard:hover h3 {
    color: #ffeeba;
}

.serviceCard p {
    font-size: 1rem;
    color: #f1f1f1;
    text-align: center;
    margin-bottom: 20px;
    flex-grow: 1;
    z-index: 1;
    padding: 0 10px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.serviceCard:hover p {
    opacity: 1;
    transform: translateZ(30px);
}

@keyframes slideIn {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}


/*----------------------------------------------Styles for We Serve section--------------------------------------- */

.sectionContainer2 {
    display: flex;
    justify-content: center; 
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    margin-bottom: 5%;
}

.bottomLeft{
    flex: 1; 
    padding: 20px;
    box-sizing: border-box; 
}

.bottomLeft img{
    width: 35%; 
    height: auto;
    margin: 0 auto;
    -ms-flex-align: center;
    margin-left: 10%;
}

.bottomLeft p{
    margin: auto; 
    width: 100%; 
    max-width: 80%; 
    font-size: 1.2rem;
    line-height: 1.8;
    color: black;
    text-align: justify;
}

.ourTeam{
    flex: 1; 
    margin-top: 5%;
    padding: 20px;
    box-sizing: border-box; 
    background-color: #3e2a75;
    text-align: center;
    height: 20em;
    border: #1e123f 3px solid;
    border-radius: 10px;
    height: 10%;
}

.ourTeam h3{
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.ourTeam p{
    color: white;
    font-size: 1.5rem;
    line-height: 1.8;
}

.ourTeam button {
    background-color: white;
    color: #3e2a75; 
    border-radius: 20px;
    border: 2px solid #3e2a75; 
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease; 
    letter-spacing: 1px;
    text-transform: uppercase;  
}

.ourTeam button:hover {
    background-color: #3e2a75; 
    color: white;
    border-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
}


@media (max-width: 768px) {
    .sectionContainer2 {
        flex-direction: column;
    }

    .bottomLeft, .ourTeam {
        flex-basis: 100%; 
    }
}

/* =========================================
   JANITORIAL & GROUNDSKEEPING – LARGE SCREENS ONLY
   (leaves normal/laptop sizes as-is)
   ========================================= */

/* ---- 1) Title card text ---- */
@media (min-width: 1440px){
  .titleCard h5 { font-size: 1.75rem; }
  .titleCard h2 { font-size: 3rem; }
}
@media (min-width: 1920px){
  .titleCard h5 { font-size: 2rem; }
  .titleCard h2 { font-size: 3.5rem; }
}
@media (min-width: 2560px){
  .titleCard h2 { font-size: 4rem; }
}

/* ---- 2) Top section content + buttons (keep layout) ---- */
@media (min-width: 1440px){
  .topSection       { max-width: 1200px; }
  .topSectionContent{ font-size: 1.3rem; line-height: 1.85; }
  .topSectionButtons .imgOne a { font-size: 1.05rem; }
  .topSectionButtons .imgTwo button { font-size: 18px; }
}
@media (min-width: 1920px){
  .topSection       { max-width: 1400px; }
  .topSectionContent{ font-size: 1.45rem; }
  .topSectionButtons .imgOne a { font-size: 1.15rem; }
  .topSectionButtons .imgTwo button { font-size: 20px; }
}
@media (min-width: 2560px){
  .topSection       { max-width: 1600px; }
  .topSectionContent{ font-size: 1.6rem; }
  .topSectionButtons .imgOne a { font-size: 1.2rem; }
  .topSectionButtons .imgTwo button { font-size: 22px; }
}

/* ---- 3) Service cards: bigger icons/titles/body on large screens ---- */
@media (min-width: 1440px){
  .serviceSection{ gap: 28px; padding: 60px 5vw; }
  .serviceIcon{ width: 96px; }
  .serviceCard{ min-height: 340px; }
  .serviceCard h3{ font-size: 2rem; }
  .serviceCard p { font-size: 1.1rem; }
}
@media (min-width: 1920px){
  .serviceIcon{ width: 110px; }
  .serviceCard{ min-height: 380px; }
  .serviceCard h3{ font-size: 2.2rem; }
  .serviceCard p { font-size: 1.2rem; }
}
@media (min-width: 2560px){
  .serviceIcon{ width: 124px; }
  .serviceCard{ min-height: 420px; }
  .serviceCard h3{ font-size: 2.35rem; }
  .serviceCard p { font-size: 1.3rem; }
}

/* ---- 4) “We Serve” / bottom split section ---- */
@media (min-width: 1440px){
  .sectionContainer2{ max-width: 1400px; }
  .bottomLeft p{ font-size: 1.3rem; }
  .ourTeam h3{ font-size: 2.75rem; }
  .ourTeam p { font-size: 1.6rem; }
  .ourTeam button{ font-size: 18px; }
}
@media (min-width: 1920px){
  .sectionContainer2{ max-width: 1600px; }
  .bottomLeft img{ width: 42%; }
  .bottomLeft p{ font-size: 1.4rem; }
  .ourTeam h3{ font-size: 3rem; }
  .ourTeam p { font-size: 1.7rem; }
  .ourTeam button{ font-size: 20px; }
}
@media (min-width: 2560px){
  .bottomLeft img{ width: 46%; }
  .bottomLeft p{ font-size: 1.5rem; }
  .ourTeam h3{ font-size: 3.25rem; }
  .ourTeam p { font-size: 1.8rem; }
  .ourTeam button{ font-size: 22px; }
}

@media (min-width: 1440px){
  /* Give the whole block more room on big displays */
  .sectionContainer2{
    max-width: clamp(1280px, 78vw, 1680px);
    align-items: center;       /* line up columns nicely */
    gap: 48px;
  }

  /* Left column: bigger logos + comfortable reading width */
  .bottomLeft img{
@media (min-width: 1440px){
  .bottomLeft img{ width: clamp(180px, 12vw, 260px); }
}    height: auto;
    margin: 0 0 12px 0;
  }
  .bottomLeft p{
    max-width: 68ch;
    font-size: 1.125rem;
    line-height: 1.9;
  }

  /* Right column (purple card): wider/taller with larger type */
  .ourTeam{
    flex: 1 1 48%;
    padding: clamp(36px, 3vw, 56px);
    border-radius: 14px;
    height: auto !important;
  }
  .ourTeam h3{ font-size: clamp(34px, 2.6vw, 44px); }
  .ourTeam p { font-size: clamp(18px, 1.25vw, 22px); }
  .ourTeam button{
    font-size: clamp(16px, 1vw, 18px);
    padding: 14px 28px;
  }
}

@media (min-width: 1440px){
  .sectionContainer2{
    display: flex;            /* ensure flex container */
    flex-direction: row;      /* side-by-side */
    flex-wrap: nowrap;        /* prevent dropping to a new line */
    gap: 48px;                /* spacing between columns */
    align-items: flex-start;
  }

  /* Give each column half the row (no full-width children) */
  .bottomLeft,
  .ourTeam{
    flex: 0 0 50%;
    max-width: 50%;
  }

  /* Prevent the logos from forcing overflow or weird wrapping */
  .bottomLeft img{
    width: min(100%, 480px);  /* never exceed the column */
    height: auto;
    margin: 0;                /* cancel the left margin from earlier CSS */
  }
}

@media (min-width: 1440px){
  .sectionContainer2 .bottomLeft img{
    width: clamp(210px, 14vw, 300px) !important;
  }
}
