:root {
    --primary: #000000; /* Black */
    --secondary: #FCDC04; /* Uganda Yellow */
    --accent: #DA121A; /* Uganda Red */
    --light: #f8f9fa;
    --cream: #FFF9E6;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: var(--cream);
    overflow-x: hidden;
}

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

.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, rgba(0, 0, 0, 0.9) 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
}

/* Particle Background */
.particle-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--secondary);
    border-radius: 50%;
    opacity: 0.3;
}

/* Hero Section with Parallax */
.hero-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(218, 18, 26, 0.7) 100%), url('../images/4.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 180px 0 120px;
    position: relative;
    overflow: hidden;
}

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

/* Floating Animation */
@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
.floating {
    animation: floating 6s ease-in-out infinite;
}

/* 3D Card Effect */
.contact-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    padding: 40px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.contact-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* Interactive Form */
.form-control {
    height: 50px;
    border-radius: 10px;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.25rem rgba(252, 220, 4, 0.25);
    transform: translateY(-3px);
}

textarea.form-control {
    height: 150px;
    resize: none;
}

/* Animated Submit Button */
.btn-submit {
    background: var(--secondary);
    color: var(--primary);
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 50px;
    border: none;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background: var(--accent);
    color: white;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.6s ease;
}

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

/* Contact Methods - Interactive Grid */
.contact-method {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.contact-method:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--secondary);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.contact-method:hover .contact-icon {
    transform: rotate(15deg) scale(1.1);
    background: var(--accent);
    color: white;
}

/* Interactive Map */
.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(30%) contrast(110%) brightness(90%);
    transition: all 0.5s ease;
}

.map-container:hover iframe {
    filter: grayscale(0%) contrast(100%) brightness(100%);
}

/* Donation Callout with Parallax */
.donation-callout {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(218, 18, 26, 0.8)), url('../images/8.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.donation-callout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.btn-donate {
    background: var(--secondary);
    color: var(--primary);
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 50px;
    border: none;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-donate:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: var(--accent);
    color: white;
}

/* Success Message Animation */
.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-align: center;
    max-width: 500px;
    width: 90%;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-message.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    animation: pulse 2s infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 150px 0 80px;
        background-attachment: scroll;
    }
    
    .contact-card {
        padding: 30px;
    }
    
    .donation-callout {
        background-attachment: scroll;
    }
}