/* CSS Variables - Split-Complementary Color Scheme */
:root {
    /* Primary Colors - Split-Complementary */
    --primary-color: #1a472a;
    --primary-light: #2d5f3f;
    --primary-dark: #0f2d1a;
    --secondary-color: #8b4513;
    --secondary-light: #a0522d;
    --secondary-dark: #654321;
    --accent-color: #ff6b35;
    --accent-light: #ff8555;
    --accent-dark: #e5451a;
    
    /* Neutral Colors */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --black: #000000;
    
    /* Eco-Minimalism Colors */
    --eco-green: #4a7c59;
    --eco-light: #e8f5e8;
    --eco-accent: #2c5530;
    
    /* Background Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    --gradient-overlay: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4));
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Merriweather', serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 20px;
    --card-padding: 30px;
    
    /* Shadows and Effects */
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 30px rgba(0,0,0,0.25);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 2.2rem; }
h4 { font-size: 1.8rem; }
h5 { font-size: 1.4rem; }
h6 { font-size: 1.1rem; }

p {
    margin-bottom: 1.2rem;
    color: var(--medium-gray);
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

/* Global Button Styles */
.btn {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::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 var(--transition-slow);
    z-index: -1;
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
    color: var(--white);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

button, input[type='submit'] {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition-medium);
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-medium);
}

button:hover, input[type='submit']:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(45deg, var(--eco-light) 0%, var(--white) 50%, var(--light-gray) 100%);
}

/* Header Styles */
header {
    background: rgba(26, 71, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all var(--transition-medium);
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius);
    transition: all var(--transition-medium);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

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

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: var(--white) !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-section p {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.2s both;
    font-size: 1.1rem;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Cards and Components */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    transition: all var(--transition-medium);
    overflow: hidden;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

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

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

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

.card-content {
    padding: var(--card-padding);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    color: var(--primary-dark) !important;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--medium-gray) !important;
    flex-grow: 1;
}

/* Feature Cards */
.feature-card {
    height: 100%;
    border-left: 4px solid var(--accent-color);
}

.feature-card .card-image {
    height: 200px;
}

/* Team Cards */
.team-card {
    background: linear-gradient(145deg, var(--white) 0%, var(--light-gray) 100%);
}

.team-card .card-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
    margin: 0 auto;
}

/* Project Cards */
.project-card {
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,107,53,0.3), transparent);
    transition: left var(--transition-slow);
    z-index: 1;
}

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

/* Webinar Cards */
.webinar-card {
    border-top: 4px solid var(--secondary-color);
}

.webinar-meta {
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
    margin-top: 1rem;
}

/* Resource Cards */
.resource-card {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
}

.resource-card .card-title,
.resource-card .card-text {
    color: var(--white) !important;
}

.resource-card .btn {
    background: var(--white);
    color: var(--primary-color);
    border: none;
}

.resource-card .btn:hover {
    background: var(--light-gray);
    color: var(--primary-dark);
}

/* Contact Form */
.contact-form {
    background: linear-gradient(145deg, var(--white) 0%, var(--eco-light) 100%);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
}

.form-label {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-dark) !important;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 12px 16px;
    font-family: var(--font-body);
    transition: all var(--transition-medium);
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
    outline: none;
}

/* Statistics */
.methodology-stats {
    margin-top: 2rem;
}

.stat-item {
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.stat-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    flex-shrink: 0;
}

/* Section Styles */
section {
    padding: var(--section-padding);
    position: relative;
}

.bg-light {
    background: linear-gradient(135deg, var(--eco-light) 0%, var(--light-gray) 100%) !important;
}

/* Community Features */
.community-features, .sustainability-points, .awards-list {
    margin-top: 2rem;
}

.feature-item, .point-item, .award-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(26, 71, 42, 0.1);
}

.feature-item:last-child, .point-item:last-child, .award-item:last-child {
    border-bottom: none;
}

.feature-item h6, .point-item h6, .award-item h6 {
    color: var(--primary-color) !important;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--black) 100%) !important;
    color: var(--white);
    margin-top: 4rem;
}

.footer h5, .footer h6 {
    color: var(--white) !important;
    font-family: var(--font-heading);
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-medium);
    display: inline-block;
    position: relative;
}

.footer a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width var(--transition-medium);
}

.footer a:hover::after {
    width: 100%;
}

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

.footer ul li {
    margin-bottom: 0.5rem;
}

/* Privacy and Terms Pages */
.privacy-content, .terms-content {
    padding-top: 100px;
    min-height: 100vh;
}

.privacy-content .container, .terms-content .container {
    max-width: 800px;
}

.privacy-content h2, .terms-content h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
}

.privacy-content h3, .terms-content h3 {
    color: var(--secondary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Success Page */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
}

.success-content {
    max-width: 600px;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.success-content h1 {
    color: var(--white) !important;
    margin-bottom: 2rem;
}

.success-content p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

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

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glassmorphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
}

.brutalist-box {
    border: 4px solid var(--black);
    border-radius: 0;
    box-shadow: 8px 8px 0 var(--accent-color);
    transform: translate(-4px, -4px);
    transition: all var(--transition-medium);
}

.brutalist-box:hover {
    transform: translate(0, 0);
    box-shadow: 4px 4px 0 var(--accent-color);
}

.eco-accent {
    color: var(--eco-green) !important;
}

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

/* Read More Links */
.read-more {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.read-more::after {
    content: ' →';
    transition: transform var(--transition-medium);
}

.read-more:hover {
    color: var(--accent-dark);
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    .hero-section {
        background-attachment: scroll;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.9rem;
    }
    
    .hero-buttons {
        text-align: center;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .team-card .card-image img {
        width: 120px;
        height: 120px;
    }
}

/* Performance Optimizations */
.card, .btn, .navbar-nav .nav-link {
    will-change: transform;
}

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

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.navbar-nav .nav-link:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar, .footer, #particles-js {
        display: none;
    }
    
    .hero-section {
        background: none !important;
        color: var(--black) !important;
    }
    
    .hero-section h1,
    .hero-section p {
        color: var(--black) !important;
        text-shadow: none !important;
    }
}