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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #663399, #7B68EE);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(102, 51, 153, 0.3);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

nav a:hover {
    background-color: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(102, 51, 153, 0.7), rgba(123, 104, 238, 0.7)), 
                url('images/purple-heart-medal.jpg') center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    color: white;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #663399, #7B68EE);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #FFD700;
    box-shadow: 0 4px 15px rgba(102, 51, 153, 0.3);
}

.cta-button:hover {
    background: linear-gradient(135deg, #7B68EE, #663399);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 51, 153, 0.4);
}

/* Section Styles */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #663399;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #663399, #FFD700);
    margin: 1rem auto;
    border-radius: 2px;
}

/* About Section */
.about {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 3rem;
    margin: 2rem 0;
}

.about p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
}

/* Services Section */
.services {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 5rem 2rem;
}

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 51, 153, 0.2);
    border-color: #663399;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #663399, #7B68EE);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 51, 153, 0.3);
}

.service-card h3 {
    color: #663399;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Membership Section */
.membership {
    background: linear-gradient(135deg, rgba(102, 51, 153, 0.05), rgba(123, 104, 238, 0.05));
    border-radius: 15px;
    padding: 3rem;
    margin: 2rem 0;
}

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

.benefit-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 5px solid #663399;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.benefit-item h4 {
    color: #663399;
    margin-bottom: 0.5rem;
}

.benefit-item ul {
    list-style: none;
    padding-left: 0;
}

.benefit-item li {
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.benefit-item li::before {
    content: '★';
    color: #663399;
    position: absolute;
    left: 0;
}

/* Events Section */
.events {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 3rem;
    margin: 2rem 0;
}

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

.event-card {
    border: 2px solid #663399;
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.event-card:hover {
    background: linear-gradient(135deg, rgba(102, 51, 153, 0.05), rgba(123, 104, 238, 0.05));
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 51, 153, 0.2);
}

.event-date {
    background: linear-gradient(135deg, #663399, #7B68EE);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(102, 51, 153, 0.3);
}

.event-card h4 {
    color: #663399;
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, rgba(102, 51, 153, 0.05), rgba(123, 104, 238, 0.05));
    border-radius: 15px;
    padding: 3rem;
    margin: 2rem 0;
}

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

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: linear-gradient(135deg, rgba(102, 51, 153, 0.1), rgba(123, 104, 238, 0.1));
    transform: translateX(5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #663399, #7B68EE);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(102, 51, 153, 0.3);
}

.contact-details h4 {
    color: #663399;
    margin-bottom: 0.3rem;
}

.contact-details p, .contact-details a {
    color: #666;
    text-decoration: none;
}

.contact-details a:hover {
    color: #663399;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid rgba(102, 51, 153, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #663399;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #663399;
    box-shadow: 0 0 10px rgba(102, 51, 153, 0.2);
}

.submit-btn {
    background: linear-gradient(135deg, #663399, #7B68EE);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(102, 51, 153, 0.3);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #7B68EE, #663399);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 51, 153, 0.4);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #663399, #7B68EE);
    color: white;
    text-align: center;
    padding: 3rem 2rem 2rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #FFD700;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #FFD700;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.3));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1rem;
    color: rgba(255,255,255,0.8);
}

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

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #663399, #7B68EE);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    nav ul.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    section {
        padding: 3rem 1rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .services-grid,
    .events-grid,
    .contact-content,
    .membership-benefits {
        grid-template-columns: 1fr;
    }
    
    .about,
    .membership,
    .events,
    .contact {
        padding: 2rem 1rem;
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .service-card,
    .event-card {
        padding: 1.5rem;
    }
    
    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid #FFD700;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero {
        background: #000;
        color: #fff;
    }
    
    .service-card,
    .event-card,
    .contact-form,
    .contact-info {
        border: 2px solid #000;
    }
}