/* Base Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Hero Section Base */
.hero-gradient {
    background: linear-gradient(135deg, #ef4444 0%, #db2777 50%, #9333ea 100%);
    font-family: 'Inter', sans-serif;
    padding: 80px 0;
}

/* Backdrop Effects */
.backdrop-blur {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Background Utilities */
.bg-white-20 {
    background-color: rgba(255, 255, 255, 0.2);
}

.bg-white-10 {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(to right, #fde047, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-animate {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
    animation-delay: calc(var(--animation-order) * 0.1s);
}

/* Container Spacing */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Search Container Styles */
.search-container {
    display: flex;
    align-items: center; /* Changed from stretch to center */
    gap: 12px;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Search Box */
.search-box2 {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

/* Search Icon */
.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    pointer-events: none;
    z-index: 2;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Search Input */
.search-input2 {
    width: 100%;
    height: 48px;
    padding-left: 48px; /* Exact space for icon */
    padding-right: 16px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9); /* More visible text color */
    font-size: 1.125rem;
    transition: all 0.3s ease;
    caret-color: white; /* Makes the cursor white */
}

.search-input2:focus {
    background-color: rgba(255, 255, 255, 0.3);
    outline: none;
}

.search-input2::placeholder {
    color: rgba(255, 255, 255, 0.7); /* More visible placeholder */
}

/* Search Button - updated to match input height */
.search-button {
    height: 48px; /* Match input height */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 32px;
    background-color: white;
    color: #ef4444;
    font-weight: 600;
    font-size: 1.125rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Stats Badge */
.inline-flex {
    display: inline-flex;
    padding: 8px 16px;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 9999px;
    margin-bottom: 32px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 48px auto;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    padding: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Typography - More specific selectors */
.hero-gradient h1 {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: white;
}

@media (min-width: 768px) {
    .hero-gradient h1 {
        font-size: 64px;
    }
}

@media (min-width: 1024px) {
    .hero-gradient h1 {
        font-size: 84px; /* Increased to match redesign */
    }
}

/* Description Text - More specific selector */
.hero-gradient .text-xl {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 48px;
    opacity: 0.9;
    font-weight: 400;
}

@media (min-width: 768px) {
    .hero-gradient .text-xl {
        font-size: 24px;
    }
}

/* Text Gradient - More specific */
.hero-gradient .text-gradient {
    background: linear-gradient(to right, #fde047, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block; /* Important for gradient text */
}

/* Add !important for critical styles */
.hero-gradient h1,
.hero-gradient .text-xl {
    font-family: 'Inter', sans-serif !important;
}

/* Container Width */
.max-w-2xl {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Media Query for Mobile */
@media (max-width: 639px) {
    .search-container {
        flex-direction: column;
        padding: 12px;
    }
    .search-button {
        width: 100%;
    }
    .hero-gradient {
        padding: 48px 0;
    }

    .container {
        padding: 0 16px;
    }
}

/* Button Styles */
.hero-button {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Fix for Font Awesome icons */
.fas {
    line-height: 1;
    vertical-align: middle;
}

/* Text Sizing Utilities */
.text-sm {
    font-size: 1.175rem; /* 14px */
    line-height: 1.25rem;
}

.text-lg {
    font-size: 1.125rem; /* 18px */
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem; /* 20px */
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem; /* 24px */
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem; /* 30px */
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem; /* 36px */
    line-height: 2.5rem;
}

/* Font Weights */
.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* Responsive Text Sizing */
@media (min-width: 768px) {
    .md\:text-2xl {
        font-size: 1.5rem;
    }

    .md\:text-3xl {
        font-size: 1.875rem;
    }

    .md\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }
}

@media (min-width: 1024px) {
    .lg\:text-7xl {
        font-size: 4.5rem;
        line-height: 1;
    }
}

/* Opacity */
.opacity-80 {
    opacity: 0.8;
}

.opacity-90 {
    opacity: 0.9;
}