/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', monospace;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Noise overlay for chaotic effect */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100" height="100" filter="url(%23noise)" opacity="0.05"/></svg>');
    pointer-events: none;
    z-index: 1;
}

/* Header styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #ffffff;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .header {
        padding: 0.5rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 0.8rem;
    }
    
    .nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 20px #ffffff;
}

.subtitle {
    font-family: 'VT323', monospace;
    font-size: 1rem;
    color: #cccccc;
    margin-top: -0.5rem;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px #ffffff;
}

/* Glitch effect for title */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 2s infinite linear alternate-reverse;
    color: #ff0066;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 3s infinite linear alternate-reverse;
    color: #0066ff;
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(-2px, 2px); }
}

/* Main content */
main {
    margin-top: 80px;
    z-index: 2;
    position: relative;
}

/* Hero section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 25%, #0a0a0a 50%, #1a1a1a 75%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
    padding: 2rem 1rem;
}

@media (max-width: 768px) {
    .hero {
        padding: 1rem 0.5rem;
        min-height: 90vh;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.trolljak-character {
    flex: 1;
    display: flex;
    justify-content: center;
}

.character-container {
    width: 400px;
    height: 400px;
    position: relative;
    animation: float 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .character-container {
        width: 250px;
        height: 250px;
    }
}

.trolljak-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px #ffffff);
    animation: pulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
    border-radius: 20px;
}

.trolljak-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px #ffffff) drop-shadow(0 0 60px #cccccc);
}

.trolljak-image:active {
    transform: scale(0.95);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 30px #ff0000; }
    50% { box-shadow: 0 0 50px #ff0000, 0 0 70px #ff0000; }
}



.hero-text {
    flex: 1;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 30px #ffffff, 0 0 60px #ffffff;
    animation: scream 2s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes scream {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-description {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-button {
    background: linear-gradient(45deg, #ffffff, #cccccc, #999999);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #ffffff;
}

/* Memes section */
.memes-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #1a1a1a 50%, #0a0a0a 100%);
}

@media (max-width: 768px) {
    .memes-section {
        padding: 2rem 1rem;
    }
    
    .meme-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .meme-card {
        padding: 1.5rem;
    }
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 3rem;
    text-shadow: 0 0 20px #ffffff;
}

.meme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.meme-card {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #ffffff;
    border-radius: 15px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.meme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.meme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.meme-card:hover::before {
    left: 100%;
}

.meme-content h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.meme-content p {
    color: #cccccc;
    font-size: 1.1rem;
    line-height: 1.6;
}

.grimjak-indicator {
    width: 100%;
    height: 20px;
    background: #333;
    border-radius: 10px;
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
}

.grimjak-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: #ff0066;
    border-radius: 10px;
    animation: grimjak-pulse 2s ease-in-out infinite;
}

@keyframes grimjak-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.chaos-meter {
    width: 100%;
    height: 20px;
    background: #333;
    border-radius: 10px;
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
}

.chaos-bar {
    height: 100%;
    background: linear-gradient(90deg, #ffffff, #cccccc, #999999);
    border-radius: 10px;
    width: 85%;
    animation: chaos-animation 3s ease-in-out infinite;
}

@keyframes chaos-animation {
    0%, 100% { width: 85%; }
    50% { width: 95%; }
}

.kill-count {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.2rem;
}

.ca-text {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: 'VT323', monospace;
    word-break: break-all;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.ca-hint {
    color: #cccccc !important;
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 0.5rem;
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.link-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, #ffffff, #cccccc);
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.link-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    border-color: #ffffff;
}

.chart-link {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: #ffffff;
}

.x-link {
    background: linear-gradient(45deg, #1DA1F2, #0d8bd9);
    color: #ffffff;
}

/* About section */
.about-section {
    padding: 4rem 2rem;
    background: #0a0a0a;
}

@media (max-width: 768px) {
    .about-section {
        padding: 2rem 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
}

.about-text p {
    color: #cccccc;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.powers-list,
.crimes-list {
    list-style: none;
    margin: 1rem 0;
}

.powers-list li,
.crimes-list li {
    color: #cccccc;
    font-size: 1.1rem;
    margin: 0.5rem 0;
    padding-left: 1rem;
    position: relative;
}

.powers-list li::before {
    content: '⚡';
    position: absolute;
    left: 0;
    color: #ffffff;
}

.crimes-list li::before {
    content: '💀';
    position: absolute;
    left: 0;
    color: #ffffff;
}

.about-trolljak-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border: 2px solid #ffffff;
    border-radius: 20px;
    position: relative;
    animation: silhouette-glow 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px #ffffff);
}

@keyframes silhouette-glow {
    0%, 100% { box-shadow: 0 0 20px #ffffff; }
    50% { box-shadow: 0 0 40px #ffffff, 0 0 60px #ffffff; }
}

/* Gallery section */
.gallery-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #1a1a1a 50%, #0a0a0a 100%);
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 2rem 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-card {
        padding: 1.5rem;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-card {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #ffffff;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.gallery-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.gallery-card h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 10px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px #ffffff);
}

.gallery-image:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px #ffffff) drop-shadow(0 0 30px #cccccc);
}

/* Footer */
.footer {
    background: #000;
    color: #ffffff;
    text-align: center;
    padding: 2rem;
    border-top: 2px solid #ffffff;
}

@media (max-width: 768px) {
    .footer {
        padding: 1rem;
    }
    
    .footer p {
        font-size: 0.9rem;
    }
}

.footer p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

/* Floating elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #ffffff, #cccccc);
    border-radius: 50%;
    animation: float-around 10s linear infinite;
    animation-delay: var(--delay);
    opacity: 0.4;
    box-shadow: 0 0 10px #ffffff;
}

@keyframes float-around {
    0% {
        transform: translate(0, 100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translate(100vw, -100px) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .character-container {
        width: 200px;
        height: 200px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
} 