:root {
    --bg-dark: #0a0a0b;
    --bg-card: #141417;
    --accent-blue: #0084ff;
    --accent-neon: #39ff14;
    --accent-purple: #9d00ff;
    --text-white: #ffffff;
    --text-gray: #a0a0a5;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.grid-2.reverse {
    direction: rtl;
}

.grid-2.reverse>* {
    direction: ltr;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.2s ease;
    padding: 15px 0;
    /* Reduced padding to move elements up */
}

header.scrolled {
    background: rgba(10, 10, 11, 0.6);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    /* Full width to push logo to edge */
    margin: 0;
    padding: 0 10px;
    /* Logo a 10px du bord gauche */
}

.logo img {
    height: 24px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Header Controls (Language & Hamburger) */
.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    color: var(--accent-blue);
    transform: scale(1.1);
}

/* Side Menu Panel (Sliding from Right) */
.fullscreen-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    background: #0a0a0b;
    /* Solid dark background */
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 50px 0 30px;
    /* Left padding reduced by 20px */

    /* Animation State: Hidden */
    transform: translateX(100%);
    opacity: 1;
    /* Always opaque, use transform for visibility */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Shadow and Backdrop simulation */
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.fullscreen-menu.open {
    transform: translateX(0%);
    opacity: 1;
    pointer-events: auto;
}

/* Optional Overlay Backdrop using pseudo-element */
.fullscreen-menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: -100vw;
    /* Extend to left */
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.fullscreen-menu.open::before {
    opacity: 1;
    pointer-events: auto;
    /* Catch clicks outside if JS supports it (currently blocks interactions) */
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 2002;
}

.menu-logo-container {
    position: absolute;
    top: 34px;
    left: 30px;
    /* Align with content padding */
    width: auto;
    margin: 0;
    z-index: 2002;
}

.menu-logo {
    height: 32px;
    /* 32px to match close button */
    width: auto;
    object-fit: contain;
    display: block;
}

.menu-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
    width: 100%;
    margin-top: -500px;
    margin-left: -10px;
}

.menu-link {
    text-decoration: none;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 400;
    /* Non-bold as requested */
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: block;
}

.menu-link:hover {
    color: var(--accent-blue);
    /* Blue accent on hover */
    padding-left: 10px;
    /* Slide effect on hover */
}

/* Mobile Adjustment */
@media (max-width: 600px) {
    .fullscreen-menu {
        width: 100%;
        /* Full width on mobile */
        padding: 100px 30px;
    }
}

/* Hero Section */
.full-screen {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 80px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.highlight {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 20px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-bg-accent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 132, 255, 0.15) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--text-gray);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--text-white);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 15px);
    }
}

/* EasyTrip Background Section */
.easytrip-bg {
    background-image: url('assets/easyTrip/Background/Main1.jpg');
    background-size: cover;
    background-position: center calc(50% - 19px);
    /* Shifted up 23px */
    position: relative;
}

.easytrip-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Dark overlay for text readability */
    z-index: 0;
}

.easytrip-bg .container {
    position: relative;
    z-index: 1;
}

/* Section Common */
.game-section {
    height: 600px;
    /* Fixed section height */
    padding: 0;
    overflow: hidden;
}

.game-info {
    padding-left: 40px;
}

.game-section .container {
    height: 100%;
    padding: 0 80px 0 85px;
    /* Shift content 5px right */
    max-width: 1400px;
}

.game-section .grid-2 {
    height: 100%;
    gap: 30px;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.title-xl {
    font-size: 42px;
    /* Reduced to fit */
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1.1;
}

.slogan {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 8px;
}

.description {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 15px;
    line-height: 1.4;
    max-width: 90%;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.neon-green {
    background: rgba(57, 255, 20, 0.1);
    color: var(--accent-neon);
    border: 1px solid rgba(57, 255, 20, 0.2);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    /* Very tight gap */
    margin-bottom: 15px;
    max-width: 80%;
    /* Reduce width to remove empty space */
}

.feature-card {
    background: var(--bg-card);
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
    /* Not interactive */
}

.icon-box {
    font-size: 18px;
    margin-bottom: 2px;
}

.feature-card h3 {
    font-size: 13px;
    margin-bottom: 1px;
}

.feature-card p {
    font-size: 11px;
    color: var(--text-gray);
    line-height: 1.2;
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.phone-mockup img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

/* Pixel Mockup */
.pixel-mockup {
    position: relative;
    width: 300px;
    /* Restored to original size */
    height: 600px;
    /* Restored to original size */
    background: #1a1a1c;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.7),
        inset 0 0 0 2px rgba(255, 255, 255, 0.1);
    margin: 0 auto;
}

.pixel-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 32px;
    overflow: hidden;
}

.pixel-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pixel-camera {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #0a0a0b;
    border-radius: 50%;
    z-index: 10;
}

/* Showcase Grid */
.showcase-grid {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 40px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.showcase-grid::-webkit-scrollbar {
    display: none;
}

.showcase-section {
    background: var(--bg-card);
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent-neon);
    color: black;
}

.btn-primary:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--accent-purple);
    color: white;
}

.btn-secondary:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
    box-shadow: 0 0 20px rgba(157, 0, 255, 0.4);
}

.stack-info {
    display: block;
    margin-top: 15px;
    font-size: 12px;
    color: var(--text-gray);
    font-style: italic;
}

/* Snake Section Special */
.snake-bg {
    background-image: url('assets/snake360_bg.webp');
    background-size: cover;
    background-position: center;
    position: relative;
}

.snake-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    /* Dark overlay */
    z-index: 0;
}

.snake-bg .container {
    position: relative;
    z-index: 1;
}

.art-layer img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.bullet-list {
    list-style: none;
    margin-bottom: 40px;
}

.bullet-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: var(--text-gray);
}

.bullet-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-purple);
    font-weight: bold;
}

/* Studio Section */
.studio-section {
    padding: 150px 0;
    background: #000;
}

.text-center {
    text-align: center;
}

.divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    margin: 20px auto 40px;
    border-radius: 2px;
}

.studio-desc {
    font-size: 24px;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto 40px;
}

.studio-link-box {
    margin-bottom: 60px;
}

.studio-link {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    color: var(--text-white);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.studio-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-white);
    transition: var(--transition);
}

.studio-link:hover::after {
    width: 100%;
}

.studio-services {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.service {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-gray);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 25px;
    border-radius: 100px;
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: #444;
    font-size: 14px;
}

/* Animations */
.fade-in {
    animation: fadeIn 1s forwards;
    opacity: 0;
}

.fade-in.delay-1 {
    animation-delay: 0.3s;
}

.fade-in.delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 968px) {

    /* ── Grid Layout ── */
    .grid-2,
    .grid-2.reverse {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        direction: ltr;
    }

    /* ── Hero ── */
    .hero-content h1 {
        font-size: 50px;
    }

    .hero-content p {
        padding: 0 20px;
    }

    /* ── Scroll Indicator ── */
    .scroll-indicator {
        left: 0;
        right: 0;
        margin: 0 auto;
        width: fit-content;
    }

    /* ── Game Sections (EasyTrip & Snake360) ── */
    .game-section {
        height: auto;
        min-height: auto;
        padding: 60px 0;
        overflow: visible;
    }

    .game-section .container {
        height: auto;
        padding: 0 20px;
    }

    .game-section .grid-2 {
        height: auto;
        gap: 40px;
        padding-top: 0;
        padding-bottom: 0;
    }

    /* ── Game Info ── */
    .game-info {
        padding-left: 0;
        text-align: center;
    }

    .title-xl {
        font-size: 32px;
    }

    .slogan {
        font-size: 16px;
    }

    .description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding: 0 10px;
    }

    /* ── Feature Grid (EasyTrip) ── */
    .feature-grid {
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    /* ── Bullet List (Snake360) ── */
    .bullet-list {
        display: inline-block;
        text-align: left;
        margin-left: auto;
        margin-right: auto;
    }

    /* ── Badge ── */
    .badge {
        margin-left: auto;
        margin-right: auto;
    }

    /* ── CTA Buttons ── */
    .cta-buttons {
        display: flex;
        justify-content: center;
    }

    /* ── Phone Mockup (EasyTrip) ── */
    .phone-mockup {
        max-width: 280px;
    }

    .phone-mockup img {
        max-height: 400px;
    }

    /* ── Art Layer (Snake360) ── */
    .art-layer img {
        width: 85%;
        margin: 0 auto;
        display: block;
    }

    /* ── Pixel Mockup ── */
    .pixel-mockup {
        width: 220px;
        height: 440px;
    }

    /* ── Background sections ── */
    .easytrip-bg,
    .snake-bg {
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
    }

    /* ── Studio ── */
    .studio-section {
        padding: 80px 0;
    }

    .studio-desc {
        font-size: 18px;
        padding: 0 20px;
    }

    .studio-link {
        font-size: 30px;
    }

    .studio-services {
        gap: 15px;
        padding: 0 20px;
    }

    .service {
        font-size: 14px;
        padding: 8px 18px;
    }

    /* ── Nav ── */
    .nav-links {
        display: none;
    }

    /* ── Stack info ── */
    .stack-info {
        text-align: center;
    }
}

/* ── Extra Small Screens ── */
@media (max-width: 480px) {

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .title-xl {
        font-size: 28px;
    }

    .slogan {
        font-size: 14px;
    }

    .description {
        font-size: 13px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        max-width: 85%;
    }

    .feature-card h3 {
        font-size: 12px;
    }

    .feature-card p {
        font-size: 10px;
    }

    .phone-mockup {
        max-width: 220px;
    }

    .phone-mockup img {
        max-height: 350px;
    }

    .art-layer img {
        width: 100%;
    }

    .studio-link {
        font-size: 22px;
    }

    .service {
        font-size: 12px;
        padding: 6px 14px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .bullet-list li {
        font-size: 14px;
    }

    .game-section {
        padding: 40px 0;
    }
}