:root {
    --primary: #62A9D9;
    --secondary: #70BE94;
    --dark: #212529;
    --light: #f8f9fa;
    --gray: #6c757d;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f9f9f9;
}

.navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, var(--primary) 0%, #4a8cb8 100%);
    padding: 0.8rem 1rem;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

header h1 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.05);
}

section {
    padding: 6rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

.shadow-sm {
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.08);
}

.shadow {
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.12);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #4a8cb8 100%);
    border-color: var(--primary);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(98, 169, 217, 0.25);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5599c4 0%, #3d7ba0 100%);
    border-color: #4a8cb8;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(98, 169, 217, 0.35);
}

.btn-success {
    background: linear-gradient(135deg, var(--secondary) 0%, #5da47f 100%);
    border-color: var(--secondary);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(112, 190, 148, 0.25);
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: linear-gradient(135deg, #62ab85 0%, #4e8a6c 100%);
    border-color: #5da47f;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(112, 190, 148, 0.35);
}

.form-control {
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
    transform: translateY(-2px);
}

.form-select {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    background-position: right 1rem center;
}

.input-group {
    border-radius: 8px;
    overflow: hidden;
}

.input-group-text {
    background-color: #f8f9fa;
    border-color: #ced4da;
    color: #495057;
    font-weight: 500;
}

.list-group-item {
    border-left: none;
    border-right: none;
    padding: 1.25rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: rgba(13, 110, 253, 0.03);
    padding-left: 10px;
}

.text-danger {
    color: #dc3545;
    font-weight: 600;
}

.text-success {
    color: var(--secondary);
    font-weight: 600;
}

.alert {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffecb5 100%);
    border-left: 4px solid #ffc107;
}

footer {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
    color: #fff;
    padding: 4rem 0 2rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

footer h5 {
    color: #fff;
    margin-bottom: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header {
        text-align: center;
        padding: 4rem 0;
    }
    
    header img {
        margin-top: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    section {
        padding: 4rem 0;
    }
    
    .btn-primary, .btn-success {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

/* Custom styles for calculator */
#impact-calculator .form-control {
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

#results {
    animation: fadeIn 0.8s ease-in-out;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

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

.progress {
    height: 12px;
    border-radius: 6px;
    margin-top: 12px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.progress-bar {
    background: linear-gradient(90deg, #198754 0%, #20c997 100%);
    animation: progressAnimation 1.5s ease-in-out;
}

@keyframes progressAnimation {
    from { width: 0; }
}

.bi {
    vertical-align: middle;
    margin-right: 5px;
    color: #0d6efd;
}

/* Add Bootstrap icons */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css");

/* Add subtle animations */
.card, .btn, .form-control {
    will-change: transform;
}

h2, h3 {
    position: relative;
    display: inline-block;
}

h2:after, h3:after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, rgba(98, 169, 217, 0.2) 100%);
    bottom: -10px;
    left: 0;
    border-radius: 3px;
}
