:root {
    --primary: #ff6b6b;       /* Vibrant coral */
    --secondary: #feca57;     /* Sunny yellow */
    --accent: #1dd1a1;       /* Tropical teal */
    --dark: #222f3e;         /* Deep navy */
    --light: #f7f1e3;       /* Soft sand */
    --text: #576574;        /* 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, #ff6b6b, #feca57, #1dd1a1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --fun-font: 'Comic Neue', cursive;
}

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    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 - Vibrant & Cultural */
header {
    background: var(--gradient);
    color: white;
    padding: 100px 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: 'Playfair Display', serif;
    font-size: 4rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

.tagline {
    font-family: 'Pacifico', cursive;
    font-size: 2rem;
    margin-top: 15px;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* Fun Elements */
.banana {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

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

.search-filters::after {
    content: "✨ Find Your Perfect Match ✨";
    font-family: var(--fun-font);
    position: absolute;
    bottom: -30px;
    width: 100%;
    text-align: center;
    color: var(--primary);
    font-weight: bold;
}

.search-filters select, .search-filters button {
    padding: 15px 30px;
    border-radius: 50px;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: var(--transition);
    font-size: 1rem;
}

.search-filters select {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    min-width: 220px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 1em;
}

.search-filters button {
    background: var(--accent);
    color: white;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(29, 209, 161, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-filters button:hover {
    background: #17a689;
    transform: translateY(-3px) scale(1.05);
}

/* Profile Cards - Elegant & Interactive */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin: 60px 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) scale(1.02);
    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;
}

/* Profile Card Content */
.profile-image {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: var(--transition);
}

.profile-card:hover .profile-image {
    transform: scale(1.05);
}

.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.6rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-content h3::before {
    content: "❤️";
    font-size: 1.2rem;
}

.location {
    color: var(--primary);
    margin: 0 0 15px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.bio {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text);
    line-height: 1.6;
}

.interests {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.interests span {
    background: var(--light);
    color: var(--primary);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.view-profile {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 15px;
}

.view-profile:hover {
    background: #ff5252;
    transform: translateX(5px);
}

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

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--gradient);
}

.footer-tagline {
    font-family: 'Pacifico', cursive;
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--secondary);
}

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

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

.footer-links a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

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

.footer-links a:hover::after {
    width: 100%;
}

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

/* Profile Detail Page */
.profile-detail-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin: 50px 0;
}

.profile-image-container {
    position: sticky;
    top: 30px;
    align-self: start;
}

.profile-image-main {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.profile-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.action-button {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.action-button.primary {
    background: var(--primary);
    color: white;
}

.action-button.secondary {
    background: var(--light);
    color: var(--dark);
}

.action-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-info {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.profile-name {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.profile-location {
    color: var(--primary);
    margin-bottom: 30px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-age {
    color: var(--text);
    font-size: 0.9em;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    margin: 25px 0 15px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient);
}

/* Fun Elements */
.fun-fact {
    background: var(--light);
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
    border-left: 5px solid var(--secondary);
    font-family: var(--fun-font);
}

.fun-fact::before {
    content: "💡 Fun Fact:";
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
    color: var(--primary);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .profile-detail-container {
        grid-template-columns: 1fr;
    }
    
    .profile-image-container {
        position: static;
    }
}

@media (max-width: 992px) {
    header {
        padding: 80px 0;
    }
    
    header h1 {
        font-size: 3rem;
    }
    
    .tagline {
        font-size: 1.6rem;
    }
    
    .profiles-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    header {
        padding: 60px 0;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.3rem;
    }
    
    .search-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-filters select, .search-filters button {
        width: 100%;
    }
    
    .profile-detail-container {
        gap: 20px;
    }
    
    .profile-actions {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    header h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .profile-content h3 {
        font-size: 1.4rem;
    }
}

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

.pulse {
    animation: pulse 2s infinite;
}

/* Easter Egg */
.easter-egg {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.easter-egg:hover {
    transform: scale(1.1) rotate(10deg);
}