:root {
    --primary: #e84393;       /* Vibrant pink */
    --secondary: #fdcb6e;     /* Warm gold */
    --accent: #00b894;       /* Fresh green */
    --dark: #2d3436;         /* Rich black */
    --light: #f5f6fa;       /* Soft white */
    --text: #636e72;        /* Subtle gray */
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --african-pattern: url('https://www.transparenttextures.com/patterns/african-cloth.png');
    --gradient: linear-gradient(135deg, #e84393, #fd79a8, #fdcb6e);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Styles */
body {
    font-family: 'Nunito', sans-serif;
    background-color: #fff9f9;
    margin: 0;
    padding: 0;
    color: var(--text);
    line-height: 1.7;
    background-image: var(--african-pattern);
    background-blend-mode: overlay;
    background-attachment: fixed;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Header - Grand & Cultural */
header {
    background: var(--gradient);
    color: white;
    padding: 80px 0;
    border-radius: 0 0 30px 30px;
    margin-bottom: 50px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--african-pattern);
    opacity: 0.2;
    pointer-events: none;
}

header h1 {
    font-family: 'Merriweather', serif;
    font-size: 3.5rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.tagline {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    margin-top: 10px;
    opacity: 0.9;
}

/* Search Filters - Modern & Functional */
.search-filters {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

.search-filters select, .search-filters button {
    padding: 12px 25px;
    border-radius: 50px;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: var(--transition);
}

.search-filters select {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    min-width: 200px;
}

.search-filters button {
    background: var(--accent);
    color: white;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 184, 148, 0.3);
}

.search-filters button:hover {
    background: #009d7a;
    transform: translateY(-3px);
}

/* Profile Cards - Elegant & Interactive */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.profile-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: none;
}

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

.profile-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
    transition: var(--transition);
}

.profile-card:hover::after {
    height: 8px;
}

/* Footer - Clean & Professional */
footer {
    background: var(--dark);
    color: white;
    padding: 50px 0 30px;
    margin-top: 80px;
    text-align: center;
}

.footer-tagline {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--secondary);
}

.copyright {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    header {
        padding: 60px 0;
    }
    
    header h1 {
        font-size: 2.8rem;
    }
    
    .tagline {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .search-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .profiles-grid {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 2.2rem;
    }

}
/* Profile Card Styles */
.profile-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: none;
    position: relative;
}

.profile-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.profile-image::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.profile-content {
    padding: 25px;
}

.profile-content h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    margin: 0 0 5px;
    font-size: 1.5rem;
}

.location {
    color: var(--primary);
    margin: 0 0 15px;
    font-size: 0.9rem;
}

.bio {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: var(--text);
}

.interests {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.interests span {
    background: var(--light);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.traits {
    font-size: 0.9rem;
    color: var(--dark);
    opacity: 0.9;
}

/* Loading State */
.error {
    text-align: center;
    grid-column: 1 / -1;
    color: var(--primary);
    font-size: 1.2rem;
}