:root {
    --bg-dark: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-primary: #00f3ff;
    --accent-secondary: #bc13fe;
    --border-color: rgba(255, 255, 255, 0.1);
    --font-heading: 'Space Mono', monospace;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    animation: drift 20s infinite alternate ease-in-out;
}

.orb-1 {
    background: var(--accent-primary);
    top: -200px;
    left: -200px;
}

.orb-2 {
    background: var(--accent-secondary);
    bottom: -200px;
    right: -200px;
    animation-delay: -5s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(100px, 50px);
    }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Typography & Layout */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.glass-header {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--accent-primary);
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--text-primary);
}

.btn-primary {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: var(--transition);
}

.btn-primary:hover {
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

/* Hero Section */
.hero-section {
    padding: 8rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
}

/* Search Bar */
.search-container {
    width: 100%;
    max-width: 700px;
    position: relative;
}

.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    border-radius: 12px;
}

.search-bar {
    display: flex;
    padding: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.search-bar:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.15);
}

.search-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    color: var(--text-secondary);
}

#searchInput {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    padding: 0.75rem 0;
    outline: none;
    font-family: var(--font-body);
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-action-btn {
    background: var(--accent-primary);
    color: #000;
    border: none;
    padding: 0 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-action-btn:hover {
    background: #fff;
    transform: translateY(-1px);
}

.search-tags {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.tag:hover {
    border-color: var(--accent-secondary);
    color: var(--text-primary);
}

/* Results Section */
.results-section {
    padding: 4rem 0;
    min-height: 60vh;
}

.hidden {
    display: none !important;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--accent-primary);
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.result-card {
    padding: 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    min-height: 250px;
}

.result-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--accent-secondary);
}

.card-content {
    flex: 1;
}

.placeholder-text {
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.5;
}

/* Features */
.features-section {
    padding: 6rem 0;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.feature-item i {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}

/* Footer */
.glass-footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: auto;
    background: rgba(10, 10, 15, 0.9);
}

.glass-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

/* Loading Animation */
.loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    border-top-color: #000;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .bg-main {
        font-size: 3rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .glass-footer .container {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Dynamic Content Styles */
.scanning-text {
    font-family: var(--font-heading);
    color: var(--accent-primary);
    animation: blink 0.5s infinite;
}

.data-row {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.data-row strong {
    color: var(--text-secondary);
    font-weight: 400;
    margin-right: 0.5rem;
}

.status-ok {
    color: #00ff9d;
}

.status-alert {
    color: #ff0055;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.social-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    text-align: center;
    border: 1px solid transparent;
}

.social-item.alert {
    border-color: #ff0055;
    color: #ff0055;
    background: rgba(255, 0, 85, 0.1);
}

.badge {
    background: rgba(0, 243, 255, 0.1);
    color: var(--accent-primary);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    border: 1px solid rgba(0, 243, 255, 0.2);
    vertical-align: middle;
}

.highlight {
    color: #fff;
    font-weight: 600;
}

.blur-reveal {
    filter: blur(4px);
    transition: filter 0.3s;
    cursor: pointer;
    user-select: none;
}

.blur-reveal:hover {
    filter: blur(0);
}

/* Critical OSINT Link Styles */
.link-critical {
    color: #ff0055;
    font-weight: bold;
    border: 1px solid #ff0055;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 0, 85, 0.1);
}

.link-high {
    color: #ffaa00;
    font-weight: bold;
}

.link-success {
    color: #00ff9d;
    font-weight: bold;
    border: 1px solid #00ff9d;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(0, 255, 157, 0.1);
}

.warning-box {
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 200, 0, 0.1);
    color: #ffcc00;
    border-left: 3px solid #ffcc00;
    font-size: 0.85rem;
}