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

:root {
    --primary: #059669; /* Muted Emerald */
    --primary-hover: #047857;
    --bg-light: #f0fdfa;
    --text-main: #064e3b;
    --text-muted: #4b5563;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --spring-gradient: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    --accent-glow: 0 0 20px rgba(5, 150, 105, 0.2);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--spring-gradient);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Map Decoration */
.bg-map {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

/* Header */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
    background: rgba(34, 197, 94, 0.1);
}

/* Hero Section */
.hero {
    padding: 6rem 1rem 4rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #064e3b, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Lookup Navigation (The separate links the user wanted) */
.lookup-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.lookup-btn {
    padding: 0.8rem 2rem;
    background: var(--white);
    border: 1px solid var(--glass-border);
    border-radius: 3rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--glass-shadow);
}

.lookup-btn:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    color: var(--primary);
}

.lookup-btn.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--accent-glow);
    border-color: var(--primary);
}

/* Search Box Container */
.search-container {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.search-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease;
}

.search-card:hover {
    transform: scale(1.01);
}

.search-field {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.input-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--glass-border);
    border-radius: 1.25rem;
    padding: 1.2rem 1.5rem 1.2rem 3.5rem;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
}

.input-box:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.1);
}

.input-wrapper {
    position: relative;
    flex: 1;
}

.input-wrapper i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.2rem;
    z-index: 1;
}

.btn-search {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0 2.5rem;
    border-radius: 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--accent-glow);
}

/* Neutral Download Button */
.btn-premium {
    background: #334155;
    color: var(--white);
    border: none;
    padding: 1.1rem 2rem;
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-premium:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.btn-premium:active {
    transform: translateY(0);
}

/* File Upload (Face Photo) */
.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem;
    border: 2px dashed var(--glass-border);
    border-radius: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.3);
}

.file-upload-label:hover {
    border-color: var(--primary);
    background: rgba(34, 197, 94, 0.05);
}

.file-upload-label i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.file-upload-label span {
    font-weight: 600;
    color: var(--text-muted);
}

input[type="file"] {
    display: none;
}

/* Results Display */
.results-area {
    display: none;
    margin-top: 2rem;
    text-align: left;
    animation: fadeIn 0.5s ease-out;
}

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

.progress-bar-container {
    height: 8px;
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--primary);
    transition: width 0.1s linear;
}

.status-text {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.found-records {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 1rem;
    border-left: 5px solid var(--primary);
}

.record-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.record-item:last-child {
    border-bottom: none;
}

.record-label {
    font-weight: 600;
}

.record-value {
    color: var(--primary);
    font-weight: 700;
}

/* World Coverage Section */
.coverage {
    padding: 4rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    margin-top: 4rem;
}

.coverage h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.coverage p {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.map-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.map-img {
    width: 100%;
    opacity: 0.8;
}

/* FAQ Section */
.faq {
    padding: 6rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--text-main);
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 200px;
}

.faq-item.active i {
    transform: rotate(180deg);
}

/* Footer */
footer {
    padding: 4rem 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .search-field { flex-direction: column; }
    .btn-search { padding: 1.2rem; }
}
