: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: rgb(223, 203, 203, 0.3);
    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: rgb(212, 195, 195, 0.3);
    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);
}

/* UPDATED: Ugandan flag-themed icons */
.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(218, 18, 26, 0.3);
}

/* Add a subtle shine effect to the icons */
.contact-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    transform: rotate(45deg);
}

.contact-method:hover .contact-icon {
    transform: rotate(15deg) scale(1.1);
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    color: white;
    box-shadow: 0 12px 25px rgba(252, 220, 4, 0.4);
    animation: flagPulse 2s ease-in-out infinite;
}

/* Add a subtle pulse animation on hover */
@keyframes flagPulse {
    0%, 100% { 
        box-shadow: 0 12px 25px rgba(252, 220, 4, 0.4);
    }
    50% { 
        box-shadow: 0 12px 30px rgba(218, 18, 26, 0.5), 0 0 20px rgba(252, 220, 4, 0.3);
    }
}

.contact-method p {
    color: #eee1e1;
    font-weight: 400;
}

/* Contact buttons with outline style */
.contact-method a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

/* Remove the gradient before pseudo-element */
.contact-method a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: white;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
}

.contact-method a:hover {
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.contact-method a:hover::before {
    left: 0;
}

.contact-method a i {
    transition: transform 0.3s ease;
}

.contact-method a:hover i {
    transform: translateX(4px);
}

/* 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%);
}

/* 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: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    animation: pulse 2s infinite;
}

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

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

/* Style for Request Training button to match screenshot */
.btn-request-training {
    color: white;
    background-color: transparent;
    border: 2px solid white;
    border-radius: 8px;
    padding: 10px 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-request-training:hover {
    background-color: white;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}