/* Custom CSS Variables */
:root {
    --dark-blue: #1a237e;
    --light-peach: #ffe0b2;
    --light-yellow: #fff8e1;
    --light-green: #e8f5e9;
    --light-red: #ffebee;
    --transparent-blue: rgba(26, 35, 126, 0.65);
    --lighter-blue: #303f9f;
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* Navigation Bars */
#top-nav {
    background-color:#091e3e;
    position: relative;
    z-index: 1;
}

#fixed-nav {
    background-color: #fffaf1;
    position: sticky;
    top: 0;
    z-index: 2;
    border-radius: 50px;
    margin: 20px auto;
    width: 85%;
}

#fixed-nav .nav-wrapper {
    padding: 0 20px;
}

#fixed-nav a {
    color: var(--dark-blue);
}

.important-link {
    line-height: 1.2 !important;
    padding-top: 10px !important;
}

.smaller-text {
    font-size: 0.8em;
}

.brand-logo img {
    height: 50px;
    margin-top: 7px;
}

/* Home Section */
#home {
    position: relative;  /* Add this to existing styles */
    overflow: hidden;    /* Add this to existing styles */
    padding: 50px 0;
    margin-top: -64px;  /* Adjust for fixed nav */
    padding-top: 114px; /* Account for both navs */
  .section {
        min-height: calc(100vh - 114px); /* Subtract your nav heights (adjust value based on your nav heights) */
  }
}

/* Add this new code for the semicircle */
#home::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%;      /* Makes the circle wide enough */
    height: 50vh;     /* Half of viewport height */
    background-color: #fffaf1;  /* Light peach color - adjust as needed */
    border-radius: 50% 50% 0 0;
    transform: translateX(-50%);
    z-index: -1;
    opacity: 1;     /* Makes it semi-transparent */
}

.vector-image {
    width: 100%;
    height: auto;
    display: block; /* Ensures image doesn't have extra space below */
}

/* Add spacing between columns in home section */
#home .col.m5 {
    padding-right: 30px !important; /* Adjust this value as needed */
}

#home .col.m7 {
    padding-left: 30px !important; /* Adjust this value as needed */
}

/* Add this if the valign-wrapper class needs reinforcement */
.valign-wrapper {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 164px); /* viewport height minus navigation heights */
}
/* Services Section */
.services-row {
    display: flex;
    flex-wrap: wrap;
}

.service-box {
    border: 1px solid #ddd;
    padding: 25px;
    margin: 15px;
    border-radius: 15px;
    height: 100%;
    transition: transform 0.3s ease;
}

.service-box:hover {
    transform: translateY(-5px);
}

.service-box h4 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-box h4 img.custom-icon {
    width: 48px;  /* Adjust size as needed */
    height: 48px;
    object-fit: contain;
    vertical-align: middle;
}

.service-box.box-1 {
    background-color: var(--light-yellow);
}

.service-box.box-2 {
    background-color: var(--light-green);
}

.service-box.box-3 {
    background-color: var(--light-red);
}

.flow-text {
    font-size: 1.7rem;
    padding-top: 20Px;
}


/* Who We Serve Section */
#who-we-serve {
    background-image: url('images/WhoWeServeBg.jpg');
    background-size: cover;
    background-position: center;
    color: #ffff;
    .tagline-container {
        text-align: center;
        width: 100%;
    }
    .tagline.center-align {
        color: #ffff;
        background-color: rgba(51, 49, 18, 0.6); 
        padding: 5px;
        display:inline-block;
    }
}

.serve-container {
    display: flex;
    margin: 20px 0;
    border: 3px solid var(--lighter-blue);
    border-radius: 20px;
    overflow: hidden;
}

.tagline.center-align {
    color: #2e2e2e;
}

.serve-column {
    flex: 1;
    background-color: #091e3eCC;
    color: white;
    list-style-type: disc;
    color: #ffff;
    margin-left: 0px;
    padding: 30px;
    position: relative;
}

.serve-column:not(:last-child) {
    border-right: 1px solid var(--lighter-blue);
}

.serve-column h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

/* Custom Icon Styles */
.custom-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
}

.custom-icon img {
    width: 48px;  /* Adjust size as needed */
    height: 48px;
    object-fit: contain;
}

/* Common Styles */
.section {
    padding: 60px 0;
    min-height: 95vh !important; /* This makes each section at least as tall as the viewport */
    display: flex;
    align-items: center;
    padding: 40px 0; /* Provides some minimal padding top/bottom */
}

.custom-icon {
    width: 48px;  /* Adjust size as needed */
    height: 48px;
    object-fit: contain;
    vertical-align: middle;
}

.tagline {
    font-size: 2.0rem;
    color: #666;
    margin-bottom: 40px;
}

/* If you're using Materialize CSS and its styles are overriding yours, 
   make the selectors more specific: */
.section ul {
    padding-left: 40px !important;
   }

.section ul li {
    font-size: 1.5rem !important;
    list-style-type: disc !important;
    line-height: 1.25 !important;   /* Comfortable line spacing */
        margin-bottom: .8em; /* Space between bullet points */
    
}

.container {
    width: 80% !important;  /* Or any percentage you prefer */
    max-width: 1700px !important;  /* Or any max-width you prefer */
}

/* Responsive Adjustments */
@media only screen and (max-width: 992px) {
    #fixed-nav {
        width: 100%;
        border-radius: 0;
        margin: 0;
    }

    .services-row {
        flex-direction: column;
    }

    .serve-container {
        flex-direction: column;
    }

    .serve-column:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid var(--lighter-blue);
    }
}

@media only screen and (min-width: 993px) {
    .services-row {
        display: flex;
        flex-wrap: nowrap;
    }

    .col.m4 {
        width: 33.333%;
        margin-left: auto;
        left: auto;
        right: auto;
    }
}

/* Your Advantages Section */
#why-us {

    .description {
        padding-top: 30px;
        }
    }

.usps-row {
    display: flex;
    flex-wrap: wrap;
}

.usp-box {
    background-color: white;
    border-radius: 15px;
    padding: 25px;
    margin: 15px;
    height: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.usp-box:hover {
    transform: translateY(-5px);
}

.usp-box h4 {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--dark-blue);
    margin-bottom: 20px;
}

.usp-box h4 img {
    width: 50px;  /* Adjust size as needed */
    height: 50px;
    object-fit: contain;
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
}

/* Optional: Add a subtle hover effect */
.usp-box h4 img:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* About Us Section */
#about {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 40px 0; /* Provides some minimal padding top/bottom */
.description {
    padding-top: 30px;
}
}

/* About Section Heading with Icon */
.section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.section-icon {
    width: 64px;  /* Adjust size as needed */
    height: 64px;
    object-fit: contain;
}

.description {
    font-size: 1.8rem;
    line-height: 1.6;
    margin: 30px 0;
}

.about-points ul {
    padding-left: 20px;
}

.about-points li {
    font-size: 1.5rem;
    margin: 15px 0;
    list-style-type: disc;
}

/* Optional: Add a subtle animation when the section comes into view */
.section-heading img {
    transition: transform 0.3s ease;
}

.section-heading:hover img {
    transform: scale(1.1);
}

/* Ensure proper spacing for mobile devices */
@media only screen and (max-width: 600px) {
    .section-icon {
        width: 32px;  /* Slightly smaller on mobile */
        height: 32px;
    }
    
    .section-heading {
        gap: 10px;
    }
}

/* Projects/Clients Section */
.client-grid {
    margin: 30px 0;
}

.client-row {
    display: flex;
    justify-content: flex-start; /* Changed from space-between */
    margin: 15px 0;
    background-color: #e0f2f1; /* Light blue background for entire row */
    border-radius: 10px;
    padding: 15px 20px;
    flex-wrap: nowrap; /* Prevents wrapping */
    overflow-x: auto; /* Allows horizontal scroll if needed */
}

.client-box {
    background-color: #e0f2f1;
    border-radius: 10px;
    padding: 20px 10px;
    margin: 10px;
    flex: 0 0 auto; /* Changed from flex: 1 */
    text-align: center;
    min-width: 150px;
    font-weight: 500;
    /* Remove individual box background and border-radius since row has them */
    border-right: 1px solid rgba(0,0,0,0.1); /* Optional: adds subtle divider between clients */
    white-space: nowrap; /* Prevents text wrapping */
}

/* Remove border from last client in row */
.client-box:last-child {
    border-right: none;
}

/* Make sure boxes wrap properly on smaller screens */
@media screen and (max-width: 768px) {
    .client-row {
        flex-wrap: wrap;
    }
    
    .client-box {
        min-width: calc(25% - 20px); /* 4 items per row on medium screens */
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
}

/* Team Section */
#team {
    min-height: 100vh;
}

#team .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel {
    height: 60vh !important; /* Adjust based on your content */
    perspective: 1000px;
    margin: 0 auto;  /* Centers the carousel */
    max-width: 1000px;  /* Adjust this value based on your needs */
}

.carousel-nav {
    position: absolute;
    width: 100%;
    height: 100%;      /* Added to match carousel height */
    pointer-events: none;  /* Allows clicking through the nav container */
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);  /* Made slightly darker */
    border: none;
    border-radius: 50%;
    width: 48px;      /* Made slightly larger */
    height: 48px;
    cursor: pointer;
    z-index: 100;    /* Increased z-index */
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;  /* Re-enable clicking for buttons */
    transition: background 0.3s ease; /* Smooth transition for hover */
}

.carousel-prev {
    left: 20px;  /* Moved inside the carousel */
}

.carousel-next {
    right: 20px;  /* Moved inside the carousel */
}

.carousel-prev i, .carousel-next i {
    color: white;
    font-size: 36px;  /* Made icons larger */
}

/* Hover effect */
.carousel-prev:hover, .carousel-next:hover {
    background: rgba(0,0,0,0.7); /* Darker on hover */
}

/* Active/Click effect */
.carousel-prev:active, .carousel-next:active {
    background: rgba(0,0,0,0.8); /* Even darker when clicked */
}

/* Ensure carousel items are centered */
.carousel .carousel-item {
    display: 50vh;
    justify-content: center;
    width: 100% !important;
    padding: 20px;
}

.team-member {
    display: flex;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    margin: 0 auto;
    height: 45vh; /* Match your carousel-item height */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 90%; /* Or specific width like 900px */
    max-width: 900px;  /* Adjust based on your needs */
}

.member-image {
    position: relative;
    width: 300px;
    height: 300x;
    border-radius: 15px 0 0 15px; /* Rounds left corners */
}

.aka-text {
    font-size: 0.6em; /* Adjust this value to make it smaller or larger */
    display: inline-block;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px 0 0 15px; /* Match container radius */
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.member-image:hover .member-overlay {
    opacity: 1;
}

.member-overlay h4 {
    color: white;
}

.member-info {
    padding: 20px;
    flex: 1;
        font-size: 1.15rem !important;  /* Larger text size */
        line-height: 1.3;  /* Comfortable line height */
    text-align: justify;
}

.social-links {
    margin-top: 20px;
    font-size: initial;  /* Reset font size for social icons */
}

.social-icon {
    margin: 0 10px;
    color: var(--dark-blue);
}

/* Contact Form Section */
#contact {
    .row {
        display: flex;
        flex-wrap: wrap;
        align-items: center; /* This vertically centers the columns */
        min-height: 600px; /* Adjust this value based on your needs */
    }
}

.highlight-text {
    font-size: 1.9rem; /* Since your flow-text is 1.7rem, this makes it slightly larger */
    display: block; /* This ensures proper line break after the sentence */
    margin-bottom: 10px; /* Optional: adds some space between the sentences */
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: 75vh
}

/* Contact Section Styles */


.contact-message {
    padding: 20px;
    display: flex;
    align-items: center;
    height: 100%;
}

.contact-form {
    height: 75vh; /* Adjust this value to show more of the form */
    width: 100%;
}

.contact-form iframe {
    width: 100%;
    height: 100%;
    border: none;
    margin: 0;
    padding: 0;
}

/* Make it responsive */
@media only screen and (max-width: 600px) {
    .row {
        min-height: auto;
    }
    
    .contact-message {
        padding: 20px 0;
    }
    
    .contact-form {
        height: 80vh; /* Slightly taller on mobile */
    }
}

.contact-message {
    padding: 20px;
}

/* Careers Section */
.careers-btn {
    background-color: #a5d6a7;
    color: var(--dark-blue);
    margin: 30px 0;
    padding: 0 40px;
    height: auto;
    line-height: 1.5;
    white-space: normal;
}

.careers-btn:hover {
    background-color: #81c784;
}

/* Responsive Adjustments */
@media only screen and (max-width: 992px) {
    .team-member {
        flex-direction: column;
    }
    
    .member-image {
        width: 100%;
    }
    
    .client-box {
        min-width: calc(50% - 20px);
    }
}

@media only screen and (max-width: 600px) {
    .client-box {
        min-width: 100%;
    }
}

/* Improve responsive behavior */
@media only screen and (max-width: 600px) {
    .team-member {
        flex-direction: column;
    }
    
    .member-image {
        width: 100%;
        height: 250px;
    }
}