/* ================================
   ANONIFANS - REDESIGN 2026
   Theme: Absolute Anonymity (Dark/Neon)
   ================================ */

:root {
    --bg-dark: #000000;
    /* Pitch black */
    --bg-panel: #0a0a0a;
    /* Very dark grey */
    --neon-cyan: #00ffff;
    --neon-purple: #ab20fd;
    --text-main: #ffffff;
    --text-muted: #888888;
    --font-heading: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-heading);
    overflow-x: hidden;
    line-height: 1.5;
}

/* ================================
   ANIMATIONS
   ================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glitch {
    0% {
        text-shadow: 2px 2px 0px var(--neon-purple), -2px -2px 0px var(--neon-cyan);
    }

    25% {
        text-shadow: -2px 2px 0px var(--neon-purple), 2px -2px 0px var(--neon-cyan);
    }

    50% {
        text-shadow: 2px -2px 0px var(--neon-purple), -2px 2px 0px var(--neon-cyan);
    }

    75% {
        text-shadow: -2px -2px 0px var(--neon-purple), 2px 2px 0px var(--neon-cyan);
    }

    100% {
        text-shadow: 2px 2px 0px var(--neon-purple), -2px -2px 0px var(--neon-cyan);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    }

    50% {
        box-shadow: 0 0 25px rgba(0, 255, 255, 0.8), 0 0 10px var(--neon-purple);
    }

    100% {
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    }
}

@keyframes slideBg {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ================================
   NAVIGATION
   ================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    backdrop-filter: blur(2px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-item {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-item:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
}

.nav-btn {
    padding: 10px 24px;
    border: 1px solid var(--neon-cyan);
    border-radius: 30px;
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: var(--transition);
    background: rgba(0, 255, 255, 0.05);
}

.nav-btn:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 20px var(--neon-cyan);
}

/* ================================
   HERO SECTION
   ================================ */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(171, 32, 253, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 40%);
    z-index: 1;
}

/* Left Content */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8%;
    z-index: 10;
    background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.8) 60%, transparent 100%);
    position: relative;
}

.glitch-text {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 20px;
    position: relative;
    animation: fadeIn 1s ease-out;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0.8;
}

.glitch-text::before {
    color: var(--neon-cyan);
    z-index: -1;
    animation: glitch 3s infinite reverse;
}

.glitch-text::after {
    color: var(--neon-purple);
    z-index: -2;
    animation: glitch 2s infinite;
}

.hero-sub {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 40px;
    animation: fadeIn 1s ease-out 0.3s backwards;
}

.highlight {
    color: var(--text-main);
    font-weight: 600;
    border-bottom: 1px solid var(--neon-purple);
}

.cta-group {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    animation: fadeIn 1s ease-out 0.6s backwards;
}

.btn {
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-cyan), #00aaff);
    color: #000;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
}

.pulse-anim {
    animation: pulse-glow 3s infinite;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

.features-grid {
    display: flex;
    gap: 40px;
    animation: fadeIn 1s ease-out 0.9s backwards;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.feature-item i {
    color: var(--neon-purple);
}

/* Right Visuals */
.hero-visuals {
    flex: 1.2;
    position: relative;
    height: 100%;
    overflow: hidden;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    margin-left: -50px;
    /* Slight overlap */
}

.image-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 8s ease;
    transform: scale(1.1);
}

.slide.current {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #000 0%, transparent 30%);
    z-index: 5;
    pointer-events: none;
}

/* ================================
   APP FEATURES SECTION
   ================================ */
.app-features {
    padding: 80px 20px;
    background: var(--bg-panel);
    border-top: 1px solid #1a1a1a;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: #111;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #222;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    border-color: #333;
    transform: translateY(-5px);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
}

.neon-cyan {
    color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

.neon-purple {
    color: var(--neon-purple);
    box-shadow: 0 0 15px rgba(171, 32, 253, 0.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* ================================
   MOBILE RESPONSIVENESS
   ================================ */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .hero-visuals {
        clip-path: none;
        margin-left: 0;
        width: 100%;
        height: 50vh;
        flex: none;
        order: -1;
        /* Image on top for mobile app feel */
        position: relative;
    }

    .hero-visuals::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100px;
        background: linear-gradient(to top, #000 0%, transparent 100%);
        z-index: 6;
    }

    .hero-content {
        padding: 40px 20px;
        background: #000;
        text-align: center;
        flex: auto;
    }

    .glitch-text {
        font-size: 2.5rem;
        margin-top: -20px;
        /* Pull text up into gradient */
        position: relative;
        z-index: 10;
    }

    .hero-sub {
        margin: 0 auto 30px;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .features-grid {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .navbar {
        padding: 15px 20px;
    }

    .logo {
        font-size: 1.2rem;
    }
}