@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700&display=swap');

:root {
    --primary-blue: #0F172A;
    --accent-blue: #3B82F6;
    --slate-gray: #64748B;
    --off-white: #F8FAFC;
    --pure-white: #FFFFFF;
    --success-green: #10B981;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #fcfdfe; /* Slightly brighter off-white */
    background-image: 
        radial-gradient(#e2e8f0 0.8px, transparent 0.8px),
        radial-gradient(#e2e8f0 0.8px, #fcfdfe 0.8px);
    background-size: 32px 32px;
    background-position: 0 0, 16px 16px;
    color: var(--primary-blue);
    line-height: 1.5;
    position: relative;
    overflow-x: hidden;
}

/* Global Decorative Elements */
.bg-decor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: -1;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-blue);
    top: -200px;
    right: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: #c084fc; /* Purple tint */
    bottom: -100px;
    left: -100px;
}

.geometric-shape {
    position: absolute;
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 20px;
    transform: rotate(45deg);
    z-index: -1;
}


h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.1rem, 3vw, 1.25rem); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 0;
    border: 1px solid rgba(226, 232, 240, 0.6);
    position: sticky;
    top: 20px;
    z-index: 1000;
    margin: 20px auto;
    width: min(90%, 800px);
    border-radius: 100px;
    box-shadow: var(--shadow-lg);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 32px;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo span {
    color: var(--accent-blue);
    background: linear-gradient(135deg, var(--accent-blue), #1d4ed8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-nav {
    display: flex;
    gap: 16px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--slate-gray);
    font-weight: 600;
    font-size: 14px;
    padding: 6px 10px;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.05);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 26px;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary-blue);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 100px 0 120px;
    text-align: center;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(59, 130, 246, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
    mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.25rem);
    max-width: 600px;
    margin: 24px auto 0;
    opacity: 0.8;
}

.hero-compact {
    padding: 60px 0 70px;
}

.hero-compact h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
}


.section-tag {
    display: inline-block;
    padding: 8px 16px;
    background: #eff6ff;
    color: var(--accent-blue);
    border-radius: 100px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 20px 60px;
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    flex-wrap: wrap;
}

.stat-item h4 {
    font-size: 28px;
    color: var(--primary-blue);
    margin-bottom: 4px;
}

.stat-item p {
    font-size: 14px;
    color: var(--slate-gray);
    font-weight: 500;
}

/* Search Container */
.search-container {
    max-width: 700px;
    margin: 40px auto 0;
    position: relative;
    z-index: 100;
}

.search-input-wrapper {
    position: relative;
    background: var(--pure-white);
    border-radius: 50px;
    padding: 8px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.search-input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    background: transparent;
}

.search-button {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-results {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: var(--pure-white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--off-white);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.search-results.show { display: block; }

.result-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--primary-blue);
    border-bottom: 1px solid var(--off-white);
}

.result-item:hover { background: var(--off-white); }

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    color: var(--slate-gray);
    font-size: 16px;
    line-height: 1.6;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 60px;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #334155;
    padding: 12px 16px;
    border-radius: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--pure-white);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.category-link:hover {
    background: #ffffff;
    border-color: var(--accent-blue);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.1);
    transform: translateY(-3px);
    color: var(--accent-blue);
}

.category-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    color: var(--slate-gray);
    transition: all 0.2s ease;
}

.category-link:hover .category-icon {
    background: #eff6ff;
    color: var(--accent-blue);
    border-color: #dbeafe;
    transform: scale(1.05);
}

/* Grids & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.card {
    background: var(--pure-white);
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    text-decoration: none;
    color: inherit;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.1);
}

.card h3 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--primary-blue);
}

.card span {
    font-size: 13px;
    color: var(--slate-gray);
}

.states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 60px;
}

/* Listing & Detail Specifics */
.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.content-card {
    background: white;
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .detail-grid { grid-template-columns: 1fr; }
    aside > div { position: static !important; }
}

@media (max-width: 768px) {
    header { width: 95%; top: 10px; margin: 10px auto; }
    .header-content { padding: 0 16px; }
    
    .mobile-toggle { display: flex; z-index: 1100; }
    
    .header-nav {
        position: fixed;
        top: 75px;
        left: 50%;
        transform: translateX(-50%) translateY(-20px);
        width: calc(100% - 32px);
        background: white;
        flex-direction: column;
        padding: 20px;
        border-radius: 20px;
        box-shadow: var(--shadow-lg);
        border: 1px solid #e2e8f0;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .header-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
    
    .nav-link { width: 100%; text-align: center; padding: 12px; font-size: 16px; }
    
    .mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .mobile-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    
    .hero { padding: 50px 0 60px; }
    .hero-compact { padding: 40px 0 55px; }
    .stats-grid { gap: 20px; }
    
    .search-results {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 20px 20px 0 0;
        max-height: 70vh;
        z-index: 2000;
        box-shadow: 0 -10px 25px rgba(0,0,0,0.1);
    }
    .result-item { padding: 14px 20px; border-bottom: 1px solid #f1f5f9; }
    .result-item:last-child { border-bottom: none; }
}

@media (max-width: 640px) {
    .search-input-wrapper {
        flex-direction: column;
        border-radius: 24px;
        padding: 12px;
        gap: 12px;
    }
    .search-input { width: 100%; text-align: center; font-size: 15px; }
    .search-button { width: 100%; padding: 14px; }
    
    .grid { grid-template-columns: 1fr; gap: 12px; }
    .category-grid { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.75rem; }
    .section-title { font-size: 1.6rem; }
    .card { padding: 16px; }
    .card h3 { font-size: 16px; }
    
    .info-bar { flex-direction: column; align-items: flex-start !important; gap: 15px !important; }
    .info-bar .separator { display: none; }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }