:root {
    --bg-dark: #0f1115;
    --bg-card: rgba(25, 28, 36, 0.7);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    
    --color-ice: #6ee7b7;
    --color-ice-glow: rgba(110, 231, 183, 0.4);
    
    --color-blood: #ef4444;
    --color-blood-glow: rgba(239, 68, 68, 0.4);
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(30, 30, 40, 0.5), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(40, 20, 20, 0.4), transparent 25%);
    background-attachment: fixed;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
}

h2.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    text-transform: uppercase;
}

h2.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--text-main), transparent);
    margin: 1rem auto 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(15, 17, 21, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.nav-logo {
    height: 40px;
    transition: transform var(--transition);
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    position: relative;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--color-ice);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-ice);
    transition: width var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(30, 40, 60, 0.4), var(--bg-dark) 70%);
}

.hero-content {
    z-index: 2;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 1.5s ease-out;
}

.hero-logo-small {
    max-width: 350px;
    width: 80%;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.1));
}

.art-gallery {
    width: 100vw;
    max-width: 100%;
    overflow-x: auto;
    padding: 1rem 0 2.5rem;
    margin-bottom: 1.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
    position: relative;
    z-index: 5;
}

.art-gallery::-webkit-scrollbar {
    display: none;
}

.gallery-track {
    display: flex;
    gap: 1.5rem;
    padding: 0 5vw;
    width: max-content;
    align-items: center;
}

.gallery-img {
    height: 300px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-img:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.8), 0 0 20px rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2rem;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-main);
    text-decoration: none;
    background: transparent;
    border: 1px solid var(--text-muted);
    border-radius: 4px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cta-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-main);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Games Section */
.games-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.game-card {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 8rem;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    position: relative;
    transition: transform var(--transition);
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card.reverse {
    flex-direction: row-reverse;
}

/* Ice Lich Specifics */
.game-card.ice-lich {
    border-top: 1px solid rgba(110, 231, 183, 0.2);
}
.game-card.ice-lich:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px var(--color-ice-glow);
}
.game-card.ice-lich .game-title {
    color: var(--color-ice);
    text-shadow: 0 0 10px var(--color-ice-glow);
}

/* Sanguine Blight Specifics */
.game-card.sanguine-blight {
    border-top: 1px solid rgba(239, 68, 68, 0.2);
}
.game-card.sanguine-blight:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px var(--color-blood-glow);
}
.game-card.sanguine-blight .game-title {
    color: var(--color-blood);
    text-shadow: 0 0 10px var(--color-blood-glow);
}

.game-content {
    flex: 1;
}

.game-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge.platform { background: rgba(110, 231, 183, 0.2); color: #6ee7b7; }
.badge.dev { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

.game-description {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.game-details {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.game-visual {
    flex: 1;
    position: relative;
}

.game-img, .game-video {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform var(--transition);
}

.main-img, .main-video {
    position: relative;
    z-index: 2;
}

.sub-img {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60%;
    z-index: 3;
    border: 2px solid rgba(255,255,255,0.1);
}

.game-visual:hover .main-img, 
.game-visual:hover .main-video {
    transform: scale(1.02);
}

.game-visual:hover .sub-img {
    transform: translate(-10px, -10px) scale(1.05);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    text-transform: uppercase;
    font-weight: 700;
}

.primary-btn {
    background: rgba(255,255,255,0.1);
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.2);
}

.ice-btn:hover {
    background: var(--color-ice);
    color: #000;
    box-shadow: 0 0 20px var(--color-ice-glow);
}

.secondary-btn {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
}

.secondary-btn:hover {
    border-color: var(--text-main);
    background: rgba(255,255,255,0.05);
}

/* About Section */
.about-section {
    padding: 6rem 2rem;
    background: rgba(0,0,0,0.3);
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.about-container p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* Contact Section */
.contact-section {
    padding: 6rem 2rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-section p {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.5);
}

.footer-logo {
    height: 30px;
    margin-bottom: 1rem;
    opacity: 0.5;
    transition: opacity var(--transition);
}

.footer-logo:hover {
    opacity: 1;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 900px) {
    .game-card, .game-card.reverse {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }
    
    .sub-img {
        display: none; /* Hide decorative images on mobile to save space */
    }
    
    .hero-logo {
        width: 80%;
    }
    
    .about-container {
        padding: 2rem;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none; /* Simple mobile hide, can add hamburger menu later if needed */
    }
    
    h2.section-title {
        font-size: 2rem;
    }
}
