/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Aspect ratio containers to prevent layout shift */
.aspect-ratio-container {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
}

.aspect-ratio-16-9 {
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
}

.aspect-ratio-4-3 {
    padding-bottom: 75%;
    /* 4:3 aspect ratio */
}

.aspect-ratio-1-1 {
    padding-bottom: 100%;
    /* 1:1 aspect ratio */
}

.aspect-ratio-container img,
.aspect-ratio-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Skeleton loading animation */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s infinite;
}

/* Lazy loading styles with layout stability */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    /* Prevent layout shift during loading */
    min-height: 200px;
    background: #f8fafc;
    display: block;
    position: relative;
}

.lazy-load.loading {
    opacity: 1;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s infinite;
}

.lazy-load.loaded {
    opacity: 1;
    min-height: auto;
    background: transparent;
    animation: none;
}

/* Fallback for no JavaScript */
.no-js .lazy-load {
    opacity: 1;
}

/* Font loading optimization */
body {
    font-display: swap;
}

.fonts-loaded body {
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Prevent FOIT (Flash of Invisible Text) */
@font-face {
    font-family: 'Inter';
    font-display: swap;
}

/* Performance-optimized animations */
.gpu-accelerated {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Content visibility for better rendering performance */
.content-visibility-auto {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

/* Optimize off-screen sections */
.services,
.nonprofit,
.about,
.contact {
    content-visibility: auto;
    contain-intrinsic-size: 0 600px;
}

/* Optimize transitions for 60fps performance */
.smooth-transition {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.2s;
}

.smooth-transform {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Reduce motion for accessibility and performance */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Slow connection optimizations */
.slow-connection * {
    animation-duration: 0.01ms !important;
    animation-delay: 0.01ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0.01ms !important;
}

.slow-connection .service-card {
    transform: none !important;
    transition: none !important;
}

.slow-connection .hero::before {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Skip link removed - was not functional */

:root {
    /* Modern Color Palette */
    --primary-900: #0f172a;
    --primary-800: #1e293b;
    --primary-700: #334155;
    --primary-600: #475569;
    --primary-500: #64748b;
    --primary-400: #94a3b8;
    --primary-300: #cbd5e1;
    --primary-200: #e2e8f0;
    --primary-100: #f1f5f9;
    --primary-50: #f8fafc;

    /* Brand Colors */
    --brand-primary: #1a365d;
    --brand-secondary: #2d3748;
    --brand-accent: #3b82f6;
    --brand-accent-light: #60a5fa;
    --brand-blue-light: #3b82f6;

    /* Semantic Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-body: #475569;
    --text-heading: #1a365d;

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-accent: #fef2f2;
    --bg-card: rgba(255, 255, 255, 0.9);

    /* Border Colors */
    --border-light: rgba(255, 255, 255, 0.2);
    --border-subtle: rgba(226, 232, 240, 0.6);
    --border-muted: #e2e8f0;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Grid Gaps */
    --gap-sm: 1rem;
    --gap-md: 1.5rem;
    --gap-lg: 2rem;
    --gap-xl: 2.5rem;

    /* Typography - Optimized font sizes */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;

    /* Line Heights - Optimized for performance */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: var(--leading-relaxed);
    color: var(--text-primary);
    scroll-behavior: smooth;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    font-variation-settings: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-display: swap;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    width: 100%;
}

/* Improved responsive container padding */
@media (min-width: 480px) {
    .container {
        padding: 0 var(--space-xl);
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-2xl);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--space-3xl);
    }
}

@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
        padding: 0 var(--space-4xl);
    }
}

/* Header and Navigation */
.navbar {
    background: var(--brand-primary);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: var(--space-md) 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    /* Optimize backdrop filter performance */
    will-change: backdrop-filter;
}

.nav-container {
    max-width: none;
    margin: 0;
    padding: 0 var(--space-2xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navbar responsive padding handled in main .nav-container rule */

.logo {
    display: flex;
    align-items: center;
}

.logo-svg {
    height: 60px;
    width: auto;
    transition: opacity 0.3s ease;
}


.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--brand-accent-light);
}

/* Navbar when scrolled past hero */
.navbar.scrolled .nav-link {
    color: white;
}

.navbar.scrolled .nav-link:hover {
    color: var(--brand-accent-light);
}

.navbar.scrolled .hamburger span {
    background: var(--brand-primary);
}

.navbar.scrolled {
    background: var(--brand-primary);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    border: 1px solid var(--brand-primary);
    border-radius: 5px;
    padding: 5px;
    background-color: white;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--brand-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: url('images/hero-image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    min-height: 85vh;
    position: relative;
}

/* Better hero responsive behavior */
@media (max-width: 1024px) {
    .hero {
        min-height: 80vh;
        padding: 100px 0 70px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 75vh;
        padding: 90px 0 60px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 70vh;
        padding: 80px 0 50px;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.25));
    z-index: 1;
}



.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 650px;
    color: white;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-xl);
    line-height: var(--leading-tight);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.025em;
}

.hero-content p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    padding: var(--space-lg) var(--space-2xl);
    border: none;
    border-radius: var(--radius-xl);
    font-size: var(--font-size-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button.primary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cta-button.primary:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image-placeholder {
    background: #f7fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 60px 20px;
    color: #718096;
    font-style: italic;
}

/* Main Services Section */
.main-services {
    padding: 80px 0;
    background: #f8fafc;
}

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

.service-main {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.service-image {
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    /* Prevent layout shift */
    position: relative;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    background: #f7fafc;
}

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

/* Fallback for missing images */
.service-image img[src="service-financial.jpg"],
.service-image img[src="service-consulting.jpg"],
.service-image img[src="service-community.jpg"] {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-image img[src="service-financial.jpg"]::before {
    content: "📊 Financial Operations";
    font-size: 1.2rem;
    color: #4a5568;
}

.service-image img[src="service-consulting.jpg"]::before {
    content: "💼 Business Consulting";
    font-size: 1.2rem;
    color: #4a5568;
}

.service-image img[src="service-community.jpg"]::before {
    content: "🤝 Community Support";
    font-size: 1.2rem;
    color: #4a5568;
}

.service-image-placeholder {
    height: 200px;
    background: #f7fafc;
    border: 2px dashed #cbd5e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.service-main h3 {
    font-size: 1.5rem;
    color: var(--text-heading);
    margin-bottom: 1rem;
    padding: 0 2rem;
}

.service-main p {
    color: var(--text-body);
    margin-bottom: 2rem;
    padding: 0 2rem;
    line-height: 1.6;
}

/* Default quote button (for non-flip cards) */
.quote-btn {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white;
    border: none;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 var(--space-xl) var(--space-xl) var(--space-xl);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.025em;
    text-align: center;
    display: inline-block;
}

.quote-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.quote-btn:hover::before {
    left: 100%;
}

.quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-light));
}

.quote-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

/* Mission Section */
.mission {
    padding: 80px 0;
    text-align: center;
    background: white;
}

.mission h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--brand-primary);
    margin-bottom: var(--space-2xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
}

.mission h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-accent), var(--brand-accent-light));
    border-radius: 2px;
}

.mission p {
    font-size: 1.2rem;
    color: var(--text-body);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* About Section (Why Choose Us) */
.about {
    padding: 80px 0;
    background: var(--bg-primary);
}

.about-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-heading);
    margin-bottom: 4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-accent), var(--brand-accent-light));
    border-radius: 2px;
}

/* Mobile-first: Show mobile image, hide desktop image */
.about-image-mobile {
    display: block;
    text-align: center;
    margin-bottom: 3rem;
}

.why-image-desktop {
    display: none;
}

.about-content {
    display: block;
}

/* Desktop: Hide mobile image, show desktop layout */
@media (min-width: 769px) {
    .about-image-mobile {
        display: none;
    }

    .why-image-desktop {
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    .about-content {
        display: grid;
        grid-template-columns: 1fr 350px;
        gap: 4rem;
        align-items: center;
    }
}

.community-mission {
    margin-bottom: 2.5rem;
    text-align: center;
}

.community-mission p {
    font-size: 1.2rem;
    color: var(--text-heading);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.credentials {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 769px) {
    .credentials {
        gap: 1.5rem;
    }
}

.credential-item {
    padding: 0;
    border: none;
}

.credential-item h4 {
    font-size: 1.3rem;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.credential-item p {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.6;
    margin: 0;
}

.why-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.professional-headshot {
    width: 320px;
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    border: none;
    background: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.professional-headshot:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.professional-headshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 16px;
    border: none;
}

/* Quote Section */
.quote-section {
    padding: 80px 0;
    background: white;
}

.quote-section h2 {
    font-size: 2.5rem;
    color: #1a365d;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 300;
}

.quote-form-inline {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-input {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #1a365d;
}

.quote-submit-btn {
    width: 100%;
    background: #1a365d;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 1rem;
}

.quote-submit-btn:hover {
    background: #2d3748;
}

/* Services Section (Detailed) */
.services {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--text-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-accent), var(--brand-accent-light));
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* Better responsive breakpoints for services */
@media (min-width: 640px) and (max-width: 1023px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1280px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2.5rem;
    }
}

/* Flip Card Container */
.service-card-container {
    perspective: 1000px;
    height: 520px;
    cursor: pointer;
    /* Optimize for GPU acceleration */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Responsive service card heights */
@media (min-width: 1024px) {
    .service-card-container {
        height: 500px;
    }
}

@media (min-width: 1280px) {
    .service-card-container {
        height: 520px;
    }
}

.service-card {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    /* Optimize for smooth animations */
    will-change: transform;
}

.service-card-container.flipped .service-card-front {
    opacity: 0;
    transform: rotateY(90deg);
    pointer-events: none;
}

.service-card-container.flipped .service-card-back {
    opacity: 1;
    transform: rotateY(0deg);
    pointer-events: auto;
}

/* Front and Back of Card */
.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow:
        0 8px 25px -8px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.service-card-front {
    opacity: 1;
    transform: rotateY(0deg);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
}

.service-card-back {
    opacity: 0;
    transform: rotateY(-90deg);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.service-card-front::before,
.service-card-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 1.5rem 1.5rem 0 0;
}

.service-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    color: #1a365d;
}

/* Hover Effects */
.service-card-container:hover .service-card-front,
.service-card-container:hover .service-card-back {
    box-shadow:
        0 20px 40px -12px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

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

/* Front Card Content */
.service-card-front {
    justify-content: space-between;
}

.service-card-front h3 {
    color: var(--text-heading);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.service-card-front p {
    color: var(--text-body);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* Back Card Content */
.service-card-back {
    padding: 1.5rem 2rem 2rem 2rem;
}

.service-card-back h3 {
    color: var(--text-heading);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
}

.service-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    text-align: center;
    font-style: italic;
    padding: 0 0.5rem;
}

.service-details {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.5rem;
}

.service-details li {
    color: var(--text-secondary);
    font-size: 0.85rem;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.4;
    text-align: left;
}

.service-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand-accent);
    font-weight: bold;
    font-size: 1rem;
}

/* Clean flip card button styling */
.service-card-container .quote-btn {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    margin: 16px 0 8px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.025em;
    width: 100%;
    text-align: center;
    display: block;
    line-height: 1.4;
    white-space: nowrap;
}

.service-card-container .quote-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.service-card-container .quote-btn:hover::before {
    left: 100%;
}

.service-card-container .quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-light));
}

.service-card-container .quote-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Extra specificity to ensure consistent button styling */
.service-card-back .quote-btn {
    background: linear-gradient(135deg, #1a365d, #2d3748) !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    font-family: inherit !important;
    transition: all 0.2s ease !important;
    margin: 16px 0 8px 0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
    overflow: hidden !important;
    letter-spacing: 0.025em !important;
    width: 100% !important;
    text-align: center !important;
    display: block !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
}

/* Flip Hints */
.flip-hint {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: auto;
    font-style: italic;
    padding-top: 1rem;
}

.flip-back-hint {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-style: italic;
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Service image in flip cards */
.service-card-front .service-image {
    margin-bottom: 1.5rem;
    border-radius: 1rem;
    overflow: hidden;
    background: #f8fafc;
}

.service-card-front .service-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 1rem;
}

.service-card h3 {
    color: #1a365d;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Nonprofit Section */
.nonprofit {
    padding: 80px 0;
    background: white;
}

.nonprofit h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--text-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
}

.nonprofit h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-accent), var(--brand-accent-light));
    border-radius: 2px;
}

.nonprofit-content {
    text-align: center;
}

.nonprofit-content>p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.nonprofit-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.nonprofit-image-placeholder {
    height: 200px;
    background: #f7fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.nonprofit-mission h3 {
    color: #1a365d;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.nonprofit-mission p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #f8fafc;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a365d;
    font-weight: 300;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Better tablet layout for contact */
@media (max-width: 1024px) {
    .contact-content {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h3 {
    color: #1a365d;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-item p {
    color: #666;
    font-size: 1.1rem;
}

.contact-form-container h3 {
    color: #1a365d;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: var(--space-lg) var(--space-lg);
    border: 1px solid var(--primary-300);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-family: inherit;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1), var(--shadow-md);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.submit-btn {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white;
    border: none;
    padding: var(--space-lg) var(--space-2xl);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.025em;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-light));
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #333;
}

.modal h2 {
    color: #1a365d;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

#quote-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#quote-form input,
#quote-form select,
#quote-form textarea {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

#quote-form input:focus,
#quote-form select:focus,
#quote-form textarea:focus {
    outline: none;
    border-color: #1a365d;
}

/* Footer */
footer {
    background: #1a365d;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Success Modal */
#success-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2001; /* Sit on top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Darker overlay */
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

#success-modal .modal-content {
    background-color: #ffffff;
    margin: 15% auto;
    padding: 2.5rem;
    border: none;
    border-radius: 1rem;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
    opacity: 0;
    animation: modal-swoop-in 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes modal-swoop-in {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

#success-modal h2 {
    color: #1a365d;
    font-size: 2rem;
    margin-bottom: 1rem;
}

#success-modal p {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

#success-modal .close {
    color: #aaa;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

#success-modal .close:hover,
#success-modal .close:focus {
    color: #1a365d;
    text-decoration: none;
    cursor: pointer;
}


/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex !important;
        position: relative;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 76px;
        flex-direction: column;
        background: linear-gradient(145deg, var(--brand-primary), var(--brand-secondary));
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.25);
        padding: 2rem 0;
        border-top: 3px solid var(--brand-accent);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu .nav-link {
        padding: 1rem;
        display: block;
        color: white !important;
        font-weight: 500;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        transition: all 0.3s ease;
    }

    .nav-menu .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--brand-accent-light) !important;
    }

    .nav-menu .nav-link:last-child {
        border-bottom: none;
    }

    /* Ensure mobile menu text is always white regardless of navbar state */
    .navbar.scrolled .nav-menu .nav-link,
    .navbar .nav-menu .nav-link {
        color: white !important;
    }

    .navbar.scrolled .nav-menu .nav-link:hover,
    .navbar .nav-menu .nav-link:hover {
        color: var(--brand-accent-light) !important;
        background-color: rgba(255, 255, 255, 0.1);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .services-grid-main {
        grid-template-columns: 1fr;
    }

    .why-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
    }

    .nonprofit-images {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
        flex-direction: column;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .main-services,
    .mission,
    .why-choose-us,
    .quote-section,
    .services,
    .nonprofit,
    .contact {
        padding: 60px 0;
    }

    .service-main {
        margin-bottom: 2rem;
    }

    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
    }

    /* Mobile flip card adjustments */
    .service-card-container {
        height: 550px;
    }

    .service-card-front,
    .service-card-back {
        padding: 1.25rem;
    }

    .service-card-back {
        padding: 1rem 1.25rem 1.25rem 1.25rem;
    }

    .service-card-front h3,
    .service-card-back h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .service-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }

    .service-details {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .service-details li {
        font-size: 0.9rem;
        padding: 0.25rem 0;
        line-height: 1.4;
        padding-left: 1.25rem;
    }

    .service-details li::before {
        font-size: 0.9rem;
    }

    .service-card-container .quote-btn {
        padding: 10px 20px;
        font-size: 13px;
        margin: 12px 0 6px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Hero Image Overrides */
.hero-image {
    display: none;
    /* Image is now background */
}

.hero-image-placeholder {
    display: none;
}

/* Enhanced Mobile Responsiveness for Hero */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .hero-buttons {
        justify-content: center;
        gap: 1rem;
    }

    .cta-button {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    /* Extra small screen flip card adjustments */
    .service-card-container {
        height: 520px;
    }

    .service-card-front,
    .service-card-back {
        padding: 1rem;
    }

    .service-card-back {
        padding: 0.75rem 1rem 1rem 1rem;
    }

    .service-card-front h3,
    .service-card-back h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .service-description {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }

    .service-details {
        gap: 0.6rem;
        margin-bottom: 0.75rem;
    }

    .service-details li {
        font-size: 0.85rem;
        padding: 0.2rem 0;
        line-height: 1.3;
        padding-left: 1rem;
    }

    .service-details li::before {
        font-size: 0.8rem;
    }

    .service-card-container .quote-btn {
        padding: 8px 16px;
        font-size: 12px;
        margin: 8px 0 4px 0;
    }
}

/* S
ervice Image Fallback Styling */
.service-image-fallback {
    height: 200px;
    background: linear-gradient(135deg, #f7fafc, #e2e8f0);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    border: 1px solid #e2e8f0;
}

.service-image-fallback:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-icon-large {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.service-image-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #4a5568;
    text-align: center;
}

/* Nonprofit Visual Elements */
.nonprofit-image-visual {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.nonprofit-image-visual:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.nonprofit-image-visual h4 {
    color: #1a365d;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
}

.nonprofit-image-visual p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    margin: 0 auto;
    max-width: 400px;
}

/ * Enhanced Service Image Styling */ .service-image-fallback {
    height: 200px;
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 197, 253, 0.1)),
        radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.service-image-fallback::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.8));
    z-index: 1;
}

.service-image-fallback:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

.service-icon-large {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.service-image-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e40af;
    text-align: center;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Ser
vice Card Image Styling */
.service-card .service-image {
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.service-card .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

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

/ * Updated Service Card Image Styling */ .service-card .service-image {
    height: 220px !important;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card .service-image img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

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

/*
 Community Mission Styling */
.community-mission {
    margin-bottom: 2rem;
    text-align: center;
}

.community-mission p {
    font-size: 1.2rem;
    color: var(--text-heading);
    font-style: italic;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Community Focus Section Styling */
.community-focus {
    padding: 80px 0;
    background: white;
    text-align: center;
}

.community-focus h2 {
    font-size: 2.5rem;
    color: #1a365d;
    margin-bottom: 2rem;
    font-weight: 300;
}

.community-focus p {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/*
 Community Support Feature in Nonprofit Section */
.community-support-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 3rem 0;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.community-support-image {
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
}

.community-support-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: #f8fafc;
}

.community-support-content h3 {
    color: #1a365d;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.community-support-content p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.community-support-content .quote-btn {
    background: #1a365d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.community-support-content .quote-btn:hover {
    background: #2d3748;
}

/* Mobile responsiveness for community support */
@media (max-width: 768px) {
    .community-support-feature {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .community-support-image {
        height: 250px;
    }
}

/ * Consistent Service Card Image Sizing */ .service-card .service-image {
    height: 200px !important;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    background: #f8fafc;
}

.service-card .service-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

/* Nonprofit image styling */
.nonprofit-image {
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: #f8fafc;
}

.nonprofit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/ * Fixed Image Sizing - No Cutoff */ .service-card .service-image {
    height: 240px !important;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    background: #f8fafc !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.service-card .service-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

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

/* Nonprofit Financial Literacy Image - Consistent Sizing */
.nonprofit-image {
    height: 240px !important;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: #f8fafc !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.nonprofit-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.nonprofit-image img:hover {
    transform: scale(1.02);
}

/* Stretch out the single nonprofit image */
.nonprofit-images {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.nonprofit-image-visual {
    max-width: 600px;
    width: 100%;
    text-align: center;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.6);
}

/* Enh
anced Visual Design - Background Colors & Typography */

/* Improved Typography */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2d3748;
    line-height: 1.7;
}

/* Section Background Variations */
.mission {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.services {
    background: #ffffff;
}

.nonprofit {
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
}

.why-choose-us {
    background: #ffffff;
}

.contact {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

/* Enhanced Service Cards */
.service-card {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Enhanced Typography for Headings */
h1,
h2,
h3 {
    color: #1a365d;
    font-weight: 600;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 3rem;
    position: relative;
}





.community-support-feature {
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(226, 232, 240, 0.5);
}

/* Enhanced Why Choose Us Section */
.credential-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.credential-item:last-child {
    border-bottom: none;
}

/* Enhanced Contact Section */
.contact-item {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.contact-form-container {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-2xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

/* Enhanced Button Styling */
.quote-btn,
.submit-btn {
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.2);
    transition: all 0.3s ease;
}

.quote-btn:hover,
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 54, 93, 0.3);
}

/* Subtle Pattern Overlay for Sections */
.mission::before,
.nonprofit::before,
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(30, 64, 175, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.mission,
.nonprofit,
.contact {
    position: relative;
}

/* Enhanced Text Colors */
p {
    color: #4a5568;
    font-size: 1.1rem;
}

.service-card p {
    color: #718096;
}

/* Professional Footer Enhancement */
footer {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Tea
m Leader Image Styling */
.professional-headshot {
    width: 280px;
    height: 350px;
    overflow: hidden;
    border-radius: 12px;
    background: #f8fafc;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 3px solid #ffffff;
    transition: all 0.3s ease;
}

.professional-headshot:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.professional-headshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9px;
    transition: transform 0.3s ease;
}

.professional-headshot img:hover {
    transform: scale(1.05);
}

/* Mobile responsiveness for team leader image */
@media (max-width: 768px) {
    .professional-headshot {
        width: 250px;
        height: 300px;
        margin: 0 auto;
    }
}

/
/* Mobile responsiveness for About section */
@media (max-width: 768px) {
    .professional-headshot {
        width: 280px;
        height: 320px;
        margin: 0 auto;
    }

    .community-mission {
        text-align: center;
        margin-bottom: 3rem;
    }

    .credentials {
        gap: 2.5rem;
    }

    .credential-item {
        text-align: left;
        padding: 1.5rem;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(226, 232, 240, 0.6);
    }

    .credential-item h4 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .credential-item p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .professional-headshot {
        width: 240px;
        height: 280px;
    }

    .credential-item {
        padding: 1.25rem;
    }

    .credential-item h4 {
        font-size: 1.1rem;
    }

    .credential-item p {
        font-size: 0.9rem;
    }
}