/* Commander Wars Homepage - Advance Wars 2 Inspired Bold Design */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial Black', 'Arial Bold', Arial, sans-serif;
    background: #F5F5DC;
    color: #000;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
}

/* ===== HAMBURGER MENU (Mobile) ===== */
.hamburger {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 2000;
    background: #FF0000;
    border: 4px solid #000;
    padding: 10px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    width: 50px;
    height: 50px;
    justify-content: center;
    align-items: center;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #FFF;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== NAVIGATION ===== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #000;
    display: flex;
    justify-content: center;
    gap: 5px;
    z-index: 1000;
    border-bottom: 6px solid #FF0000;
    box-shadow: 0 4px 0 #000;
    padding: 0;
}

.main-nav a {
    background: #000;
    color: #FFF;
    border-right: 3px solid #333;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.2s;
    text-transform: uppercase;
}

.main-nav a:last-child {
    border-right: none;
}

.main-nav a:hover,
.main-nav a.active {
    background: #FF0000;
    transform: translateY(-2px);
}

/* ===== HOME SECTION ===== */
.home-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding-top: 60px;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.home-content {
    position: relative;
    z-index: 10;
    display: flex;
    gap: 30px;
    padding: 40px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    min-height: calc(100vh - 200px);
}

.hero-island {
    background: #FFF;
    border: 8px solid #000;
    box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.8);
    padding: 40px;
    max-width: 600px;
    position: relative;
}

.hero-island::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 3px solid #FF0000;
    pointer-events: none;
}

.game-logo {
    font-size: 64px;
    font-weight: 900;
    line-height: 0.9;
    text-align: left;
    color: #FF0000;
    text-shadow:
        4px 4px 0 #000,
        8px 8px 0 #0066FF;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.tagline {
    font-size: 20px;
    font-weight: 900;
    color: #000;
    text-align: left;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-desc {
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: normal;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: left;
    color: #333;
}

.hero-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 25px;
}

.badge {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px 15px;
    border-left: 6px solid #000;
    background: #F5F5F5;
    text-align: left;
    position: relative;
}

.badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -6px;
    width: 6px;
    height: 100%;
    opacity: 0.7;
}

.badge-label {
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-value {
    font-size: 14px;
    font-weight: 900;
    color: #000;
    letter-spacing: 0.3px;
}

.badge-free {
    border-left-color: #00CC00;
}

.badge-free::before {
    background: #00CC00;
}

.badge-open {
    border-left-color: #0066FF;
}

.badge-open::before {
    background: #0066FF;
}

.badge-mod {
    border-left-color: #FF00FF;
}

.badge-mod::before {
    background: #FF00FF;
}

.badge-platform {
    border-left-color: #FF6B00;
}

.badge-platform::before {
    background: #FF6B00;
}

.quick-links-island {
    background: #FFF;
    border: 8px solid #000;
    box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.8);
    padding: 30px;
    max-width: 600px;
}

.quick-links-island h2 {
    font-size: 28px;
    font-weight: 900;
    color: #000;
    margin-bottom: 20px;
    text-align: left;
    border-bottom: 4px solid #FF0000;
    padding-bottom: 10px;
}

.link-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: #FFF;
    border: 4px solid #000;
    color: #000;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    transition: all 0.2s;
    text-align: left;
    cursor: pointer;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.quick-link:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 #000;
}

.quick-link:active {
    transform: translate(0, 0);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}

.link-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.download-link { background: #00CC00; color: #FFF; }
.discord-link { background: #5865F2; color: #FFF; }
.wiki-link { background: #FFD700; }
.tactics-link { background: #FF6B00; color: #FFF; }
.units-link { background: #00AAFF; color: #FFF; }
.modding-link { background: #FF00FF; color: #FFF; }
.findmods-link { background: #00AA00; color: #FFF; }
.faq-link { background: #c47b31; color: #FFF; }
.gallery-link { background: #9B59B6; color: #FFF; }
.bug-link { background: #E74C3C; color: #FFF; }

/* ===== HORIZONTAL GALLERY ===== */
.horizontal-gallery {
    position: relative;
    z-index: 10;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px 0;
    border-top: 5px solid #FF0000;
    border-bottom: 5px solid #0066FF;
}

.gallery-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 40px;
    scroll-behavior: smooth;
}

.gallery-scroll.auto-scroll {
    overflow-x: hidden;
}

.gallery-scroll::-webkit-scrollbar {
    height: 20px;
}

.gallery-scroll::-webkit-scrollbar-track {
    background: #000;
    border: 3px solid #FF0000;
    box-shadow: inset 0 0 6px rgba(255, 0, 0, 0.3);
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background: #FF0000;
    border: 3px solid #FFF;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.8);
}

.gallery-scroll::-webkit-scrollbar-thumb:hover {
    background: #FFD700;
    border: 3px solid #000;
    box-shadow: 0 0 12px rgba(255, 215, 0, 1);
    transform: scaleY(1.2);
}

.gallery-scroll img {
    height: 200px;
    width: auto;
    border: 5px solid #FFF;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.8);
    flex-shrink: 0;
    transition: all 0.3s;
}

.gallery-scroll img:hover {
    transform: scale(1.1) translateY(-10px);
    border-color: #FFD700;
    z-index: 10;
}

/* Mobile slideshow - hidden on desktop */
.mobile-slideshow {
    display: none;
}

/* Video showcase box */
.video-showcase {
    background: #000;
    border: 8px solid #FF0000;
    padding: 0;
    margin-top: 40px;
    box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.video-showcase video {
    width: 100%;
    display: block;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    padding: 80px 0;
    position: relative;
}

.content-section:nth-child(even) {
    background: #E8E8D0;
}

.section-title {
    font-size: 56px;
    font-weight: 900;
    color: #FF0000;
    text-align: left;
    margin-bottom: 30px;
    text-shadow: 4px 4px 0 #000;
    letter-spacing: -1px;
    line-height: 1;
}

/* ===== ABOUT SECTION ===== */
.two-col-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

.col-text {
    text-align: left;
}

.intro-text {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.4;
}

.col-text p {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: normal;
}

.col-text strong {
    font-weight: 900;
    color: #FF0000;
}

.feature-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.stat-item {
    padding: 20px 15px;
    text-align: center;
    background: #FFF;
    border: 3px solid #000;
    border-top-width: 8px;
    position: relative;
}

.stat-number {
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #333;
}

.stat-red {
    border-top-color: #FF0000;
}

.stat-red .stat-number {
    color: #FF0000;
}

.stat-blue {
    border-top-color: #0066FF;
}

.stat-blue .stat-number {
    color: #0066FF;
}

.stat-green {
    border-top-color: #00CC00;
}

.stat-green .stat-number {
    color: #00CC00;
}

.stat-yellow {
    border-top-color: #FFD700;
}

.stat-yellow .stat-number {
    color: #FF8C00;
}

.col-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-img {
    width: 100%;
    border: 5px solid #000;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.6);
}

.feature-img-small {
    width: 100%;
    border: 5px solid #0066FF;
    box-shadow: 6px 6px 0 rgba(0, 102, 255, 0.6);
}

/* ===== FEATURES SECTION ===== */
.features-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.features-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-box {
    padding: 20px;
    border: 5px solid #000;
    text-align: left;
    cursor: default;
}

.feature-box h3 {
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 12px;
    color: #000;
}

.feature-box p {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    font-weight: normal;
}

.red-box { background: #FF6B6B; }
.blue-box { background: #4ECDC4; }
.green-box { background: #95E1D3; }
.yellow-box { background: #FFE66D; }

.features-center {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.center-feature-img {
    width: 100%;
    border: 6px solid #000;
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.7);
}

.bottom-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.mini-feature {
    padding: 20px;
    background: #FFF;
    border: 4px solid #000;
    text-align: center;
    cursor: default;
}

.mini-feature h4 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 900;
}

.mini-feature p {
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: normal;
    line-height: 1.5;
}

/* ===== DOWNLOAD SECTION ===== */
.version-info {
    font-size: 18px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 30px;
    color: #000;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.platform-box {
    background: #FFF;
    border: 6px solid #000;
    padding: 25px;
    text-align: center;
}

.platform-header {
    margin-bottom: 15px;
}

.platform-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.platform-box h2 {
    font-size: 24px;
    font-weight: 900;
    color: #000;
}

.platform-req {
    font-family: Arial, sans-serif;
    font-size: 14px;
    margin: 15px 0;
    font-weight: normal;
}

.download-btn {
    display: block;
    width: 100%;
    padding: 18px;
    background: #FF0000;
    color: #FFF;
    border: 5px solid #000;
    font-size: 20px;
    font-weight: 900;
    text-decoration: none;
    margin: 15px 0;
    transition: all 0.2s;
    cursor: pointer;
    box-shadow: 0 4px 0 #8B0000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 0 #8B0000, 0 8px 0 #000;
    background: #FF3333;
}

.download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 0 #8B0000;
}

.file-name {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: #000;
    color: #00FF00;
    padding: 8px;
    margin: 10px 0;
    border: 2px solid #00FF00;
}

.install-steps {
    text-align: left;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 3px solid #000;
}

.install-steps h4 {
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 10px;
}

.install-steps ol {
    font-family: Arial, sans-serif;
    font-size: 15px;
    padding-left: 20px;
    font-weight: normal;
    line-height: 1.6;
}

.install-steps li {
    margin-bottom: 5px;
}

.windows-box { border-color: #0078D4; border-width: 6px; }
.linux-box { border-color: #FCC624; border-width: 6px; }
.mac-box { border-color: #000; border-width: 6px; }
.android-box { border-color: #3DDC84; border-width: 6px; }

.screenshot-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.screenshot-pair img {
    width: 100%;
    border: 5px solid #000;
}

/* ===== MODDING SECTION ===== */
.modding-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.modding-content {
    order: 1;
    display: flex;
    flex-direction: column;
}

.modding-sidebar {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 80px;
}

.modding-img {
    width: 100%;
    border: 6px solid #FF00FF;
    box-shadow: 10px 10px 0 rgba(255, 0, 255, 0.5);
}

.modding-subtitle {
    font-size: 32px;
    font-weight: 900;
    color: #000;
    margin-bottom: 20px;
    text-align: left;
}

.modding-intro {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: normal;
}

.mod-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.mod-feature {
    padding: 22px;
    border: 4px solid #000;
    text-align: left;
    cursor: default;
}

.mod-feature h3 {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 10px;
    color: #000;
}

.mod-feature p {
    font-family: Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    font-weight: normal;
}

.red-feature { background: #FFB3BA; }
.blue-feature { background: #BAE1FF; }
.green-feature { background: #BAFFC9; }
.yellow-feature { background: #FFFFBA; }

.modding-actions {
    background: #FFF;
    border: 6px solid #000;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modding-actions-title {
    font-size: 14px;
    font-weight: 900;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
    margin-bottom: 5px;
    border-bottom: 3px solid #000;
    padding-bottom: 8px;
}

.modding-actions-title:first-child {
    margin-top: 0;
}

.mod-btn {
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 900;
    border: 4px solid #000;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
    text-align: left;
}

.btn-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.guide-btn {
    background: #FF00FF;
    color: #FFF;
}

.moddb-btn {
    background: #DB2C13;
    color: #FFF;
}

.discord-mod-btn {
    background: #5865F2;
    color: #FFF;
}

.banana-btn {
    background: #FFD700;
    color: #000;
}

.mod-btn:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0 #000;
}

.mod-btn:active {
    transform: translate(0, 0);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

/* ===== GALLERY SECTION ===== */
.gallery-subtitle {
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 16px;
    margin-bottom: 25px;
    font-weight: normal;
}

.gallery-actions {
    text-align: center;
    margin-bottom: 30px;
}

.gallery-external-btn {
    display: inline-block;
    padding: 18px 35px;
    background: #0066FF;
    color: #FFF;
    border: 5px solid #000;
    font-size: 18px;
    font-weight: 900;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 0 #003380;
}

.gallery-external-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 9px 0 #003380, 0 9px 0 #000;
    background: #3385FF;
}

.gallery-external-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 0 #003380;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-grid a {
    display: block;
    border: 3px solid #000;
    overflow: hidden;
    transition: all 0.2s;
}

.gallery-grid a:hover {
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 #000;
    border-color: #FF0000;
}

.gallery-grid img {
    width: 100%;
    display: block;
}

/* ===== COMMUNITY SECTION ===== */
.community-layout {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.community-box {
    background: #FFF;
    border: 5px solid #000;
    padding: 30px;
    text-align: center;
}

.community-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.community-box h2 {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 15px;
    color: #000;
}

.community-box p {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: normal;
}

.community-btn {
    display: inline-block;
    padding: 15px 30px;
    background: #000;
    color: #FFF;
    border: 4px solid #FFF;
    font-size: 16px;
    font-weight: 900;
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 15px;
    cursor: pointer;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.community-btn:hover {
    background: #FF0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.4);
}

.community-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

.community-img {
    width: 100%;
    border: 4px solid #000;
    margin-top: 15px;
}

.discord-box {
    border-color: #5865F2;
    border-width: 6px;
    background: rgba(88, 101, 242, 0.1);
}

.moddb-box {
    border-color: #00AA00;
    border-width: 6px;
    background: rgba(0, 170, 0, 0.1);
}

.banana-box {
    border-color: #FFD700;
    border-width: 6px;
    background: rgba(255, 215, 0, 0.1);
}

.github-box {
    border-color: #000;
    border-width: 6px;
    background: rgba(0, 0, 0, 0.05);
}

.resources-box {
    background: #FFF;
    border: 6px solid #000;
    padding: 30px;
    margin-top: 40px;
}

.resources-box h2 {
    font-size: 32px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 25px;
    color: #000;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.resource-item {
    display: block;
    padding: 18px 20px;
    background: #FFF;
    border: 5px solid #000;
    color: #000;
    text-align: center;
    font-size: 16px;
    font-weight: 900;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
}

.resource-item:nth-child(1) {
    background: #0066FF;
    color: #FFF;
    box-shadow: 4px 4px 0 #003380;
}

.resource-item:nth-child(2) {
    background: #FF6B00;
    color: #FFF;
    box-shadow: 4px 4px 0 #8B3A00;
}

.resource-item:nth-child(3) {
    background: #00CC00;
    color: #FFF;
    box-shadow: 4px 4px 0 #007700;
}

.resource-item:nth-child(4) {
    background: #FF00FF;
    color: #FFF;
    box-shadow: 4px 4px 0 #8B008B;
}

.resource-item:nth-child(5) {
    background: #FFD700;
    color: #000;
    box-shadow: 4px 4px 0 #B8860B;
}

.resource-item:nth-child(6) {
    background: #FF0000;
    color: #FFF;
    box-shadow: 4px 4px 0 #8B0000;
}

.resource-item:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0 #000;
}

.resource-item:active {
    transform: translate(0, 0);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.site-footer {
    margin-top: 50px;
    padding: 30px;
    background: #000;
    color: #FFF;
    text-align: center;
    border: 5px solid #FF0000;
}

.site-footer p {
    font-family: Arial, sans-serif;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: normal;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 0 20px 0;
        background: #000;
        border-right: 6px solid #FF0000;
        border-bottom: none;
        transition: left 0.3s;
        overflow-y: auto;
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav a {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #333;
        padding: 20px 25px;
    }

    .home-section {
        padding-top: 0;
        display: flex;
        flex-direction: column;
    }

    .video-bg {
        position: relative;
        height: auto;
        order: 1;
        min-height: 250px;
    }

    .video-bg video {
        object-fit: contain;
        background: #000;
        position: relative;
        width: 100%;
        height: auto;
    }

    .video-overlay {
        display: none;
    }

    .home-content {
        flex-direction: column;
        padding: 0;
        min-height: auto;
        order: 2;
    }

    .hero-island {
        max-width: 100%;
        border-left: none;
        border-right: none;
        border-top: none;
        border-radius: 0;
        box-shadow: none;
        order: 1;
        padding: 30px 20px;
    }

    .hero-island::before {
        display: none;
    }

    .quick-links-island {
        max-width: 100%;
        border: none;
        border-radius: 0;
        box-shadow: none;
        order: 2;
        padding: 25px 0;
        background: transparent;
        width: 100%;
    }

    .quick-links-island h2 {
        background: #FFF;
        margin: 0 0 20px 0;
        padding: 15px;
        width: 100%;
    }

    .link-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        width: 100%;
        padding: 0;
    }

    .quick-link {
        border-radius: 0;
        box-shadow: none;
        padding: 18px 8px;
        font-size: 11px;
        flex-direction: column;
        gap: 5px;
        text-align: center;
        width: 100%;
    }

    .horizontal-gallery {
        order: 3;
    }

    /* Mobile slideshow - not used anymore */
    .mobile-slideshow {
        display: none;
    }

    .game-logo {
        font-size: 42px;
    }

    .link-icon {
        font-size: 28px;
    }

    .gallery-scroll {
        padding: 10px 20px;
    }

    .gallery-scroll img {
        height: 150px;
    }

    .two-col-layout,
    .features-layout,
    .modding-layout {
        grid-template-columns: 1fr;
    }

    .modding-sidebar {
        position: static;
    }

    .download-grid,
    .community-layout {
        grid-template-columns: 1fr;
    }

    .bottom-features,
    .resource-grid {
        grid-template-columns: 1fr;
    }

    .mod-features-grid {
        grid-template-columns: 1fr;
    }

    .screenshot-pair {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 15px;
    }

    .section-title {
        font-size: 36px;
    }

    .modding-sidebar {
        order: 1;
    }

    .modding-content {
        order: 2;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .features-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .features-col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .features-center {
        order: -1;
    }

    .download-grid {
        grid-template-columns: 1fr 1fr;
    }

    .community-layout {
        grid-template-columns: 1fr 1fr;
    }

    .bottom-features {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== SCROLLBAR ===== */
body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: #DDD;
    border-left: 3px solid #000;
}

body::-webkit-scrollbar-thumb {
    background: #FF0000;
    border: 2px solid #000;
}

body::-webkit-scrollbar-thumb:hover {
    background: #CC0000;
}
