/* Global Styles */
:root {
    --primary-color: #1c3f60;
    --secondary-color: #2c5580;
    --dark-color: #152e47;
    --light-color: #ffffff;
    --accent-color: #3a6c9f;
    --font-main: 'Montserrat', sans-serif;
    --transition-speed: 0.3s;
    --primary-bg-color: #f9fafb;
    --text-color: #333;
    --text-color-light: #666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden; /* Only prevent horizontal scrolling */
}

/* Specific style for when preloader is active */
body.preload-active {
    overflow: hidden;
}

/* Style for when preload is complete */
body.loaded {
    overflow-x: hidden;
    overflow-y: auto; /* Explicitly enable vertical scrolling */
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Container */
.container {
    width: 92%; /* More balanced width - not too narrow, not too wide */
    max-width: 1900px; /* More moderate max width */
    margin: 0 auto;
    padding: 0 20px; /* Restored padding */
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 45px 5%; /* Increased padding from 35px to 45px to make the bar thicker */
    background-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: padding 0.4s ease, background-color 0.4s ease; /* Slightly slower transition */
}

.navbar.scrolled {
    padding: 25px 5%; /* Also increased the scrolled state padding from 20px to 25px */
    background-color: rgba(28, 63, 96, 0.95);
    backdrop-filter: blur(10px);
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    transition: all 0.4s ease; /* Match transition timing */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 65px; /* Fixed height to match the logo size */
}

.logo img {
    max-height: 65px; /* Increased from 50px to 65px to make the logo bigger */
    width: auto;
    transition: max-height 0.4s ease;
}

.navbar.scrolled .logo {
    height: 50px; /* Match the new logo size when scrolled */
}

/* Navigation Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.navbar.scrolled .logo img {
    max-height: 50px; /* Also increased from 40px to 50px for the scrolled state */
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 18px;
    cursor: pointer;
    position: absolute;
    left: 30px;
    z-index: 1002; /* Increased z-index */
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--light-color);
    margin: 0;
    transition: all 0.3s ease;
}

/* Completely revamped sidenav */
.sidenav {
    height: 100vh;
    width: 300px; /* Fixed width */
    position: fixed;
    top: 0;
    left: -300px; /* Start off-screen */
    background-color: var(--primary-color); /* Changed from rgba(21, 46, 71, 0.98) to var(--primary-color) */
    overflow-x: hidden;
    transition: left 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1001; /* Higher than navbar */
    padding-top: 80px; /* Keep the reduced padding */
    padding-bottom: 20px; /* Keep bottom padding */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    overflow: hidden; /* Revert to hidden to stop flickering */
    display: flex; /* Add flex display */
    flex-direction: column; /* Stack children vertically */
    justify-content: space-between; /* Revert to space-between */
}

.sidenav.active {
    left: 0; /* Slide in from the left */
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 40px;
}

.nav-links a {
    color: var(--light-color);
    font-weight: 500;
    padding: 4px 0;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
}

.nav-links a:hover {
    color: #fff;
    padding-left: 10px;
}

/* Added sidenav contact section styles */
.sidenav-contact {
    padding: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto; /* Push to bottom of sidenav */
}

.sidenav-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-phone, 
.contact-email {
    color: var(--light-color);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-phone:before {
    content: '\260E';
    font-size: 1.1rem;
}

.contact-email:before {
    content: '\2709';
    font-size: 1.1rem;
}

.contact-phone:hover, 
.contact-email:hover {
    color: #fff;
    padding-left: 5px;
}

.sidenav-social {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.sidenav-social .social-icon {
    color: rgba(255, 255, 255, 0.7);
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sidenav-social .social-icon:hover {
    color: #fff;
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
}

.customer-login-btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background-color: transparent;
    color: var(--light-color);
    border: 2px solid var(--light-color);
    border-radius: 3px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
}

.customer-login-btn:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: flex-end; /* Aligns at bottom */
    justify-content: flex-start; /* Starts from left */
    color: white;
    padding-bottom: 0;
    margin-top: 0;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.85);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4));
    z-index: -1;
}

.hero-content {
    z-index: 1;
    width: auto;
    max-width: 600px;
    padding: 0;
    animation: fadeIn 1.5s ease-out;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: none; /* Removed gradient background */
}

.hero-content h1 {
    font-size: 3.5rem; /* Larger font size now that it's on its own line */
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.2;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px; /* Add space between heading and paragraph */
}

.hero-content p {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 750px; /* Increased from 600px */
    margin: 0;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Services Section */
.services {
    width: 100%;
    padding: 50px 0 0 0;
    background-color: var(--light-color);
    margin-bottom: 50px;
}

.services-container {
    display: flex;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    gap: 2px;
    justify-content: center;
}

.service-item {
    flex: 1;
    position: relative;
    overflow: hidden;
    height: 90vh;
    display: flex;
    flex-direction: column;
    transition: all 0.5s ease;
}

.service-image-container {
    flex: 1;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
    filter: brightness(0.95);
}



.service-item h3 {
    position: absolute;
    bottom: 60px;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    padding: 0;
    z-index: 2;
    opacity: 0.95;
    transition: all 0.5s ease;
}

.service-item:hover h3 {
    bottom: 70px;
    letter-spacing: 4px;
}

/* Service item overlay for better text visibility */
.service-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.7));
    z-index: 1;
    transition: opacity 0.5s ease;
}

.service-item:hover .service-image-container::after {
    opacity: 0.9;
}

/* About Section */
.about {
    padding: 120px 0;
    background-color: #f9fafb;
    position: relative;
}

.about-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
    padding-right: 20px;
}

.about-image {
    flex: 2;
    height: 600px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.about-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(28, 63, 96, 0.2), transparent);
    z-index: 1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: 0.5px;
    font-weight: 500; /* Making font weight consistent */
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0; /* Changed from 60px to 0 to hide the line */
    height: 0; /* Changed from 3px to 0 to hide the line */
    background-color: var(--primary-color);
}

.about-story {
    margin-bottom: 50px;
}

.about-story h3 {
    font-size: 1.7rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
}

.about-story p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 30px;
    color: #555;
    font-weight: 300;
}

.about-company h3 {
    font-size: 1.7rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 500;
}

.about-company p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #555;
    font-weight: 300;
}

/* Projects Section renamed to Our Services */
.projects {
    display: none; /* Hide the old projects section */
}

/* New Our Services Section */
.our-services {
    padding: 120px 0 0 0;
    background-color: #f9fafb;
    overflow: hidden;
}

.our-services-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.our-services-container .section-title {
    width: 90%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    margin: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.05);
}

.service-card {
    background-color: white;
    overflow: hidden;
    position: relative;
    border-radius: 0;
    box-shadow: none;
    height: 550px;
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.service-card:hover {
    transform: translateY(-5px);
    z-index: 2;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.service-card-image {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.service-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.8));
    z-index: 1;
    transition: all 0.5s ease;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    filter: saturate(1.05);
}

.service-card:hover .service-card-image img {
    transform: scale(1.05);
}

.service-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px;
    z-index: 2;
    color: white;
    transition: all 0.5s ease;
}

.service-card:hover .service-card-content {
    bottom: 10px;
}

.service-card-content h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 15px;
    transition: all 0.5s ease;
}

.service-card-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: white;
    transition: width 0.5s ease;
}

.service-card:hover .service-card-content h3::after {
    width: 80px;
}

.service-card-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 90%;
    font-weight: 300;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    transition-delay: 0.1s;
}

.service-card:hover .service-card-content p {
    opacity: 1;
    transform: translateY(0);
}

/* Testimonials Section */
.testimonials {
    padding: 120px 0;
    background-color: #f9fafb;
    position: relative;
}

.testimonials-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background-color: white;
    padding: 50px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    font-style: italic;
    margin-bottom: 30px;
    font-weight: 300;
}

.testimonial-author {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.testimonial-author h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.testimonial-author span {
    font-size: 0.9rem;
    color: #777;
    font-weight: 400;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 4rem 0 2rem;
    position: relative;
    min-height: 33vh;
}

/* Rest of footer styles */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-left {
    align-items: flex-start;
    background-color: transparent;
}

.footer-center {
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

.footer-right {
    align-items: flex-end;
    text-align: right;
    background-color: transparent;
}

/* Left column - Address and copyright */
.footer-left {
    background-color: var(--primary-color);
    /* Remove any border that might cause visual separation */
}

.footer-address h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 25px;
    letter-spacing: 1px;
    position: relative;
}

.footer-address h3:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    left: 0;
    bottom: -12px;
}

.footer-address p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
}

.footer-copyright {
    margin-top: auto;
}

.footer-copyright p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

/* Center column - Logo */
.footer-center {
    background-color: var(--primary-color);
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-logo {
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.footer-logo img {
    max-width: 280px; /* Increased from 200px to make the logo bigger */
    width: 100%; /* Ensure responsive scaling */
    height: auto;
    filter: brightness(0) invert(1); /* Make logo white */
}

/* Right column - Contact and social */
.footer-right {
    background-color: var(--primary-color);
}

.footer-contact {
    margin-bottom: auto;
}

.footer-contact h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 25px;
    letter-spacing: 1px;
    position: relative;
}

.footer-contact h3:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    left: 0;
    bottom: -12px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.social-icon {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    color: white;
    transform: translateY(-3px);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out, visibility 0s linear 0.9s;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    opacity: 0; 
    transform: scale(0.9);
    animation: fadeInLogo 1s ease forwards;
}

.preloader-logo {
    max-width: 300px;
    height: auto;
    display: block; /* Ensures the image is displayed as a block element */
    margin: 0 auto;
}

.preloader-tagline {
    color: white;
    margin-top: 15px;
    font-size: 1.1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
    opacity: 0;
    animation: fadeInTagline 1s ease forwards;
    animation-delay: 0.5s;
}

@keyframes fadeInTagline {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLogo {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Instagram Section */
.instagram-section {
    padding: 80px 0;
    background-color: white;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.instagram-container {
    width: 100%;
    max-width: 100%; /* Changed from 1400px to 100% to allow full width */
    margin: 0 auto;
    padding: 0; /* Removed padding to allow edge-to-edge display */
}

.instagram-header {
    text-align: center;
    margin-bottom: 40px;
    width: 90%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.instagram-label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #666;
}

.instagram-handle {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.instagram-gallery {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 0; /* Removed padding to ensure edge-to-edge */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    width: 100vw; /* Use viewport width */
    margin-left: calc(-50vw + 50%); /* Center the gallery and extend to edges */
    padding-left: 15px; /* Small padding on left */
    padding-right: 15px; /* Small padding on right */
    /* Hide scrollbar for Chrome, Safari and Opera */
    scrollbar-width: none; /* Firefox */
}

.instagram-gallery::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
}

.instagram-item {
    flex: 0 0 280px;
    height: 400px; /* Increased height from 280px to 400px to make images more vertical */
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.instagram-item:hover {
    transform: translateY(-10px);
}

.instagram-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
}

/* For screens smaller than 768px */
@media (max-width: 768px) {
    .instagram-handle {
        font-size: 2rem;
    }
    
    .instagram-item {
        flex: 0 0 200px; /* Reduced width but maintaining vertical aspect */
        height: 320px; /* Still keeping vertical aspect ratio */
    }
}

/* For screens smaller than 480px */
@media (max-width: 480px) {
    .instagram-section {
        padding: 60px 0;
    }
    
    .instagram-item {
        flex: 0 0 160px; /* Reduced width for small screens */
        height: 260px; /* Still keeping vertical aspect ratio */
    }
}

/* Project Categories Menu */
.project-categories {
    padding: 80px 0;
    background-color: var(--primary-bg-color);
}

.category-menu-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.category-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.category-item {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color var(--transition-speed) ease;
    cursor: pointer;
    padding: 10px 0;
    position: relative;
}

.category-item:hover {
    color: var(--secondary-color);
}

.category-title {
    display: inline-block;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-speed) ease;
}

.category-item:hover .category-title::after {
    width: 100%;
}

.category-separator {
    color: var(--text-color-light);
    opacity: 0.5;
}

.category-image-preview {
    width: 100%;
    max-width: 800px;
    height: 450px;
    overflow: hidden;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    position: relative;
}

.category-image-preview.active {
    opacity: 1;
}

.category-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* No border radius for sleek, non-rounded photos */
    display: block;
    transition: transform var(--transition-speed) ease;
}

.category-item:hover + .category-image-preview img {
    transform: scale(1.05);
}

/* Quote Button / Inquire Button Styling */
.quote-button {
    position: absolute;
    right: 30px;
    z-index: 1002;
}

.cta-button {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 3px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid var(--light-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: var(--light-color);
}

.navbar.scrolled .cta-button {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* What We Do Section */
.what-we-do {
    padding: 80px 0;
    background-color: var(--light-color);
}

.what-we-do-container {
    max-width: 1400px; /* Consistent width with other sections */
    width: 90%;
    margin: 0 auto;
    padding: 0;
}

.what-we-do .section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.categories-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: 100%;
}

.category-tabs {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #e0e0e0;
}

.category-tab {
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color-light);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin: 0 10px;
}

.category-tab:hover {
    color: var(--secondary-color);
}

.category-tab.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.category-content {
    position: relative;
    min-height: 500px;
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.category-detail {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    flex-direction: row;
    gap: 80px; /* Balanced spacing */
    padding: 40px 0;
}

.category-detail.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.category-image {
    flex: 1.3;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.category-image img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: 0;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.category-image:hover img {
    transform: scale(1.03);
}

.category-description {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
}

.category-description h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 15px;
}

.category-description h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.category-description p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color-light);
    margin-bottom: 30px;
    font-weight: 300;
}

.see-more-link {
    align-self: flex-start;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    position: relative;
    padding: 0;
    background: transparent;
    border: none;
    display: inline-block;
}

.see-more-link:hover {
    color: var(--secondary-color);
}

.see-more-link:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.see-more-link:hover:after {
    width: 100%;
}

/* About Page Styles */
.about-hero {
    height: 100vh;
    min-height: 100vh;
    margin-bottom: 0;
    padding-top: 0;
    margin-top: 0; /* Ensuring no top margin */
}

.about-content {
    padding: 6rem 0;
    margin-top: 0; /* Changed from 60px to 0 */
}

.about-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-main {
    margin-bottom: 5rem;
}

.about-text-block {
    max-width: 800px;
    margin: 0 auto;
}

.about-lead-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-values {
    margin-bottom: 5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background-color: #f8f8f8;
    padding: 2rem;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.value-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.team-section {
    margin-bottom: 5rem;
}

.team-intro {
    max-width: 800px;
    margin: 0 auto; /* Changed to center the paragraph */
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: center; /* Added to ensure text is centered */
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.team-member {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.team-member-photo {
    height: 400px;
    width: 300px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    object-fit: cover;
}

.team-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.team-member-photo:hover img {
    transform: scale(1.05);
}

.team-member-card {
    text-align: left; /* Changed from center to left */
    transition: all 0.3s ease;
}

.team-member-card:hover {
    transform: translateY(-10px);
}

.team-member-name {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 5px;
    text-align: left; /* Ensure name is left-aligned */
}

.team-member-title {
    font-size: 1rem;
    color: var(--text-color-light);
    font-weight: 400;
    text-align: left; /* Ensure title is left-aligned */
}

/* Team Member Modal Popup */
.team-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.team-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.team-modal {
    width: 800px;
    height: 600px;
    max-width: 90%;
    max-height: 80vh;
    background-color: white;
    display: flex;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.team-modal-backdrop.active .team-modal {
    transform: translateY(0);
    opacity: 1;
}

.team-modal-photo {
    flex: 0.8; /* Decreased from 1 to make the photo section narrower */
    height: 100%;
    overflow: hidden;
    position: relative;
}

.team-modal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* Ensure consistent positioning with the thumbnail view */
}

.team-modal-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.team-modal-header {
    margin-bottom: 30px;
}

.team-modal-name {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 500;
    line-height: 1.2;
}

.team-modal-title {
    font-size: 1.2rem;
    color: var(--text-color-light);
    margin-bottom: 25px;
}

.team-modal-social {
    display: flex;
    margin-bottom: 30px;
}

.team-modal-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background-color: #0077b5;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.team-modal-linkedin:hover {
    background-color: #005582;
    color: white;
}

.team-modal-linkedin svg {
    width: 18px;
    height: 18px;
}

.team-modal-bio {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 30px;
}

.team-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0;
    background-color: white;
    cursor: pointer;
    z-index: 9001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.team-modal-close:hover {
    background-color: #f5f5f5;
}

.team-modal-close::before,
.team-modal-close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: #333;
}

.team-modal-close::before {
    transform: rotate(45deg);
}

.team-modal-close::after {
    transform: rotate(-45deg);
}

/* Make team member photos clickable */
.team-member-photo {
    cursor: pointer;
}

/* Responsive modal adjustments */
@media (max-width: 992px) {
    .team-modal {
        flex-direction: column;
        height: auto;
        max-height: 85vh;
    }
    
    .team-modal-photo {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .team-modal-photo {
        height: 250px;
    }
    
    .team-modal-content {
        padding: 25px;
    }
    
    .team-modal-name {
        font-size: 1.8rem;
    }
}

/* About Page Tabs and Content */
.about-section {
    background-color: var(--light-color);
    padding-top: 0; /* Removed the 120px padding to eliminate gap */
}

.about-tabs-container {
    background-color: var(--light-color);
    width: 100%;
    padding: 20px 0;
    position: relative;
}

.about-tabs {
    display: flex;
    justify-content: center;
    max-width: 1900px; /* More moderate width */
    width: 92%; /* More balanced */
    margin: 0 auto;
    position: relative;
    border-bottom: none;
}

.tab-item {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color-light);
    margin: 0 30px;
    padding: 10px 0;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border: none;
    background-color: transparent;
}

.tab-item:hover {
    color: var(--primary-color);
}

.tab-item.active {
    color: var(--primary-color);
}

.tab-item.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.tab-separator {
    width: 98%;
    height: 1px;
    background-color: #e0e0e0;
    margin: 0 auto;
    max-width: 2200px;
}

.about-content {
    padding: 60px 0;
    margin-top: 0;
}

.about-content .container {
    max-width: 1900px; /* More moderate width */
    width: 92%;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
}

/* Tab Content Styles */
.tab-content {
    display: none;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    max-width: 100%;
}

.tab-content.active {
    display: block;
    opacity: 1;
    visibility: visible;
    position: relative;
    width: 100%;
}

/* Our Story Tab Content Styles */
.story-hero-section {
    margin-bottom: 80px;
}

.story-content-container {
    display: flex;
    gap: 60px;
    align-items: center;
}

.story-image {
    flex: 1;
    height: 600px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-text {
    flex: 1;
}

.about-lead-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 30px;
    line-height: 1.5;
}

.story-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color-light);
}

/* Offset Photos Grid */
.offset-photos-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 20px;
    margin: 80px 0;
}

.photo-item {
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.photo-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-item-1 {
    grid-column: 1 / 7;
    grid-row: 1 / 2;
}

.photo-item-2 {
    grid-column: 7 / 13;
    grid-row: 1 / 2;
}

.photo-item-3 {
    grid-column: 1 / 5;
    grid-row: 2 / 3;
}

.photo-item-4 {
    grid-column: 5 / 13;
    grid-row: 2 / 3;
}

/* Full-width image in story tab */
.full-width-image {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 600px;
    position: relative;
    overflow: hidden;
}

.full-width-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px;
    color: white;
}

.image-overlay h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.image-overlay p {
    font-size: 1.5rem;
    font-weight: 300;
}

/* Meet the Team Tab Content */
.team-header {
    text-align: center;
    margin-bottom: 60px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 60px;
}

.team-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: center;
}

.team-category {
    margin-bottom: 80px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-category-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
    font-weight: 500;
    width: 100%;
}

.team-members {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.team-member-card {
    flex: 0 0 300px;
    text-align: left;
    transition: transform 0.3s ease;
    margin-bottom: 30px;
}

.team-member-card:hover {
    transform: translateY(-10px);
}

.team-member-photo {
    height: 400px;
    width: 300px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    object-fit: cover;
}

.team-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.team-member-photo:hover img {
    transform: scale(1.05);
}

.team-member-name {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 5px;
    text-align: left; /* Ensure name is left-aligned */
}

.team-member-title {
    font-size: 1rem;
    color: var(--text-color-light);
    font-weight: 400;
    text-align: left; /* Ensure title is left-aligned */
}

/* Where We Work Tab Content */
.section-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.work-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color-light);
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}



.location-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}





/* Partners Tab Content */
.certifications-section,
.partners-section {
    margin-bottom: 80px;
}

.certifications-section p,
.partners-section p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color-light);
}

.certifications-grid,
.partners-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.certification-item,
.partner-item {
    flex: 0 0 280px;
    text-align: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.certification-item:hover,
.partner-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Partners Tab Content - New Scrapbook Style */
.partners-scrapbook {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    gap: 30px;
    margin: 40px 0;
    position: relative;
    max-width: 1000px;
    margin: 40px auto;
}

.partner-text {
    grid-column: 1;
    grid-row: 1;
    padding: 30px;
    background-color: #f9f9f9;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 5px;
    z-index: 1;
}

.partner-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    font-weight: 500;
}

.partner-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
}

.partner-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 0; /* Removed padding */
    border-radius: 0; /* Removed border radius */
    box-shadow: none; /* Removed shadow */
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.partner-image:hover {
    transform: none; /* Removed hover transform */
    box-shadow: none; /* Removed hover shadow */
}

.partner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Scrapbook positioning without rotation */
.partner-image-1 {
    grid-column: 2;
    grid-row: 1;
    margin-top: 15px;
}

.partner-image-2 {
    grid-column: 1;
    grid-row: 2;
    margin-left: 30px;
}

.partner-image-3 {
    grid-column: 2;
    grid-row: 2;
    margin-top: 15px;
    margin-left: -15px;
}

/* Responsive adjustments for scrapbook layout */
@media (max-width: 992px) {
    .partners-scrapbook {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .partner-text, 
    .partner-image-1,
    .partner-image-2,
    .partner-image-3 {
        grid-column: 1;
        margin: 0;
    }
    
    .partner-text {
        grid-row: 1;
    }
    
    .partner-image-1 {
        grid-row: 2;
    }
    
    .partner-image-2 {
        grid-row: 3;
    }
    
    .partner-image-3 {
        grid-row: 4;
    }
}

/* Partner Form Styles */
.partner-form-container {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 20px;
}

.partner-form-header {
    margin-bottom: 40px;
    text-align: center;
}

.partner-form-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 500;
}

.partner-form-header p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color-light);
    max-width: 700px;
    margin: 0 auto;
}

.partner-application-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.form-row.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    width: 100%;
}

.form-group label {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(28, 63, 96, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.trades-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.trades-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trade-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trade-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.trade-checkbox label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-color);
    cursor: pointer;
}

.radio-group {
    display: flex;
    gap: 30px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-option label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--text-color);
    cursor: pointer;
}

.captcha-group {
    margin: 15px 0;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.captcha-image {
    flex: 0 0 200px;
    height: 70px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.captcha-image img {
    max-width: 100%;
    max-height: 100%;
}

.captcha-input {
    flex: 1;
}

.submit-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    align-self: center;
    width: 100%;
    max-width: 400px;
}

.submit-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Process Page Styles */
.process-hero-section {
    margin-bottom: 80px;
}

.process-content-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.process-text {
    flex: 1;
    padding-right: 20px;
}

.process-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 500;
    line-height: 1.2;
}

.process-lead {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 25px;
    line-height: 1.5;
}

.process-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color-light);
    margin-bottom: 20px;
}

.process-image {
    flex: 1;
    height: 650px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.process-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}



/* Process Photos Grid - Match content width for consistency */
.process-photos-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 400px;
    gap: 30px;
    margin: 80px auto;
    max-width: 1200px; /* Match process-content-container width */
    width: 90%; /* Ensure it respects container padding */
}

.process-photo-item {
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}



.process-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}



.process-photo-1 {
    grid-column: 1 / 7;
    grid-row: 1;
}

.process-photo-2 {
    grid-column: 7 / 13;
    grid-row: 1;
}

.process-photo-3 {
    grid-column: 2 / 12;
    grid-row: 2;
    /* Removing margin-top that caused overlap */
    margin-top: 0;
}

/* Process page specific layout alignment - make top photos align with bottom photo width */
.about-section .process-photos-grid .process-photo-1 {
    grid-column: 2 / 7 !important; /* Left half of bottom photo width (2 to 7) */
}

.about-section .process-photos-grid .process-photo-2 {
    grid-column: 7 / 12 !important; /* Right half of bottom photo width (7 to 12) */
}

.about-section .process-photos-grid .process-photo-3 {
    grid-column: 2 / 12 !important; /* Keep bottom photo positioning */
}

/* Process Accordion Section - Full screen width and bigger */
.process-accordion-section {
    background-color: #f5f5f5;
    padding: 100px 0;
    margin: 100px 0 0; /* Changed bottom margin from 80px to 0 to remove the white gap */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.process-accordion-container {
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
    padding: 0;
}

.accordion-section-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    font-weight: 500;
    position: relative;
}

.accordion-section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

.process-accordion-content {
    display: flex;
    gap: 80px;
}

.accordion-items {
    flex: 1.4;
}

.accordion-item {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.accordion-item:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.accordion-item.active {
    background-color: rgba(255, 255, 255, 0.7);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion-header h4 {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.accordion-item:hover .accordion-header h4 {
    color: var(--secondary-color);
}

.accordion-icon {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    padding: 0 25px;
    opacity: 0;
}

.accordion-item.active .accordion-body {
    max-height: 500px;
    padding: 0 25px 40px;
    opacity: 1;
}

.accordion-body p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color-light);
}

.accordion-image {
    flex: 1;
    height: 650px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.accordion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.accordion-image:hover img {
    transform: scale(1.05);
}

/* Projects Grid Layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.project-tile {
    position: relative;
    height: 400px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    text-decoration: none; /* Ensure no underline on the text */
}

.project-tile:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.4s ease, transform 1s ease;
}

.project-tile:hover .project-image {
    filter: blur(3px) brightness(0.7);
    transform: scale(1.05);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    color: white;
    transform: translateY(80px);
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0; /* Hide text completely when not hovering */
}

.project-tile:hover .project-info {
    transform: translateY(0);
    opacity: 1;
}

.project-title {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.3;
}

.project-location {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
}

.project-meta {
    display: none; /* Hide the meta tag completely */
    opacity: 0;
    visibility: hidden;
}

.project-tile:hover .project-meta {
    display: none; /* Keep it hidden even on hover */
    opacity: 0;
    visibility: hidden;
}

/* Project Detail Page Styles */
.project-hero {
    height: 70vh;
          position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.project-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    z-index: -1;
}

.project-hero-content {
    width: 80%;
    max-width: 1200px;
    padding: 40px;
    color: white;
    text-align: center;
}

.project-hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.2;
}

.project-hero-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 30px;
}

.project-hero-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.project-detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detail-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    opacity: 0.8;
}

.detail-value {
    font-size: 1.2rem;
    font-weight: 500;
}

.project-content {
    padding: 80px 0;
}

.project-section {
    margin-bottom: 80px;
}

.project-section:last-child {
    margin-bottom: 0;
}

.project-overview {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.project-description {
    flex: 1;
}

.project-description h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 500;
    line-height: 1.2;
}

.project-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color-light);
    margin-bottom: 20px;
}

.project-features {
    flex: 1;
    background-color: #f9f9f9;
    padding: 40px;
}

.project-features h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 500;
}

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

.features-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: var(--text-color-light);
}

.features-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.project-gallery {
    margin: 80px 0;
}

.gallery-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
    font-weight: 500;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 300px;
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.gallery-item-1 {
    grid-column: 1 / 7;
    grid-row: 1 / 3;
}

.gallery-item-2 {
    grid-column: 7 / 13;
    grid-row: 1 / 2;
}

.gallery-item-3 {
    grid-column: 7 / 13;
    grid-row: 2 / 3;
}

.gallery-item-4 {
    grid-column: 1 / 5;
    grid-row: 3 / 4;
}

.gallery-item-5 {
    grid-column: 5 / 13;
    grid-row: 3 / 4;
}

.project-testimonial {
    background-color: #f9f9f9;
    padding: 60px;
    text-align: center;
    margin: 60px 0;
}

.testimonial-quote {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.7;
    position: relative;
}

.testimonial-quote:before,
.testimonial-quote:after {
    content: '"';
    font-size: 4rem;
    line-height: 0;
    color: rgba(28, 63, 96, 0.1);
    position: absolute;
}

.testimonial-quote:before {
    left: -40px;
    top: 30px;
}

.testimonial-quote:after {
    right: -40px;
    bottom: -10px;
}

.testimonial-author {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
}

.project-cta {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 80px 0;
    margin: 80px 0 0;
}

.project-cta h2 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.project-cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-button-large {
    display: inline-block;
    padding: 15px 40px;
    background-color: transparent;
    color: white;
    border: 2px solid white;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.cta-button-large:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-5px);
}

.project-navigation {
    display: flex;
    justify-content: space-between;
    margin: 80px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.prev-project, 
.next-project {
    font-size: 1.1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.prev-project:hover,
.next-project:hover {
    transform: translateX(-5px);
}

.next-project:hover {
    transform: translateX(5px);
}

.prev-project:before {
    content: '←';
    margin-right: 10px;
}

.next-project:after {
    content: '→';
    margin-left: 10px;
}

/* Responsive adjustments for project pages */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-overview {
        flex-direction: column;
    }
    
    .project-features {
        width: 100%;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
    }
    
    .project-hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-hero-content {
        padding: 20px;
        width: 95%;
    }
    
    .project-hero-title {
        font-size: 2.2rem;
    }
    
    .project-hero-subtitle {
        font-size: 1.4rem;
    }
    
    .project-hero-details {
        flex-direction: column;
        gap: 20px;
    }
}

/* Responsive styles for process photos grid */
@media (max-width: 1024px) {
    .process-photos-grid {
        max-width: 95%;
        gap: 20px;
        grid-auto-rows: 350px;
        margin: 60px auto;
    }
    
    /* Process page specific responsive - maintain proportional sizing */
    .about-section .process-photos-grid {
        grid-auto-rows: 500px !important; /* Proportionally smaller but still substantial */
    }
    
    .about-section .process-photo-item {
        height: 500px !important;
    }
    
    .about-section .process-image {
        height: 500px !important; /* Adjust hero image too for consistency */
    }
    
    .about-section .accordion-image {
        height: 500px !important;
    }
    
    /* Maintain alignment on tablets */
    .about-section .process-photo-1 {
        grid-column: 2 / 6.5 !important;
    }
    
    .about-section .process-photo-2 {
        grid-column: 6.5 / 12 !important;
    }
    
    /* Maintain alignment on tablets for process page */
    .about-section .process-photos-grid .process-photo-1 {
        grid-column: 2 / 7 !important;
        grid-row: 1 !important;
    }
    
    .about-section .process-photos-grid .process-photo-2 {
        grid-column: 7 / 12 !important;
        grid-row: 1 !important;
    }
    
    .about-section .process-photos-grid .process-photo-3 {
        grid-column: 2 / 12 !important;
        grid-row: 2 !important;
    }
    
    /* Only apply to homepage photos, not process page */
    #about .process-photo-1,
    #about .process-photo-2 {
        grid-column: 1 / 13;
        grid-row: auto;
    }
    
    .process-photo-3 {
        grid-column: 1 / 13;
        grid-row: auto;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .process-photos-grid {
        max-width: 100%;
        gap: 15px;
        grid-auto-rows: 300px;
        margin: 40px auto;
        padding: 0 20px;
    }
    
    /* Process page specific responsive */
    .about-section .process-photos-grid {
        grid-auto-rows: 400px !important; /* Maintain good size on mobile */
    }
    
    .about-section .process-photo-item {
        height: 400px !important;
        grid-column: 1 / 13 !important;
        margin-top: 0 !important;
    }
    
    .about-section .process-image {
        height: 400px !important;
    }
    
    .about-section .accordion-image {
        height: 400px !important;
    }
    
    /* Stack all photos vertically on mobile */
    .about-section .process-photos-grid .process-photo-1,
    .about-section .process-photos-grid .process-photo-2,
    .about-section .process-photos-grid .process-photo-3 {
        grid-column: 1 / 13 !important;
        grid-row: auto !important;
    }
    
    .process-photo-item {
        grid-column: 1 / 13 !important;
        margin-top: 0 !important;
    }
}

@media (max-width: 480px) {
    .process-photos-grid {
        gap: 10px;
        grid-auto-rows: 250px;
        margin: 30px auto;
        padding: 0 15px;
    }
    
    /* Process page specific responsive */
    .about-section .process-photos-grid {
        grid-auto-rows: 300px !important; /* Keep reasonable size on small screens */
    }
    
    .about-section .process-photo-item {
        height: 300px !important;
    }
    
    .about-section .process-image {
        height: 300px !important;
    }
    
    .about-section .accordion-image {
        height: 300px !important;
    }
}

/* Process page specific styles - Make all photos same size as hero photo */
/* Target only process.html by using body class or specific container */
.about-section .process-photos-grid {
    grid-auto-rows: 650px !important; /* Match process-image height */
}

.about-section .process-photo-item {
    height: 650px !important; /* Ensure consistent height */
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); /* Match process-image shadow */
}

.about-section .process-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease; /* Match process-image transition */
}



/* Ensure accordion images also match if they exist */
.about-section .accordion-image {
    height: 650px !important;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.about-section .accordion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.about-section .accordion-image:hover img {
    transform: scale(1.05);
}