@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #00f2fe;
    --primary-dark: #4facfe;
    --secondary: #667eea;
    --background: #0f172a;
    --surface: rgba(30, 41, 59, 0.7);
    --surface-light: rgba(255, 255, 255, 0.05);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-secondary: #64748b;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --radius: 16px;
    --gradient: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    --header-bg: rgba(15, 23, 42, 0.95);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--background);
    background-image:
        radial-gradient(at 0% 0%, rgba(79, 172, 254, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(102, 126, 234, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Header & Navigation */
.main-header {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
}

.header-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary);
    transition: all 0.3s ease-in-out;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1 {
    font-size: 3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    letter-spacing: -1px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Centered Content Layouts */
.hero-section,
.centered-content {
    margin-top: 40px;
    margin-bottom: 40px;
}

.centered-search-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--surface);
    backdrop-filter: blur(12px);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-box {
    background: var(--surface);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.15);
    border-color: rgba(0, 242, 254, 0.3);
}

.content-box p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Forms */
.form-box {
    margin: 20px auto;
    max-width: 100%;
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.file-upload-form {
    flex-direction: column;
    padding: 20px;
    background: var(--surface);
    border-radius: var(--radius);
    gap: 20px;
}

.file-drop-area {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 40px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.file-drop-area:hover,
.file-drop-area.active {
    border-color: var(--primary);
    background: rgba(0, 242, 254, 0.05);
}

.upload-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    transition: color 0.3s;
}

.file-drop-area:hover .upload-icon {
    color: var(--primary);
}

.file-msg {
    color: var(--text-muted);
    font-size: 1rem;
}

.file-name {
    display: none;
    color: var(--primary);
    font-weight: 600;
    margin-top: 10px;
    word-break: break-all;
}

.scan-btn {
    width: 100%;
    margin-top: 10px;
    font-size: 1.1rem;
}

.centered-form {
    max-width: 500px;
}

.contact-container {
    padding: 40px !important;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text);
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Inherit existing form-box input styles for compatibility */
.form-box input {
    flex: 1;
    padding: 12px 20px;
    font-size: 1rem;
    background: transparent;
    border: none;
    color: var(--text);
    outline: none;
    font-family: inherit;
}

.form-box input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-box input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background: var(--gradient);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: filter 0.2s, transform 0.2s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
    white-space: nowrap;
}

.btn:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

/* Results */
.result {
    margin-top: 30px;
    padding: 20px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.5s ease-out;
    text-align: left;
}

.result h3 {
    margin-top: 0;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.result p {
    margin: 0;
    color: var(--text-muted);
}

.result.high,
.result.high-risk,
.result.infected {
    border-left: 4px solid var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.result.high h3,
.result.high-risk h3,
.result.infected h3 {
    color: var(--danger);
}

.result.low,
.result.safe,
.result.clean,
.result.low-risk {
    border-left: 4px solid var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.result.low h3,
.result.safe h3,
.result.clean h3,
.result.low-risk h3 {
    color: var(--success);
}

.result.warning,
.result.medium-risk {
    border-left: 4px solid var(--warning);
    background: rgba(245, 158, 11, 0.1);
}

.result.warning h3,
.result.medium-risk h3 {
    color: var(--warning);
}



/* Footer & Info */
.footer {
    margin-top: auto;
    background: rgba(15, 23, 42, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 0 20px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

.footer-section h2 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section h3 {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
    max-width: 1000px;
    margin: 0 auto;
}

.info-box {
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 60px auto 40px auto;
    text-align: center;
}

.faq-tip {
    font-size: 1.1rem;
    color: var(--primary);
    background: rgba(0, 242, 254, 0.1);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 30px;
    font-weight: 500;
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.faq-item {
    background: var(--surface);
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: left;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question .icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: rgba(0, 0, 0, 0.1);
}

.faq-answer p {
    margin: 0;
    padding: 0 20px 20px 20px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Active State for FAQ */
.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.faq-item.active .faq-question .icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* Adjust if content is longer */
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

/* Mobile Responsiveness */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

.mobile-menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.mobile-menu-modal.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-content {
    text-align: center;
    width: 100%;
    position: relative;
    padding: 20px;
}

.close-btn {
    position: absolute;
    top: -50px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text);
    transition: transform 0.3s;
}

.close-btn:hover {
    transform: rotate(90deg);
    color: var(--danger);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: color 0.2s, transform 0.2s;
}

.mobile-nav-links a:hover {
    color: var(--primary);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        /* Keep row for logo and hamburger */
    }

    .nav-links {
        display: none;
        /* Hide standard nav */
    }

    .mobile-menu-btn {
        display: block;
        /* Show hamburger */
    }

    h1 {
        font-size: 2.5rem;
    }

    .form-box {
        flex-direction: column;
        padding: 0;
        background: transparent;
        border: none;
    }

    .form-box input {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 50px;
        margin-bottom: 15px;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

/* Language Toggle */
.language-toggle {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-btn {
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.lang-btn:hover {
    color: var(--primary);
    background: rgba(0, 242, 254, 0.1);
}

.lang-btn.active {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 242, 254, 0.3);
}

.mobile-lang-toggle {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-lang-toggle .lang-btn {
    padding: 10px 20px;
    font-size: 1rem;
}

/* Urdu Font Support */
[dir=\"rtl\"] {
    font-family: 'Noto Nastaliq Urdu', 'Outfit', sans-serif;
}

[dir=\"rtl\"] .nav-links {
    flex-direction: row-reverse;
}

[dir=\"rtl\"] .header-container {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .language-toggle {
        display: none;
    }
}

.non-official-alert {
    background: rgba(239, 68, 68, 0.15);
    border: 3px solid var(--danger);
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
    text-align: center;
    animation: slideUp 0.5s ease-out;
}

.non-official-alert h3 {
    color: var(--danger);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.non-official-alert p {
    color: var(--text);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.5;
}

/* Awareness Card (Floating Side) */
.awareness-modal {
    display: none;
    position: fixed;
    top: 100px;
    right: 20px;
    width: 350px;
    z-index: 2000;
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.awareness-modal.active {
    display: block;
}

.awareness-backdrop {
    display: none;
    /* No backdrop needed for inline card */
}

.awareness-content {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-height: 80vh;
    overflow-y: auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(15, 23, 42, 0.95);
}

.awareness-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.awareness-close:hover {
    background: var(--danger);
    transform: rotate(90deg);
}

.awareness-header {
    text-align: center;
    margin-bottom: 20px;
}

.awareness-header h2 {
    margin: 10px 0 0 0;
    color: var(--text);
    font-size: 1.4rem;
}

.awareness-body {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.awareness-section {
    margin-bottom: 20px;
}

.awareness-section h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.awareness-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.awareness-section li {
    padding: 10px 0 10px 30px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.awareness-section li:last-child {
    border-bottom: none;
}

.awareness-section li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 10px;
    color: var(--success);
    font-weight: bold;
    font-size: 1.2rem;
}

.awareness-bilingual {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.awareness-lang-section {
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.awareness-lang-section[lang="ur"] {
    direction: rtl;
    font-family: 'Noto Nastaliq Urdu', sans-serif;
}

/* Awareness Notification Banner (Mobile) */
.awareness-notification {
    display: none;
    /* Hidden on Desktop */
}

@media (max-width: 900px) {

    /* Show notification banner on mobile */
    .awareness-notification {
        position: fixed;
        top: 70px;
        /* Below navbar */
        left: 20px;
        right: 20px;
        background: rgba(15, 23, 42, 0.95);
        border: 1px solid var(--primary);
        border-radius: 12px;
        padding: 12px 20px;
        color: var(--text);
        z-index: 2000;
        display: none;
        /* JS will show this flex */
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        animation: slideDown 0.4s ease-out;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .awareness-notification.active {
        display: flex;
    }

    .notification-content {
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 500;
        font-size: 0.95rem;
    }

    .notification-content i {
        color: var(--primary);
        font-size: 1.2rem;
    }

    .notification-btn {
        background: rgba(255, 255, 255, 0.1);
        border: none;
        padding: 5px 12px;
        border-radius: 6px;
        color: var(--primary);
        font-size: 0.85rem;
        cursor: pointer;
        font-weight: 600;
        transition: all 0.3s;
    }

    /* Mobile: Modal becomes full screen overlay when notification clicked */
    .awareness-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 3000;
        display: none;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.8);
        /* Backdrop */
        backdrop-filter: blur(5px);
        animation: fadeIn 0.3s ease-in-out;
        margin: 0;
        /* Reset margins */
    }

    .awareness-modal.active {
        display: flex;
    }

    .awareness-content {
        width: 90%;
        max-width: 500px;
        max-height: 80vh;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
        background: var(--surface);
        padding: 30px 20px;
        margin: auto;
    }

    .awareness-header h2 {
        font-size: 1.3rem;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}