/* --- Global Styles & Variables --- */
:root {
    /* New Color Scheme Variables */
    --color-primary-bg: #ffffff;        /* White background */
    --color-secondary-bg: #f8f9fa;      /* Light gray for alternate sections */
    --color-header-footer-bg: #000000;  /* Black for header and footer */
    --color-primary-text: #000000;      /* Black text */
    --color-secondary-text: #333333;    /* Dark gray for secondary text */
    --color-light-text: #ffffff;        /* White text for dark backgrounds */
    --color-accent-primary: #FE9900;    /* Primary orange for main accents */
    --color-accent-secondary: #FF6E01;  /* Secondary orange for hover states */
    --color-accent: #FE9900;            /* Default accent color (primary orange) */
    --color-border: #e0e0e0;            /* Light border color */
    --color-dark-border: #cccccc;       /* Darker border for contrast */

    /* Legacy variable mappings for compatibility */
    --color-dark-bg: var(--color-primary-bg);
    --color-dark-bg-alt: var(--color-secondary-bg);
    --color-medium-text: var(--color-secondary-text);
    --color-dark-heading: var(--color-primary-text);
    --bard-color-brand-text-gradient-stop-1: var(--color-accent-secondary);
    --bard-color-brand-text-gradient-stop-2: var(--color-accent-primary);
    --bard-color-brand-text-gradient-stop-3: var(--color-accent-secondary);
    --brand-gradient: var(--color-accent-primary);
    --button-primary-bg: var(--color-accent-primary);
    --button-primary-text: var(--color-primary-text);
    --button-primary-bg-hover: var(--color-accent-secondary);  /* Secondary orange for hover */

    /* Layout Variables */
    --font-primary: 'Poppins', sans-serif;
    --container-width: 1140px;
    --header-height: 70px;
    --border-radius: 8px;
    --outline-thickness: 2px;
}

/* Reset and Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body { font-family: var(--font-primary); line-height: 1.7; color: var(--color-primary-text); background-color: var(--color-primary-bg); overflow-x: hidden; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; width: 100%; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; margin-bottom: 0.8em; line-height: 1.3; color: var(--color-primary-text); }
h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
p { margin-bottom: 1em; color: var(--color-secondary-text); }
a { color: var(--color-primary-text); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--color-accent); }
ul { list-style: none; padding-left: 0; margin-bottom: 0; }
img { max-width: 100%; height: auto; display: block; }
.bg-light { background-color: var(--color-secondary-bg); }


/* --- Content Sections --- */
.content-section {
    padding: 100px 0;
}

/* --- Section Title Centering --- */
/* Increased specificity and ensuring width */
section .section-title {
    text-align: center !important; /* Use !important as a stronger measure if needed */
    margin-left: auto; /* Helps center block elements */
    margin-right: auto; /* Helps center block elements */
    margin-bottom: 1.5em; /* Consistent spacing below title */
    /* Max width can prevent overly long titles breaking weirdly */
    max-width: 800px;
}

/* --- Gradient Text --- */
.gradient-text {
    color: var(--color-accent);
    display: inline-block;
}

/* Header Styles */
.site-header { background-color: var(--color-header-footer-bg); border-bottom: 1px solid var(--color-dark-border); position: sticky; top: 0; z-index: 1000; height: var(--header-height); }
.header-container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo { font-size: 1.8rem; font-weight: 700; color: var(--color-light-text); text-decoration: none; flex-shrink: 0; }
.logo img { transition: opacity 0.3s ease; }
.logo:hover { color: var(--color-accent); }
.logo:hover img { opacity: 0.8; }
.main-nav { height: 100%; }
.main-nav .nav-list { display: flex; gap: 25px; height: 100%; align-items: center; }
.main-nav .nav-list li { display: flex; align-items: center; height: 100%; }
.main-nav .nav-list a { color: #f8f9fa; font-weight: 500; padding: 5px 0; position: relative; text-decoration: none; transition: color 0.3s ease; display: flex; align-items: center; height: 100%; font-size: 0.95rem; }
.main-nav .nav-list a:hover { color: var(--color-accent-primary); }
.main-nav .nav-list a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 15px; left: 0; background: var(--color-accent-primary); transition: width 0.3s ease; }
.main-nav .nav-list a:hover::after, .main-nav .nav-list a.active::after { width: 100%; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--color-light-text); cursor: pointer; padding: 8px; border-radius: 4px; transition: background-color 0.3s ease; }
.menu-toggle:hover { background-color: rgba(255, 255, 255, 0.1); }


/* Hero Section Styles */
.hero-section { padding: 80px 0; background-color: var(--color-primary-bg); color: var(--color-primary-text); position: relative; overflow: hidden; display: flex; align-items: center; min-height: calc(90vh - var(--header-height)); }
.hero-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(140deg, rgba(254, 153, 0, 0.05), rgba(255, 110, 1, 0.02), rgba(254, 153, 0, 0.08)); background-size: 300% 300%; animation: subtleGradientShift 15s ease infinite; z-index: 0; opacity: 0.7; }
@keyframes subtleGradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.hero-container-split { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }
.hero-content { text-align: left; animation: fadeInHero 1s ease-out forwards; opacity: 0; animation-delay: 0.2s; }
.hero-content h1 { font-size: 3.0rem; margin-bottom: 0.4em; }
.hero-content h2 { font-size: 1.6rem; font-weight: 400; margin-bottom: 1em; color: var(--color-secondary-text); }
.hero-content p { font-size: 1.1rem; margin-bottom: 1.5em; color: var(--color-primary-text); }
.hero-image { animation: fadeInHero 1s ease-out forwards; opacity: 0; animation-delay: 0.5s; text-align: center; }

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 400px;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.slider-btn {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s ease;
    pointer-events: all;
}

.slider-btn:hover {
    background-color: var(--color-accent-primary);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: var(--color-accent-primary);
    transform: scale(1.2);
}

/* Professional Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 2em;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--color-secondary-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(254, 153, 0, 0.9), rgba(255, 110, 1, 0.9));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    text-align: center;
    color: white;
    padding: 20px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-content {
    transform: translateY(0);
}

.gallery-content h4 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.gallery-content p {
    margin: 0 0 15px 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.gallery-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

/* Gallery Lightbox Styles */
.gallery-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: block;
    margin: auto;
}

.lightbox-content img.loaded {
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--color-accent-primary);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    pointer-events: none;
    z-index: 10001;
}

.lightbox-prev,
.lightbox-next {
    background-color: rgba(254, 153, 0, 0.8);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50px;
    font-size: 18px;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--color-accent-secondary);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Mobile Gallery Adjustments */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }

    .lightbox-content {
        padding: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }

    .lightbox-nav {
        padding: 0 10px;
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 12px 16px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-item {
        aspect-ratio: 1;
    }

    .gallery-content h4 {
        font-size: 1rem;
    }

    .gallery-content p {
        font-size: 0.8rem;
    }

    .lightbox-content img {
        max-height: 70vh;
    }
}
.hero-buttons { margin-top: 1.5em; justify-content: flex-start; gap: 15px; display: flex; flex-wrap: wrap;}
@keyframes fadeInHero { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ... (Keep About Section styles) ... */
/* ... (Keep Ethos Section styles) ... */
#ethos { }
.ethos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-top: 2em; }
.ethos-item { background-color: var(--color-secondary-bg); padding: 30px 20px; border-radius: var(--border-radius); text-align: center; border: 1px solid var(--color-border); transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; }
.ethos-item:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); }
.ethos-icon { margin-bottom: 1em; color: var(--color-accent); display: inline-block; }
.ethos-item h3 { color: var(--color-primary-text); font-size: 1.3rem; margin-bottom: 0.5em; }
.ethos-item p { font-size: 0.95rem; color: var(--color-secondary-text); }

/* --- Services Section --- */
.services-grid { display: grid; gap: 30px; margin-top: 2em; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
@media (min-width: 992px) { .services-grid-6 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) and (max-width: 991px) { .services-grid-6 { grid-template-columns: repeat(2, 1fr); } }

.service-item {
    background-color: var(--color-secondary-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    /* Use Flexbox for centering content inside */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items horizontally */
    text-align: center; /* Ensure text is centered too */
}
.service-icon {
    font-size: 2.2rem; /* Slightly larger icon */
    margin-bottom: 0.8em; /* Space below icon */
    color: var(--color-accent);
    /* Removed display: block; and text-align: center; - Flex handles this */
    /* Removed margin: auto; */
    line-height: 1; /* Prevent extra space from line height */
}
.service-item h3 {
     margin-bottom: 0.5em;
     color: var(--color-primary-text);
     /* text-align: center; Inherited from parent */
}
.service-item p {
    color: var(--color-secondary-text);
    font-size: 0.95rem;
    /* text-align: center; Inherited from parent */
    flex-grow: 1; /* Allow paragraph to take space if needed */
}
.service-item:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); }

/* ... (Keep Portfolio Section styles) ... */
#portfolio { }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 2em; }
.portfolio-item { position: relative; overflow: hidden; border-radius: var(--border-radius); cursor: pointer; }
.portfolio-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0)); color: var(--color-light-text); padding: 30px 20px 20px 20px; opacity: 0; transition: opacity 0.4s ease; }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h3 { margin: 0; font-size: 1.2rem; color: var(--color-light-text); }

/* ... (Keep Testimonials Section styles) ... */
#testimonials { }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 2em; }
.testimonial-item { background-color: var(--color-secondary-bg); padding: 30px; border-radius: var(--border-radius); border: 1px solid var(--color-border); position: relative; }
.testimonial-quote { font-style: italic; color: var(--color-primary-text); margin-bottom: 1em; position: relative; padding-left: 25px; }
.testimonial-quote::before { content: '\f10d'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: -5px; font-size: 1.5rem; color: var(--color-accent); opacity: 0.5; }
.testimonial-author { font-weight: 600; color: var(--color-secondary-text); font-style: normal; display: block; text-align: right; margin-top: 1em; }


/* Client Logo Slider Styles */
.client-slider-container {
    position: relative;
    margin-top: 2em;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.client-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.client-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.client-slide img {
    max-height: 80px;
    width: auto;
    max-width: 180px;
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: none; /* Remove filters to show original colors */
    object-fit: contain;
    padding: 20px;
    border-radius: var(--border-radius);
    background-color: var(--color-primary-bg);
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.client-slide img:hover {
    opacity: 1;
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 25px rgba(254, 153, 0, 0.12), 0 0 0 1px rgba(254, 153, 0, 0.08);
    border-color: rgba(254, 153, 0, 0.2);
}

.client-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.client-prev,
.client-next {
    background-color: rgba(254, 153, 0, 0.8);
    color: white;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 16px;
    transition: all 0.3s ease;
    pointer-events: all;
    opacity: 0.7;
}

.client-prev:hover,
.client-next:hover {
    background-color: var(--color-accent-secondary);
    opacity: 1;
    transform: scale(1.1);
}

.client-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.client-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.client-dot.active,
.client-dot:hover {
    background-color: var(--color-accent-primary);
    transform: scale(1.2);
}

/* Mobile Client Slider */
@media (max-width: 768px) {
    .client-slide {
        gap: 20px;
        padding: 15px 0;
    }

    .client-slide img {
        max-height: 60px;
        max-width: 140px;
        padding: 15px;
    }

    .client-slider-nav {
        padding: 0 10px;
    }

    .client-prev,
    .client-next {
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .client-slide {
        gap: 15px;
        padding: 10px 0;
    }

    .client-slide img {
        max-height: 50px;
        max-width: 120px;
        padding: 12px;
    }

    .client-slide img:hover {
        transform: scale(1.05) translateY(-2px);
    }
}

/* ... (Keep Contact Section styles) ... */
#contact { }

/* Footer Section Styles */
.site-footer { background-color: var(--color-header-footer-bg); color: var(--color-light-text); padding: 40px 0; text-align: center; font-size: 0.9rem; border-top: 1px solid var(--color-dark-border); }
.site-footer p { margin-bottom: 0.5em; }
.site-footer a { color: var(--color-light-text); }
.site-footer a:hover { color: var(--color-accent); }
.social-links { margin: 1em 0; }
.social-links a { color: var(--color-light-text); font-size: 1.3rem; margin: 0 10px; transition: color 0.3s ease, transform 0.3s ease; display: inline-block; }
.social-links a:hover { color: var(--color-accent); transform: scale(1.1); }


/* Button Styles */
.cta-button { display: inline-block; padding: 12px 30px; border-radius: 50px; font-weight: 600; text-decoration: none; transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; border: 2px solid transparent; cursor: pointer; font-size: 0.95rem; line-height: 1.5; }
.cta-button { background-color: var(--color-accent); color: var(--color-primary-text); border-color: var(--color-accent); }
.cta-button:hover { background-color: var(--button-primary-bg-hover); border-color: var(--button-primary-bg-hover); color: var(--color-primary-text); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(254, 153, 0, 0.3); opacity: 1; }
.cta-button.secondary { background-color: transparent; color: var(--color-primary-text); border-color: var(--color-primary-text); }
.cta-button.secondary:hover { background-color: var(--color-accent-primary); border-color: var(--color-accent-primary); color: var(--color-primary-text); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(254, 153, 0, 0.2); }

/* Card Animated Outline Styles */
.why-choose-item::before, .service-item::before, .ethos-item::before, .testimonial-item::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: inherit; padding: var(--outline-thickness); background: var(--color-accent); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.4s ease-in-out; pointer-events: none; }
.why-choose-item:hover::before, .service-item:hover::before, .ethos-item:hover::before, .testimonial-item:hover::before { opacity: 1; }
/* Removed hover style for why-choose as it's not directly referenced now */
.ethos-item:hover, .service-item:hover, .testimonial-item:hover { /* Apply base hover to active card types */
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}


/* --- Responsiveness --- */
/* Tablets and smaller desktops */
@media (max-width: 992px) {
    .content-section { padding: 80px 0; }
    h1 { font-size: 2.6rem; } .hero-content h1 { font-size: 2.6rem; }
    h2 { font-size: 1.9rem; } .hero-content h2 { font-size: 1.4rem; }
    h3 { font-size: 1.4rem; }
    .hero-section { padding: 60px 0; min-height: auto; }
    .hero-container-split { gap: 30px; }
    .main-nav .nav-list { gap: 15px; font-size: 0.9rem; }
}

/* Mobile Nav Trigger & Layout Adjustments */
@media (max-width: 768px) {
    .content-section { padding: 60px 0; }
    .menu-toggle { display: block; }
    .main-nav .nav-list { display: none; position: absolute; top: var(--header-height); left: 0; width: 100%; background-color: var(--color-header-footer-bg); flex-direction: column; align-items: center; padding: 15px 0; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); border-top: 1px solid var(--color-dark-border); height: auto; z-index: 1000; }
    .main-nav .nav-list.active { display: flex; }
    .main-nav .nav-list li { width: 100%; text-align: center; margin-bottom: 0; height: auto; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
    .main-nav .nav-list li:last-child { border-bottom: none; }
    .main-nav .nav-list a { padding: 15px 20px; display: block; width: 100%; height: auto; text-align: center; color: #f8f9fa; font-weight: 500; font-size: 1rem; transition: all 0.3s ease; }
    .main-nav .nav-list a:hover { background-color: rgba(254, 153, 0, 0.1); color: var(--color-accent-primary); }
    .main-nav .nav-list a.active { background-color: var(--color-accent-primary); color: var(--color-primary-text); }
    .main-nav .nav-list a::after { display: none; }

    h1 { font-size: 2.0rem; } .hero-content h1 { font-size: 2.0rem; }
    h2 { font-size: 1.7rem; } .hero-content h2 { font-size: 1.3rem; }
    .hero-section { padding: 40px 0; }
    .hero-container-split { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .hero-content { text-align: center; padding: 0 10px; }
    .hero-content h1 { font-size: 2.2rem; line-height: 1.2; }
    .hero-content h2 { font-size: 1.4rem; line-height: 1.3; }
    .hero-content p { font-size: 1rem; margin-bottom: 2em; }
    .hero-buttons { justify-content: center; flex-direction: column; align-items: center; gap: 15px; }
    .hero-buttons .cta-button { width: 100%; max-width: 280px; }
    .hero-image { margin-top: 20px; }
    .hero-image img { border-radius: 12px; }

    /* Mobile slider adjustments */
    .slider-container { height: 250px; }
    .slider-btn { padding: 8px 12px; font-size: 14px; }
    .slider-nav { padding: 0 10px; }
    .slider-dots { bottom: 10px; }
    .dot { width: 8px; height: 8px; }

    .ethos-grid, .services-grid, .portfolio-grid, .testimonial-grid { grid-template-columns: 1fr; }
    .client-logos { gap: 25px; }
    .client-logos img { max-height: 40px; }
    .cta-button { width: 90%; max-width: 320px; padding: 12px 25px; text-align: center; }
}

/* Smaller mobile devices */
@media (max-width: 576px) {
    .content-section { padding: 40px 0; }
    .container { padding: 0 15px; }
    h1 { font-size: 1.8rem; } .hero-content h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; } .hero-content h2 { font-size: 1.1rem; }
    .hero-section { padding: 30px 0; }
    .hero-content { padding: 0 5px; }
    .hero-content p { font-size: 0.95rem; }
    .cta-button { width: 95%; font-size: 0.9rem; padding: 12px 20px; }
    .ethos-item, .service-item, .portfolio-item, .testimonial-item { padding: 20px; }
    .client-logos { gap: 20px; }
    .client-logos img { max-height: 35px; }
    /* Ensure section titles are still readable */
    section .section-title { font-size: 1.6rem; margin-bottom: 1.5em; }

    /* Mobile slider further adjustments */
    .slider-container { height: 200px; }
    .slider-btn { padding: 6px 10px; font-size: 12px; }
    .slider-nav { padding: 0 5px; }
}

/* --- Section Title Centering --- */
/* More specific selector targeting H2 with the class */
h2.section-title {
    display: block;         /* Default for H2, but explicit */
    width: 100%;            /* Make the H2 element take full available width */
    max-width: 850px;       /* Prevent title from being excessively wide on large screens */
    margin-left: auto;      /* Auto margins horizontally center the block element */
    margin-right: auto;     /* Auto margins horizontally center the block element */
    margin-bottom: 1.8em;   /* Increased space below title */
    text-align: center;     /* Center the text content *within* the H2 block */
    padding: 0 10px;        /* Add slight horizontal padding if text touches edges */
    clear: both;            /* Add clear in case of floats */
    color: var(--color-primary-text); /* Ensure proper text color */
    font-weight: 700;       /* Make titles bold */
    position: relative;     /* For potential decorative elements */
}

/* --- Gradient Text --- */
/* Ensure gradient text itself doesn't interfere */
.gradient-text {
    color: var(--color-accent);
    /* Keep inline-block for consistency */
    /* Centering is handled by text-align on the parent H2 */
    display: inline-block;
    /* Resetting margins/padding just in case */
    margin: 0;
    padding: 0;
}

/* --- Services Section Icon Centering (Reconfirming Flex) --- */
/* Ensure the flex centering is applied correctly */
.service-item {
    background-color: var(--color-secondary-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    /* Use Flexbox for centering content inside */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items horizontally */
    text-align: center; /* Ensure text is centered too */
}
.service-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8em;
    color: var(--color-accent);
    line-height: 1;
    /* Flexbox handles alignment, these are not needed */
    /* display: block; */
    /* text-align: center; */
    /* margin-left: auto; */
    /* margin-right: auto; */
}

/* ============================ */
/* ===== About Page Styles ===== */
/* ============================ */

/* --- Page Header --- */
.page-header {
    background-color: var(--color-dark-bg-alt); /* Or a different subtle background */
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--color-dark-border);
}
.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.2em;
    color: var(--color-primary-text);
    font-weight: 700;
}
.page-header p {
    font-size: 1.1rem;
    color: var(--color-secondary-text);
    margin-bottom: 0;
}

/* --- Company Profile --- */
#company-profile .profile-content {
    max-width: 900px; /* Limit text width */
    margin: 1em auto 0 auto; /* Center content block */
    text-align: justify; /* Justify text for profile */
    line-height: 1.8;
}
#company-profile .profile-content p {
    margin-bottom: 1.5em; /* More spacing between paragraphs */
}


/* --- Vision & Mission --- */
.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 2em;
}
.vision-mission-item {
    background-color: var(--color-dark-bg); /* Slightly different bg */
    padding: 35px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-dark-border);
    text-align: center;
    position: relative; /* For outline effect */
}
/* Reuse ethos icon styling */
.vision-mission-item .ethos-icon {
    margin-bottom: 1em;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}
.vision-mission-item h3 {
    color: var(--color-primary-text);
    font-size: 1.5rem;
    margin-bottom: 0.6em;
}
.vision-mission-item p {
    font-size: 1rem;
    color: var(--color-medium-text);
    line-height: 1.7;
}
/* Add outline effect */
.vision-mission-item::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit; padding: var(--outline-thickness); background: var(--brand-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity 0.4s ease-in-out; pointer-events: none;
}
.vision-mission-item:hover::before { opacity: 1; }
.vision-mission-item:hover {
     transform: translateY(-5px);
     box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}


/* --- Team Section --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive columns */
    gap: 30px;
    margin-top: 2em;
}
.team-member {
    background-color: var(--color-dark-bg-alt);
    border-radius: var(--border-radius);
    overflow: hidden; /* Clip image */
    text-align: center;
    border: 1px solid var(--color-dark-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* For outline */
}
.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}
.team-member-img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Make image container square */
    overflow: hidden;
}
.team-member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.team-member:hover .team-member-img img {
    transform: scale(1.05);
}
.team-member-info {
    padding: 20px 15px;
}
.team-member-info h4 {
    font-size: 1.2rem;
    color: var(--color-primary-text);
    margin-bottom: 0.3em;
}
.team-member-info .designation {
    font-size: 0.9rem;
    color: var(--bard-color-brand-text-gradient-stop-2); /* Use gradient color */
    font-weight: 600;
    margin-bottom: 0;
}
/* Add outline effect */
.team-member::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit; padding: var(--outline-thickness); background: var(--brand-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity 0.4s ease-in-out; pointer-events: none;
}
.team-member:hover::before { opacity: 1; }


/* --- Counter Section --- */
.counter-section {
    /* Add specific styles if needed, bg-light already applied */
    padding: 80px 0; /* Slightly reduced padding maybe */
}
.counter-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 2em;
    text-align: center;
}
.counter-item {
    background-color: var(--color-dark-bg); /* Match vision/mission item bg */
    padding: 30px 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-dark-border);
}
.counter-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.1em;
    /* Apply gradient to numbers */
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block; /* Needed for gradient */
}
.counter-icon {
    font-size: 1.5rem;
    color: var(--color-medium-text);
    margin-bottom: 0.5em; /* Space between number+icon and label */
    display: block;
}
.counter-label {
    font-size: 1rem;
    color: var(--color-primary-text);
    font-weight: 600;
    margin-bottom: 0;
}

/* ================================ */
/* ===== End About Page Styles ===== */
/* ================================ */


/* --- Responsiveness Adjustments (Add inside existing @media queries) --- */

@media (max-width: 992px) {
    /* Adjust about page header size */
    .page-header h1 { font-size: 2.5rem; }
    .page-header { padding: 50px 0; }
    /* Adjust counter number size */
    .counter-number { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .page-header h1 { font-size: 2.2rem; }
    .page-header { padding: 40px 0; }
    /* Stack vision/mission if not already */
    .vision-mission-grid { grid-template-columns: 1fr; }
    /* Adjust counter spacing/size */
    .counter-container { grid-template-columns: repeat(2, 1fr); gap: 20px; } /* 2 columns on mobile */
    .counter-number { font-size: 2.2rem; }
    .counter-label { font-size: 0.9rem; }
    .counter-item { padding: 25px 15px; }
}

@media (max-width: 576px) {
    .page-header h1 { font-size: 2rem; }
    /* Further adjust counter */
    .counter-number { font-size: 2rem; }
    .counter-item { padding: 20px 10px; }
    /* Adjust team grid */
    .team-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } /* Allow slightly smaller cards */
    .team-member-info h4 { font-size: 1.1rem; }
}

/* ============================== */
/* ===== Services Page Styles ===== */
/* ============================== */

/* Optional: Style for the services intro section if needed */
#services-intro .section-title {
    margin-bottom: 0.5em;
}

/* Detailed Services Section Layout */
#service-details {
    /* bg-light is applied via HTML */
}

/* --- Refactored Alternating Item --- */
.service-detail-item {
    display: grid; /* Use grid for layout */
    /* Default to single column for mobile-first */
    grid-template-columns: 1fr;
    gap: 30px; /* Gap for stacked view */
    align-items: center;
    margin-bottom: 60px; /* Consistent space between items */
    background-color: var(--color-dark-bg); /* Apply background */
    padding: 30px; /* Apply padding */
    border-radius: var(--border-radius);
    border: 1px solid var(--color-dark-border);
    overflow: hidden; /* Contain elements */
}
/* Remove margin from last item */
#service-details .container > .service-detail-item:last-child {
    margin-bottom: 0;
}

.service-detail-img img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius); /* Round corners */
    object-fit: cover;
    aspect-ratio: 16 / 10;
    display: block; /* Ensure image behaves as block */
}

.service-detail-content {
    /* No specific padding needed here, handled by parent */
    text-align: center; /* Center text in mobile view */
}

.service-detail-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.7em;
    text-align: center; /* Center heading in mobile view */
}
.service-detail-content h3.gradient-text {
    display: inline-block;
}

.service-detail-content p {
    color: var(--color-medium-text);
    line-height: 1.8;
    margin-bottom: 1em;
    text-align: center; /* Center paragraph in mobile view */
}

/* --- Alternating Layout on Desktop --- */
@media (min-width: 769px) {
    .service-detail-item {
         grid-template-columns: 1fr 1fr; /* Two equal columns */
         gap: 50px; /* Wider gap for desktop */
         padding: 40px; /* Adjust padding for desktop */
         text-align: left; /* Revert text alignment */
    }
    .service-detail-content {
        text-align: left; /* Revert text alignment */
    }
    .service-detail-content h3 {
        text-align: left; /* Revert text alignment */
    }
     .service-detail-content p {
        text-align: left; /* Revert text alignment */
    }

     /* Even items: Image on Right */
    .service-detail-item:nth-child(even) .service-detail-img {
        order: 2; /* Move image visually to the right */
    }
     .service-detail-item:nth-child(even) .service-detail-content {
        order: 1; /* Move text visually to the left */
    }
}

/* Optional: Smaller CTA button (Keep if used) */
.cta-button.small {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* --- CTA Section Adjustment --- */
#services-cta {
    /* Increased vertical space */
    padding-top: 140px;    /* Adjusted value */
    padding-bottom: 140px; /* Adjusted value */
    /* margin-top: 80px; REMOVED - relying on padding primarily */
    background: var(--color-dark-bg-alt);
    border-top: 1px solid var(--color-dark-border);
    text-align: center; /* Helps center inline/inline-block children */
}

/* Targeting the CTA title specifically */
#services-cta h2.section-title {
    display: block;
    width: 100%;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;   /* Standard space below title */
    text-align: center;     /* Ensure text itself is centered */
    padding: 0 10px;
}

/* Ensure the paragraph in THIS CTA is centered and has adequate spacing */
#services-cta p {
    max-width: 700px;
    margin-left: auto;     /* Center paragraph block */
    margin-right: auto;    /* Center paragraph block */
    margin-bottom: 2.5em;  /* Space below paragraph, before buttons */
    color: var(--color-medium-text);
    text-align: center;
}

/* --- Global Button Container Styling --- */
.cta-buttons {
    /* margin-top: 2em; REMOVED - Spacing handled by element above now */
    display: flex;          /* Use flexbox */
    justify-content: center;/* Center buttons horizontally */
    align-items: center;    /* Align buttons vertically if they wrap */
    flex-wrap: wrap;        /* Allow wrapping */
    gap: 20px;              /* Space between buttons */
    /* Center the flex container itself if it's not full width */
    width: 100%;            /* Make container take width */
    max-width: 600px;       /* Limit max width of button group */
    margin-left: auto;
    margin-right: auto;
}


/* --- Responsiveness (Adjust CTA padding) --- */
@media (max-width: 992px) {
    /* Existing rules... */
     #services-cta { padding-top: 120px; padding-bottom: 120px; }
}

@media (max-width: 768px) {
    /* Existing rules... */
     #services-cta { padding-top: 100px; padding-bottom: 100px; }
    #services-cta p { margin-bottom: 2em; }

     /* Stack buttons centrally on mobile */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        max-width: 350px; /* Adjust max width for stacked buttons */
    }
     /* Ensure individual buttons take appropriate width when stacked */
    .cta-buttons .cta-button {
         width: 100%; /* Make buttons full width of container */
         max-width: 350px; /* Limit button width */
         text-align: center;
    }
}

@media (max-width: 576px) {
    /* Existing rules... */
     #services-cta { padding-top: 80px; padding-bottom: 80px; }
}

/* Reconfirm Global Title Centering Rule */
h2.section-title {
    display: block;
    width: 100%;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.8em;
    text-align: center;
    padding: 0 10px;
    clear: both;
}

/* --- Responsiveness (Ensure CTA padding adjusts) --- */
@media (max-width: 992px) {
    /* Existing rules... */
     #services-cta { padding-top: 100px; padding-bottom: 100px; }
}

@media (max-width: 768px) {
    /* Existing rules... */
     #services-cta { padding-top: 80px; padding-bottom: 80px; }
     /* Stack service detail items - simplified */
    .service-detail-item {
         grid-template-columns: 1fr; /* Ensure single column */
         gap: 25px;
         padding: 30px;
         margin-bottom: 40px;
    }
    .service-detail-item:nth-child(even) .service-detail-img,
    .service-detail-item:nth-child(even) .service-detail-content {
        order: 0; /* Reset order for stacking */
    }
    .service-detail-content,
    .service-detail-content h3,
    .service-detail-content p {
        text-align: center; /* Center all text when stacked */
    }
    .service-detail-img img {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 576px) {
    /* Existing rules... */
     #services-cta { padding-top: 60px; padding-bottom: 60px; }
     .service-detail-item { padding: 25px; }
}

/* ================================ */
/* ===== Clientele Page Styles ===== */
/* ================================ */

#clientele-list {
    background-color: var(--color-dark-bg); /* Match base background */
}

.client-logo-grid {
    display: grid;
    /* Responsive columns: Aim for ~140px wide logos, let grid fit as many as possible */
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px; /* Consistent gap */
    justify-items: center; /* Center items horizontally in their cell */
    align-items: center; /* Center items vertically in their cell */
    margin-top: 2em;
}

.client-logo-grid .logo-item {
    /* Add subtle background for better logo visibility */
    background-color: var(--color-primary-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    display: flex; /* Ensure flex alignment within item */
    justify-content: center;
    align-items: center;
    width: 100%; /* Make item fill grid cell */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

/* Staggered animation delays */
.client-logo-grid .logo-item:nth-child(1) { animation-delay: 0.1s; }
.client-logo-grid .logo-item:nth-child(2) { animation-delay: 0.2s; }
.client-logo-grid .logo-item:nth-child(3) { animation-delay: 0.3s; }
.client-logo-grid .logo-item:nth-child(4) { animation-delay: 0.4s; }
.client-logo-grid .logo-item:nth-child(5) { animation-delay: 0.5s; }
.client-logo-grid .logo-item:nth-child(6) { animation-delay: 0.6s; }
.client-logo-grid .logo-item:nth-child(7) { animation-delay: 0.7s; }
.client-logo-grid .logo-item:nth-child(8) { animation-delay: 0.8s; }

.client-logo-grid .logo-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(254, 153, 0, 0.15), 0 0 0 1px rgba(254, 153, 0, 0.1);
    border-color: rgba(254, 153, 0, 0.3);
}

.client-logo-grid .logo-item img {
    /* Show logos in original colors */
    max-height: 65px; /* Adjust max height as needed */
    max-width: 100%;  /* Prevent image exceeding item width */
    width: auto;      /* Maintain aspect ratio */
    filter: none;     /* Remove all filters to show original colors */
    opacity: 1;       /* Full opacity to show original colors */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: contain;
}

.client-logo-grid .logo-item img:hover {
    transform: scale(1.1);
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


/* --- Responsiveness for Clientele Grid --- */
@media (max-width: 768px) {
    .client-logo-grid {
        /* Adjust minmax for fewer columns on tablet */
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 25px;
    }

    .client-logo-grid .logo-item {
        padding: 15px;
    }

    .client-logo-grid .logo-item img {
        max-height: 55px;
    }
}

@media (max-width: 576px) {
    .client-logo-grid {
         /* Adjust minmax for even fewer columns on mobile */
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
    }

    .client-logo-grid .logo-item {
        padding: 12px;
    }

    .client-logo-grid .logo-item img {
        max-height: 45px;
    }

    .client-logo-grid .logo-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(254, 153, 0, 0.1), 0 0 0 1px rgba(254, 153, 0, 0.05);
    }

    .client-logo-grid .logo-item img:hover {
        transform: scale(1.05);
    }

     /* Adjust title spacing on mobile */
    #clientele-list .section-title {
         margin-bottom: 1em;
    }
    #clientele-list p {
        margin-bottom: 2em;
    }
}

/* ==================================== */
/* ===== End Clientele Page Styles ===== */
/* ==================================== */

/* ============================ */
/* ===== Contact Page Styles ===== */
/* ============================ */

/* --- Main Contact Grid Layout --- */
.contact-grid-container {
    display: grid;
    grid-template-columns: 1fr; /* Default single column */
    gap: 50px; /* Gap between sections when stacked */
}

@media (min-width: 992px) { /* Two columns on larger screens */
    .contact-grid-container {
        grid-template-columns: 1fr 1.3fr; /* Make form column slightly wider */
        gap: 60px; /* Wider gap for columns */
    }
}

/* --- Contact Info & Map Column --- */
.contact-details-map {
    /* Styles specific to this column container */
}

.contact-info h3 {
    margin-bottom: 0.8em;
    font-size: 1.7rem;
}
.contact-info p {
    margin-bottom: 1.5em;
    color: var(--color-medium-text);
    line-height: 1.7;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2em 0;
}
.contact-list li {
    display: flex;
    align-items: flex-start; /* Align icon top */
    margin-bottom: 1.2em;
    font-size: 1rem;
}
.contact-icon {
    color: var(--bard-color-brand-text-gradient-stop-2); /* Use accent color */
    font-size: 1.2em;
    margin-right: 15px;
    margin-top: 0.1em; /* Fine-tune vertical alignment */
    width: 20px; /* Fixed width for alignment */
    text-align: center;
}
.contact-list a {
    color: var(--color-primary-text); /* Make links readable */
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-list a:hover {
    color: var(--color-accent-primary);
}
.contact-list span {
    color: var(--color-primary-text); /* Address text color */
    line-height: 1.6;
}

/* --- Google Map --- */
.contact-map {
    margin-top: 2em;
    border-radius: var(--border-radius);
    overflow: hidden; /* Clip iframe corners */
    border: 1px solid var(--color-dark-border);
    line-height: 0; /* Prevent extra space below iframe */
}
.contact-map iframe {
    width: 100%;
    height: 400px; /* Adjust height as needed */
    border: 0;
    vertical-align: middle; /* Fix potential alignment issues */
}

/* --- Contact Form --- */
.contact-form-container {
    background-color: var(--color-dark-bg-alt); /* Slightly different background */
    padding: 35px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-dark-border);
}

.contact-form-container h3 {
    font-size: 1.7rem;
    margin-bottom: 0.5em;
}
.contact-form-container p {
    margin-bottom: 2em;
    color: var(--color-medium-text);
}

.form-group {
    margin-bottom: 1.5em;
}
.form-group label {
    display: block;
    margin-bottom: 0.5em;
    color: var(--color-primary-text);
    font-weight: 600;
    font-size: 0.9rem;
}
.form-group label .required {
    color: #ff6b6b; /* A noticeable red for required */
    font-weight: bold;
    margin-left: 4px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    background-color: var(--color-primary-bg); /* Light input bg */
    color: var(--color-primary-text);
    border-radius: 5px; /* Slightly less rounded for inputs */
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(254, 153, 0, 0.3); /* Subtle focus glow */
}

textarea {
    resize: vertical; /* Allow vertical resize */
    min-height: 120px;
}

select {
    appearance: none; /* Remove default dropdown arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 10px auto;
    padding-right: 40px; /* Space for custom arrow */
}
/* Style for disabled option */
select option[value=""] {
    color: var(--color-medium-text);
}


/* Adjust button spacing in form */
.form-group .cta-button {
    margin-top: 0.5em;
    width: auto; /* Allow button to size naturally */
    padding: 12px 35px; /* Adjust padding if needed */
}

.form-notice {
    font-size: 0.85rem;
    color: var(--color-medium-text);
    margin-top: 1.5em;
}
.form-notice .required {
     color: #ff6b6b;
     font-weight: bold;
}


/* --- Responsiveness for Contact Page --- */
@media (max-width: 991px) {
    /* Stack columns earlier if needed */
    .contact-grid-container {
        grid-template-columns: 1fr; /* Stack columns */
    }
    .contact-form-container {
        margin-top: 30px; /* Add space when stacked */
    }
    .contact-map iframe {
        height: 350px; /* Adjust map height */
    }
}

@media (max-width: 576px) {
     .contact-form-container { padding: 25px; }
     .contact-map iframe { height: 300px; }
     .contact-list li { font-size: 0.95rem; }
     .contact-icon { margin-right: 10px; }
}

/* ================================ */
/* ===== End Contact Page Styles ===== */
/* ================================ */

/* ============================== */
/* ===== Portfolio Page Styles ===== */
/* ============================== */

#portfolio-gallery {
    background-color: var(--color-dark-bg); /* Or bg-light if preferred */
}

/* --- Filter Buttons --- */
.filter-buttons {
    text-align: center;
    margin-bottom: 40px; /* Space below buttons */
}

.filter-btn {
    background-color: transparent;
    color: var(--color-medium-text);
    border: 1px solid var(--color-dark-border);
    padding: 8px 20px;
    margin: 5px; /* Spacing between buttons */
    border-radius: 20px; /* Pill shape */
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: var(--color-accent-primary);
    color: var(--color-primary-text);
    border-color: var(--color-accent-primary);
}

.filter-btn.active {
    background: var(--brand-gradient);
    color: var(--color-dark-bg); /* Dark text on gradient */
    border-color: transparent;
    /* Make active button slightly more prominent */
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(102, 166, 255, 0.2);
}

/* --- Portfolio Filter Grid --- */
.portfolio-filter-grid {
    display: grid;
    /* Start with mobile/smaller screen layout */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Allow auto-fit for smaller sizes */
    gap: 25px;
}

/* Define explicit columns for larger screens */
@media (min-width: 769px) { /* Tablet and up */
    .portfolio-filter-grid {
         /* Explicitly 2 columns for tablets */
         grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 992px) { /* Desktop */
    .portfolio-filter-grid {
         /* Explicitly 3 columns for desktops */
         grid-template-columns: repeat(3, 1fr);
         /* Adjust minmax if needed, but explicit columns are key */
         /* grid-template-columns: repeat(3, minmax(300px, 1fr)); */
    }
}


/* Reusing .portfolio-item styles */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
    border: 1px solid var(--color-dark-border);
    background-color: var(--color-dark-bg-alt);
    /* Define transition for properties that change - Smoother transition */
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out, visibility 0s linear 0.5s; /* Increased duration, ease-in-out */
    opacity: 1;
    transform: scale(1);
    /* Ensure item is visible by default */
    visibility: visible;
}

.portfolio-item img {
    display: block;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.4s ease;
    aspect-ratio: 16 / 10;
}

.portfolio-item:hover img {
    transform: scale(1.05);
    opacity: 0.8;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 20%, rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 0));
    color: var(--color-light-text);
    padding: 20px;
    opacity: 1;
    transition: background 0.4s ease;
    text-align: left;
}

.portfolio-overlay h3 {
    margin: 0 0 0.2em 0;
    font-size: 1.2rem;
    color: var(--color-light-text);
    opacity: 1;
}
.portfolio-overlay p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-medium-text);
    font-weight: 500;
    opacity: 1;
}

/* --- Filtering Animation States --- */
.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.9);
    /* Use visibility hidden to keep space */
    visibility: hidden;
    /* Adjust transition for visibility - Smoother transition */
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out, visibility 0s linear 0.5s; /* Increased duration, ease-in-out */
    pointer-events: none;
}
/* When showing, make visibility immediate */
.portfolio-item:not(.hidden) {
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out, visibility 0s linear 0s; /* Increased duration, ease-in-out */
}


/* --- Responsiveness for Portfolio Page --- */
/* Media queries now primarily adjust explicit column counts */

@media (max-width: 991px) { /* Below desktop */
     .portfolio-filter-grid {
         grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Revert to auto-fit or keep 2 columns */
         /* Or explicitly: grid-template-columns: repeat(2, 1fr); */
         gap: 20px;
     }
     .filter-buttons {
         margin-bottom: 30px;
     }
     .filter-btn {
         padding: 6px 15px;
         font-size: 0.85rem;
     }
     .portfolio-overlay { padding: 15px; }
     .portfolio-overlay h3 { font-size: 1.1rem; }
     .portfolio-overlay p { font-size: 0.85rem; }
}


@media (max-width: 576px) {
     .portfolio-filter-grid {
        grid-template-columns: 1fr; /* Stack on smallest screens */
        gap: 20px;
    }
     .filter-buttons {
         display: flex;
         flex-wrap: wrap;
         justify-content: center;
     }
}


/* ================================== */
/* ===== End Portfolio Page Styles ===== */
/* ================================== */

/* ===================================== */
/* ===== Single Portfolio Page Styles ===== */
/* ===================================== */

/* --- Portfolio Item Header --- */
.portfolio-item-header {
    padding: 70px 0 50px 0; /* Adjust padding */
    text-align: center;
    background-color: var(--color-dark-bg-alt);
    border-bottom: 1px solid var(--color-dark-border);
}
.portfolio-item-header h1 {
    font-size: 3rem; /* Larger title */
    margin-bottom: 0.4em;
}
.portfolio-meta {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    align-items: center;
    gap: 30px; /* Space between items */
    margin-top: 1.5em;
}
.client-logo-single {
    display: flex;
    align-items: center;
    gap: 10px;
}
.client-logo-single span {
    font-weight: 600;
    color: var(--color-medium-text);
}
.client-logo-single img {
    max-height: 40px; /* Control logo size */
    width: auto;
    filter: brightness(0) invert(0.9); /* Make logo light */
}
.event-date-single {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary-text);
    font-weight: 600;
}
.event-date-single i {
    color: var(--bard-color-brand-text-gradient-stop-2); /* Accent color */
    font-size: 1.1em;
}

/* --- Portfolio Details Layout --- */
.portfolio-details-container {
    display: grid;
    grid-template-columns: 1fr; /* Stack by default */
    gap: 40px;
}
@media (min-width: 992px) { /* Side-by-side on larger screens */
    .portfolio-details-container {
        grid-template-columns: 2fr 1fr; /* Description wider than highlights */
        gap: 60px;
    }
}

/* --- Portfolio Description --- */
.portfolio-description .section-title {
    text-align: left; /* Align title left */
    margin-left: 0;
    margin-right: 0; /* Override global centering */
    max-width: none;
}
.portfolio-description p {
    line-height: 1.8;
    margin-bottom: 1.5em;
    color: var(--color-primary-text); /* Readable text for description */
    text-align: justify;
}

/* --- Portfolio Highlights --- */
.portfolio-highlights {
    background-color: var(--color-dark-bg-alt);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-dark-border);
}
.portfolio-highlights h3 {
    font-size: 1.5rem;
    margin-bottom: 1em;
    text-align: left; /* Align title left */
}
.portfolio-highlights ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.portfolio-highlights li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8em;
    color: var(--color-medium-text);
    font-size: 0.95rem;
}
.portfolio-highlights li i {
    color: var(--bard-color-brand-text-gradient-stop-1); /* Use gradient color */
    margin-right: 10px;
    margin-top: 0.2em; /* Align icon */
    font-size: 1.1em;
}

/* --- Masonry Gallery --- */
#portfolio-masonry-gallery {
    /* background handled by bg-light class */
}
.masonry-grid {
    /* Basic container style, JS will handle layout */
    margin: 2em auto 0 auto;
    opacity: 0; /* Start hidden until initialized */
    transition: opacity 0.5s ease-in-out;
}
.masonry-grid.initialized {
    opacity: 1; /* Fade in when ready */
}

/* Grid sizing element (for Masonry JS) */
.grid-sizer {
    width: 32%; /* Adjust based on desired column count (~3 columns) */
}
/* Gutter sizer can also be used if needed */

.masonry-item {
    width: 32%; /* Adjust based on desired column count (~3 columns) */
    margin-bottom: 15px; /* Vertical gap */
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--color-dark-border);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    cursor: pointer; /* Indicate clickable for lightbox */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.masonry-item:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.masonry-item img {
    display: block;
    width: 100%;
    height: auto;
}

/* Adjust sizing for different screens */
@media (max-width: 991px) {
    .grid-sizer, .masonry-item {
        width: 48%; /* ~2 columns */
    }
}
@media (max-width: 576px) {
    .grid-sizer, .masonry-item {
        width: 98%; /* 1 column */
    }
}

/* --- Lightbox Styles --- */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1050; /* Sit on top */
    padding-top: 50px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent body scroll when lightbox is open */
    background-color: rgba(0, 0, 0, 0.92); /* Slightly darker overlay */
}

/* Wrapper for centering image and handling max size */
.lightbox-content-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    display: flex; /* Use flex for centering */
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    /* margin: auto; Removed, wrapper handles centering */
    display: block;
    /* width: 85%; Removed, let max-width/height control */
    max-width: 100%; /* Max width within wrapper */
    max-height: 100%; /* Max height within wrapper */
    object-fit: contain; /* Ensure image fits */
    animation-name: lightboxZoom;
    animation-duration: 0.5s;
    animation-timing-function: ease-out;
}

@keyframes lightboxZoom {
    from {transform: scale(0.8)}
    to {transform: scale(1)}
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1052; /* Above arrows */
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* --- Lightbox Navigation Arrows --- */
.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -30px; /* Adjust vertical centering */
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.4s ease;
    border-radius: 0 3px 3px 0;
    user-select: none; /* Prevent text selection */
    -webkit-user-select: none;
    background-color: rgba(0, 0, 0, 0.3); /* Subtle background */
    z-index: 1051; /* Above image, below close */
}

/* Position the "next button" to the right */
.lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
/* Position the "previous button" to the left */
.lightbox-prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

/* On hover, add a black background color with a little bit see-through */
.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #f1f1f1;
}


/* Optional Caption Styling */
/* #lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 50px;
} */

/* --- Responsiveness for Single Portfolio --- */
@media (max-width: 768px) {
    .portfolio-item-header h1 { font-size: 2.5rem; }
    .portfolio-meta { flex-direction: column; gap: 15px; } /* Stack meta items */
    .portfolio-details-container { grid-template-columns: 1fr; } /* Ensure stacking */
    .portfolio-description .section-title,
    .portfolio-highlights h3 {
        text-align: center; /* Center titles when stacked */
    }
    /* Make arrows smaller on mobile */
    .lightbox-prev, .lightbox-next {
        font-size: 18px;
        padding: 12px;
        margin-top: -25px;
    }
}


/* ========================================= */
/* ===== End Single Portfolio Page Styles ===== */
/* ========================================= */

/* ===== Navigation Link Styling ===== */

.main-nav .nav-list a {
    color: #dcdcdc; /* Default link color */
    font-weight: 600;
    padding: 5px 0;
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
    /* Ensure gradient is not applied by default */
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

/* Style for hover (non-active links) - handled by main nav styles */

/* Underline effect for HOVERING on non-active links */
.main-nav .nav-list a:not(.active)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 15px; /* Adjust position relative to centered text */
    left: 0;
    background: var(--brand-gradient); /* Underline uses gradient */
    transition: width 0.3s ease;
}

.main-nav .nav-list a:not(.active):hover::after {
    width: 100%; /* Show underline on hover */
}


/* Style for the ACTIVE link */
.main-nav .nav-list a.active {
    /* Apply gradient text effect */
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700; /* Slightly bolder */
}

/* Ensure NO underline for the ACTIVE link */
.main-nav .nav-list a.active::after {
   display: none; /* Explicitly hide the underline pseudo-element */
}

/* --- Mobile Nav Adjustments --- */
@media (max-width: 768px) {
    /* Mobile navigation styles are handled in main mobile media query above */
}

