:root {
    /* Brand Colors - Refined for a more premium look */
    --primary: #0b387d;
    /* Sapphire Blue - deeper, more professional */
    --primary-dark: #0A3D8F;
    --primary-light: #E6F0FA;
    --accent: #FF6B35;
    /* Vibrant Orange for calls to action */
    --accent-hover: #E85A2D;

    /* Neutral Scale */
    --text-dark: #1E293B;
    /* Slate 800 - softer than pure black */
    --text-muted: #64748B;
    /* Slate 500 */
    --text-light: #F8FAFC;
    /* Slate 50 */
    --bg-body: #F1F5F9;
    /* Slate 100 - clean background */
    --bg-white: #FFFFFF;
    --border-light: #E2E8F0;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    --transition: all 0.3s ease;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

html {
    /* scroll-behavior: smooth; Remove native smooth scroll if using Lenis */
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;    
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-dark);
}

.eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.75rem;
    display: inline-block;
}

.eyebrow h1 {
    color: #fff;
}

.section-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-heading h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.section-heading p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* Layout Utilities */
.container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

.section {
    padding: 6rem 0;
}

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.ghost-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: transparent;
    color: var(--bg-white);
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    border: 2px solid var(--bg-white);
    transition: var(--transition);
}

.ghost-button:hover {
    background-color: var(--bg-white);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 68px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary);
}

.cta-pill {
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-pill:hover {
    background-color: var(--primary);
    color: var(--bg-white);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--text-dark);
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
    position: relative;
    height: 900px;
    overflow: hidden;
    margin-bottom: 0;
}

.hero-slider {
    display: grid;
    height: 100%;
    width: 100%;
}

.slide {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-dark);
    /* Changed to dark for visibility without overlay if needed, or keep white */
    max-width: 800px;
    padding-left: 5%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    /* Added shadow for readability on images */
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    color: #fff;
    /* Keeping white for typical hero images */
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    font-weight: 500;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--bg-white);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: grid;
    place-items: center;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--bg-white);
    color: var(--primary);
}

.slider-btn.prev {
    left: 2rem;
}

.slider-btn.next {
    right: 2rem;
}

/* =========================================
   NEW DESIGN SYSTEM (Overhaul)
   ========================================= */

/* Floating Pillars Bar */
.pillars-bar {
    position: relative;
    margin-top: -80px;
    z-index: 20;
    margin-bottom: 4rem;
}

.pillars-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-xl);
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    box-shadow: var(--shadow-xl);
}

.pillar-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.pillar-item:hover {
    background: rgba(15, 82, 186, 0.05);
    /* very light primary */
    transform: translateY(-2px);
}

.pillar-icon-box {
    background: var(--primary-light);
    color: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.pillar-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.pillar-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Asymmetrical About Section */
.about-modern {
    padding: 8rem 0;
    overflow: hidden;
    /* background: rgba(255, 255, 255, 0.9); */
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    padding-left: 2rem;
}

.about-image-main {
    border-radius: 2rem;
    box-shadow: var(--shadow-2xl);
    position: relative;
    z-index: 2;
}

.about-decoration {
    position: absolute;
    top: -2rem;
    left: 0;
    width: 90%;
    height: 100%;
    border: 2px solid var(--accent);
    border-radius: 2rem;
    z-index: 1;
    opacity: 0.3;
}

.about-content h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.stats-row {
    display: flex;
    gap: 4rem;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-light);
}

.stat-item h4 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

/* Bento Grid Services */
.bento-section {
    background-color: var(--primary);
    /* Sapphire Blue Background */
    padding: 10rem 0;
    position: relative;
    color: #fff;
    overflow: hidden;
}

/* Background Texture for Depth */
.bento-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(251, 146, 60, 0.1) 0%, transparent 25%);
    /* Orange hint */
    pointer-events: none;
}

.bento-section .section-heading h2,
.bento-section .section-heading span,
.bento-section .section-heading p {
    color: #fff;
}

.bento-section .section-heading span {
    opacity: 0.8;
}

.bento-section .section-heading p {
    opacity: 0.9;
    font-size: 1.2rem;
    max-width: 600px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Columns Uniform */
    gap: 2.5rem;
    /* Wider Gaps */
    position: relative;
    z-index: 2;
}

.bento-card {
    background: #fff;
    border-radius: 2rem;
    padding: 3.5rem 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    height: 100%;
    /* Equal Height */
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.2);
}

.bento-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.3);
}

/* Remove Span logic for cleaner uniform look */
.bento-card.span-2 {
    grid-column: span 1;
    /* Reset to 1 */
    background: #fff;
}

.bento-card.span-2 h3,
.bento-card.span-2 p {
    color: initial;
}

/* Accent Card Style */
.bento-card.accent-card {
    background: var(--accent);
    /* Orange Accent */
    color: #fff;
}

.bento-card.accent-card h3,
.bento-card.accent-card p,
.bento-card.accent-card i {
    color: #fff;
}

.bento-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 2rem;
    display: inline-block;
    transition: transform 0.3s;
}

.bento-card:hover .bento-icon {
    transform: scale(1.1);
}

.bento-card.accent-card .bento-icon {
    color: #fff;
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.bento-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    flex-grow: 1;
    /* Pushes link to bottom */
}

.bento-link {
    margin-top: 2rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bento-link:hover {
    gap: 1rem;
}

/* Impact Strip (Replaced with Sliding Marquee) */
.impact-strip {
    background: #0F172A;
    padding: 4rem 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.impact-strip .container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.impact-label {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    white-space: nowrap;
    opacity: 0.6;
    padding-right: 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.marquee-wrapper {
    overflow: hidden;
    flex: 1;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.partners-marquee {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: scroll 40s linear infinite;
    align-items: center;
}

.partners-marquee img {
    height: 65px;
    /* filter: brightness(0) invert(1); */
    opacity: 1;
    transition: transform 0.3s;
}

.partners-marquee img:hover {
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Modern Contact (Floating Glass) */
.modern-contact {
    position: relative;
    padding: 12rem 0;
    background-image: url('https://melmoservices.co.ug/phoro/meet.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.contact-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(5px);
}

.contact-content-wrapper {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.contact-text h2 {
    color: #fff;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.contact-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.glass-form-panel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.glass-form-panel input,
.glass-form-panel textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 1.2rem;
    font-size: 1rem;
    width: 100%;
}

.glass-form-panel input {
    margin-bottom: 1.5rem;
}

.glass-form-panel textarea {
    margin-bottom: 2rem;
}

.glass-form-panel input::placeholder,
.glass-form-panel textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.glass-form-panel input:focus,
.glass-form-panel textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: none;
    outline: none;
}

.submit-btn {
    width: 100%;
    justify-content: center;
    background: #fff;
    color: var(--primary);
    font-size: 1.1rem;
    padding: 1.2rem;
    border: none;
    border-radius: var(--radius-full);
}

.submit-btn:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Footer (Refined) */
.footer-modern {
    background: #020617;
    color: #94a3b8;
    padding: 6rem 0 3rem;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
    display: none;
    /* Hide old footer inner if it exists */
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-brand img {
    height: 40px;
    filter: grayscale(1) brightness(10);
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.footer-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: block;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Columns on Tablet */
    }

    .bento-card.span-2 {
        grid-column: span 1;
        /* No spans */
    }

    .contact-content-wrapper {
        gap: 3rem;
    }
}

@media (max-width: 768px) {

    .service-block,
    .service-block:nth-child(even) {
        flex-direction: column;
    }
}

/* =========================================
   WORKS / PROJECTS STYLES
   ========================================= */

.projects-intro p {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
}

.project-card {
    background: #fff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    height: 250px;
    overflow: hidden;
    background: #f8fafc;
    /* Light background for logos */
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Shows full image */
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.project-content p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
}

/* =========================================
   GALLERY PAGE STYLES
   ========================================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* =========================================
   PARTNERS PAGE STYLES
   ========================================= */

.partners-logos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 6rem;
}

.partner-card {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.partner-card img {
    max-width: 150px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: none;
    opacity: 1;
    transition: all 0.3s ease;
}

.partner-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.partner-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.why-partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.why-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.why-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.why-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.why-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 968px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 2rem;
        border-bottom: 1px solid var(--border-light);
        box-shadow: var(--shadow-xl);
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        display: flex;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .navbar .cta-pill {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .about-grid,
    .contact-content-wrapper,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .contact-text h2 {
        font-size: 2.5rem;
    }

    .glass-form-panel {
        padding: 2rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card.span-2 {
        grid-column: 1;
    }

    .pillars-bar {
        margin-top: 0;
        padding-top: 2rem;
    }

    .about-decoration {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero,
    .page-hero {
        height: auto;
        min-height: 400px;
        padding: 0;
        /* Remove padding from hero wrapper, let slide handle it or simple padding */
    }

    .hero-slider {
        height: auto;
    }

    .slide {
        height: auto;
        min-height: 400px;
        padding: 6rem 0;
        /* Add padding to slide to spacing content */
    }

    .impact-strip .container {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
    }

    .impact-label {
        border-right: none;
        padding-right: 0;
        margin-bottom: 1rem;
    }
}

/* =========================================
   INTERNAL PAGE STYLES
   ========================================= */

.page-hero {
    height: 450px;
    background: var(--primary);
    position: relative;
    display: flex;
    align-items: center;
    color: #fff;
    margin-bottom: 4rem;
    overflow: hidden;
}

/* Pattern Background for sub-pages */
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 30%);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 2;
    padding-top: 3rem;
    /* Compensate for fixed nav */
}

.page-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #E2E8F0;
}

.page-hero .eyebrow {
    color: var(--accent);
    margin-bottom: 1rem;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.page-hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

/* Generic content section fixes */
.section {
    padding: 3rem 0;
}

.text-content p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* =========================================
   SERVICES PAGE STYLES
   ========================================= */

.services-intro-text p {
    font-size: 1.5rem;
    color: var(--text-dark);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.6;
}

.service-block {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.service-block:nth-child(even) {
    flex-direction: row-reverse;
}

.service-image {
    flex: 1;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    flex: 1;
}

.service-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.service-details {
    margin-top: 1.5rem;
}

.detail-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
}

.detail-item i {
    color: var(--accent);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

@media (max-width: 768px) {

    .service-block,
    .service-block:nth-child(even) {
        flex-direction: column;
    }
}

/* =========================================
   TEAM PAGE STYLES
   ========================================= */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem;
}

.team-member {
    background: #fff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    text-align: center;
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-image {
    height: 300px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.member-info {
    padding: 2rem;
}

.member-info h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.member-info .role {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.member-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =========================================
   WHY US PAGE STYLES
   ========================================= */

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
}

.why-item {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 2rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.3s ease;
}

.why-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.why-item i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.why-item h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.why-item p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* =========================================
   STATS SECTION (WORKS PAGE)
   ========================================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-item p {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

/* =========================================
   CONTACT PAGE STYLES
   ========================================= */

.contact-wrapper .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.contact-info .eyebrow {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-item span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.info-item a,
.info-item p {
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    font-size: 1.1rem;
}

.contact-form {
    background: #fff;
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: var(--shadow-lg);
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    background: var(--bg-body);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* =========================================
   ANIMATION UTILITIES
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-zoom {
    opacity: 0;
    transform: scale(0.9);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-zoom.active {
    opacity: 1;
    transform: scale(1);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px var(--primary-light);
}

.contact-form textarea {
    resize: vertical;
    margin-bottom: 2rem;
}

.contact-form button {
    width: 100%;
    justify-content: center;
    border: none;
    cursor: pointer;
}

@media (max-width: 900px) {
    .contact-wrapper .container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 600px) {
    .input-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

    .cta-button,
    .ghost-button {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================
   TEAM MODAL STYLES
   ========================================= */

/* View Profile Button */
.view-profile-btn {
    display: inline-block;
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.view-profile-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Modal Overlay */
.team-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.team-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Content */
.team-modal-content {
    background: #fff;
    width: 100%;
    max-width: 900px;
    border-radius: 2rem;
    position: relative;
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

.team-modal-overlay.active .team-modal-content {
    transform: scale(1);
}

/* Modal Close Button */
.team-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.team-modal-close:hover {
    background: #ef4444;
    color: #fff;
    transform: rotate(90deg);
}

/* Modal Body Grid */
.team-modal-body {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 0;
}

/* Modal Image Side */
.team-modal-image {
    background: #f1f5f9;
    height: 100%;
    min-height: 400px;
}

.team-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Modal Info Side */
.team-modal-info {
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.team-modal-info h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.team-modal-info .role {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 2rem;
    display: block;
}

.bio-text {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 65ch;
}

.bio-text p {
    margin-bottom: 1rem;
}

/* Modal Social Links */
.team-modal-info .social-links {
    margin-top: auto;
    display: flex;
    gap: 1rem;
}

.team-modal-info .social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-body);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.team-modal-info .social-links a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .team-modal-body {
        grid-template-columns: 1fr;
    }

    .team-modal-image {
        height: 250px;
        min-height: auto;
    }

    .team-modal-info {
        padding: 2rem;
    }

    .team-modal-info h3 {
        font-size: 1.5rem;
    }
}