:root {
    --primary-green: #1a5d1a;
    --secondary-orange: #e67e22;
    --accent-blue: #3498db;
    --dark-blue: #2c3e50;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #343a40;
    --text-dark: #2d3436;
    --text-light: #636e72;
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    background-color: var(--light-gray);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* Loader Styles */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-blue) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader-content {
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.loader-icon {
    font-size: 5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    animation: pulse 1.5s infinite;
}

.loader-text {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.loader-subtext {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.progress-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin-top: 1.5rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0%;
    background: var(--secondary-orange);
    border-radius: 2px;
    transition: width 0.2s ease;
}

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

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

/* Card Payment Info Section */
.card-payment-info {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(26, 93, 26, 0.05);
    border-radius: 10px;
    border: 2px solid var(--medium-gray);
    transition: all 0.3s ease;
}

.card-payment-info.visible {
    display: block !important;
    animation: fadeInUp 0.5s ease;
}

.card-payment-info .custom-amount-title {
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

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

/* Header Styles */
.top-bar {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    margin-right: 15px;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--secondary-orange);
}

.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 15px 0;
    transition: all 0.3s;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 2rem;
    color: var(--primary-green) !important;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    margin-right: 10px;
    color: var(--secondary-orange);
}

.nav-link {
    font-weight: 500;
    color: var(--dark-gray) !important;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-green) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-orange);
    transition: width 0.3s;
}

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

.nav-link.active {
    color: var(--primary-green) !important;
}

.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.donation-hero {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-green) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.donation-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.donation-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Donation Cards */
.donation-section {
    margin-bottom: 4rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-blue);
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-orange);
    border-radius: 2px;
}

.donation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.donation-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

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

.donation-card.popular {
    border: 2px solid var(--secondary-orange);
    transform: scale(1.05);
}

.donation-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background-color: var(--secondary-orange);
    color: var(--white);
    padding: 8px 40px;
    font-size: 0.9rem;
    font-weight: 600;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.donation-header {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-blue) 100%);
    color: var(--white);
}

.donation-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.donation-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.donation-description {
    font-size: 0.9rem;
    opacity: 0.9;
}

.donation-body {
    padding: 2rem;
}

.donation-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.donation-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--medium-gray);
    display: flex;
    align-items: center;
}

.donation-features li:last-child {
    border-bottom: none;
}

.donation-features li i {
    color: var(--primary-green);
    margin-right: 10px;
    font-size: 0.9rem;
}

.donate-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-blue) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.donate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Custom Amount Section */
.custom-donation {
    background-color: var(--white);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
}

.custom-amount-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark-blue);
}

.amount-input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.amount-option {
    flex: 1;
    min-width: 120px;
}

.amount-btn {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--medium-gray);
    background: var(--white);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
}

.amount-btn:hover, .amount-btn.active {
    border-color: var(--primary-green);
    background-color: rgba(26, 93, 26, 0.05);
    color: var(--primary-green);
}

.custom-input {
    position: relative;
    margin-bottom: 1.5rem;
}

.custom-input input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s;
}

.custom-input input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(26, 93, 26, 0.1);
    outline: none;
}

.currency-symbol {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-light);
}

/* Payment Methods */
.payment-methods {
    margin-bottom: 2rem;
}

.payment-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.payment-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.payment-option {
    flex: 1;
    min-width: 150px;
}

.payment-btn {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--medium-gray);
    background: var(--white);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.payment-btn:hover, .payment-btn.active {
    border-color: var(--primary-green);
    background-color: rgba(26, 93, 26, 0.05);
}

.payment-icon {
    font-size: 1.5rem;
    color: var(--primary-green);
}

/* Why Donate Section */
.why-donate {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-green) 100%);
    color: var(--white);
    padding: 4rem 0;
    margin-bottom: 3rem;
    border-radius: 15px;
}

.why-donate .section-title {
    color: var(--white);
    text-align: center;
    margin-bottom: 3rem;
}

.why-donate .section-title::after {
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-orange);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.reason-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.reason-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.reason-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-orange);
}

.reason-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-green) 100%);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-orange);
    border-radius: 3px;
}

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

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

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

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

.footer-links a i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--secondary-orange);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* Social Media Fixed Buttons */
.social-fixed {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.social-btn.whatsapp {
    background: #25D366;
}

.social-btn.telegram {
    background: #0088cc;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Form Styles */
.donation-form {
    margin-bottom: 2.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    flex: 0 0 100%;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.form-control {
    padding: 12px 15px;
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: var(--white);
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(26, 93, 26, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.amount-section {
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--medium-gray);
}

/* Responsive Adjustments for Form */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-group {
        flex: 1 1 100%;
    }
}

@media (max-width: 576px) {
    .custom-donation {
        padding: 1.5rem;
    }
    
    .form-control {
        padding: 10px 12px;
    }
    
    .amount-input-group {
        flex-direction: column;
    }
    
    .payment-options {
        flex-direction: column;
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .donation-card.popular {
        transform: scale(1);
    }
    
    .donation-card.popular:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .donation-hero h1 {
        font-size: 2.2rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .amount-option {
        min-width: 100px;
    }
    
    .payment-option {
        min-width: 120px;
    }
}

@media (max-width: 576px) {
    .donation-hero {
        padding: 3rem 0;
    }
    
    .donation-hero h1 {
        font-size: 1.8rem;
    }
    
    .donation-grid {
        grid-template-columns: 1fr;
    }
    
    .custom-donation {
        padding: 1.5rem;
    }
    
    .amount-input-group {
        flex-direction: column;
    }
    
    .payment-options {
        flex-direction: column;
    }
}