:root {
    --bg-dark: #09090b;
    --bg-card: #18181b;
    --primary: #8b5cf6;
    /* Violet */
    --accent: #06b6d4;
    /* Cyan */
    --text-main: #fafafa;
    --text-muted: #a1a1aa;
    --glass-nav: rgba(9, 9, 11, 0.8);
    --gradient-hero: linear-gradient(180deg, rgba(9, 9, 11, 0) 0%, #09090b 100%);
    --gradient-brand: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);

    --font-heading: 'Cinzel', serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* -- Typography -- */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

/* -- Navigation -- */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-nav);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
}

.dot {
    color: var(--primary);
}



.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links li a {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links li a:hover {
    color: var(--text-main);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-card);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    top: 100%;
    left: 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--text-muted);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-transform: none;
    /* Keep game titles readable */
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary);
    padding-left: 20px;
    /* Slight movement effect */
}

.btn-small {
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: var(--text-main);
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.3s;
}

.btn-small:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-small {
    position: relative;
}

/* -- Social Media Badges -- */
.social-link-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.badge-coming-soon {
    position: absolute;
    top: -15px;
    right: -20px;
    background: #ef4444;
    color: white;
    font-size: 0.5rem;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: bold;
    transform: rotate(15deg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    white-space: nowrap;
    border: 1px solid white;
    z-index: 10;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* -- Hero Section -- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    overflow: hidden;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    animation: zoomSlow 20s infinite alternate;
}

@keyframes zoomSlow {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.hero-split {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    min-height: 80vh;
    padding: 10rem 10% 4rem;
    position: relative;
}

/* -- Carousel -- */
.carousel-container {
    position: relative;
    max-width: 875px;
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Assuming portrait aspect ratio similar to posters, or we can let content dictate height if we stack them? Better to enforce ratio or use first image size */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
    cursor: pointer;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.carousel-image.active {
    opacity: 1;
    z-index: 2;
}

.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0);
    /* Transparent as requested */
    z-index: 3;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
}

.progress-bar-fill.animating {
    animation: fillProgress 10s linear forwards;
}

@keyframes fillProgress {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

.hero-bg-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(80px) brightness(0.4);
    z-index: 0;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: var(--gradient-hero);
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    margin-top: 5rem;
}

.tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(139, 92, 246, 0.7);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #ffffff;
    font-weight: 700;
    border-radius: 50px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.action-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: transform 0.2s;
}

.btn.primary {
    background: var(--gradient-brand);
    color: white;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(5px);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* -- Section Defaults -- */
.section-container {
    padding: 6rem 10%;
}

.section-dark {
    background-color: #0c0c0e;
    padding: 6rem 10%;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header .line {
    width: 60px;
    height: 4px;
    background: var(--gradient-brand);
    border-radius: 2px;
}

.section-header.center {
    text-align: center;
}

.section-header.center p {
    color: var(--text-muted);
}

/* -- Games Grid -- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.game-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.game-card:hover {
    transform: translateY(-10px);
}

.card-image {
    position: relative;
    height: 400px;
    /* Poster aspect */
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.game-card:hover .card-image img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: blur(2px);
}

.game-card:hover .card-overlay {
    opacity: 1;
}

.btn-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    border: none;
    font-size: 1.5rem;
    color: var(--bg-dark);
    cursor: pointer;
    transform: scale(0.8);
    transition: transform 0.3s;
}

.game-card:hover .btn-icon {
    transform: scale(1);
}

.card-info {
    padding: 1.5rem;
}

.card-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.card-info .genre {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 600;
}

.platforms {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
}

/* -- Upcoming -- */
.upcoming-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-status {
    width: fit-content;
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    background: #27272a;
    color: var(--text-muted);
    text-transform: uppercase;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-brand);
    border-radius: 4px;
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: right;
}

/* -- Footer -- */
footer {
    padding: 5rem 10% 2rem;
    background: black;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin: 1rem 0;
    max-width: 300px;
}

.socials {
    display: flex;
    gap: 1.5rem;
    font-size: 1.25rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter h4 {
    margin-bottom: 1rem;
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

.input-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 4px;
    flex-grow: 1;
}

.btn-brand {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.copyright {
    text-align: center;
    color: #52525b;
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* -- Responsive -- */
@media (max-width: 768px) {
    .glass-nav {
        padding: 1.5rem;
    }

    .nav-links {
        display: none;
        /* Simple hide for now */
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        padding: 0 5%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-container {
        padding: 4rem 5%;
    }

    .hero-split {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 8rem;
        gap: 2rem;
    }

    .hero-poster {
        max-width: 250px;
    }
}

/* -- Modal Styles -- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--bg-card);
    margin: 5% auto;
    padding: 3rem;
    border: 1px solid var(--primary);
    width: 90%;
    max-width: 900px;
    /* Widened as requested */
    border-radius: 16px;
    position: relative;
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.2);
    animation: modalSlide 0.4s ease;
}

@keyframes modalSlide {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* -- Character Select Styles (Concord) -- */
.char-select-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 0;
}

.char-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2.5rem;
    min-width: 200px;
    color: white;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.char-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
    z-index: -1;
}

.char-btn:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.2);
}

.char-btn:hover::before {
    width: 100%;
    opacity: 0.1;
}

/* Character Modal Card */
.char-modal-body {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-direction: row;
}

.char-portrait-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.char-portrait {
    max-height: 500px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.3));
    animation: fadeIn 0.5s ease;
}

.char-details {
    flex: 1.5;
    text-align: left;
}

.char-name {
    font-size: 3rem;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.char-title {
    color: var(--primary);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.char-stats {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: #a1a1aa;
}

.char-stats strong {
    color: white;
}

.char-bio {
    line-height: 1.7;
    color: #d4d4d8;
    font-size: 1rem;
    border-left: 2px solid var(--primary);
    padding-left: 1.5rem;
}

@media (max-width: 768px) {
    .char-modal-body {
        flex-direction: column;
        gap: 2rem;
    }

    .char-portrait {
        max-height: 300px;
    }

    .char-name {
        font-size: 2.5rem;
        text-align: center;
    }

    .char-title {
        text-align: center;
    }
}

.close-modal,
.close-contact {
    color: var(--text-muted);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover,
.close-contact:hover {
    color: white;
    /* Hover effect */
}

/* Software Grid (keep existing) */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

/* ... existing software-item styles ... */

/* Contact Form Styles */
.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    /* Gap between grid items */
}

.form-group {
    margin-bottom: 0;
    /* Grid handles spacing */
    text-align: left;
}

.form-group.full-width {
    grid-column: 1 / -1;
    /* Span full width */
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary);
    /* Purple text */
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    background: #050505;
    /* Very dark background */
    border: 1px solid rgba(139, 92, 246, 0.6);
    /* Purple border */
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #a78bfa;
    /* Lighter purple on focus */
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
    background: #0a0a0a;
}

.form-textarea {
    resize: vertical;
    min-height: 180px;
}

.close-modal {
    color: var(--text-muted);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: white;
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.software-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.software-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.software-item i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.software-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: white;
}

.software-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* -- Newsletter Modal -- */
.news-modal-body {
    text-align: center;
    padding: 2rem;
}

.news-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

.news-text {
    color: #d4d4d8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.news-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}