:root {
    --primary: #0d6efd;
    --secondary: #6c757d;
    --pink: #d63384;
    --light: #f8f9fa;
    --dark: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    line-height: 1.6;
}

.bg-pink {
    background-color: var(--pink);
}

.text-pink {
    color: var(--pink);
}

.btn-pink {
    background-color: var(--pink);
    color: white;
}

.btn-outline-pink {
    border-color: var(--pink);
    color: var(--pink);
}

.btn-outline-pink:hover {
    background-color: var(--pink);
    color: white;
}

.badge.bg-pink {
    background-color: var(--pink);
}

.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #d63384 100%);
    border: 1px solid rgba(0,0,0,0.1);
}

.search-form .form-control {
    border-right: 0;
}

.search-form .btn {
    border-left: 0;
}

.name-detail-card .card-header {
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.traits-list i {
    min-width: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 30px;
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
}

/* Enhanced Styles for index.php */
.hero-section.bg-gradient {
    background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
    position: relative;
    overflow: hidden;
}

.hero-section.bg-gradient::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.05)" d="M0,0 L100,0 L100,100 L0,100 Z" /></svg>');
    background-size: cover;
}

.search-container {
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.search-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.hover-effect {
    transition: all 0.3s ease;
}

.hover-effect:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category-card {
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-primary-light {
    background-color: rgba(13, 110, 253, 0.1);
}

.bg-pink-light {
    background-color: rgba(214, 51, 132, 0.1);
}

.bg-warning-light {
    background-color: rgba(255, 193, 7, 0.1);
}

.bg-success-light {
    background-color: rgba(25, 135, 84, 0.1);
}

.alphabet-btn {
    width: 50px;
    height: 50px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.alphabet-btn:hover {
    background-color: var(--primary);
    color: white;
    transform: scale(1.1);
}

.name-card {
    transition: all 0.2s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.name-card:hover {
    background-color: rgba(13, 110, 253, 0.05);
    border-color: rgba(13, 110, 253, 0.2);
}

.origin-card .flag-icon {
    font-size: 2.5rem;
    line-height: 2.5rem;
}

.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.cta-section::after {
    content: "";
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section.bg-gradient {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .alphabet-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .category-card, .origin-card {
        margin-bottom: 15px;
    }
}

/* Enhanced Hero Section Styles */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    color: white;
    overflow: hidden;
    padding: 80px 0;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 15s infinite ease-in-out;
}

.bubble-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.bubble-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.bubble-3 {
    width: 70px;
    height: 70px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

.bubble-4 {
    width: 120px;
    height: 120px;
    top: 30%;
    left: 50%;
    animation-delay: 6s;
}

.bubble-5 {
    width: 90px;
    height: 90px;
    top: 70%;
    left: 60%;
    animation-delay: 8s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-50px) translateX(20px);
    }
}

.text-highlight {
    color: #fff;
    position: relative;
    display: inline-block;
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    z-index: -1;
    border-radius: 3px;
}

.hero-search-card {
    background: white;
    border-radius: 12px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-search-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important;
}

.stat-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 10px 15px;
    text-align: center;
    min-width: 80px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

.app-badge img {
    transition: transform 0.3s ease;
    height: 40px;
    width: auto;
}

.app-badge:hover img {
    transform: scale(1.05);
}

.gender-selection .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.gender-selection .form-check-input[value="female"]:checked {
    background-color: var(--pink);
    border-color: var(--pink);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-content {
        text-align: center;
        padding-right: 0 !important;
    }
    
    .stat-box {
        flex: 1;
    }
    
    .app-badge {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-search-card {
        margin-top: 30px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .stat-box {
        min-width: 70px;
        padding: 8px 10px;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
}