/* =========================================
   Eagle Eye OSINT - Cybernetic V2.0 Styles
   ========================================= */

:root {
    /* Color Palette */
    --void-black: #050505;
    --dark-bg: #0a0a0f;
    --panel-bg: rgba(16, 20, 30, 0.6);
    --neon-blue: #00f3ff;
    --neon-green: #0aff0a;
    --neon-purple: #bc13fe;
    --neon-red: #ff2a6d;
    --cyber-gray: #7888a3;
    --text-white: #e0e6ed;

    /* Gradients */
    --grad-cyber: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    --grad-dark: linear-gradient(180deg, rgba(16, 20, 30, 0) 0%, rgba(0, 243, 255, 0.05) 100%);

    /* Fonts */
    --font-header: 'Orbitron', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-body: 'Inter', sans-serif;

    /* Effects */
    --glass-blur: blur(12px);
    --border-glow: 0 0 10px rgba(0, 243, 255, 0.3);
    --text-glow-blue: 0 0 15px rgba(0, 243, 255, 0.6);
    --box-shadow-cyber: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Cursor: none removed to show default pointersite-wide */
}

body {
    background-color: var(--void-black);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    cursor: default;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--void-black);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-purple);
}

/* Canvas Background */
#cyber-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.6;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0.1));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
}

/* Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-header);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--text-white);
    letter-spacing: 2px;
    text-decoration: none;
    cursor: pointer;
}

.cyber-eye {
    color: var(--neon-blue);
    margin-right: 12px;
    filter: drop-shadow(0 0 5px var(--neon-blue));
}

.version-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--neon-purple);
    margin-left: 10px;
    border: 1px solid var(--neon-purple);
    padding: 2px 6px;
    border-radius: 4px;
}

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--neon-blue);
    transition: 0.3s;
    box-shadow: 0 0 5px var(--neon-blue);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -6px);
}

.nav-link {
    color: var(--cyber-gray);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    position: relative;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    color: var(--neon-blue);
    overflow: hidden;
    transition: width 0.3s ease;
    border-right: 2px solid var(--neon-blue);
    white-space: nowrap;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.1);
}

.nav-link:hover::before {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
}

.cyber-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 24px;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.hero-title {
    font-family: var(--font-header);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: white;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
    position: relative;
}

/* Glitch Stack Effect */
.glitch-stack {
    display: grid;
    grid-template-columns: 1fr;
}

.glitch-stack span {
    grid-row-start: 1;
    grid-column-start: 1;
    --stack-height: calc(100% / var(--stacks) - 1px);
    --inverse-index: calc(calc(var(--stacks) - 1) - var(--index));
    --clip-top: calc(var(--stack-height) * var(--index));
    --clip-bottom: calc(var(--stack-height) * var(--inverse-index));
    clip-path: inset(var(--clip-top) 0 var(--clip-bottom) 0);
    animation: stack 340ms cubic-bezier(.46, .29, 0, 1.24) 1 backwards calc(var(--index) * 120ms), glitch 2s ease infinite 2s alternate-reverse;
}

.glitch-stack span:nth-child(odd) {
    --glitch-translate: 8px;
}

.glitch-stack span:nth-child(even) {
    --glitch-translate: -8px;
}

@keyframes stack {
    0% {
        opacity: 0;
        transform: translateX(-50%);
        text-shadow: -2px 3px 0 red, 2px -3px 0 blue;
    }

    60% {
        opacity: 0.5;
        transform: translateX(50%);
    }

    80% {
        transform: none;
        opacity: 1;
        text-shadow: 2px -3px 0 red, -2px 3px 0 blue;
    }

    100% {
        text-shadow: none;
    }
}

@keyframes glitch {
    0% {
        transform: translate(0);
        text-shadow: -2px 3px 0 red, 2px -3px 0 blue;
    }

    80% {
        transform: translate(0);
        text-shadow: none;
    }

    85% {
        transform: translate(var(--glitch-translate));
        text-shadow: -2px 3px 0 red, 2px -3px 0 blue;
    }

    100% {
        transform: translate(0);
        text-shadow: none;
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--cyber-gray);
    font-family: var(--font-mono);
    margin-bottom: 40px;
}

.typing-effect {
    border-right: 2px solid var(--neon-green);
    padding-right: 5px;
    animation: blinkCursor 0.75s step-end infinite;
}

@keyframes blinkCursor {
    50% {
        border-color: transparent;
    }
}

/* Actions */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.cyber-btn {
    position: relative;
    padding: 15px 35px;
    font-family: var(--font-header);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.cyber-btn.primary {
    background: var(--neon-blue);
    color: var(--void-black);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

.cyber-btn.primary:hover {
    background: white;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.8);
    transform: translateY(-2px);
}

.cyber-btn.secondary {
    background: transparent;
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    box-shadow: inset 0 0 10px rgba(0, 243, 255, 0.2);
}

.cyber-btn.secondary:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: white;
    color: white;
}

/* Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 20px;
    background: linear-gradient(90deg, transparent, rgba(16, 20, 30, 0.8), transparent);
}

.stat-box {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-header);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white);
}

.stat-label {
    font-family: var(--font-mono);
    color: var(--neon-purple);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--cyber-gray);
    opacity: 0.3;
}

/* Section Common */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title {
    font-family: var(--font-header);
    font-size: 2.5rem;
    color: var(--text-white);
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.section-line {
    width: 100px;
    height: 3px;
    background: var(--neon-blue);
    margin: 15px auto 0;
    box-shadow: 0 0 10px var(--neon-blue);
}

/* Tools Grid */
.tools-section {
    padding: 100px 0;
    background: var(--dark-bg);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.tool-card {
    position: relative;
    background: rgba(15, 20, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.card-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid transparent;
    transition: all 0.4s ease;
    pointer-events: none;
}

/* Corner Accents */
.card-border::before,
.card-border::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.card-border::before {
    top: 0;
    left: 0;
    border-top-color: var(--cyber-gray);
    border-left-color: var(--cyber-gray);
}

.card-border::after {
    bottom: 0;
    right: 0;
    border-bottom-color: var(--cyber-gray);
    border-right-color: var(--cyber-gray);
}

.tool-card:hover {
    transform: translateY(-5px);
    background: rgba(15, 20, 30, 0.9);
}

.tool-card:hover .card-border {
    border-color: rgba(0, 243, 255, 0.3);
}

.tool-card:hover .card-border::before {
    border-color: var(--neon-blue);
    width: 100%;
    height: 100%;
}

.tool-card:hover .card-border::after {
    border-color: var(--neon-blue);
    width: 100%;
    height: 100%;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--neon-purple);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.tool-card:hover .card-icon {
    color: var(--neon-blue);
    text-shadow: 0 0 15px var(--neon-blue);
    transform: scale(1.1);
}

.tool-card h3 {
    font-family: var(--font-header);
    color: var(--text-white);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.tool-card p {
    color: var(--cyber-gray);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-green);
}

.tool-count {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-blue);
}

/* Resources Panel */
.resources-section {
    padding: 100px 0;
    position: relative;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.resource-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2px;
    /* For Inner border */
    text-decoration: none;
    transition: 0.3s;
}

.resource-panel:hover {
    border-color: var(--neon-purple);
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.2);
}

.panel-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--neon-purple);
    letter-spacing: 1px;
}

.panel-icon {
    padding: 30px;
    text-align: center;
    font-size: 3rem;
    color: var(--text-white);
    transition: 0.3s;
}

.resource-panel:hover .panel-icon {
    color: var(--neon-purple);
    transform: scale(1.1) rotate(5deg);
}

.resource-panel h3 {
    text-align: center;
    font-family: var(--font-header);
    color: var(--text-white);
    margin-bottom: 5px;
}

.resource-panel p {
    text-align: center;
    color: var(--cyber-gray);
    font-size: 0.85rem;
    padding-bottom: 20px;
}

/* Footer */
.footer {
    background: #020205;
    padding: 60px 0 20px;
    border-top: 2px solid var(--neon-blue);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    width: 30%;
    left: 35%;
    height: 2px;
    background: var(--neon-purple);
    box-shadow: 0 0 15px var(--neon-purple);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h4 {
    font-family: var(--font-header);
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: white;
}

.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.footer-brand p {
    font-family: var(--font-mono);
    color: var(--neon-blue);
    font-size: 0.8rem;
}

.footer-links h4,
.footer-social h4 {
    font-family: var(--font-mono);
    color: var(--cyber-gray);
    margin-bottom: 20px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--text-white);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
    transition: 0.2s;
}

.footer-links a:hover {
    color: var(--neon-blue);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--cyber-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    text-decoration: none;
    transition: 0.3s;
}

.social-icons a:hover {
    border-color: var(--neon-blue);
    background: rgba(0, 243, 255, 0.1);
    color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--cyber-gray);
}

.system-id {
    color: var(--neon-purple);
    margin-left: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        position: fixed;
        right: 20px;
        top: 25px;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 999;
        padding: 40px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        font-size: 1.5rem;
        margin: 15px 0;
        text-align: center;
        width: 100%;
        padding: 10px;
    }

    .hero-title {
        font-size: 2.2rem;
        word-break: break-word;
        padding: 0 10px;
    }

    .section-title {
        font-size: 1.8rem;
        word-break: break-word;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
    }

    .stat-divider {
        width: 100%;
        height: 1px;
        background: rgba(255, 255, 255, 0.1);
    }

    .social-icons {
        justify-content: center;
        margin-top: 20px;
    }

    .container {
        padding: 0 16px;
        overflow-x: hidden;
    }
}

/* Animations - Global */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}