/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --black: #000000;
    --dark: #080404;
    --dark-2: #0e0808;
    --dark-3: #150a0a;
    --dark-4: #1a0e0e;
    --gray: #3a2a2a;
    --gray-light: #8a7777;
    --white: #f0e8e8;
    --white-dim: #bba8a8;
    --red: #cc1111;
    --red-bright: #ff1a1a;
    --red-dim: #991111;
    --red-dark: #660a0a;
    --red-glow: rgba(204, 17, 17, 0.35);
    --red-glow-strong: rgba(255, 26, 26, 0.55);
    --blood: #8b0000;
    --font-display: 'Creepster', cursive;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== NOISE OVERLAY ===== */
.noise-overlay {
    position: fixed; inset: 0; z-index: 9999;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* ===== PARTICLES ===== */
#particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.particle {
    position: absolute; border-radius: 50%;
    background: var(--red);
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

/* ===== NAVBAR ===== */
#navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(0,0,0,0.75);
    border-bottom: 1px solid rgba(139,0,0,0.15);
    transition: var(--transition);
}

#navbar.scrolled { background: rgba(0,0,0,0.95); border-bottom-color: rgba(139,0,0,0.3); }

.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 24px;
}

.nav-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--white);
}

.nav-logo-img {
    width: 36px; height: 36px; border-radius: 50%;
    border: 2px solid var(--red);
    object-fit: cover;
    box-shadow: 0 0 12px rgba(204,17,17,0.3);
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 1.3rem; letter-spacing: 2px;
    color: var(--red);
    text-shadow: 0 0 10px rgba(204,17,17,0.4);
}

.nav-links { display: flex; align-items: center; gap: 28px; }

.nav-links a {
    color: var(--white-dim); text-decoration: none;
    font-size: 0.85rem; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase;
    transition: var(--transition);
    position: relative;
}

.nav-links a:not(.btn-nav):hover { color: var(--red-bright); }

.nav-links a:not(.btn-nav)::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--red);
    transition: var(--transition);
}

.nav-links a:not(.btn-nav):hover::after { width: 100%; }

.btn-nav {
    background: var(--red) !important; color: var(--white) !important;
    padding: 8px 18px; border-radius: 8px;
    font-weight: 700 !important; font-size: 0.8rem !important;
    transition: var(--transition) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 4px 20px var(--red-glow); }

.mobile-menu-btn {
    display: none; background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 5px; padding: 4px;
}

.mobile-menu-btn span {
    display: block; width: 24px; height: 2px;
    background: var(--white); transition: var(--transition);
}

.mobile-menu {
    display: none; flex-direction: column;
    padding: 16px 24px; gap: 12px;
    background: rgba(0,0,0,0.95);
    border-top: 1px solid rgba(139,0,0,0.2);
}

.mobile-menu.active { display: flex; }

.mobile-menu a {
    color: var(--white-dim); text-decoration: none;
    font-size: 0.9rem; font-weight: 600;
    padding: 8px 0; text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-menu .btn-nav { text-align: center; margin-top: 8px; }

/* ===== HERO ===== */
#hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; padding: 120px 24px 80px;
}

.hero-banner-bg {
    position: absolute; inset: 0; z-index: 0;
    background: url('banner.jpeg') center center / cover no-repeat;
    opacity: 0.15;
    filter: grayscale(0.3) contrast(1.2);
}

.hero-banner-bg::after {
    content: ''; position: absolute; inset: 0;
    background: 
        radial-gradient(ellipse at center, transparent 30%, var(--black) 80%),
        linear-gradient(180deg, transparent 0%, var(--black) 100%);
}

.hero-bg-glow {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
    filter: blur(80px);
    animation: pulseGlow 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.25; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.2); }
}

/* Flicker effect for horror */
@keyframes flicker {
    0%, 100% { opacity: 1; }
    41% { opacity: 1; }
    42% { opacity: 0.7; }
    43% { opacity: 1; }
    44% { opacity: 0.5; }
    45% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.6; }
    94% { opacity: 1; }
}

.hero-content {
    position: relative; z-index: 2;
    text-align: center; max-width: 700px;
}

.hero-badge {
    display: inline-block;
    background: rgba(139,0,0,0.15);
    border: 1px solid rgba(204,17,17,0.3);
    color: var(--red-bright);
    padding: 6px 20px; border-radius: 50px;
    font-size: 0.75rem; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 32px;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(204,17,17,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(204,17,17,0); }
}

.hero-logo-wrap {
    position: relative; display: inline-block;
    margin-bottom: 32px;
}

.hero-logo {
    width: 160px; height: 160px; border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--red);
    box-shadow: 0 0 40px var(--red-glow), 0 0 80px rgba(204,17,17,0.15);
    animation: logoFloat 3s ease-in-out infinite, flicker 6s linear infinite;
    position: relative; z-index: 2;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero-logo-ring {
    position: absolute; inset: -12px;
    border: 1px solid rgba(204,17,17,0.25);
    border-radius: 50%;
    animation: ringRotate 8s linear infinite;
}

.hero-logo-ring.ring-2 {
    inset: -24px;
    border-color: rgba(139,0,0,0.15);
    animation-duration: 12s;
    animation-direction: reverse;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 6rem);
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: 4px;
    animation: flicker 5s linear infinite;
}

.title-og {
    display: block; font-size: 0.5em;
    color: var(--red);
    text-shadow: 0 0 30px var(--red-glow), 0 0 60px rgba(139,0,0,0.3);
    letter-spacing: 12px;
}

.title-trollge {
    display: block;
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-light) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.05));
}

.hero-subtitle {
    color: var(--gray-light);
    font-size: 1.05rem; line-height: 1.7;
    margin-bottom: 36px;
    max-width: 500px; margin-left: auto; margin-right: auto;
}

.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.9rem; font-weight: 700;
    text-decoration: none; cursor: pointer;
    transition: var(--transition);
    border: none; letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 24px var(--red-glow);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px var(--red-glow-strong);
    background: linear-gradient(135deg, var(--red-bright) 0%, var(--red) 100%);
}

.btn-secondary {
    background: rgba(255,255,255,0.04);
    color: var(--white);
    border: 1px solid rgba(139,0,0,0.3);
}

.btn-secondary:hover {
    background: rgba(139,0,0,0.1);
    border-color: rgba(204,17,17,0.5);
    transform: translateY(-3px);
}

.btn-ghost {
    background: transparent; color: var(--white-dim);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-ghost:hover {
    background: rgba(139,0,0,0.1);
    border-color: var(--red);
    color: var(--red-bright);
    transform: translateY(-3px);
}

.btn-lg { padding: 16px 36px; font-size: 1rem; }

.btn-icon { font-size: 1.1em; }

.hero-scroll-indicator {
    margin-top: 60px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: var(--gray); font-size: 0.65rem;
    letter-spacing: 3px; text-transform: uppercase;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(180deg, transparent, var(--red-dim));
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.5; }
}

/* ===== SECTIONS SHARED ===== */
section { position: relative; z-index: 1; }

.section-inner {
    max-width: 1100px; margin: 0 auto;
    padding: 100px 24px;
}

.section-badge {
    display: inline-block;
    color: var(--red); font-size: 0.7rem;
    font-weight: 700; letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 4px 12px;
    border: 1px solid rgba(204,17,17,0.2);
    border-radius: 4px;
    background: rgba(139,0,0,0.08);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 2px;
    margin-bottom: 48px;
    color: var(--white);
}

.text-glow {
    color: var(--red);
    text-shadow: 0 0 20px var(--red-glow), 0 0 40px rgba(139,0,0,0.2);
}

/* ===== ABOUT ===== */
#about {
    background: var(--dark);
    border-top: 1px solid rgba(139,0,0,0.08);
}

#about .section-inner { text-align: center; }

.about-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-card {
    background: rgba(139,0,0,0.04);
    border: 1px solid rgba(139,0,0,0.1);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
}

.about-card:hover {
    background: rgba(139,0,0,0.08);
    border-color: rgba(204,17,17,0.25);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(139,0,0,0.15);
}

.about-icon { font-size: 2.2rem; margin-bottom: 16px; }

.about-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem; letter-spacing: 1px;
    margin-bottom: 12px; color: var(--white);
}

.about-card p {
    color: var(--gray-light); font-size: 0.9rem;
    line-height: 1.7;
}

/* ===== TICKER MARQUEE ===== */
.ticker-marquee {
    overflow: hidden;
    background: linear-gradient(90deg, var(--red-dark), var(--red), var(--red-dark));
    padding: 12px 0;
    position: relative; z-index: 1;
    border-top: 1px solid rgba(255,26,26,0.3);
    border-bottom: 1px solid rgba(255,26,26,0.3);
}

.ticker-track {
    display: flex; gap: 40px;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
}

.ticker-track span {
    font-family: var(--font-display);
    font-size: 1rem; color: var(--white);
    letter-spacing: 2px; font-weight: 700;
    flex-shrink: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== MEMES GALLERY ===== */
#memes {
    background: var(--black);
    border-top: 1px solid rgba(139,0,0,0.08);
}

#memes .section-inner { text-align: center; }

.memes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.meme-card {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(139,0,0,0.12);
    transition: var(--transition);
    aspect-ratio: 1;
}

.meme-card:hover {
    transform: scale(1.03);
    border-color: rgba(204,17,17,0.4);
    box-shadow: 0 8px 40px rgba(139,0,0,0.2);
}

.meme-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.meme-card:hover img {
    transform: scale(1.05);
}

/* ===== CONTRACT ===== */
#contract {
    background: var(--dark);
    position: relative;
    border-top: 1px solid rgba(139,0,0,0.08);
}

#contract .section-inner { text-align: center; }

.contract-box {
    position: relative;
    background: rgba(139,0,0,0.03);
    border: 1px solid rgba(139,0,0,0.12);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    overflow: hidden;
}

.contract-glow {
    position: absolute; top: -50%; left: 50%;
    transform: translateX(-50%);
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(139,0,0,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.contract-desc {
    color: var(--gray-light);
    font-size: 0.95rem; margin-bottom: 28px;
}

.ca-box {
    display: flex; align-items: center;
    gap: 12px;
    background: var(--dark-2);
    border: 1px solid rgba(139,0,0,0.15);
    border-radius: 10px;
    padding: 14px 20px;
    max-width: 620px; margin: 0 auto 32px;
    cursor: pointer;
    transition: var(--transition);
}

.ca-box:hover {
    border-color: rgba(204,17,17,0.4);
    box-shadow: 0 0 20px rgba(139,0,0,0.1);
}

.ca-box code {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--red-bright);
    word-break: break-all;
    flex: 1; text-align: left;
}

.copy-btn {
    display: flex; align-items: center; gap: 6px;
    background: rgba(204,17,17,0.1);
    border: 1px solid rgba(204,17,17,0.25);
    border-radius: 6px;
    padding: 8px 14px;
    color: var(--red-bright);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 1px;
    transition: var(--transition);
    flex-shrink: 0;
}

.copy-btn:hover {
    background: rgba(204,17,17,0.2);
}

.copy-btn.copied {
    background: var(--red);
    color: var(--white);
}

.contract-buttons {
    display: flex; gap: 14px;
    justify-content: center; flex-wrap: wrap;
}

/* ===== CTA ===== */
#cta {
    background: var(--black);
    position: relative; overflow: hidden;
    border-top: 1px solid rgba(139,0,0,0.08);
}

.cta-content { text-align: center; }

.cta-logo {
    width: 100px; height: 100px;
    border-radius: 50%; object-fit: cover;
    border: 2px solid var(--red);
    box-shadow: 0 0 40px var(--red-glow);
    margin-bottom: 24px;
    animation: logoFloat 3s ease-in-out infinite;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.cta-desc {
    color: var(--gray-light);
    font-size: 1rem;
    margin-bottom: 32px;
}

/* ===== FOOTER ===== */
#footer {
    background: var(--dark);
    border-top: 1px solid rgba(139,0,0,0.12);
}

.footer-inner {
    max-width: 800px; margin: 0 auto;
    padding: 48px 24px;
    text-align: center;
}

.footer-logo {
    display: flex; align-items: center;
    justify-content: center; gap: 10px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 32px; height: 32px;
    border-radius: 50%; object-fit: cover;
    border: 1px solid var(--red);
}

.footer-logo span {
    font-family: var(--font-display);
    color: var(--red);
    font-size: 1.1rem; letter-spacing: 2px;
}

.footer-disclaimer {
    color: var(--gray);
    font-size: 0.75rem; line-height: 1.6;
    margin-bottom: 20px;
    max-width: 500px; margin-left: auto; margin-right: auto;
}

.footer-links {
    display: flex; justify-content: center;
    gap: 24px; margin-bottom: 20px;
}

.footer-links a {
    color: var(--gray-light); text-decoration: none;
    font-size: 0.8rem; font-weight: 600;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--red-bright); }

.footer-copy {
    color: var(--gray); font-size: 0.7rem;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1; transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
    .hero-logo { width: 120px; height: 120px; }
    .about-grid { grid-template-columns: 1fr; gap: 16px; }
    .memes-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .contract-box { padding: 40px 20px; }
    .ca-box { flex-direction: column; text-align: center; }
    .ca-box code { font-size: 0.68rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 280px; justify-content: center; }
}

@media (max-width: 480px) {
    .memes-grid { grid-template-columns: repeat(2, 1fr); }
    .section-inner { padding: 70px 16px; }
}
