/* Root Variables */
:root {
    --primary-bg: #0a0e1a;
    --secondary-bg: #1a1f2e;
    --accent-color: #00ff88;
    --accent-secondary: #ff6b35;
    --text-primary: #ffffff;
    --text-secondary: #b8c2cc;
    --text-muted: #6c757d;
    --border-color: #2d3748;
    --shadow-color: rgba(0, 255, 136, 0.2);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: crosshair;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 255, 136, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 107, 53, 0.03) 0%, transparent 50%),
        linear-gradient(0deg, transparent 24%, rgba(255, 255, 255, 0.01) 25%, rgba(255, 255, 255, 0.01) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, 0.01) 75%, rgba(255, 255, 255, 0.01) 76%, transparent 77%);
    background-size: 100px 100px;
    z-index: -1;
    pointer-events: none;
}

/* Typography */
.hero-title {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 3.5rem;
    color: var(--accent-color);
    text-shadow: 0 0 20px var(--shadow-color);
    letter-spacing: 2px;
}

.hero-tagline {
    font-size: 1.4rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
}

.crosshair-logo {
    font-size: 4rem;
    color: var(--accent-color);
    text-shadow: 0 0 30px var(--shadow-color);
    animation: crosshairGlow 3s ease-in-out infinite alternate;
    transform: rotate(-5deg);
}

@keyframes crosshairGlow {
    0% {
        text-shadow: 0 0 20px var(--shadow-color);
        transform: rotate(-5deg) scale(1);
    }
    100% {
        text-shadow: 0 0 40px var(--shadow-color), 0 0 60px rgba(0, 255, 136, 0.1);
        transform: rotate(-5deg) scale(1.05);
    }
}

/* Social Links Section */
.social-section {
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    padding: 1.5rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    min-width: 120px;
}

.social-link:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background: rgba(0, 255, 136, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.social-link i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.social-link span {
    font-weight: 600;
    font-size: 0.9rem;
}

.social-link[data-platform="youtube"]:hover {
    color: #ff0000;
    border-color: #ff0000;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.2);
}

.social-link[data-platform="discord"]:hover {
    color: #5865f2;
    border-color: #5865f2;
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.2);
}

.social-link[data-platform="steam"]:hover {
    color: #171a21;
    border-color: #66c0f4;
    background: #66c0f4;
    box-shadow: 0 10px 30px rgba(102, 192, 244, 0.2);
}

/* Games Section */
.games-section {
    background: var(--primary-bg);
    padding: 5rem 0;
}

.game-card {
    background: var(--secondary-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: all 0.4s ease;
    height: 100%;
}

.game-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.15);
}

.game-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(45deg, var(--border-color), var(--secondary-bg));
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

.game-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(10, 14, 26, 0.8) 100%);
}

/* Game Placeholder Styles */
.game-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--accent-color);
    z-index: 1;
    position: relative;
}

.game-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.game-placeholder span {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hell-let-loose-bg {
    background: linear-gradient(135deg, #2d1810 0%, #5a3424 50%, #8b4513 100%);
    border: 2px solid #8b4513;
}

.the-finals-bg {
    background: linear-gradient(135deg, #1a0f2e 0%, #3d1a5b 50%, #6b2d8a 100%);
    border: 2px solid #6b2d8a;
}

/* Video Background Styles */
.game-video,
.game-gif {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.4s ease;
    z-index: 1;
}

.game-video.loaded,
.game-gif.loaded {
    opacity: 0.9;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(10, 14, 26, 0.3) 100%);
    z-index: 2;
    pointer-events: none;
    transition: background 0.3s ease;
}

/* Enhanced hover effects for video cards */
.game-card:has(.game-video) {
    overflow: hidden;
}

.game-card:has(.game-video):hover .game-video,
.game-card:has(.game-gif):hover .game-gif {
    transform: scale(1.05);
    opacity: 1;
}

.game-card:has(.game-video):hover .video-overlay {
    background: linear-gradient(to bottom, transparent 0%, rgba(10, 14, 26, 0.1) 100%);
}

/* Ensure placeholder is above video when video fails */
.game-placeholder {
    z-index: 3;
}

/* Loading indicator for videos */
.game-image[data-video] .game-placeholder::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid var(--accent-color);
    border-radius: 50%;
    animation: videoLoading 1s linear infinite;
    opacity: 0;
}

.game-image[data-video].loading .game-placeholder::before {
    opacity: 1;
}

@keyframes videoLoading {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

/* Clean video presentation - no distracting overlays */

.game-info {
    padding: 2rem;
}

.game-title {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.game-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.game-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.stat i {
    font-size: 1rem;
}

/* Game Actions */
.game-actions {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.steam-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #171a21 0%, #2a475e 100%);
    color: #66c0f4;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #66c0f4;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.steam-link:hover {
    background: linear-gradient(135deg, #66c0f4 0%, #4a9bc1 100%);
    color: #171a21;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 192, 244, 0.3);
}

.steam-link i {
    font-size: 1.2rem;
}

/* Game Title Styling */
.game-title {
    position: relative;
    transition: all 0.3s ease;
}


/* About Section */
.about-section {
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
}

.about-content {
    background: rgba(255, 255, 255, 0.02);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text:last-child {
    margin-bottom: 0;
}

/* Footer */
.footer {
    background: var(--primary-bg);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

.footer-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
    }
    
    .crosshair-logo {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .social-link {
        min-width: 100px;
        padding: 1rem 0.5rem;
    }
    
    .social-link i {
        font-size: 2rem;
    }
    
    .about-content {
        padding: 2rem;
    }
    
    .about-text {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .crosshair-logo {
        font-size: 2.5rem;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-link {
        width: 200px;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section * {
    animation: fadeInUp 0.8s ease-out;
}

.game-card {
    animation: fadeInUp 0.8s ease-out;
}

.social-link {
    animation: fadeInUp 0.8s ease-out;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}