/* ========================================
   BEAVER HILLS COMMUNITY EMPOWERMENT
   Premium Website Styles
   ======================================== */

/* CSS Custom Properties */
:root {
    /* Brand Colors - Extracted from logo */
    --primary-teal: #1a4a4a;
    --primary-teal-dark: #0d2d2d;
    --accent-copper: #c87533;
    --accent-copper-light: #e09955;
    --cream: #f5f0e8;
    --cream-light: #faf8f4;
    --cream-dark: #e8e0d4;

    /* Extended Palette */
    --text-dark: #1a2a2a;
    --text-medium: #4a5a5a;
    --text-light: #6a7a7a;
    --white: #ffffff;
    --success: #22c55e;
    --warning: #f59e0b;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-dark) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-copper) 0%, var(--accent-copper-light) 100%);
    --gradient-cream: linear-gradient(180deg, var(--cream-light) 0%, var(--cream) 100%);
    --gradient-hero: linear-gradient(145deg,
            rgba(26, 74, 74, 0.95) 0%,
            rgba(13, 45, 45, 0.9) 50%,
            rgba(200, 117, 51, 0.2) 100%);

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1400px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(200, 117, 51, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 50%;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--cream-light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   PRELOADER
   ======================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
    color: var(--white);
}

.loader svg {
    width: 80px;
    height: 80px;
    animation: pulse 1.5s ease-in-out infinite;
}

.loader svg circle {
    fill: none;
    stroke: var(--accent-copper);
    stroke-width: 4;
    stroke-dasharray: 250;
    stroke-dashoffset: 0;
    animation: loader-circle 2s ease-in-out infinite;
}

.loader span {
    display: block;
    margin-top: 16px;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes loader-circle {
    0% {
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dashoffset: 250;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: 12px 0;
}

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

.logo img {
    height: 60px;
    width: auto;
    transition: var(--transition-normal);
}

.navbar.scrolled .logo img {
    height: 50px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--white);
    border-radius: var(--radius-xl);
    transition: var(--transition-normal);
}

.navbar.scrolled .nav-link {
    color: var(--text-dark);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    background: var(--cream);
    color: var(--primary-teal);
}

.nav-link.nav-cta {
    background: var(--gradient-accent);
    color: var(--white) !important;
    padding: 10px 24px;
}

.nav-link.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition-normal);
}

.navbar.scrolled .nav-toggle span {
    background: var(--text-dark);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: var(--gradient-primary);
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 70% 30%, rgba(200, 117, 51, 0.15) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text {
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-badge i {
    color: var(--accent-copper-light);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero h1 .highlight {
    color: var(--accent-copper-light);
    display: inline-block;
    position: relative;
}

.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--accent-copper);
    opacity: 0.3;
    border-radius: 4px;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-xl);
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(200, 117, 51, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(200, 117, 51, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn i {
    transition: transform var(--transition-normal);
}

.btn:hover i {
    transform: translateX(4px);
}

/* Hero Image */
.hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-large {
    width: 400px;
    max-width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    animation: float-card 4s ease-in-out infinite;
    color: var(--text-dark);
}

.floating-card i {
    font-size: 24px;
    color: var(--accent-copper);
}

.floating-card span {
    font-weight: 600;
    font-size: 14px;
}

.card-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 30%;
    left: -5%;
    animation-delay: 1s;
}

.card-3 {
    top: 20%;
    right: -5%;
    animation-delay: 2s;
}

@keyframes float-card {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 1;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 120px;
}

.hero-wave svg path {
    fill: var(--cream-light);
}

/* ========================================
   SECTION STYLES
   ======================================== */
section {
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: var(--gradient-accent);
    color: var(--white);
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.section-header h2 .highlight {
    color: var(--accent-copper);
}

.section-header.light h2 {
    color: var(--white);
}

.section-header.light h2 .highlight {
    color: var(--accent-copper-light);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    padding: var(--section-padding) 0;
    background: var(--gradient-cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    padding: 20px;
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: var(--gradient-accent);
    border-radius: var(--radius-xl);
    filter: blur(40px);
    opacity: 0.3;
}

.image-wrapper img {
    position: relative;
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.experience-badge {
    position: absolute;
    bottom: 40px;
    right: 0;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 24px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.experience-badge .number {
    display: block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

.experience-badge .text {
    display: block;
    font-size: 32px;
    font-weight: 700;
    font-family: var(--font-heading);
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-content .lead {
    font-size: 1.15rem;
    color: var(--text-medium);
    margin-bottom: 16px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 32px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon i {
    color: var(--accent-copper);
    font-size: 20px;
}

.feature span {
    font-weight: 500;
    color: var(--text-dark);
}

/* ========================================
   MISSION SECTION
   ======================================== */
.mission {
    padding: var(--section-padding) 0;
    background: var(--gradient-primary);
    position: relative;
}

.mission-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>');
    background-size: 200px;
    animation: bg-scroll 60s linear infinite;
}

@keyframes bg-scroll {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 200px 200px;
    }
}

.mission-statement {
    position: relative;
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: center;
    padding: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mission-statement .quote-icon {
    position: absolute;
    top: 30px;
    left: 40px;
    font-size: 60px;
    color: var(--accent-copper);
    opacity: 0.3;
}

.mission-statement p {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--white);
}

.mission-pillars {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.pillar {
    text-align: center;
    padding: 40px 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.pillar:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-8px);
}

.pillar-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition-normal);
}

.pillar:hover .pillar-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.pillar-icon i {
    font-size: 28px;
    color: var(--white);
}

.pillar h4 {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 12px;
}

.pillar p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
    padding: var(--section-padding) 0;
    background: var(--cream-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    position: relative;
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-card.featured {
    background: var(--gradient-primary);
    color: var(--white);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-accent);
    color: var(--white);
    padding: 6px 16px;
    border-radius: var(--radius-xl);
    font-size: 12px;
    font-weight: 600;
}

.service-icon {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.icon-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    opacity: 0.1;
    transition: var(--transition-normal);
}

.service-card:hover .icon-glow {
    transform: scale(1.2);
    opacity: 0.2;
}

.service-icon i {
    position: relative;
    font-size: 36px;
    color: var(--accent-copper);
    z-index: 1;
}

.service-card.featured .service-icon i {
    color: var(--accent-copper-light);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.service-card.featured h3 {
    color: var(--white);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.7;
}

.service-card.featured p {
    color: rgba(255, 255, 255, 1) !important;
}

.service-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--accent-copper);
    transition: var(--transition-normal);
}

.service-card.featured .service-link {
    color: var(--accent-copper-light);
}

.service-link i {
    transition: transform var(--transition-normal);
}

.service-card:hover .service-link i {
    transform: translateX(6px);
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats {
    padding: 80px 0;
    background: var(--cream);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.stat-icon i {
    font-size: 24px;
    color: var(--white);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-teal);
    margin-bottom: 8px;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   COMMUNITY SECTION
   ======================================== */
.community {
    padding: var(--section-padding) 0;
    background: var(--gradient-cream);
}

.community-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.community-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.community-text p {
    color: var(--text-medium);
    margin-bottom: 32px;
}

.community-benefits {
    list-style: none;
}

.community-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.community-benefits li:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.community-benefits li i {
    color: var(--success);
    font-size: 18px;
    margin-top: 2px;
}

.cta-card {
    background: var(--gradient-primary);
    padding: 50px 40px;
    border-radius: var(--radius-xl);
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow-xl);
}

.cta-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.cta-icon i {
    font-size: 36px;
    color: var(--accent-copper-light);
}

.cta-card h4 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 12px;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 24px;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    padding: var(--section-padding) 0;
    background: var(--gradient-primary);
    position: relative;
}

.contact-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at 80% 50%, rgba(200, 117, 51, 0.1) 0%, transparent 60%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    color: var(--white);
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 16px;
}

.contact-info>p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(8px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 20px;
    color: var(--white);
}

.contact-details h4 {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 6px;
}

.contact-details p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.6;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    padding: 16px 20px;
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition-normal);
    background: var(--cream-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-copper);
    background: var(--white);
}

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

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--primary-teal-dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateY(-99%);
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

.footer-wave svg path {
    fill: var(--primary-teal-dark);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    padding: 80px 0 40px;
}

.footer-logo {
    width: 180px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.social-links a:hover {
    background: var(--accent-copper);
    transform: translateY(-4px);
}

.social-links a i {
    font-size: 18px;
}

.footer-links h4 {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 24px;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-normal);
}

.footer-links a:hover {
    color: var(--accent-copper-light);
    padding-left: 8px;
}

.footer-newsletter h4 {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-size: 15px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 15px;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    border: none;
    border-radius: var(--radius-md);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition-normal);
}

.newsletter-form button:hover {
    transform: scale(1.05);
}

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 4px;
}

/* ========================================
   BACK TO TOP
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    border: none;
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.shimmer {
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Particle Animation */
.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    pointer-events: none;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media (max-width: 1200px) {
    .mission-pillars {
        grid-template-columns: repeat(3, 1fr);
    }

    .mission-pillars .pillar:nth-child(4),
    .mission-pillars .pillar:nth-child(5) {
        grid-column: span 1;
    }
}

@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

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

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

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

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--primary-teal-dark);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 60px 40px;
        transition: var(--transition-normal);
    }

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

    .nav-menu .nav-link {
        color: var(--white) !important;
        font-size: 24px;
        padding: 16px 0;
    }

    .nav-toggle {
        display: flex;
    }

    .mission-pillars {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .contact-form-wrapper {
        padding: 30px;
    }

    .floating-card {
        display: none;
    }

    .hero-logo-large {
        width: 280px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 14px 24px;
        font-size: 14px;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .mission-pillars {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .footer-links li {
        margin-bottom: 0;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }
}

/* ========================================
   ELDERLY-FRIENDLY / ACCESSIBILITY STYLES
   Enhanced for seniors and visually impaired
   ======================================== */

/* Reduce motion for users who prefer it */
@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;
    }

    .hero-logo-large,
    .floating-card,
    .particle {
        animation: none !important;
    }

    .mission-bg {
        animation: none !important;
    }
}

/* Mobile-First Elderly Accessibility (all mobile devices) */
@media (max-width: 1024px) {

    /* Larger base font size for readability */
    body {
        font-size: 18px;
        line-height: 1.9;
    }

    /* Larger headings */
    h1,
    .hero h1 {
        font-size: 2.2rem !important;
        line-height: 1.3 !important;
    }

    h2,
    .section-header h2 {
        font-size: 1.8rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    h4 {
        font-size: 1.2rem !important;
    }

    /* Larger paragraph text */
    p,
    .hero-subtitle {
        font-size: 1.15rem !important;
        line-height: 1.9 !important;
    }

    /* Much larger touch targets for buttons (min 48px recommended, we do 60px) */
    .btn {
        min-height: 60px;
        padding: 18px 32px;
        font-size: 18px !important;
        font-weight: 600;
        border-radius: 16px;
    }

    /* Larger navigation links */
    .nav-link {
        padding: 16px 24px;
        font-size: 18px !important;
        min-height: 52px;
    }

    /* Much larger mobile menu */
    .nav-menu.active .nav-link {
        font-size: 26px !important;
        padding: 24px 0;
        min-height: 70px;
    }

    /* Larger hamburger menu button */
    .nav-toggle {
        padding: 16px;
        min-width: 56px;
        min-height: 56px;
    }

    .nav-toggle span {
        width: 32px;
        height: 4px;
    }

    /* Larger form inputs */
    .form-group input,
    .form-group textarea {
        font-size: 18px !important;
        padding: 20px 24px;
        min-height: 60px;
        border-width: 3px;
    }

    .form-group label {
        font-size: 16px !important;
        font-weight: 600;
        margin-bottom: 10px;
    }

    /* Larger newsletter input */
    .newsletter-form input {
        font-size: 18px;
        padding: 18px 24px;
        min-height: 60px;
    }

    .newsletter-form button {
        min-width: 60px;
        min-height: 60px;
    }

    /* Larger service cards text */
    .service-card h3 {
        font-size: 1.4rem !important;
    }

    .service-card p {
        font-size: 1.1rem !important;
        line-height: 1.8 !important;
    }

    /* Larger stats */
    .stat-number {
        font-size: 2.5rem !important;
    }

    .stat-label {
        font-size: 16px !important;
    }

    /* Larger icons for better visibility */
    .pillar-icon {
        width: 90px;
        height: 90px;
    }

    .pillar-icon i {
        font-size: 36px;
    }

    .pillar h4 {
        font-size: 1.3rem !important;
    }

    .pillar p {
        font-size: 1rem !important;
        line-height: 1.8 !important;
    }

    /* Larger contact cards */
    .contact-card {
        padding: 28px;
    }

    .contact-icon {
        width: 60px;
        height: 60px;
    }

    .contact-icon i {
        font-size: 26px;
    }

    .contact-details h4 {
        font-size: 1.15rem !important;
    }

    .contact-details p {
        font-size: 1.1rem !important;
    }

    /* Larger community benefits */
    .community-benefits li {
        padding: 18px 20px;
        font-size: 1.1rem;
    }

    /* Larger footer text */
    .footer-brand p,
    .footer-newsletter p {
        font-size: 1.05rem !important;
    }

    .footer-links a {
        font-size: 1.1rem;
        padding: 8px 0;
        display: inline-block;
    }

    /* Larger social icons */
    .social-links a {
        width: 56px;
        height: 56px;
    }

    .social-links a i {
        font-size: 24px;
    }

    /* Larger back to top button */
    .back-to-top {
        width: 64px;
        height: 64px;
        font-size: 26px;
        bottom: 24px;
        right: 24px;
    }

    /* Better spacing between sections */
    section {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

/* Higher contrast and even larger text for very small screens */
@media (max-width: 576px) {
    body {
        font-size: 19px;
    }

    /* Extra spacing for touch */
    .container {
        padding: 0 20px;
    }

    /* Full-width buttons on mobile */
    .hero-buttons {
        flex-direction: column;
        gap: 16px;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        min-height: 64px;
    }

    /* Stacked service card layout with more padding */
    .service-card {
        padding: 32px 24px;
    }

    /* Bigger CTA card */
    .cta-card {
        padding: 40px 28px;
    }

    .cta-card h4 {
        font-size: 1.5rem !important;
    }

    /* Form improvements */
    .contact-form-wrapper {
        padding: 28px 20px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    /* Make form button full width and taller */
    .contact-form .btn {
        min-height: 64px;
        font-size: 20px !important;
    }
}

/* Focus states for keyboard navigation (elderly often use keyboard/tab) */
a:focus,
button:focus,
input:focus,
textarea:focus,
.btn:focus,
.nav-link:focus {
    outline: 4px solid var(--accent-copper) !important;
    outline-offset: 4px !important;
    box-shadow: 0 0 0 6px rgba(200, 117, 51, 0.3) !important;
}

/* High contrast focus for dark backgrounds */
.mission a:focus,
.mission button:focus,
.contact a:focus,
.contact button:focus,
.contact input:focus,
.contact textarea:focus,
.hero a:focus,
.hero button:focus,
.footer a:focus,
.footer button:focus,
.footer input:focus {
    outline-color: var(--accent-copper-light) !important;
    box-shadow: 0 0 0 6px rgba(224, 153, 85, 0.4) !important;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-teal);
    color: var(--white);
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: var(--radius-md);
    z-index: 10001;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 20px;
}

/* Increase color contrast for elderly - only for LIGHT background sections */
.text-light,
.about-content p,
.service-card:not(.featured) p {
    color: #3a4a4a !important;
    /* Darker than default for better contrast on light backgrounds */
}

/* Underline links for clarity */
.footer-links a:hover,
.footer-links a:focus,
.service-link:hover,
.service-link:focus {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Prevent text from being too wide (hard to read) */
p,
li,
.about-content .lead {
    max-width: 70ch;
}

/* Ensure good color contrast ratios */
.hero-subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
    /* Increased from 0.9 */
}

.nav-link {
    font-weight: 600;
    /* Bolder for visibility */
}

/* Larger checkmarks in community benefits */
.community-benefits li i {
    font-size: 22px;
    min-width: 28px;
}

/* Better spacing in about features */
.about-features {
    gap: 20px;
}

.feature {
    padding: 8px 0;
}

.feature-icon i {
    font-size: 24px;
}

.feature span {
    font-size: 1.1rem;
}

/* Print styles for elderly who may print */
@media print {
    body {
        font-size: 14pt;
        line-height: 1.6;
        color: #000;
        background: #fff;
    }

    .navbar,
    .hero-particles,
    .back-to-top,
    #preloader,
    .floating-card,
    .social-links,
    .newsletter-form {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
        background: #fff !important;
        color: #000 !important;
    }

    .hero h1,
    .hero-subtitle {
        color: #000 !important;
    }

    section {
        page-break-inside: avoid;
        padding: 30px 0;
    }

    .mission {
        background: #f5f5f5 !important;
    }

    .mission-statement p,
    .pillar h4,
    .pillar p {
        color: #000 !important;
    }

    a {
        text-decoration: underline;
    }
}

/* ========================================
   NEW SECTIONS - ENGINEERING TRAINING PROGRAM
   ======================================== */

/* Section Description */
.section-description {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Program Phases */
.program-phases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.phase-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.phase-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-teal);
}

.phase-card.featured {
    background: var(--gradient-primary);
    color: var(--white);
}

.phase-card.featured h3,
.phase-card.featured .phase-duration,
.phase-card.featured .phase-list li {
    color: var(--white);
}

.phase-card.featured .phase-list i {
    color: var(--accent-copper-light);
}

.phase-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
}

.phase-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.phase-duration {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-copper);
    font-weight: 600;
    margin-bottom: 20px;
}

.phase-list {
    list-style: none;
}

.phase-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-light);
    font-size: 15px;
}

.phase-list i {
    color: var(--accent-copper);
    margin-top: 3px;
}

/* Land Acknowledgment */
.land-acknowledgment {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-dark) 100%);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-top: 60px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    color: var(--white);
}

.acknowledgment-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.acknowledgment-icon i {
    font-size: 24px;
    color: var(--accent-copper-light);
}

.land-acknowledgment p {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.95;
}

/* Funding Section */
.funding-section {
    margin-top: 60px;
    text-align: center;
    padding: 40px;
    background: var(--cream);
    border-radius: var(--radius-xl);
}

.funding-section h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.funding-intro {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 40px;
}

.funding-breakdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.funding-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.funding-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.funding-percent {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-copper);
    margin-bottom: 8px;
}

.funding-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

/* Apply Section */
.apply-section {
    position: relative;
    background: var(--gradient-primary);
    padding: var(--section-padding) 0;
    overflow: hidden;
}

.apply-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 50px 50px;
}

.apply-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.apply-eligibility,
.apply-benefits {
    color: var(--white);
}

.apply-eligibility h3,
.apply-benefits h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--white);
}

.apply-eligibility p {
    opacity: 0.9;
    margin-bottom: 24px;
}

.eligibility-list {
    list-style: none;
}

.eligibility-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.eligibility-list i {
    color: var(--accent-copper-light);
    font-size: 20px;
}

.eligibility-note {
    margin-top: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--accent-copper-light);
}

/* Benefit Cards */
.benefit-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.benefit-card i {
    font-size: 36px;
    color: var(--accent-copper-light);
    margin-bottom: 16px;
}

.benefit-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--white);
}

.benefit-card p {
    font-size: 14px;
    opacity: 1;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

/* Partner Types List */
.partner-types {
    list-style: none;
    margin-bottom: 24px;
}

.partner-types li {
    padding: 10px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.partner-types li:last-child {
    border-bottom: none;
}

.partner-types strong {
    color: var(--accent-copper-light);
}

/* Footer Acknowledgment */
.footer-acknowledgment {
    padding: 24px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.footer-acknowledgment p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.footer-acknowledgment i {
    color: var(--accent-copper-light);
    font-size: 18px;
}

/* Tertiary Button Style */
.btn-tertiary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 14px 24px;
}

.btn-tertiary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* Stat Suffix (K+, %, etc.) */
.stat-suffix {
    font-size: 1.5rem;
    color: var(--accent-copper);
    font-weight: 700;
    margin-top: -10px;
}

/* Responsive for new sections */
@media (max-width: 1024px) {
    .program-phases {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .funding-breakdown {
        grid-template-columns: repeat(2, 1fr);
    }

    .apply-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .benefit-cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .funding-breakdown {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .funding-item {
        padding: 20px 16px;
    }

    .funding-percent {
        font-size: 2rem;
    }

    .land-acknowledgment {
        flex-direction: column;
        text-align: center;
        padding: 30px 24px;
    }

    .acknowledgment-icon {
        margin: 0 auto;
    }

    .benefit-cards {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   PREMIUM VISUAL ENHANCEMENTS
   Top-notch effects and polish
   ======================================== */

/* Gradient Border Effect for Phase Cards */
.phase-card {
    position: relative;
    background: var(--white);
    z-index: 1;
}

.phase-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent-copper), var(--primary-teal), var(--accent-copper-light));
    border-radius: calc(var(--radius-xl) + 2px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.phase-card:hover::before {
    opacity: 1;
}

/* Glowing Icon Effect */
.phase-number {
    position: relative;
    box-shadow: 0 0 30px rgba(200, 117, 51, 0.4);
}

.phase-number::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    z-index: -1;
    opacity: 0.3;
    filter: blur(10px);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

/* Floating Decorative Elements for Apply Section */
.apply-section::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(200, 117, 51, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatDecor 8s ease-in-out infinite;
    pointer-events: none;
}

.apply-section::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatDecor 10s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes floatDecor {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(20px, -30px) rotate(5deg);
    }

    50% {
        transform: translate(-10px, 20px) rotate(-5deg);
    }

    75% {
        transform: translate(15px, 10px) rotate(3deg);
    }
}

/* Enhanced Benefit Cards with Glass Effect */
.benefit-card {
    position: relative;
    overflow: hidden;
}

.benefit-card::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.6s ease;
}

.benefit-card:hover::before {
    left: 100%;
}

.benefit-card i {
    filter: drop-shadow(0 0 10px rgba(224, 153, 85, 0.5));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.benefit-card:hover i {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(224, 153, 85, 0.7));
}

/* Enhanced Funding Items */
.funding-item {
    position: relative;
    overflow: hidden;
}

.funding-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.funding-item:hover::after {
    transform: scaleX(1);
}

.funding-percent {
    background: linear-gradient(135deg, var(--accent-copper), var(--accent-copper-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated Counter Effect on Stats */
.stat-number {
    position: relative;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.stat-item:hover .stat-icon {
    transform: scale(1.2) rotate(10deg);
}

.stat-icon {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Land Acknowledgment Premium Styling */
.land-acknowledgment {
    position: relative;
    overflow: hidden;
}

.land-acknowledgment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 15 L55 25 L65 25 L57 32 L60 42 L50 36 L40 42 L43 32 L35 25 L45 25 Z" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: 60px 60px;
    opacity: 0.5;
    pointer-events: none;
}

.acknowledgment-icon {
    animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(200, 117, 51, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 5px rgba(200, 117, 51, 0.2);
    }
}

/* Enhanced Eligibility List */
.eligibility-list li {
    position: relative;
    transition: transform 0.3s ease, background 0.3s ease;
}

.eligibility-list li:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

.eligibility-list li i {
    transition: transform 0.3s ease, color 0.3s ease;
}

.eligibility-list li:hover i {
    transform: scale(1.3);
}

/* Premium Button Enhancements */
.btn-primary {
    position: relative;
    overflow: hidden;
}

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

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

/* Animated Section Badge */
.section-badge {
    position: relative;
    overflow: hidden;
}

.section-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmerBadge 3s ease-in-out infinite;
}

@keyframes shimmerBadge {

    0%,
    100% {
        left: -100%;
    }

    50% {
        left: 150%;
    }
}

/* Partner Types Premium Styling */
.partner-types li {
    position: relative;
    transition: all 0.3s ease;
}

.partner-types li:hover {
    padding-left: 12px;
    background: var(--cream);
    border-radius: var(--radius-sm);
}

.partner-types strong {
    position: relative;
}

.partner-types strong::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.partner-types li:hover strong::after {
    transform: scaleX(1);
}

/* Enhanced Program Phase List Items */
.phase-list li {
    transition: transform 0.3s ease, color 0.3s ease;
}

.phase-list li:hover {
    transform: translateX(8px);
}

.phase-list li:hover i {
    transform: scale(1.2);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* CTA Card Premium Effects */
.cta-card {
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(200, 117, 51, 0.1), transparent);
    animation: rotateConic 10s linear infinite;
    pointer-events: none;
}

@keyframes rotateConic {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.cta-icon {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cta-card:hover .cta-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 10px 30px rgba(200, 117, 51, 0.4);
}

/* Footer Acknowledgment Enhancements */
.footer-acknowledgment {
    position: relative;
}

.footer-acknowledgment i {
    animation: gentleFloat 3s ease-in-out infinite;
}

@keyframes gentleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Service Card Icon Glow on Hover */
.service-icon {
    position: relative;
}

.service-card:hover .icon-glow {
    opacity: 0.8;
    transform: scale(1.3);
}
/* Hover state - text becomes white when gradient overlay appears */
.phase-card:hover h3,
.phase-card:hover .phase-duration,
.phase-card:hover .phase-list li {
    color: var(--white) !important;
}

.phase-card:hover .phase-list i {
    color: var(--accent-copper-light);
}

/* ========================================
   INDUSTRY PARTNERS SECTION
   ======================================== */
.industry-partners {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid rgba(26, 95, 122, 0.1);
    text-align: center;
}

.industry-partners h3 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.partners-intro {
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto 40px;
}

.partners-logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 30px 40px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(26, 95, 122, 0.08);
    transition: var(--transition-normal);
    min-width: 200px;
}

.partner-logo:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-copper);
}

.partner-logo img {
    max-width: 180px;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(20%);
    transition: var(--transition-normal);
}

.partner-logo:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.partner-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact email/phone links styling */
.contact-details a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition-normal);
}

.contact-details a:hover {
    color: var(--accent-copper-light);
}

/* Responsive adjustments for partners */
@media (max-width: 768px) {
    .partners-logo-grid {
        flex-direction: column;
        gap: 24px;
    }

    .partner-logo {
        width: 100%;
        max-width: 280px;
    }
}
