/* 
/* ===== CORE VARIABLES ===== */
:root {
    /* Color Scheme */
    --primary-color: #4a6fdc;
    --primary-dark: #3858b2;
    --primary-light: #7490e8;
    --secondary-color: #2c3e50;
    --secondary-light: #34495e;
    --accent-color: #3498db;
    --text-color: #333;
    --text-muted: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --white: #ffffff;
    --black: #000000;
    --border-color: #dee2e6;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    --gradient-overlay: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    
    /* Border Radius */
    --border-radius-sm: 0.25rem;
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    
    /* Transition */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Merriweather', serif;
    --font-size-base: 1rem;
    --line-height-base: 1.5;
}

/* ===== BASE STYLES ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
    padding-top: 76px; /* Height of fixed navbar */
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
}

.z-1 {
    z-index: 1;
}

.z-2 {
    z-index: 2;
}

.bg-overlay {
    background: var(--gradient-overlay);
}

section {
    position: relative;
    padding: var(--spacing-xl) 0;
}

/* ===== BUTTONS ===== */
.btn {
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: width var(--transition-medium);
    z-index: -1;
}

.btn:hover::after {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 111, 220, 0.3);
}

.btn-outline-light {
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-light:hover {
    color: var(--text-color);
    background-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* ===== NAVIGATION ===== */
.navbar {
    padding: 1rem 0;
    transition: all var(--transition-medium);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
}

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

.navbar-light .navbar-nav .nav-link {
    color: var(--text-color);
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

.navbar-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all var(--transition-medium);
    transform: translateX(-50%);
}

.navbar-light .navbar-nav .nav-link:hover::after {
    width: 80%;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(0);
    transition: all var(--transition-slow);
}

.hero:hover .hero-bg {
    transform: scale(1.05);
}

.hero h1 {
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .lead {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    max-width: 80%;
    margin: 0 auto;
}

/* Particle Animation */
#particles-container {
    pointer-events: none;
}

/* ===== SERVICES SECTION ===== */
.services .card {
    height: 100%;
    transition: all var(--transition-medium);
    overflow: hidden;
    border-radius: var(--border-radius);
}

.services .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.services .card-image {
    overflow: hidden;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.services .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

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

.services .card-title {
    font-weight: 600;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
}

.services .card-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
}

.services .card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== COMMUNITY SECTION ===== */
.community {
    background-color: var(--light-color);
}

.community img {
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.community h3 {
    color: var(--secondary-color);
}

.testimonial {
    transition: all var(--transition-medium);
    border-radius: var(--border-radius);
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial .rounded-circle {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin: 0 auto;
    border: 3px solid var(--primary-light);
}

.testimonial .card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Statistics Counter Animation */
.statistics-container {
    border-radius: var(--border-radius);
}

.stats-item {
    margin-bottom: var(--spacing-md);
}

.counter {
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stats-item p {
    color: var(--secondary-color);
    font-weight: 500;
    font-family: var(--font-heading);
    margin-bottom: 0;
}

/* ===== INNOVATION SECTION ===== */
.innovation .ratio {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.innovation .ratio img {
    object-fit: cover;
    transition: all var(--transition-medium);
}

.innovation:hover .ratio img {
    transform: scale(1.05);
}

.innovation .btn {
    margin-right: var(--spacing-sm);
}

.accordion-item {
    border-radius: var(--border-radius) !important;
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

.accordion-button {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--secondary-color);
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: rgba(74, 111, 220, 0.05);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--border-color);
}

/* ===== EXTERNAL RESOURCES ===== */
.external-resources .card {
    height: 100%;
    transition: all var(--transition-medium);
    border-radius: var(--border-radius);
}

.external-resources .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.external-resources .card-title {
    font-weight: 600;
    color: var(--secondary-color);
}

.external-resources .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.external-resources .btn-outline-primary:hover {
    color: var(--white);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===== SUSTAINABILITY SECTION ===== */
.sustainability .ratio {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sustainability h3 {
    color: var(--secondary-color);
}

.sustainability .badge {
    background-color: var(--primary-color);
}

.sustainability .card {
    height: 100%;
    transition: all var(--transition-medium);
    border-radius: var(--border-radius);
}

.sustainability .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* ===== CONTACT SECTION ===== */
.contact .card {
    height: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.contact .text-primary {
    color: var(--primary-color) !important;
}

.contact .form-control, .contact .form-select {
    padding: 0.75rem;
    border-radius: var(--border-radius-sm);
}

.contact .form-control:focus, .contact .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(74, 111, 220, 0.25);
}

.contact iframe {
    border-radius: var(--border-radius);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: var(--spacing-xl) 0;
}

footer h3 {
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: 10px;
}

footer h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
}

footer a {
    color: var(--white);
    transition: all var(--transition-fast);
}

footer a:hover {
    color: var(--primary-light);
    text-decoration: none;
    padding-left: 5px;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ===== MODAL ===== */
.modal-content {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.modal-header {
    background-color: var(--primary-color);
    color: var(--white);
}

.modal-title {
    font-weight: 600;
}

.btn-close {
    filter: brightness(0) invert(1);
}

/* ===== UTILITY CLASSES ===== */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* Apply animations to specific elements */
.hero h1 {
    animation: fadeIn 1s ease forwards;
}

.hero p {
    animation: fadeIn 1.5s ease forwards;
}

.hero .btn {
    animation: fadeIn 2s ease forwards;
}

/* ===== PRIVACY & TERMS PAGES ===== */
.privacy-content, .terms-content {
    padding-top: 100px;
}

/* ===== SUCCESS PAGE ===== */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.success-page .card {
    border-radius: var(--border-radius);
    max-width: 600px;
    margin: 0 auto;
}

.success-page .icon {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
        max-width: 100%;
    }
    
    .navbar-collapse {
        background-color: var(--white);
        padding: 1rem;
        border-radius: var(--border-radius);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 768px) {
    section {
        padding: var(--spacing-lg) 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .lead {
        font-size: 1rem;
    }
    
    .hero .btn {
        padding: 0.4rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .statistics-container {
        padding: var(--spacing-lg);
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 66px;
    }
    
    .hero {
        min-height: 80vh;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .hero .btn {
        margin-bottom: 0.5rem;
        width: 100%;
    }
}