/* ============================================
   ForRestOfUs - Professional Sustainability Theme
   ============================================ */

/* Root Variables - ForRestOfUs Brand Colors */
:root {
    --primary-color: #527967;      /* Pine - Main brand color */
    --primary-dark: #3d5a4d;       /* Darker Pine */
    --secondary-color: #00A674;    /* Foliage - Accent green */
    --accent-color: #C5AF6F;       /* Beaver - Gold accent */
    --bg-dark: #527967;            /* Pine for dark backgrounds */
    --bg-light: #C9E4DE;           /* Sky - Light background */
    --bg-cotton: #FDFCF3;          /* Cotton - Off-white background */
    --text-dark: #2c3e50;
    --text-light: #5a6c7d;
    --text-white: #ffffff;
    --shadow: 0 10px 30px rgba(82, 121, 103, 0.15);
    --shadow-lg: 0 20px 60px rgba(82, 121, 103, 0.2);
}

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

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nave', 'Open Sans', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Navigation */
.navbar {
    background-color: transparent;
    transition: all 0.4s ease;
    padding: 1.2rem 0;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 0.8rem 0;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-white) !important;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 45px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
    opacity: 0.8;
}

.navbar.scrolled .navbar-brand {
    color: var(--primary-color) !important;
}

/* Responsive Logo Sizing */
@media (max-width: 768px) {
    .navbar-logo {
        height: auto;
        max-width: 180px;
        max-height: 50px;
    }
}

.nav-link {
    color: var(--text-white) !important;
    font-weight: 500;
    padding: 0.6rem 1.2rem !important;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

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

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.nav-link.btn-primary {
    background-color: var(--primary-color) !important;
    border-radius: 50px;
    color: var(--text-white) !important;
    border: none;
}

.nav-link.btn-primary:hover {
    background-color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(82, 121, 103, 0.3);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
    }

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    /* Video visible by default */
    opacity: 1;
    transition: opacity 0.5s ease-in;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: #ffffff !important;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8), 0 2px 15px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
    animation: fadeInUp 1s ease forwards;
    animation-fill-mode: both;
    opacity: 1 !important;
    position: relative;
    z-index: 10;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 500;
    color: #ffffff !important;
    text-shadow: 0 3px 25px rgba(0, 0, 0, 0.8), 0 1px 10px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1.2s ease forwards;
    animation-fill-mode: both;
    max-width: 800px;
    margin: 0 auto;
    opacity: 1 !important;
    position: relative;
    z-index: 10;
}

.hero-buttons {
    animation: fadeInUp 1.4s ease forwards;
    animation-fill-mode: both;
    opacity: 1 !important;
    position: relative;
    z-index: 10;
}

.hero .btn-primary {
    background-color: var(--text-white);
    color: var(--primary-color);
    border: none;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hero .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    background-color: var(--text-white);
}

.hero .btn-outline-light {
    border: 2px solid var(--text-white);
    color: var(--text-white);
    font-weight: 600;
    border-radius: 50px;
    background-color: transparent;
}

.hero .btn-outline-light:hover {
    background-color: var(--text-white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.scroll-down {
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Animated Background Elements */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0.08;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    bottom: -15%;
    right: -10%;
    animation-delay: -7s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    top: 40%;
    right: -5%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
    25% {
        transform: translate(30px, -50px) rotate(90deg);
        border-radius: 50% 60% 50% 40% / 60% 40% 50% 60%;
    }
    50% {
        transform: translate(-20px, 40px) rotate(180deg);
        border-radius: 60% 40% 60% 40% / 50% 60% 40% 50%;
    }
    75% {
        transform: translate(50px, 30px) rotate(270deg);
        border-radius: 40% 50% 40% 60% / 40% 60% 50% 40%;
    }
}

/* Stats Section */
.stats-section {
    background-color: var(--bg-cotton);
    padding: 4rem 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.stat-item {
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.stat-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.4s ease;
    border-radius: 10px;
}

.stat-item:hover::before {
    width: 80%;
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.05);
}

.stat-item h2 {
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item h2 {
    color: var(--primary-color);
    font-weight: 900;
}

.stat-item p {
    color: var(--text-dark);
    font-weight: 500;
}

/* Service Cards */
.service-card {
    background: var(--text-white);
    padding: 2.5rem;
    border-radius: 30px 10px 30px 10px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    animation: gentleFloat 6s ease-in-out infinite;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:nth-child(2) {
    animation-delay: -2s;
    border-radius: 10px 30px 10px 30px;
}

.service-card:nth-child(3) {
    animation-delay: -4s;
    border-radius: 30px 30px 10px 10px;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--text-white);
}

.service-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    color: #5a6c7d;
    line-height: 1.6;
}

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

.service-features li {
    padding: 0.5rem 0;
    color: #5a6c7d;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Solution Cards */
.solution-card {
    background: var(--text-white);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.solution-icon {
    color: var(--primary-color);
}

.solution-card h4 {
    margin: 1rem 0;
    color: var(--text-dark);
    font-weight: 700;
}

.solution-card p {
    color: #5a6c7d;
}

/* Resource Cards */
.resource-card {
    background: var(--text-white);
    padding: 2rem;
    border-radius: 25px 5px 25px 5px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.resource-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.resource-card:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.resource-card:hover {
    transform: translateY(-12px) rotate(2deg);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.resource-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(82, 121, 103, 0.1), rgba(0, 166, 116, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.resource-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.resource-card h5 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.resource-card p {
    color: #5a6c7d;
}

/* Resources Carousel Styles */
#resources-carousel-container {
    min-height: 400px;
}

.carousel-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-dot:hover {
    background-color: #9ca3af;
    transform: scale(1.2);
}

.carousel-dot.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    width: 32px;
    border-radius: 6px;
}

/* Resource Card Animation */
.resource-card.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.resource-card.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Resource Card for Dynamic Content */
.resource-card .badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    font-weight: 600;
}

.resource-card {
    display: flex;
    flex-direction: column;
    position: relative;
}

.resource-card .mt-auto {
    margin-top: auto;
}

/* Responsive adjustments for resources */
@media (max-width: 991px) {
    .carousel-navigation {
        flex-direction: column;
        gap: 1.5rem;
    }

    .carousel-dots {
        order: -1;
    }

    #resources-carousel-container {
        min-height: 500px;
    }
}

@media (max-width: 767px) {
    #resources-carousel-container {
        min-height: 600px;
    }

    .resource-card {
        margin-bottom: 1rem;
    }

    .carousel-navigation button {
        width: 100%;
    }
}

/* About Section */
.about-content {
    padding-right: 2rem;
}

.about-content h4 {
    color: var(--primary-color);
    font-weight: 700;
}

.about-content p {
    color: #5a6c7d;
    line-height: 1.8;
    font-weight: 400;
}

.about-content h6 {
    color: var(--text-dark);
    font-weight: 600;
}

.about-content small {
    color: #7f8c8d;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(82, 121, 103, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box i {
    font-size: 1.5rem;
}

.video-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.video-container iframe {
    border-radius: 16px;
}

.mission-card {
    background: linear-gradient(135deg, rgba(82, 121, 103, 0.05), rgba(0, 166, 116, 0.05));
    padding: 3rem 2.5rem;
    border-radius: 20px 40px 20px 40px;
    border-left: 5px solid var(--primary-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(82, 121, 103, 0.05) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.mission-card:hover::before {
    transform: scale(1);
}

.mission-card:hover {
    transform: translateX(15px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-left-width: 8px;
}

.mission-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.mission-icon i {
    font-size: 2rem;
    color: var(--text-white);
}

.mission-card h4 {
    color: var(--text-dark);
    font-weight: 700;
}

.mission-card p {
    color: #5a6c7d;
    line-height: 1.8;
}

/* Contact Section */
.contact-info {
    padding: 2rem 0;
}

.contact-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--text-white);
    border-radius: 20px 5px 20px 5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(82, 121, 103, 0.05), transparent);
    transition: left 0.5s ease;
}

.contact-item:hover::before {
    left: 100%;
}

.contact-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.contact-item h6 {
    color: var(--text-dark);
    font-weight: 700;
    margin-top: 0.5rem;
}

.contact-item a {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-form-wrapper {
    background: var(--text-white);
    padding: 2.5rem;
    border-radius: 30px 5px 30px 5px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(82, 121, 103, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-form .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(82, 121, 103, 0.15);
}

.contact-form .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(82, 121, 103, 0.3);
}

.contact-info h4 {
    color: var(--text-dark);
    font-weight: 700;
}

/* Footer */
.footer-section {
    background-color: var(--bg-dark);
    color: var(--text-white);
}

.footer-section h4, .footer-section h6 {
    color: var(--text-white) !important;
    font-weight: 700;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 400;
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color) !important;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    color: var(--text-white);
}

/* Section Spacing */
.section {
    padding: 6rem 0;
    position: relative;
}

/* Wave Dividers */
.section.bg-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23FDFCF3'/%3E%3C/svg%3E") no-repeat;
    background-size: cover;
    transform: translateY(-99%);
}

.section:not(.bg-light)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat;
    background-size: cover;
    transform: translateY(-99%);
}

/* Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.text-muted {
    color: #6c757d !important;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

.display-5 {
    color: var(--text-dark);
    font-weight: 800;
}

.lead {
    color: #6c757d;
    font-weight: 400;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-white);
    font-weight: 600;
    padding: 0.6rem 1.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(82, 121, 103, 0.3);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* Responsive Design */

/* Tablet Landscape - 992px and below */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
        line-height: 1.2;
    }

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

    .section {
        padding: 4rem 0;
    }

    .about-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .navbar-nav {
        padding: 1rem 0;
    }

    .nav-link {
        padding: 0.8rem 1rem !important;
    }
}

/* Tablet Portrait - 768px and below */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .hero {
        padding-top: 70px;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1.5rem !important;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .hero .btn-lg {
        padding: 0.8rem 2rem;
        font-size: 1rem;
        display: block;
        width: 100%;
        margin: 0.5rem 0 !important;
    }

    .hero-buttons {
        width: 100%;
    }

    .hero-buttons .btn {
        margin: 0.5rem 0 !important;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .navbar-toggler {
        padding: 0.5rem 0.75rem;
        font-size: 1.25rem;
    }

    .service-card, .solution-card, .resource-card {
        margin-bottom: 1.5rem;
    }

    .stats-section {
        padding: 2rem 0;
    }

    .stat-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .stat-item h2 {
        font-size: 2.5rem;
    }

    .service-icon {
        width: 70px;
        height: 70px;
    }

    .service-icon i {
        font-size: 2rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

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

    .resource-icon i {
        font-size: 1.5rem;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
        margin-top: 2rem;
    }

    .mission-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }

    .video-container iframe {
        height: 300px;
    }

    .footer-section {
        padding: 3rem 0 !important;
    }

    .footer-section .col-lg-4,
    .footer-section .col-lg-2,
    .footer-section .col-md-4 {
        margin-bottom: 2rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .section {
        padding: 3rem 0;
    }
}

/* Mobile Landscape - 576px and below */
@media (max-width: 576px) {
    body {
        font-size: 14px;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.4;
        padding: 0 1rem;
    }

    .hero .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    .stat-item h2 {
        font-size: 2rem;
    }

    .stat-item p {
        font-size: 0.85rem;
    }

    .service-card, .resource-card, .solution-card {
        padding: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.25rem;
    }

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

    .contact-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .contact-form .form-control {
        padding: 0.7rem 0.9rem;
        font-size: 0.95rem;
    }

    .mission-card {
        padding: 1.5rem;
    }

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

    .mission-icon i {
        font-size: 1.5rem;
    }

    .video-container iframe {
        height: 250px;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .lead {
        font-size: 1rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .btn-primary, .btn-outline-primary {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }

    .icon-box {
        width: 45px;
        height: 45px;
    }

    .icon-box i {
        font-size: 1.2rem;
    }

    .about-content h4 {
        font-size: 1.25rem;
    }

    .about-content h6 {
        font-size: 0.95rem;
    }

    .social-links {
        justify-content: center;
        margin-bottom: 1rem;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .footer-section h4 {
        font-size: 1.25rem;
    }

    .footer-section h6 {
        font-size: 1rem;
    }
}

/* Small Mobile - 480px and below */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

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

    .hero .btn-lg {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .stat-item h2 {
        font-size: 1.75rem;
    }

    .stats-section .col-6 {
        margin-bottom: 0.5rem;
    }

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

    .service-icon, .resource-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon i, .resource-icon i {
        font-size: 1.5rem;
    }

    .display-5 {
        font-size: 1.5rem;
    }

    .section {
        padding: 2rem 0;
    }
}

/* Extra Small Mobile - 375px and below */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.4rem;
    }

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

    .stat-item h2 {
        font-size: 1.5rem;
    }

    .stat-item p {
        font-size: 0.75rem;
    }

    .service-card h3, .resource-card h5 {
        font-size: 1.1rem;
    }

    .display-5 {
        font-size: 1.35rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Remove focus outline */
button:focus, a:focus {
    outline: none;
    box-shadow: none;
}

/* Newsletter Signup Section */
.newsletter-signup {
    background: linear-gradient(135deg, rgba(82, 121, 103, 0.1), rgba(0, 166, 116, 0.1));
    border: 2px solid rgba(82, 121, 103, 0.2);
    border-radius: 30px 10px 30px 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.newsletter-signup::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 166, 116, 0.08) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.newsletter-signup:hover {
    border-color: var(--primary-color);
    box-shadow: 0 12px 35px rgba(82, 121, 103, 0.2);
    transform: scale(1.02);
}

.newsletter-signup h4 {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.newsletter-signup form,
.newsletter-signup p {
    position: relative;
    z-index: 1;
}

.newsletter-signup .form-control {
    border: 2px solid #e0e0e0;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.newsletter-signup .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(82, 121, 103, 0.15);
}

.newsletter-signup .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.newsletter-signup .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(82, 121, 103, 0.3);
}

.newsletter-signup .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#newsletterMessage {
    font-weight: 500;
}

#newsletterMessage.alert {
    padding: 10px 15px;
    border-radius: 8px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
