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

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #00ff88;
    --accent-dim: #00cc6a;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Theme Switcher */
.theme-switcher {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1001;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px;
    backdrop-filter: blur(10px);
}

.theme-switcher button {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 16px;
    margin: 2px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.theme-switcher button:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

.theme-switcher button.active {
    background: var(--accent);
    color: var(--bg-dark);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(180deg, #0a0a0a 0%, #141414 100%);
}

.hero-content {
    text-align: center;
    padding: 100px 20px;
}

.hero-title {
    font-size: 96px;
    font-weight: 900;
    letter-spacing: 8px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.hero-line {
    width: 100px;
    height: 2px;
    background: var(--accent);
    margin: 0 auto;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.header-line {
    width: 80px;
    height: 3px;
    background: var(--accent);
    margin: 0 auto;
}

/* Game Section */
.game-section {
    padding: 120px 0;
    background-color: var(--bg-dark);
}

.game-section .container {
    max-width: 100%;
    padding: 0 40px;
}

.games-grid {
    display: flex;
    gap: 10px;
    margin: 0 auto;
    width: 100%;
    max-width: 1000px;
    height: 400px;
    justify-content: center;
}

.expandable-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex: 0 0 80px;
}

.expandable-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
    transition: opacity 0.3s ease;
}

.expandable-card:hover,
.expandable-card.expanded {
    flex: 1;
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.expandable-card:hover::before,
.expandable-card.expanded::before {
    opacity: 0.7;
}

.card-header {
    position: relative;
    z-index: 2;
    padding: 25px 15px;
    margin-top: auto;
    text-align: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transition: all 0.5s ease;
}

.expandable-card:hover .card-header,
.expandable-card.expanded .card-header {
    writing-mode: horizontal-tb;
    text-orientation: initial;
    text-align: left;
    padding: 25px 30px;
}

.card-header h3 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: font-size 0.3s ease;
}

.expandable-card:hover .card-header h3,
.expandable-card.expanded .card-header h3 {
    font-size: 28px;
    letter-spacing: 3px;
}

.game-platform {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    padding: 6px 12px;
    background: rgba(0, 255, 136, 0.9);
    color: var(--bg-dark);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.5s ease;
    opacity: 0;
}

.expandable-card:hover .game-platform,
.expandable-card.expanded .game-platform {
    opacity: 1;
    top: 20px;
    right: 20px;
    left: auto;
    transform: none;
}

.expand-icon {
    font-size: 18px;
    color: var(--accent);
    font-weight: bold;
    transition: all 0.3s ease;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 136, 0.2);
    border: 2px solid var(--accent);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    opacity: 0;
}

.expandable-card:hover .expand-icon,
.expandable-card.expanded .expand-icon {
    opacity: 1;
    font-size: 24px;
    width: 35px;
    height: 35px;
}

.expandable-card.expanded .expand-icon {
    transform: rotate(45deg);
    background: var(--accent);
    color: var(--bg-dark);
}

.card-content {
    position: relative;
    z-index: 2;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
    padding: 0 30px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    opacity: 0;
}

.expandable-card:hover .card-content,
.expandable-card.expanded .card-content {
    max-height: 300px;
    padding: 20px 30px 30px;
    opacity: 1;
}

/* Game Card Background Images */
.expandable-card:nth-child(2) {
    background-image: url('images/Milord.png');
}

.expandable-card:nth-child(3) {
    background-image: url('images/SwarmGrinder.png');
}

.game-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
    border: 1px solid var(--accent);
}

.game-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.game-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    color: var(--accent);
    font-size: 20px;
}

/* Roadmap Section */
.roadmap-section {
    padding: 120px 20px;
    background: linear-gradient(180deg, #141414 0%, #0a0a0a 100%);
}

.roadmap-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.roadmap-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

.roadmap-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.quarter-badge {
    position: absolute;
    top: -15px;
    left: 30px;
    background: var(--accent);
    color: var(--bg-dark);
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 20px;
}

.roadmap-card h3 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 25px;
    margin-top: 20px;
    color: var(--text-primary);
    line-height: 1.3;
}

.roadmap-features {
    list-style: none;
    margin-bottom: 25px;
    flex-grow: 1;
}

.roadmap-features li {
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 16px;
    position: relative;
    padding-left: 20px;
}

.roadmap-features li::before {
    content: "⬡";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 14px;
}

.status-badge {
    align-self: flex-start;
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 15px;
    margin-top: auto;
}

.status-badge.completed {
    background: rgba(0, 255, 136, 0.2);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.status-badge.in-progress {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
    border: 1px solid #ffa500;
}

.status-badge.upcoming {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* About Section */
.about-section {
    padding: 120px 20px;
    background: linear-gradient(180deg, #0a0a0a 0%, #141414 100%);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.value-item {
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease;
}

.value-item:hover {
    border-color: var(--accent);
}

.value-item h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--accent);
    letter-spacing: 2px;
}

.value-item p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Contact Section */
.contact-section {
    padding: 120px 20px;
    background-color: var(--bg-dark);
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-label {
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact-item a {
    color: var(--accent);
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-dim);
}

/* Footer */
.footer {
    background-color: var(--bg-card);
    padding: 60px 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: var(--accent);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 20px;
    }

    .hero-title {
        font-size: 48px;
        letter-spacing: 4px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 36px;
    }

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

    .games-grid {
        flex-direction: column;
        height: auto;
        gap: 15px;
    }

    .expandable-card {
        flex: none;
        height: 120px;
    }

    .expandable-card:hover,
    .expandable-card.expanded {
        height: 350px;
    }

    .card-header {
        writing-mode: horizontal-tb;
        text-orientation: initial;
        text-align: left;
        padding: 20px;
    }

    .card-header h3 {
        font-size: 18px;
    }

    .expandable-card:hover .card-header h3,
    .expandable-card.expanded .card-header h3 {
        font-size: 24px;
    }

    .card-header {
        padding: 20px;
    }

    .card-header h3 {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .expandable-card.expanded .card-content {
        padding: 15px 20px 20px;
        max-height: 250px;
    }

    .roadmap-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .roadmap-card {
        min-height: auto;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .theme-switcher {
        top: 80px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

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