/* Custom Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Oswald:wght@500&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    color: #212529; /* Darker heading color */
}

/* --- MODERN MINIMALIST NAVBAR BASE STYLING --- */
.navbar {
    position: fixed;
    z-index: 100;
    width: 100%;
    top: 0;
    
    /* Initially transparent */
    background-color: transparent !important; 
    box-shadow: none !important;
    
    /* Generous vertical padding */
    padding-top: 25px; /* Slightly more spacious */
    padding-bottom: 25px;
    
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

/* Ensure links are white against the hero background */
.navbar-brand,
.navbar-nav .nav-link {
    color: #FFFFFF !important; 
    font-weight: 500; /* Subtle weight increase for better visibility */
    transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover {
    color: #007AA3 !important; /* Your Sky Blue accent */
}

.navbar-brand,
.navbar-nav .nav-link,
.navbar .nav-item .btn-primary { 
    font-family: 'Inter', sans-serif; /* Use Inter for a modern look */
    font-weight: 500; /* Give the text a medium weight for professionalism */
    /* ... rest of the styles ... */
}

.navbar-brand {
    font-size: 1.25rem; /* Slightly reduced size is cleaner and more modern */
    /* ... */
}

/* Optional: Slight increase in letter-spacing can look more refined */
.navbar-nav .nav-link {
    letter-spacing: 0.5px;
    /* ... */
}

/* --- NAVBAR SCROLLED STATE (Dark Gray, Frosted Blur) --- */
.navbar.scrolled {
    /* Subtle semi-transparent dark gray background */
    background-color: rgba(44, 53, 57, 0.9) !important; /* Using your new dark gray with 90% opacity */
    
    /* The modern frosted glass effect */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* For Safari support */
    
    /* Subtle shadow for depth */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    
    /* Shrink effect for smaller height */
    padding-top: 15px; 
    padding-bottom: 15px; 
}

.navbar-brand img {
    height: 40px; 
    margin-right: 10px;
}

/* Style the "Get a Quote" button - using the primary button style */
.navbar .nav-item .btn-primary {
    /* Overrides the default fixed position background to ensure it looks good */
    background-color: var(--color-primary); 
    border-color: var(--color-primary);
    transition: all 0.3s ease;
}
.navbar .nav-item .btn-primary:hover {
    background-color: #007AA3; /* Slightly darker shade of the primary color */
    border-color: #007AA3;
}

/* --- Hero Section Styling --- */
.hero-section {
    position: relative; 
    width: 100%;
    min-height: 102vh;
    display: flex;
    align-items: center; 
    justify-content: center;
    overflow: hidden;
    bottom: 10.9vh;
}

.hero-content h1 {
    color: #d7f0f1;
}

/* Container for images (fills the hero section) */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Individual slide image styling */
.hero-slideshow .slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    /* Transition for smooth fading */
    opacity: 0;
    transition: opacity 1.5s ease; /* Longer transition for a smooth visual fade */
}

/* Active slide */
.hero-slideshow .slide.active {
    opacity: 1;
}

/* Dark overlay for better text readability (Crucial for modern look) */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle dark blue/charcoal overlay for coolness */
    background: rgba(var(--color-dark-rgb, 34, 40, 49), 0.6); 
    z-index: 1; 
}

/* Ensure Hero Content is above overlay */
.hero-content {
    position: relative; 
    z-index: 2; 
    color: #EEEEEE; 
    width: 100%;
    padding: 50px 0;
}

/* --- MODERN CTA BUTTON REDESIGN --- */
.btn-modern-cta {
    /* Base Button Style */
    background-color: var(--color-primary); /* Use your sky blue/teal */
    border: none;
    color: #FFFFFF;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    padding: 15px 35px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    /* Smooth Transitions */
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.btn-modern-cta:hover {
    background-color: var(--color-heading); /* Darker shade on hover */
    color: #FFFFFF;
    transform: translateY(-3px); /* Subtle lift */
    box-shadow: 0 8px 15px rgba(0, 173, 181, 0.4); /* Shadow accent */
}


/* --- PROGRESS BAR STYLING --- */
.hero-controls {
    position: absolute;
    bottom: 50px; /* Position it above the very bottom */
    width: 100%;
    z-index: 3;
}

.progress-bar-container {
    width: 250px; /* Set a fixed width for the bar */
    height: 3px;
    background-color: rgba(255, 255, 255, 0.3); /* Light background for the bar track */
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%; /* Starts at 0, filled by JavaScript */
    background-color: rgba(0, 173, 181, 0.4); /* Accent color for the fill */
    transition: width 0.1s linear; /* Smooth but quick movement */
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3.5rem; /* Adjust for smaller screens */
    }
    .hero-content p.lead {
        font-size: 1.2rem;
    }
    .hero-content .btn-primary {
        font-size: 1rem;
        padding: 12px 25px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
    }
    .hero-content h1 {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    .hero-content p.lead {
        font-size: 1rem;
        padding: 0 15px; /* Add horizontal padding for readability */
    }
    .navbar-brand {
    font-size: 0.8rem;
}
}

/* Card Styling */
.card {
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
}

.card-title {
    color: #949494;
}

/* Sections Padding */
section {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* --- New Footer Styling (replacing old footer styles) --- */
#main-footer {
    background-color: #222831; /* Dark background from your navbar/hero */
    color: #EEEEEE; /* Light text color */
}

.footer-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle separator */
}

.footer-heading {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #FFFFFF; /* White heading */
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.footer-underline {
    position: absolute;
    bottom: -10px; /* Position below the text */
    left: 0;
    width: 60px; /* Length of the underline */
    height: 4px; /* Thickness of the underline */
    background-color: #949494; /* Dark silver-gray */
}

.footer-logo {
    max-height: 70px; /* Adjust logo size */
    width: auto;
    filter: brightness(0) invert(1); /* Optional: turn a dark logo white for dark background */
}

.footer-text {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #DDDDDD; /* Slightly muted white */
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: #DDDDDD;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: block; /* Make the whole area clickable for the transition */
}

.footer-links li a:hover {
    color: #949494; /* Teal on hover */
    transform: translateX(5px); /* Slight movement on hover */
}

.footer-links li a .fas {
    color: #949494 /* Yellow icon */
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info-list li {
    margin-bottom: 15px;
    color: #DDDDDD;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start; /* Align icon and text at the top */
}

.contact-info-list li a{
    color: #DDDDDD;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    text-decoration: none;
}

.contact-info-list li .fas {
    color: #949494; /* Yellow icon */
    font-size: 1.1rem;
    width: 20px; /* Give icons a fixed width for alignment */
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.social-icons a {
    color: #EEEEEE;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background-color: #949494; /* Teal background on hover */
    border-color: #949494;
    color: #FFFFFF;
    transform: translateY(-3px); /* Slight lift */
}

.footer-bottom {
    background-color: #1a1e24; /* Even darker background for bottom bar */
    color: #AAAAAA;
    font-size: 0.85rem;
    font-family: 'Roboto', sans-serif;
}

.footer-bottom a{
    text-decoration: none;
}

/* Ensure sections below the fixed navbar start correctly */
/* This is a general adjustment, keep if needed from previous steps */
body {
    padding-top: 70px; /* Adjust based on your navbar height */
}

/* Remove default Bootstrap button styles if they conflict */
.btn-primary {
    /* Keep your existing .btn-primary styles */
    background-color: #3263dc;
    border-color: #3263dc;
}
.btn-primary:hover {
    background-color: #1d38e8;
    border-color: #1d38e8;
}

/* Override previous footer styles if any */
footer.bg-dark {
    background-color: transparent !important; /* To ensure the new footer takes precedence */
    color: initial;
    padding: 0;
}

/* --- New Section: Partners and Testimonials Styling --- */
#partners-testimonials {
    background-color: #f8f8f8; /* Light background as in the image */
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    position: relative;
    display: inline-block; /* Allows underline to be positioned relative to text */
}

.section-title .underline {
    position: absolute;
    bottom: -10px; /* Position below the text */
    left: 0;
    width: 60px; /* Length of the underline */
    height: 4px; /* Thickness of the underline */
    background-color: #949494; /* Yellow color from the image */
}

.partner-logo {
    max-height: 80px; /* Limit height of logos */
    width: auto; /* Maintain aspect ratio */
    filter: grayscale(100%); /* Make logos grayscale */
    opacity: 0.7; /* Slightly dim them */
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%); /* Color on hover */
    opacity: 1; /* Full opacity on hover */
    transform: scale(1.05); /* Slight enlarge on hover */
}

.testimonial-card {
    background-color: #FFFFFF; /* White background for the card */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Soft shadow */
    border-radius: 10px;
    padding: 30px;
    position: relative;
    margin-bottom: 20px;
}

.testimonial-text p {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 0;
}

.client-avatar {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 3px solid #00ADB5; /* Teal border for avatar */
}

.testimonial-footer h5 {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    color: #333;
    font-size: 1.1rem;
}

.testimonial-footer p.text-muted {
    font-size: 0.9rem;
    color: #777 !important;
}

.testimonial-rating .star {
    color: #FFC107; /* Yellow stars */
    font-size: 1.2rem;
}

.testimonial-nav-btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: #ddd;
    color: #555;
    transition: all 0.3s ease;
}

.testimonial-nav-btn:hover {
    background-color: #949494;
    border-color: #949494;
    color: #fff;
}

/* Hide all testimonial items by default */
.testimonial-item {
    display: none;
    animation: fadein 0.5s; /* Optional: add a fade-in animation */
}

/* Show only the active testimonial item */
.testimonial-item.active {
    display: block;
}

/* Optional: Fade-in animation for testimonials */
@keyframes fadein {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- GALLERY MASONRY LAYOUT --- */

/* 1. Define the grid container using CSS Columns */
.gallery-grid {
    /* Define 3 columns on large screens, with a 1.5rem gap */
    column-count: 3;
    column-gap: 1.5rem; 
    
    /* Ensure no text/content runs across the columns */
    -webkit-column-break-inside: avoid;
    break-inside: avoid-column;
    padding: 0 15px; /* Adjust container padding */
}

/* 2. Style each item */
.gallery-item {
    /* Prevent the image from being broken across columns */
    break-inside: avoid; 
    margin-bottom: 1.5rem; /* Consistent vertical spacing between items */
    transition: transform 0.3s ease;
}

/* 3. Style the image itself */
.gallery-item img {
    width: 100%; /* Image fills its column space */
    height: auto;
    display: block;
    border-radius: 8px; /* Consistent subtle rounding */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
}

.gallery-item:hover {
    transform: scale(1.01);
}

/* --- Responsive Adjustments for Masonry --- */
@media (max-width: 992px) {
    .gallery-grid {
        column-count: 2; /* Two columns on tablets */
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        column-count: 1; /* Single column on small phones */
    }
}

/* Initial state for gallery items: hidden and slightly offset */
.gallery-item {
    /* (Keep your existing styles like break-inside: avoid and margin-bottom) */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    cursor: pointer;
}

/* State when the item is visible on screen */
.gallery-item.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* --- ABOUT SECTION STYLING --- */

/* Adjust the main section padding */
#about {
    padding-top: 6rem; /* More generous top padding */
    padding-bottom: 6rem; /* More generous bottom padding */
    background-color: var(--color-light); /* Use your defined light background color */
}

/* Specific styling for the section title in About Us */
#about .section-title {
    text-align: left; /* Override global centering */
    margin-bottom: 2rem; /* Adjusted spacing */
}

#about .section-title .underline-left {
    display: block;
    width: 80px; 
    height: 4px;
    background-color: var(--color-primary);
    margin-top: 10px;
    position: relative;
    left: 0;
    transform: none;
    border-radius: 2px;
}


.about-illustration {
    max-width: 90%; /* Ensure illustration scales well */
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.1));
    border-radius: 10px;
}

.about-content-col p {
    color: var(--color-text); /* Use defined text color */
    line-height: 1.8; /* Better readability */
    margin-bottom: 1.5rem; /* Consistent paragraph spacing */
}

.about-content-col p.lead {
    font-size: 1.25rem; /* Larger font for the introductory paragraph */
    font-weight: 400; /* Slightly bolder for lead */
    color: var(--color-heading); /* Make lead paragraph stand out more */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 767.98px) {
    .about-image-col {
        order: 2; /* Puts the image below the text on small screens */
    }
    .about-content-col {
        order: 1; /* Puts the text above the image on small screens */
        text-align: center; /* Center text on small screens */
        margin-bottom: 2rem; /* Add space between text and image */
    }
    #about .section-title {
        text-align: center; /* Center title on small screens */
    }
    #about .section-title .underline-left {
        left: 50%;
        transform: translateX(-50%); /* Center underline on small screens */
    }
    .about-illustration {
        max-width: 70%; /* Smaller illustration on mobile */
    }
}

/* --- SERVICES SECTION STYLING --- */

.service-grid {
    padding-top: 20px;
}

.service-card {
    /* Base styling for the card container */
    background-color: #FFFFFF;
    padding: 30px 25px;
    border-radius: 12px;
    text-align: center;
    min-height: 250px; /* Ensure consistent minimum height */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border: 1px solid #EAEAEA; /* Subtle silver border */
}

.service-card:hover {
    transform: translateY(-8px); /* Modern lift effect */
    box-shadow: 0 10px 25px rgba(51, 51, 51, 0.15);
    border-color:0 10px 25px rgba(146, 145, 145, 0.15); /* Highlight border on hover */
}

/* Icon Container Styling (The big circle background) */
.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    
    /* Background and border using cool tones */
    background-color: var(--color-light); /* Light silver background */
    border: 2px solid #4d4e4e;
    color: var(--color-primary); /* Primary accent color for the icon */
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    /* Reverse the colors on hover for a pop effect */
    background-color: var(--color-primary);
    color: #6d6b6b;
    border-color: #00ADB5;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 15px;
}

.service-text {
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.6;
}