/* Custom CSS Variables - Color Palette */
:root {
    /* Primary Colors */
    --primary-green: #28a44f;
    --secondary-green: #1e7056;
    --accent-blue: #16a4bc;
    --warm-orange: #fc7d16;
    --earth-brown: #74523d;
    
    /* Light Shades */
    --light-green: #dde9e1;
    --light-blue: #cce0e2;
    --light-orange: #ffe4ae;
    --light-brown: #e3e3e3;
    --light-gray: #f8f9fa;
    
    /* Dark Shades */
    --dark-green: #19541d;
    --dark-blue: #08494c;
    --dark-orange: #ad7b27;
    --dark-brown: #523930;
    --dark-gray: #252c32;
}

/* Base Typography */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-gray);
}

/* Conservative font sizes */
.navbar-brand {
    font-size: 10px !important;
    font-size: 1.53rem !important;
}

h1, .display-4 {
    font-size: 2.57rem;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Custom Button Styles */
.btn-success {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border: none;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--secondary-green), var(--dark-green));
    transform: translateY(-2px);
    box-shadow: 0 9px 12px rgba(43, 189, 100, 0.30);
}

.btn-outline-success {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.btn-outline-success:hover {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

/* Hero Section Enhancements */
.hero-section {
    background: linear-gradient(135deg, var(--light-green), var(--light-blue));
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    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="20" cy="20" r="2" fill="%2328a745" opacity="0.1"/><circle cx="80" cy="80" r="3" fill="%2317a2b8" opacity="0.1"/><circle cx="40" cy="60" r="1.5" fill="%23fd7e14" opacity="0.1"/></svg>');
    pointer-events: none;
}

/* Card Enhancements */
.card {
    border: none;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-radius: 12px 12px 0 0;
}

/* Section Spacing */
section {
    position: relative;
}

/* Custom Text Colors */
.text-success {
    color: var(--primary-green) !important;
}

.text-muted {
    color: #656a6d !important;
}

/* Background Variations */
.bg-light {
    background: linear-gradient(180deg, #ffffff, var(--light-gray)) !important;
}

/* Icon Styling */
.fa-3x {
    color: var(--primary-green);
}

.fa-2x {
    color: var(--primary-green);
}

/* Form Enhancements */
.form-control {
    border-radius: 12px;
    border: 1px solid #c2d1de;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(43, 163, 70, 0.25);
}

/* Navigation Enhancements */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 10px !important;
    color: var(--primary-green) !important;
    font-weight: 700;
}

.nav-link {
    font-size: 10px !important;
    color: var(--dark-gray) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-green) !important;
}

/* Footer Styling */
footer {
    background: linear-gradient(135deg, var(--accent-blue), var(--dark-blue)) !important;
}

footer .text-muted {
    color: #c5d0d8 !important;
}

footer h5, footer h6 {
    color: #ffffff;
}

footer a.text-muted {
    color: #a8c7d6 !important;
}

footer a.text-muted:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* Border Success Variant */
.border-success {
    border-color: var(--primary-green) !important;
}

/* Shadow Enhancements */
.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;
}

/* Timeline Styling */
.border-start {
    position: relative;
}

.border-start::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--primary-green);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 3px var(--primary-green);
}

/* Responsive Image Styling */
img {
    max-width: 100%;
    height: auto;
}

/* Gallery Hover Effects */
[data-lightbox] img {
    transition: all 0.3s ease;
    border-radius: 8px;
}

[data-lightbox] img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Utility Classes */
.min-vh-100 {
    min-height: 100vh;
}

/* Custom Spacing */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* Team Member Images */
.rounded-circle {
    border: 4px solid var(--light-green);
    transition: all 0.3s ease;
}

.rounded-circle:hover {
    border-color: var(--primary-green);
    transform: scale(1.1);
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.21rem;
    }
    
    .hero-section {
        text-align: center;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Focus Indicators */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Form Validation States */
.form-control.is-valid {
    border-color: var(--primary-green);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.94-.94 4.94-4.94L7.23.94 2.3 5.84.23 3.74 0 4l2.3 2.73z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid {
    border-color: #e83f33;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 1.4 1.4M7.2 4.6l-1.4 1.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback,
.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.41rem;
    font-size: 0.875em;
}

.invalid-feedback {
    color: #c33e35;
}

.valid-feedback {
    color: var(--primary-green);
}

/* Enhanced form focus states */
.focused .form-label {
    color: var(--primary-green);
    font-weight: 600;
}

/* Button loading state */
.btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

/* Lazy loading images */
.lozad {
    opacity: 0;
    transition: opacity 0.3s;
}

.lozad.loaded {
    opacity: 1;
}

/* Progress bar container */
#nanobar {
    z-index: 9999;
}

/* Improved card hover states */
.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Enhanced button interactions */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:active {
    transform: translateY(1px);
} 

.hero-section h1 {
    padding-top: 175px;
}


/* Team Social Links - Square Style */
.team-social-links {
    margin-top: 18px;
    padding: 12px 0;
}

.social-icons-grid {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 17px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    position: relative;
}

.social-link:hover {
    transform: translateY(-2px) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    color: white;
}

.facebook-link {
    background: #1877f2;
    border: 2px solid #1877f2;
}

.facebook-link:hover {
    background: #166fe5;
    border-color: #166fe5;
}

.linkedin-link {
    background: #0a66c2;
    border: 2px solid #0a66c2;
}

.linkedin-link:hover {
    background: #0959aa;
    border-color: #0959aa;
}

.x-link {
    background: #000000;
    border: 2px solid #000000;
    position: relative;
}

.x-link::after {
    content: '✕';
    font-weight: bold;
    font-size: 18px;
}

.x-link:hover {
    background: #333333;
    border-color: #333333;
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 8px;
    }
    
    .social-link {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
}

/* Prevent horizontal scrolling */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
