/* --- Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0a050f; 
    color: #e0e0e0;
    font-family: 'Quicksand', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h2, .logo, .cta-button, h3 {
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Premium Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4%; 
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(10, 5, 15, 0.9), rgba(10, 5, 15, 0));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px); 
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease;
}

nav.scrolled {
    background: rgba(10, 5, 15, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(152, 68, 207, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
    padding: 1rem 4%; 
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    z-index: 1001; 
}

.logo-img {
    max-height: 45px; 
    width: auto;
    object-fit: contain;
}

.tm {
    font-size: 0.8rem; 
    color: #9844cf;
    margin-left: 4px;
    position: relative;
    top: -15px; 
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 3.5rem; 
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-socials li {
    margin-left: 1.5rem;
}

.nav-socials li:first-child {
    margin-left: 0; 
}

.nav-socials a {
    color: #e0e0e0;
    font-size: 1.4rem; 
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.nav-socials a:hover {
    color: #9844cf;
    text-shadow: 0 0 15px rgba(152, 68, 207, 0.8);
    transform: translateY(-3px); 
}

.nav-links li { 
    margin-left: 1.5rem; 
    position: relative; 
}

.nav-links li:first-child {
    margin-left: 0;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.nav-links a:hover { 
    color: #ffffff; 
    text-shadow: 0 0 10px rgba(152, 68, 207, 0.8);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: #9844cf;
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(152, 68, 207, 0.8);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle (Hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; 
    padding-bottom: 8vh; 
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/background.png'); 
    background-repeat: no-repeat;
    background-size: cover; 
    background-position: center bottom; 
    image-rendering: pixelated; 
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background: linear-gradient(to top, rgba(10, 5, 15, 0.9), transparent);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    margin-bottom: 2rem;
    transform: translateY(9px); 
}

.hero-subtitle {
    font-family: 'Quicksand', sans-serif; 
    font-size: 1.3rem; 
    margin-bottom: 0.8rem; 
    color: #ffffff;
    font-weight: 600; 
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,1), 0px 0px 12px rgba(10, 5, 15, 0.9);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px; 
    background: rgba(10, 5, 15, 0.6);
    border: 2px solid #9844cf; 
    color: #9844cf;
    padding: 0.9rem 2.5rem;
    font-size: 1.1rem; 
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border-radius: 4px;
}

.steam-icon {
    font-size: 1.3rem; 
}

.cta-button:hover {
    background: #49136a; 
    color: #ffffff;
    box-shadow: 0 0 25px rgba(152, 68, 207, 0.6);
    transform: translateY(-2px);
    border-color: #b366ff;
}

/* --- Section Titles --- */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin: 0 auto 5rem auto; 
    color: #fff;
    border-bottom: 1px solid rgba(152, 68, 207, 0.3);
    display: table; 
    padding-bottom: 10px;
}

/* --- Features Section --- */
.features {
    padding: 100px 10%;
    background: linear-gradient(to bottom, #0a050f, #14081c);
    position: relative;
    z-index: 20;
    min-height: 80vh; 
}

.feature-showcase {
    display: flex;
    flex-direction: column;
    gap: 7rem; 
    max-width: 1100px;
    margin: 0 auto;
}

.feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.feature-text {
    flex: 1;
    text-align: left;
}

.feature-text h3 {
    font-size: 2rem;
    color: #9844cf; 
    margin-bottom: 1.2rem;
    text-shadow: 0 0 10px rgba(152, 68, 207, 0.3);
}

.feature-text p {
    font-size: 1.1rem;
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.feature-image {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(152, 68, 207, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    image-rendering: pixelated; 
}

/* --- Media / Trailer Section --- */
.media-section {
    padding: 100px 10%;
    background: linear-gradient(to bottom, #14081c, #0a050f);
    text-align: center;
    position: relative;
    z-index: 20;
}

.video-container {
    position: relative;
    max-width: 900px; 
    margin: 0 auto;
    padding-bottom: 56.25%; 
    height: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(73, 19, 106, 0.8);
    border: 2px solid rgba(152, 68, 207, 0.5);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 6px; 
}

/* --- Meet the Developer Section --- */
.meet-developer {
    padding: 100px 10%;
    background: #49136a; 
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 20;
}

.developer-container {
    max-width: 800px;
    margin: 0 auto;
}

.developer-about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 4rem;
    color: rgba(255, 255, 255, 0.9);
}

.developer-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.developer-name {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
    color: #fff;
}

.developer-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #b366ff; 
    margin-bottom: 1rem;
}

.developer-photo-container {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid #b366ff;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
    background-image: url('images/user.png');
    background-repeat: no-repeat;
    background-size: 250%; 
    background-position: 47% 3%; 
}

.dev-button {
    background: rgba(10, 5, 15, 0.5);
    color: #fff;
    border: 2px solid #fff;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.9rem 2rem;
    transition: all 0.3s ease;
    border-radius: 4px;
    display: inline-block;
}

.dev-button:hover {
    background: #fff;
    color: #14081c;
    border-color: #fff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* --- Footer --- */
.site-footer {
    background-color: #050208; 
    padding: 1.5rem 10%;
    text-align: center;
    border-top: 1px solid rgba(152, 68, 207, 0.2);
}

/* Updated Footer Logo Styling */
.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.footer-logo-img {
    max-height: 40px; 
    width: auto;
    object-fit: contain;
}

.site-footer .tm {
    top: -12px; 
    font-size: 0.7rem; 
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    transform: translateX(-8px); 
}

.footer-socials a {
    color: #a0a0a0;
    font-size: 1.5rem; 
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.footer-socials a:hover {
    color: #9844cf;
    text-shadow: 0 0 15px rgba(152, 68, 207, 0.8);
    transform: translateY(-3px); 
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #9844cf;
}

.copyright {
    font-size: 0.85rem;
    color: #666;
}

/* ==========================================================================
   RESPONSIVE FIXES
   ========================================================================== */

/* --- 1. General Layout Tweaks for ALL Mobile/Tablet views (Both Orientations) --- */
@media (max-width: 900px) {
    .hero-subtitle { font-size: 1rem; }
    .cta-button { padding: 0.8rem 1.8rem; font-size: 0.9rem; }
    .features, .media-section, .meet-developer { padding: 60px 6%; }
    .section-title { font-size: 1.8rem; margin-bottom: 2.5rem; }
    .feature-showcase { gap: 4.5rem; }
    
    /* Fixing the Zig-Zag by forcing Image on Top for Mobile */
    .feature-row { flex-direction: column-reverse; gap: 1.5rem; text-align: center; }
    .feature-row:nth-child(even) { flex-direction: column; }
    .feature-text { text-align: center; }
    .feature-text h3 { font-size: 1.5rem; margin-bottom: 0.8rem; }
    .feature-text p { font-size: 0.95rem; margin-bottom: 1rem; }

    /* Developer Section Mobile Tweaks */
    .developer-about-text { font-size: 0.95rem; margin-bottom: 2.5rem; }
    .developer-profile { margin-bottom: 2rem; }
    .developer-photo-container { width: 140px; height: 140px; }
    .developer-name { font-size: 1.5rem; }
    .developer-title { font-size: 1rem; }
    
    /* Footer tweaks */
    .footer-logo-img { max-height: 35px; } /* Shrink logo slightly on mobile */
    .footer-links { flex-direction: column; gap: 1.2rem; }
}

/* --- 2. PORTRAIT ONLY: The Hamburger Menu & Vertical Art --- */
@media (max-width: 900px) and (orientation: portrait) {
    nav { padding: 1rem 4%; }
    .menu-toggle { display: flex; }
    
    .nav-container {
        position: fixed; top: 0; right: -100%; width: 40%; height: 100vh;
        background: rgba(10, 5, 15, 0.98); backdrop-filter: blur(15px);
        flex-direction: column; justify-content: center; align-items: center; 
        gap: 2.5rem; transition: right 0.4s ease; z-index: 1000;
        border-left: 1px solid rgba(152, 68, 207, 0.2); 
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8); 
    }
    .nav-container.active { right: 0; }

    .nav-links, .nav-socials { flex-direction: column; align-items: center; gap: 2rem; width: 100%; }
    .nav-links li { margin-left: 0; text-align: center; width: 100%; }
    
    .nav-socials { padding-bottom: 2.5rem; border-bottom: 1px solid rgba(152, 68, 207, 0.3); width: 60%; }
    .nav-socials li { margin-left: 0; }
    .nav-socials a { font-size: 1.6rem; }
    .nav-links a { font-size: 1.1rem; letter-spacing: 3px; display: block; }

    /* THE MOBILE BACKGROUND SWAP */
    .hero-bg {
        background-image: url('images/website mobile2.png');
        background-position: center center;
    }
}

/* --- 3. LANDSCAPE ONLY: The Desktop Navbar Scale-Down & Spacing Tweaks --- */
@media (max-width: 900px) and (orientation: landscape) {
    /* Keep desktop navbar, but shrink spacing so it doesn't wrap on 700px screens */
    nav { padding: 0.8rem 4%; }
    .logo-img { max-height: 35px; }
    .tm { font-size: 0.7rem; top: -10px; }
    .nav-container { gap: 1.5rem; }
    .nav-socials li { margin-left: 1rem; }
    .nav-links li { margin-left: 1rem; }
    .nav-socials a { font-size: 1.1rem; }
    .nav-links a { font-size: 0.75rem; letter-spacing: 1px; }

    /* Ensure Hero Section doesn't hide the button */
    .hero { height: auto; min-height: 100vh; padding-top: 6rem; padding-bottom: 2rem; }
    
    /* Ensure feature images don't stretch the screen too much vertically */
    .features, .media-section, .meet-developer { padding: 40px 6%; }
    .feature-showcase { gap: 3rem; }
    .feature-image img { max-height: 250px; width: auto; margin: 0 auto; }
    .developer-photo-container { width: 120px; height: 120px; }
}

/* --- Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}