/* --- VARIABLES & RESET --- */
:root {
    --bg-color: #0b0b0b;
    --text-color: #e0e0e0;
    --accent: #00f3ff;
    --secondary: #7000ff;
    --header-height: 80px;
    --font-head: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-title: 'Megrim', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: var(--bg-color); color: var(--text-color); font-family: var(--font-body); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- UTILITY: NO ANIMATIONS --- */
body.no-anim *, body.no-anim *::before, body.no-anim *::after {
    transition: none !important;
    animation: none !important;
}
body.no-anim .game-panel {
    animation: none !important; transform: none !important; opacity: 1 !important; 
    transition: top 0.5s ease, height 0.5s ease, filter 0.3s ease !important;
}
body.no-anim .panel-content, body.no-anim .game-logo { transition: all 0.4s ease !important; }

/* --- NAVIGATION --- */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height);
    padding-inline: 3vw; display: flex; align-items: center; justify-content: space-between;
    z-index: 1000; background: rgba(11, 11, 11, 0.9); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); transition: transform 0.3s ease-in-out;
}
.navbar.hidden { transform: translateY(-100%); }

.nav-left { display: flex; align-items: center; gap: 1rem; z-index: 1002; max-width: 70%; }
.company-logo { width: 40px; height: 40px; filter: drop-shadow(0 0 4px var(--accent)); margin-bottom: 2px; flex-shrink: 0; }
.logo-text { 
    font-family: var(--font-title); font-weight: 700; font-size: 1.5rem; letter-spacing: 2px; 
    white-space: nowrap; overflow: visible;
}
.accent { color: var(--accent); }

/* Container for Links and Settings */
.nav-elements { display: flex; align-items: center; width: 100%; justify-content: flex-end; }

.nav-links { display: flex; gap: clamp(2vw, 2.2vmin, 3vw); align-items: center; height: 100%; }
.nav-links > li { position: relative; height: 100%; display: flex; align-items: center; -webkit-tap-highlight-color: transparent; }
.nav-links a, .nav-links span {
    font-family: var(--font-head); font-size: 0.9rem; text-transform: uppercase;
    letter-spacing: 1px; position: relative; transition: color 0.3s; cursor: pointer;
}
.nav-links a:hover, .nav-links a.active, .nav-links span:hover, .nav-links span.active { color: var(--accent); }
.nav-links > li > a::after, .nav-links > li > span::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0%; height: 2px;
    background: var(--accent); transition: width 0.3s ease;
}
.nav-links > li > a:hover::after, .nav-links > li > span:hover::after { width: 100%; }

/* DROPDOWN MENU */
.dropdown-icon { position: absolute; right: 1%; top: 0%; pointer-events: none; } 
.dropdown-icon.active { color: var(--accent); }
.dropdown-icon { display: flex; font-size: 1.3rem; transform: rotate(90deg); transition: all ease-out 0.1s;}
.dropdown-icon.open { transform: rotate(0deg); transition: all ease-out 0.1s;}
@media (min-width: 769px) {
    .nav-links .dropdown-icon { display: none; }
}
.dropdown-trigger:hover .dropdown-icon { color: var(--accent); } 
.dropdown-content {
    display: none; position: absolute; 
    top: calc(var(--header-height) - 175%); left: 50%;
    transform: translateX(-50%); background: #1a1a1a; min-width: 200px;
    border: 1px solid var(--accent); border-top: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.8); z-index: 1001;
}
.dropdown-content a.active {
    color: var(--accent);
}
/* Desktop Hover Logic */
@media (min-width: 769px) {
    .nav-links li:hover .dropdown-content { display: block; animation: fadeInDropdown 0.2s ease ; }
}
.dropdown-content a { display: block; padding: 1rem; border-bottom: 1px solid #333; text-align: center; font-size: 0.85rem; -webkit-tap-highlight-color: transparent;}
.dropdown-content a:hover { background: rgba(0, 243, 255, 0.1); }

/* SETTINGS */
.nav-right { position: relative; display: flex; align-items: center; margin-inline-start: 2vw; }
.settings-icon { font-size: 1.2rem; color: #fff; cursor: pointer; transition: transform 0.5s, color 0.3s; }
.settings-icon:hover { transform: rotate(90deg); color: var(--accent); }
.settings-popup {
    position: absolute; top: 50px; right: 0; width: 240px;
    background: #1a1a1a; border: 1px solid var(--accent); padding: 1.5rem;
    display: none; flex-direction: column; gap: 1rem;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 10% 100%, 0 90%); z-index: 1005;
}
.settings-popup.active { display: flex; animation: fadeIn 0.2s ease-out; }
.settings-popup h4 { font-family: var(--font-head); color: var(--accent); border-bottom: 1px solid #333; padding-bottom: 0.5rem; }
.setting-item label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; }
.setting-item select { width: 100%; background: #000; color: #fff; border: 1px solid #555; padding: 0.5rem; font-family: var(--font-body); }
.setting-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; }
.clear-btn { width: 100%; background: #333; color: #fff; border: none; padding: 0.5rem; margin-top: 0.5rem; cursor: pointer; font-family: var(--font-body); text-transform: uppercase; transition: background 0.2s; -webkit-tap-highlight-color: transparent;}
.clear-btn:hover { background: #c00; }

/* Toggle Switch */
.toggle { display: inline-block; vertical-align: middle; position: relative; }
.toggle input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; z-index: 2; cursor: pointer; }
.toggle-track {
    display: inline-block; width: 52px; height: 28px; background: #151515; border-radius: 999px; position: relative;
    transition: background 220ms cubic-bezier(0.22, 1, 0.36, 1); box-sizing: border-box;
}
.toggle-track::before {
    content: ''; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; background: #ffffff; border-radius: 50%;
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms; box-shadow: 0 4px 10px rgba(0,0,0,0.36);
}
.toggle input:checked + .toggle-track { background: var(--accent); }
.toggle input:checked + .toggle-track::before { transform: translateX(24px); }
.toggle input:focus + .toggle-track { box-shadow: 0 0 0 6px rgba(0,243,255,0.06); }

.hamburger {
    display: none; cursor: pointer; z-index: 1002;
    span.main-nav-toggle {
        display: block; width: 30px; height: 16px; left: 0px; position: relative; top: 0px;
        &:after, &:before {
            content: ''; position: absolute; top: 0; height: 0; border-bottom: 3px solid #fff; 
            width: 100%; left: 0; right: 0; transition: all ease-out 0.3s;
        }
        &:after { top: 100%; }
        i {
            display: block; text-indent: 100%; overflow: hidden; white-space: nowrap; height: 3px; background-color: #fff; 
            width: 100%; position: absolute; top: 50%; transition: all ease-out 0.1s;
        }
        &.active-menu {
            &:after { transform: rotate(45deg); transform-origin: center; top: 50%; }
            &:before { transform: rotate(-45deg); transform-origin: center; top: 50% }
            i { opacity: 0; }
        }
    }
}

/* --- HERO ACCORDION --- */
.hero-container { 
    height: 100vh; width: 100%; display: flex; overflow: hidden; 
    margin-top: 0; padding-top: var(--header-height); position: relative;
}
.game-panel {
    flex: 1; position: relative; height: 100%;
    transition: flex 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden; display: flex; align-items: center; justify-content: center;
    padding: 2rem; border-right: 1px solid rgba(0,0,0,0.5); cursor: pointer;
    transform: translateX(-100%); animation: slideIn 0.8s forwards ease-out; opacity: 0;
    background-size: cover; background-position: center; background-repeat: no-repeat;
}

/* Desktop Hover Effects */
@media (min-width: 769px) {
    .game-panel:hover { flex: 2.5; filter: brightness(1.1); }
    .hero-container:hover .game-panel:not(:hover) { filter: grayscale(0.8) brightness(0.6); }
    .game-panel:hover .game-logo { opacity: 1; transform: scale(1); }
}

.panel-content { z-index: 2; width: 100%; text-align: center; display: flex; justify-content: center; align-items: center; }
.game-logo {
    max-width: 300px; width: 80%; height: auto; opacity: 0; transform: scale(0.8);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 15px rgba(0, 243, 255, 0.6));
}
#panel-2 .game-logo { max-width: 500px; width: 100%; }

.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); z-index: 1; }
@keyframes slideIn { to { transform: translateX(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDropdown { from { opacity: 0; transform: translateX(-50%) translateY(-10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* --- SECTIONS --- */
.section-pad { padding: 6rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; }
.section-title { font-family: var(--font-head); font-size: 3rem; margin-bottom: 3rem; border-left: 5px solid var(--accent); padding-left: 1rem; }
.content-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.text-box p { font-size: 1.2rem; line-height: 1.6; margin-bottom: 2rem; color: #aaa; }
.stat-box {
    background: #1a1a1a; padding: 2rem; text-align: center; border: 1px solid #333;
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%); transition: transform 0.3s;
}
.stat-box:hover { transform: translateY(-5px); border-color: var(--accent); }
.stat-box h3 { font-family: var(--font-head); font-size: 2.5rem; color: var(--accent); }
.cyber-btn {
    background: var(--accent); color: #000; border: none; padding: 1rem 2rem;
    font-family: var(--font-head); font-weight: 700; cursor: pointer;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.3s; text-transform: uppercase; display: inline-block; -webkit-tap-highlight-color: transparent;
}
.cyber-btn:hover { background: #fff; box-shadow: 0 0 15px var(--accent); }

/* --- ABOUT & TEAM --- */
.page-header { padding-top: 150px; padding-bottom: 50px; text-align: center; background: linear-gradient(to bottom, #111, var(--bg-color)); }
/* Fix: Fluid Font Size for Titles */
.page-header h1, .game-title-wrapper h1 { 
    font-family: var(--font-head); 
    /* Clamp font size between 2rem and 4rem based on viewport width */
    font-size: clamp(2rem, 8vw, 4rem); 
    color: var(--accent);
    /* Ensure text wraps and doesn't overflow */
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.member-card {
    background: #151515; border: 1px solid #333; overflow: hidden; position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 90% 100%, 0 100%); transition: transform 0.3s;
}
.member-card:hover { transform: translateY(-10px); border-color: var(--accent); }
.member-card img { width: 100%; height: 250px; object-fit: cover; filter: grayscale(100%); transition: filter 0.3s; }
.member-card:hover img { filter: grayscale(0%); }
.member-info { padding: 1.5rem; text-align: center; }
.member-info h3 { font-family: var(--font-head); margin-bottom: 0.5rem; color: #fff; }
.member-info p { color: var(--accent); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* --- CONTACT FORM --- */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.input-group input, .input-group textarea { width: 100%; background: #111; border: 1px solid #333; padding: 1rem; color: #fff; font-family: var(--font-body); }
.input-group input:focus, .input-group textarea:focus { border-color: var(--accent); outline: none; }
.privacy-text { font-size: 0.8rem; color: #666; margin-top: 1rem; }

/* --- GAME PAGE SPECIFIC --- */
.game-header { height: 60vh; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-top: var(--header-height); }
#integreat-header.game-header { height: 50vh; }
.game-hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; filter: brightness(0.5); z-index: -1; }
.game-title-wrapper { vertical-align: middle; text-align: center; width: 90%; }
.genre-tag { border: 1px solid var(--accent); color: var(--accent); padding: 0.5rem 1rem; text-transform: uppercase; } 
.game-info { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: -50px; position: relative; z-index: 2; background: var(--bg-color); padding: 3rem; border-top: 2px solid var(--accent); }
.media-placeholder { width: 100%; height: 200px; background: #222; display: flex; align-items: center; justify-content: center; border: 1px dashed #444; }
.launch-game-btn { display: flex; gap: 0.75rem; }
.launch-game-btn i { align-self: center;}
.launch-game-btn span, .launch-game-btn i { font-size: clamp(0.85em, 1vw, 1em); }

/* --- FOOTER --- */
footer { background: #000; padding: 4rem 2rem; text-align: center; border-top: 1px solid #333; }
.socials { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; margin: 1rem 0; -webkit-tap-highlight-color: transparent; }
.socials a { margin: 0 1rem; color: #888; transition: color 0.3s; }
.socials a:hover { color: var(--accent); }
.social-break { display: none; flex-basis: 100%; height: 0; }

/* --- MOBILE & RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
    /* NAVBAR: Hamburger & Slide-out Menu */
    .hamburger { display: block; }
    .nav-elements {
        position: fixed; top: var(--header-height); right: -100%;
        width: 70%; height: calc(100vh - var(--header-height));
        background: rgba(11, 11, 11, 0.95); backdrop-filter: blur(10px);
        flex-direction: column; justify-content: flex-start; padding: 2rem;
        border-left: 1px solid #333; transition: right 0.3s ease;
        overflow-y: auto;
    }
    .nav-elements.active { right: 0; }

    .nav-links { flex-direction: column; width: 100%; height: auto; gap: 1.5rem; align-items: flex-start; }
    .nav-links > li { width: 100%; justify-content: flex-start; flex-direction: column; align-items: flex-start; }
    .nav-links a, .nav-links span { font-size: 1.2rem; width: 100%; display: block; }
    
    /* Dropdown in mobile menu (Click based) */
    .dropdown-content { 
        position: relative; top: 0; left: 0; transform: none; width: 100%; 
        box-shadow: none; background: transparent; border: none; 
        padding-left: 1rem; margin-top: 1rem; display: none; 
    }
    /* Class toggled by JS */
    .dropdown-content.show { display: block; } 
    .dropdown-content a { text-align: left; padding: 0.5rem 0; border-bottom: none; color: #aaa; }
    .dropdown-content a:hover { background: transparent; }

    /* Settings in mobile menu */
    .nav-right { width: 100%; margin: 2rem 0 0 0; border-top: 1px solid #333; padding-top: 1.5rem; justify-content: flex-start; }
    /* Hide the icon on mobile */
    .nav-right .settings-icon { display: none; }

    .nav-right .settings-container { width: 100%; }
    .nav-right .settings-popup { 
        top: auto; bottom: 0; left: 0; right: auto; width: 100%;
        position: relative; box-shadow: none; border: none; 
        background: transparent; clip-path: none; padding: 0; 
        display: flex; /* Always show inputs in mobile */
        opacity: 1; animation: none; margin-top: 0.5rem;
    }
    .nav-right .settings-popup h4 { 
        font-family: var(--font-head); font-size: 1.3rem; color: var(--accent);
        letter-spacing: 1px; position: relative; border-bottom: 0px; padding-bottom: 0rem; 
    }

    /* HERO ACCORDION: Vertical Carousel */
    .hero-container { 
        padding-top: var(--header-height); 
        position: relative; /* Container is reference */
    }
    .game-panel { 
        position: absolute; /* Stacked */
        left: 0; width: 100%; 
        border-right: none; 
        border-bottom: 1px solid rgba(0,0,0,0.5);
        transition: top 0.5s ease, height 0.5s ease, opacity 0.5s ease;
        /* Remove Flex logic on mobile */
        flex: none; 
        transform: translateX(0);
        animation: none; opacity: 1;
    }
    
    /* Mobile States defined by JS classes/styles, but basic styles here */
    .game-panel.mobile-active { z-index: 10; border-top: 2px solid var(--accent); border-bottom: 2px solid var(--accent); }
    .game-panel.mobile-active .game-logo { opacity: 1; transform: scale(1); }
    .game-panel:not(.mobile-active) .game-logo { opacity: 0; }
    .game-panel:not(.mobile-active) { filter: grayscale(0.9) brightness(0.5); z-index: 1; }

    /* SECTIONS */
    .content-grid, .game-info, .contact-wrapper { grid-template-columns: 1fr; }
    .section-title { font-size: 2.5rem; }

    /* TEAM: Full Images */
    .member-card { height: auto; }
    .member-card img { height: auto; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
    
    /* FOOTER: 2 Rows */
    .social-break { display: block; height: 10px; }
    .socials { justify-content: center; }
    .socials a { width: auto; margin: 5px 15px; }
}

/* --- GAME EMBED --- */
.fullscreen-btn-container { padding-left: 2rem; padding-right: 2rem; padding-top: 4rem; padding-bottom: 2rem; }

.game-embed-container {
    position: relative; width: 80%; align-self: center; align-items: center;
    display: flex; justify-self: center; justify-items: center; justify-content: center;
    height: 100svh; overflow: visible; margin-bottom: 2rem;
}

/* --- IMAGE & SAFETY UTILITY --- */
.pixelated {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.protected-image {
    /* Disable selection and dragging */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-drag: none;
    -ms-user-drag: none;
    pointer-events: none; /* Make non-clickable */
    cursor: default;
}

.protected-button {
    /* Disable selection and dragging */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-drag: none;
    -ms-user-drag: none;
    -webkit-tap-highlight-color: transparent;
}

/* --- SPECIFIC ELEMENTS --- */
#scroll_down_prompt_integreat { font-size: clamp(1.05em, 2vw, 1.17em); margin-bottom: 0.5rem; }