/* --- SAAS THEME --- */
:root {
    --bg-dark: #030305;
    --glass-panel: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --neon-blue: #00f3ff;
    --neon-red: #ff003c;
    --neon-green: #0aff00;
    --text-main: #ffffff;
    --text-muted: #8b9bb4;
    --font-heading: 'JetBrains Mono', monospace;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    /* The "UI BY HER" Red/Dark Gradient Vibe */
    background: radial-gradient(circle at 0% 0%, rgba(255, 0, 60, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 100% 100%, rgba(0, 243, 255, 0.1) 0%, transparent 50%),
                var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    
    /* ---  FIX  --- */
    min-height: 100vh;    /* Allows height to expand */
    height: auto;         /* No fixed height lock */
    overflow-y: auto;     /* SCROLLING ENABLED */
    display: flex;
    flex-direction: column;
}
/* --- 1. HEADER (Glassmorphism) --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%; /* compacted */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    
    /* DARKER BACKGROUND so text doesn't show through */
    background: rgba(3, 3, 5, 0.95); 
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand span { color: var(--neon-red); }

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-item {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
    font-weight: 500;
}

.nav-item:hover { color: var(--text-main); }

.btn-contact {
    padding: 10px 24px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: var(--text-main);
    color: black;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* --- 2. MAIN HERO SECTION --- */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* justify-content: center; <--- REMOVED  */
    
    padding-top: 120px; /* Pushes content DOWN below the header */
    padding-bottom: 40px;
    padding-left: 20px;
    padding-right: 20px;
    
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* BRANDING TEXT */
.hero-text {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 1s ease;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 10px;
    text-shadow: 0 0 40px rgba(255, 0, 60, 0.3);
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- 3. THE SCANNER CARD (Ref 2 Style) --- */
.scanner-card {
    background: linear-gradient(145deg, rgba(25, 27, 31, 0.6), rgba(10, 10, 12, 0.8));
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* The Dashed Upload Zone */
.upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: rgba(0,0,0,0.2);
}

/* Hover Effect: Lights up the border */
.upload-zone:hover {
    border-color: var(--neon-blue);
    background: rgba(0, 243, 255, 0.03);
    box-shadow: inset 0 0 30px rgba(0, 243, 255, 0.05);
}

.icon-folder {
    font-size: 3rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(255,200,100,0.3));
    transition: 0.3s;
}

.upload-zone:hover .icon-folder { transform: scale(1.1); }

/* The "Initialize" Button */
.btn-scan {
    width: 100%;
    margin-top: 25px;
    padding: 18px;
    border: none;
    border-radius: 12px;
    background: var(--neon-blue);
    color: #000;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
    transition: all 0.2s ease;
}

.btn-scan:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.5);
}

.btn-scan:active { transform: scale(0.98); }

/* --- 4. RESULTS & LOGS --- */
#logs-view, #result-view { display: none; }

.log-box {
    text-align: left;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--neon-green);
    line-height: 1.8;
    height: 200px;
    overflow-y: auto;
}

.result-badge {
    font-size: 4rem;
    margin-bottom: 20px;
}

.clean { color: var(--neon-green); text-shadow: 0 0 30px rgba(10, 255, 0, 0.4); }
.danger { color: var(--neon-red); text-shadow: 0 0 30px rgba(255, 0, 60, 0.4); }

.hash-display {
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--text-muted);
    word-break: break-all;
    margin: 20px 0;
    border: 1px solid var(--glass-border);
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.2);
}

/* --- RESPONSIVENESS (Mobile/Tablet) --- */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .scanner-card { padding: 25px; width: 90%; }
    .nav-links { display: none; } /* Hide links on small mobile for cleanliness */
    header { padding: 20px; }
}

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

/* ---  PROFESSIONAL LOADER (Radar Effect) --- */
.radar-spinner {
    width: 80px;
    height: 80px;
    border: 3px solid rgba(0, 243, 255, 0.3);
    border-top: 3px solid var(--neon-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto; /* Center it */
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.scanning-text {
    font-family: var(--font-heading);
    color: var(--text-muted);
    letter-spacing: 3px;
    font-size: 0.9rem;
    animation: pulse 1.5s ease-in-out infinite;
    text-transform: uppercase;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* --- NEW LOGO STYLES --- */
.brand-logo img {
    height: 50px; /* Adjust height to fit your navbar */
    width: auto;
    filter: drop-shadow(0 0 8px rgba(255, 0, 60, 0.4)); /* Subtle Red Glow */
    transition: transform 0.3s ease, filter 0.3s ease;
}

.brand-logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(0, 243, 255, 0.6)); /* Blue Glow on Hover */
}

/* --- GL FOOTER (Blending E) --- */
.site-footer {
    /* This creates the transparent-to-black fade */
    background: linear-gradient(to bottom, rgba(3, 3, 5, 0) 0%, rgba(3, 3, 5, 0.9) 30%, #030305 100%);
    padding: 80px 0 40px;
    margin-top: auto;
    width: 100%;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 0 20px;
}

/* Footer Typography */
.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
}
.footer-brand span { color: var(--neon-red); }

.footer-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 300px;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: white;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 12px;
    transition: 0.3s;
}

.footer-col a:hover {
    color: var(--neon-blue);
    padding-left: 5px;
}

/* Contact Box */
.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    width: fit-content;
}
.contact-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--neon-blue);
}
.icon-sm { width: 18px; height: 18px; }

/* Status Dot */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--neon-green);
    background: rgba(10, 255, 0, 0.1);
    padding: 5px 10px;
    border-radius: 20px;
}
.dot {
    width: 6px;
    height: 6px;
    background-color: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-green);
    animation: blink 2s infinite;
}
.copyright-text {
    margin-top: 20px;
    font-size: 0.7rem;
    color: #444;
}
@keyframes blink { 50% { opacity: 0.3; } }

/* Mobile */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-desc, .contact-link { margin: 0 auto 20px; }
}