/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', cursive;
    background-color: #1A0B2E;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header and Navigation */
header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #7B68EE;
    box-shadow: 0 2px 20px rgba(123, 104, 238, 0.3);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo h1 {
    color: #7B68EE;
    font-size: 1.5rem;
    animation: logoGlow 2s ease-in-out infinite alternate;
    text-shadow: 0 0 10px rgba(123, 104, 238, 0.5);
    transition: all 0.3s ease;
}

@keyframes logoGlow {
    0% { text-shadow: 0 0 10px rgba(123, 104, 238, 0.5); }
    100% { text-shadow: 0 0 20px rgba(123, 104, 238, 0.8), 0 0 30px rgba(123, 104, 238, 0.4); }
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7B68EE, #6A5ACD);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #7B68EE;
    transform: translateY(-2px);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1A0B2E 0%, #2D1B4E 50%, #1A0B2E 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%237B68EE" opacity="0.08"/></svg>') repeat,
        radial-gradient(circle at 20% 20%, rgba(123, 104, 238, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(106, 90, 205, 0.1) 0%, transparent 50%);
    animation: twinkle 4s ease-in-out infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(123, 104, 238, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(123, 104, 238, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

@keyframes twinkle {
    0% { opacity: 0.08; }
    100% { opacity: 0.15; }
}

.hero-content {
    flex: 1;
    padding: 0 2rem;
    z-index: 2;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #7B68EE;
    position: relative;
}

.typing-effect::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.typing-effect::after {
    content: '|';
    animation: blink 1s infinite, cursorGlow 1s ease-in-out infinite alternate;
}

@keyframes cursorGlow {
    0% { text-shadow: 0 0 5px rgba(123, 104, 238, 0.5); }
    100% { text-shadow: 0 0 10px rgba(123, 104, 238, 0.8); }
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.8rem;
    transition: all 0.3s;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn.primary {
    background-color: #7B68EE;
    color: #fff;
    box-shadow: 0 4px 15px rgba(123, 104, 238, 0.4);
}

.btn.primary:hover {
    background: linear-gradient(145deg, #6A5ACD, #7B68EE);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(123, 104, 238, 0.6);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 15px rgba(123, 104, 238, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(123, 104, 238, 0.8); }
    100% { box-shadow: 0 4px 15px rgba(123, 104, 238, 0.4); }
}

.btn.secondary {
    background-color: transparent;
    color: #7B68EE;
    border: 2px solid #7B68EE;
}

.btn.secondary:hover {
    background-color: #7B68EE;
    color: #fff;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #7B68EE;
}

.stat-label {
    font-size: 0.8rem;
    color: #ccc;
}

.hero-image {
    flex: 1;
    text-align: center;
    padding: 0 2rem;
    z-index: 2;
    position: relative;
}

.marble-container {
    position: relative;
    display: inline-block;
}

.marble {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at 30% 30%, #7B68EE, #6A5ACD);
    border-radius: 50%;
    box-shadow:
        0 0 50px rgba(123, 104, 238, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
    animation: roll 3s ease-in-out infinite, glow 2s ease-in-out infinite alternate;
    position: relative;
    transition: all 0.3s ease;
}

@keyframes glow {
    0% { box-shadow: 0 0 50px rgba(123, 104, 238, 0.5), inset 0 0 30px rgba(255, 255, 255, 0.1); }
    100% { box-shadow: 0 0 80px rgba(123, 104, 238, 0.8), inset 0 0 50px rgba(255, 255, 255, 0.2); }
}

@keyframes roll {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.05); }
    50% { transform: rotate(180deg) scale(1.1); }
    75% { transform: rotate(270deg) scale(1.05); }
}

.sparkles {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    pointer-events: none;
}

.sparkles::before,
.sparkles::after {
    content: '✨';
    position: absolute;
    font-size: 2rem;
    animation: sparkle 2s ease-in-out infinite;
}

.sparkles::before {
    top: 10px;
    left: 10px;
    animation-delay: 0s;
}

.sparkles::after {
    bottom: 10px;
    right: 10px;
    animation-delay: 1s;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-item {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
}

.floating-item:nth-child(1) {
    top: 20%;
    left: 20%;
}

.floating-item:nth-child(2) {
    top: 60%;
    right: 15%;
}

.floating-item:nth-child(3) {
    bottom: 20%;
    left: 15%;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

/* Gameplay Section */
.gameplay {
    padding: 80px 0;
    background: linear-gradient(135deg, #2D1B4E 0%, #1A0B2E 100%);
    position: relative;
    overflow: hidden;
}

.gameplay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="50,0 100,50 50,100 0,50" fill="%23ff6b35" opacity="0.03"/></svg>') repeat;
    pointer-events: none;
}

.gameplay h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #7B68EE;
    position: relative;
    z-index: 2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
    perspective: 1000px;
}

.feature-card {
    background: linear-gradient(145deg, #2D1B4E, #1A0B2E);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid #7B68EE;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(123, 104, 238, 0.15), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #7B68EE, #6A5ACD, #7B68EE);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 25px 80px rgba(123, 104, 238, 0.4);
}

.feature-card i {
    font-size: 3.5rem;
    color: #7B68EE;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.feature-card:hover i {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 20px rgba(123, 104, 238, 0.5));
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 20%, 50%, 80%, 100% { transform: scale(1.2) rotate(10deg) translateY(0); }
    40% { transform: scale(1.2) rotate(10deg) translateY(-10px); }
    60% { transform: scale(1.2) rotate(10deg) translateY(-5px); }
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
}

.feature-card p {
    color: #ccc;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.hover-reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #7B68EE;
    font-weight: bold;
}

.feature-card:hover .hover-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Levels Section */
.levels {
    padding: 80px 0;
    background: linear-gradient(135deg, #1A0B2E 0%, #2D1B4E 100%);
    position: relative;
    overflow: hidden;
}

.levels::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="10" y="10" width="80" height="80" rx="5" fill="%23ff6b35" opacity="0.03"/></svg>') repeat;
    pointer-events: none;
}

.levels h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #7B68EE;
    position: relative;
    z-index: 2;
}

.level-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
    perspective: 1000px;
}

.level-card {
    background: linear-gradient(145deg, #2D1B4E, #1A0B2E);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid #7B68EE;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.level-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(123, 104, 238, 0.15), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.level-card:hover::before {
    left: 100%;
}

.level-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #7B68EE, #6A5ACD, #7B68EE);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.level-card:hover::after {
    opacity: 1;
}

.level-card:hover {
    transform: translateY(-15px) scale(1.03) rotateY(5deg);
    box-shadow: 0 25px 80px rgba(123, 104, 238, 0.4);
}

.level-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.level-card:hover img {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.1);
}

.level-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: #7B68EE;
    font-size: 1.3rem;
    position: relative;
    z-index: 2;
}

.level-card p {
    padding: 0 1.5rem 1rem;
    color: #ccc;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.preview-btn {
    display: block;
    margin: 0 1.5rem 1.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(145deg, #7B68EE, #6A5ACD);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    position: relative;
    z-index: 2;
}

.level-card:hover .preview-btn {
    opacity: 1;
    transform: translateY(0);
}

.preview-btn:hover {
    background: linear-gradient(145deg, #6A5ACD, #7B68EE);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(123, 104, 238, 0.4);
}

/* Steam Section */
.steam {
    padding: 80px 0;
    background: linear-gradient(135deg, #1A0B2E 0%, #2D1B4E 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.steam::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(123, 104, 238, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.steam h2 {
    margin-bottom: 2rem;
    color: #7B68EE;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.steam p {
    margin-bottom: 2rem;
    font-size: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    color: #ccc;
    line-height: 1.6;
}

.wishlist-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.counter-number {
    font-size: 3rem;
    font-weight: bold;
    color: #7B68EE;
    text-shadow: 0 0 20px rgba(123, 104, 238, 0.5);
    animation: counterGlow 2s ease-in-out infinite alternate;
}

.counter-label {
    font-size: 1.2rem;
    color: #ccc;
    margin-top: 0.5rem;
}

@keyframes counterGlow {
    0% { text-shadow: 0 0 20px rgba(123, 104, 238, 0.5); }
    100% { text-shadow: 0 0 30px rgba(123, 104, 238, 0.8); }
}

.steam-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.steam-btn {
    background: linear-gradient(145deg, #171a21, #0f1419);
    color: #fff;
    border: 2px solid #171a21;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.steam-btn:hover {
    background: linear-gradient(145deg, #fff, #f0f0f0);
    color: #171a21;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
    animation: steamPulse 1s ease-in-out infinite;
}

@keyframes steamPulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4); }
    50% { box-shadow: 0 10px 40px rgba(123, 104, 238, 0.6); }
}

.social-btn {
    background: transparent;
    color: #7B68EE;
    border: 2px solid #7B68EE;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.social-btn:hover {
    background: #7B68EE;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(123, 104, 238, 0.4);
}

/* Trailer Section */
.trailer {
    padding: 80px 0;
    background: linear-gradient(135deg, #2D1B4E 0%, #1A0B2E 100%);
    position: relative;
    overflow: hidden;
}

.trailer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(123, 104, 238, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.trailer h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #7B68EE;
    position: relative;
    z-index: 2;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
    border: 3px solid #7B68EE;
}

.video-container::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #7B68EE, #6A5ACD, #7B68EE);
    border-radius: 23px;
    z-index: -1;
    opacity: 0.7;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(123, 104, 238, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(123, 104, 238, 0.5);
    animation: playPulse 2s ease-in-out infinite;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(106, 90, 205, 0.9);
    box-shadow: 0 0 40px rgba(106, 90, 205, 0.7);
}

@keyframes playPulse {
    0% { box-shadow: 0 0 30px rgba(123, 104, 238, 0.5); }
    50% { box-shadow: 0 0 50px rgba(123, 104, 238, 0.8); }
    100% { box-shadow: 0 0 30px rgba(123, 104, 238, 0.5); }
}

.video-container:hover .video-thumbnail {
    transform: scale(1.02);
}

.video-container iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.video-container:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 80px rgba(123, 104, 238, 0.3);
}

/* Screenshots Section */
.screenshots {
    padding: 80px 0;
    background: linear-gradient(135deg, #1A0B2E 0%, #2D1B4E 100%);
    position: relative;
    overflow: hidden;
}

.screenshots::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="20" y="20" width="60" height="60" rx="3" fill="%23ff6b35" opacity="0.03"/></svg>') repeat;
    pointer-events: none;
}

.screenshots h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #7B68EE;
    position: relative;
    z-index: 2;
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.screenshot-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid #7B68EE;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.screenshot-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(123, 104, 238, 0.15), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.screenshot-item:hover::before {
    left: 100%;
}

.screenshot-item::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #7B68EE, #6A5ACD, #7B68EE);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.screenshot-item:hover::after {
    opacity: 1;
}

.screenshot-item:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 20px 60px rgba(123, 104, 238, 0.4);
}

.screenshot-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.screenshot-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.1) saturate(1.2);
}

.screenshot-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 2.5rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    z-index: 3;
}

.screenshot-item:hover .screenshot-overlay {
    transform: translateY(0);
}

.screenshot-overlay h4 {
    color: #fff;
    margin: 0;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Newsletter Section */
.newsletter {
    padding: 80px 0;
    background: linear-gradient(135deg, #7B68EE 0%, #6A5ACD 50%, #7B68EE 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%231A0B2E" opacity="0.1"/></svg>') repeat;
    pointer-events: none;
}

.newsletter h2 {
    color: #fff;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.newsletter p {
    color: #fff;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.newsletter-form input {
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    width: 300px;
    font-family: 'Press Start 2P', cursive;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: linear-gradient(145deg, #000, #2d2d2d);
    color: #7B68EE;
    border: 2px solid #7B68EE;
    border-radius: 10px;
    font-size: 0.8rem;
    font-family: 'Press Start 2P', cursive;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.newsletter-form button:hover {
    background: linear-gradient(145deg, #fff, #f0f0f0);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 104, 238, 0.4);
}

.privacy-note {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 2;
    max-width: 400px;
    margin: 0 auto;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: linear-gradient(135deg, #2D1B4E 0%, #1A0B2E 100%);
}

.faq h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #7B68EE;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 2px solid #7B68EE;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(145deg, #1A0B2E, #2D1B4E);
    color: #fff;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-family: 'Press Start 2P', cursive;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #7B68EE;
    border-radius: 10px;
}

.faq-question:hover {
    background: linear-gradient(145deg, #2D1B4E, #1A0B2E);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(123, 104, 238, 0.3);
}

.faq-question::after {
    content: '+';
    float: right;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: linear-gradient(145deg, #2D1B4E, #1A0B2E);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 1rem 1.5rem;
    margin: 0;
    color: #ccc;
}

/* Team Section */
.team {
    padding: 80px 0;
    background: linear-gradient(135deg, #2D1B4E 0%, #1A0B2E 100%);
    position: relative;
}

.team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23ff6b35" opacity="0.05"/></svg>') repeat;
    pointer-events: none;
}

.team h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #7B68EE;
    position: relative;
    z-index: 2;
}

.team-intro {
    text-align: center;
    color: #ccc;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.team-member {
    background: linear-gradient(145deg, #1A0B2E, #2D1B4E);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid #7B68EE;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(123, 104, 238, 0.15), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.team-member:hover::before {
    left: 100%;
}

.team-member::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #7B68EE, #6A5ACD, #7B68EE);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-member:hover::after {
    opacity: 1;
}

.team-member:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(123, 104, 238, 0.4);
}

.member-avatar {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.team-member:hover .member-avatar {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(123, 104, 238, 0.5));
}

.team-member h3 {
    color: #7B68EE;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    font-weight: bold;
    position: relative;
    z-index: 2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-align: center;
}

.team-member p {
    color: #ccc;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.social-links a {
    color: #7B68EE;
    font-size: 1.6rem;
    transition: all 0.3s ease;
    padding: 0.75rem;
    border-radius: 50%;
    border: 2px solid #7B68EE;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    box-sizing: border-box;
}

.social-links a:hover {
    color: #1a1a1a;
    background-color: #7B68EE;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(123, 104, 238, 0.4);
}

/* Mechanics Section */
.mechanics {
    padding: 80px 0;
    background: linear-gradient(135deg, #2D1B4E 0%, #1A0B2E 100%);
    position: relative;
    overflow: hidden;
}

.mechanics::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,10 L90,90 L10,90 Z" fill="%23ff6b35" opacity="0.03"/></svg>') repeat;
    pointer-events: none;
}

.mechanics h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #7B68EE;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.mechanics-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.mechanic-explanation {
    background: linear-gradient(145deg, #2D1B4E, #1A0B2E);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid #7B68EE;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.mechanic-explanation::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(123, 104, 238, 0.15), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.mechanic-explanation:hover::before {
    left: 100%;
}

.mechanic-explanation::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #7B68EE, #6A5ACD, #7B68EE);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mechanic-explanation:hover::after {
    opacity: 1;
}

.mechanic-explanation:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(123, 104, 238, 0.4);
}

.mechanic-explanation h3 {
    color: #7B68EE;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    z-index: 2;
}

.mechanic-explanation p {
    color: #ccc;
    line-height: 1.7;
    position: relative;
    z-index: 2;
    flex-grow: 1;
}

.demo-container {
    background: linear-gradient(145deg, #1A0B2E, #2D1B4E);
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid #7B68EE;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.demo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(123, 104, 238, 0.15), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.demo-container:hover::before {
    left: 100%;
}

.demo-container::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #7B68EE, #6A5ACD, #7B68EE);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.demo-container:hover::after {
    opacity: 1;
}

.demo-container:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(123, 104, 238, 0.4);
}

.physics-demo {
    position: relative;
    width: 100%;
    height: 150px;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.demo-marble {
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 30% 30%, #7B68EE, #6A5ACD);
    border-radius: 50%;
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
    animation: demo-roll 4s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(123, 104, 238, 0.5);
    position: relative;
    z-index: 3;
}

.demo-track {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    height: 12px;
    background: linear-gradient(90deg, #666, #999, #666);
    border-radius: 6px;
    position: relative;
    z-index: 2;
}

.demo-obstacle {
    position: absolute;
    width: 20px;
    height: 30px;
    background: #7B68EE;
    border-radius: 5px;
    top: -18px;
    animation: obstacleGlow 1s ease-in-out infinite alternate;
}

.demo-obstacle:nth-child(1) { left: 40%; }
.demo-obstacle:nth-child(2) { left: 60%; }

@keyframes obstacleGlow {
    0% { box-shadow: 0 0 10px rgba(123, 104, 238, 0.5); }
    100% { box-shadow: 0 0 20px rgba(123, 104, 238, 0.8); }
}

@keyframes demo-roll {
    0% { left: 10%; transform: translateY(-50%) rotate(0deg); }
    25% { left: 30%; transform: translateY(-50%) rotate(90deg); }
    50% { left: 70%; transform: translateY(-50%) rotate(180deg); }
    75% { left: 80%; transform: translateY(-50%) rotate(270deg); }
    100% { left: 10%; transform: translateY(-50%) rotate(360deg); }
}

.level-generator {
    text-align: center;
    position: relative;
    z-index: 2;
}

.generate-btn {
    background: linear-gradient(145deg, #7B68EE, #6A5ACD);
    color: #fff;
    border: 2px solid #7B68EE;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    font-family: 'Press Start 2P', cursive;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.generate-btn:hover {
    background: linear-gradient(145deg, #fff, #f0f0f0);
    color: #7B68EE;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(123, 104, 238, 0.4);
}

.generated-level {
    margin-top: 2rem;
    min-height: 120px;
    border: 2px dashed #7B68EE;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    position: relative;
    z-index: 2;
    background: rgba(123, 104, 238, 0.05);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.generated-level:hover {
    background: rgba(123, 104, 238, 0.1);
    border-color: #6A5ACD;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #2D1B4E 0%, #1A0B2E 100%);
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #7B68EE;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h3 {
    color: #7B68EE;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #ccc;
    margin-bottom: 2rem;
}

.contact-details p {
    color: #fff;
    margin-bottom: 0.5rem;
}

.contact-details i {
    margin-right: 0.5rem;
    color: #7B68EE;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid #7B68EE;
    border-radius: 5px;
    background: linear-gradient(145deg, #2D1B4E, #1A0B2E);
    color: #fff;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #fff;
    box-shadow: 0 0 10px rgba(123, 104, 238, 0.5);
}

/* Press Kit Section */
.presskit {
    padding: 80px 0;
    background: linear-gradient(135deg, #1A0B2E 0%, #2D1B4E 100%);
}

.presskit h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #7B68EE;
}

.press-intro {
    text-align: center;
    color: #ccc;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.press-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.press-card {
    background: linear-gradient(145deg, #2D1B4E, #1A0B2E);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid #7B68EE;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-height: 350px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.press-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(123, 104, 238, 0.15), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.press-card:hover::before {
    left: 100%;
}

.press-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #7B68EE, #6A5ACD, #7B68EE);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.press-card:hover::after {
    opacity: 1;
}

.press-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(123, 104, 238, 0.4);
}

.press-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 3rem;
    color: #7B68EE;
    margin-bottom: 1rem;
}

.press-card h3 {
    color: #7B68EE;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.press-card p {
    color: #ccc;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.download-btn {
    display: inline-block;
    background-color: #7B68EE;
    color: #fff;
    padding: 0.75rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 0.8rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.download-btn:hover {
    background-color: #6A5ACD;
    transform: translateY(-2px);
}

.facts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    text-align: left;
    margin-top: auto;
}

.fact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem;
    background: linear-gradient(145deg, #1A0B2E, #2D1B4E);
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #7B68EE;
    transition: all 0.3s ease;
}

.fact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(123, 104, 238, 0.3);
}

.fact-label {
    color: #ccc;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.fact-value {
    color: #7B68EE;
    font-weight: bold;
    word-break: break-word;
}

.quotes-container {
    margin-top: auto;
}

.quotes-container blockquote {
    background: linear-gradient(145deg, #2D1B4E, #1A0B2E);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #7B68EE;
    margin-bottom: 1rem;
    color: #fff;
    font-style: italic;
    text-align: left;
    line-height: 1.6;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #7B68EE;
    transition: all 0.3s ease;
}

.quotes-container blockquote:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(123, 104, 238, 0.3);
}

.quotes-container cite {
    display: block;
    text-align: right;
    margin-top: 1rem;
    color: #7B68EE;
    font-style: normal;
}

.contact-info {
    text-align: left;
    margin-top: auto;
}

.contact-item {
    margin-bottom: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.contact-item strong {
    color: #7B68EE;
    display: block;
    margin-bottom: 0.25rem;
}

.contact-item a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    word-break: break-all;
}

.contact-item a:hover {
    color: #7B68EE;
}

.contact-note {
    color: #ccc;
    font-size: 0.8rem;
    margin-top: 1rem;
    font-style: italic;
}

/* Blog Section */
.blog {
    padding: 80px 0;
    background: linear-gradient(135deg, #1A0B2E 0%, #2D1B4E 100%);
}

.blog h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #7B68EE;
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-post {
    background: linear-gradient(145deg, #2D1B4E, #1A0B2E);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid #7B68EE;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.blog-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(123, 104, 238, 0.15), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.blog-post:hover::before {
    left: 100%;
}

.blog-post::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #7B68EE, #6A5ACD, #7B68EE);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.blog-post:hover::after {
    opacity: 1;
}

.blog-post:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(123, 104, 238, 0.4);
}

.blog-post:hover {
    transform: translateY(-5px);
}

.post-image {
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-post:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    color: #7B68EE;
    margin-bottom: 0.5rem;
}

.post-meta {
    color: #ccc;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.post-content p {
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    color: #7B68EE;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.read-more:hover {
    color: #fff;
}

.blog-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.nav-btn {
    background-color: #7B68EE;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn:hover:not(:disabled) {
    background-color: #6A5ACD;
    transform: translateY(-2px);
}

.nav-btn:disabled {
    background-color: #666;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #2D1B4E, #1A0B2E);
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #7B68EE;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-number.active {
    background: linear-gradient(145deg, #7B68EE, #6A5ACD);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(123, 104, 238, 0.4);
}

.page-number:hover {
    background: linear-gradient(145deg, #7B68EE, #6A5ACD);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(123, 104, 238, 0.4);
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(123, 104, 238, 0.5);
    transition: all 0.3s ease;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(123, 104, 238, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    top: -20px;
    right: -20px;
}

.lightbox-prev {
    top: 50%;
    left: -70px;
    transform: translateY(-50%);
}

.lightbox-next {
    top: 50%;
    right: -70px;
    transform: translateY(-50%);
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(106, 90, 205, 0.8);
    transform: scale(1.1);
}

.lightbox-caption {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    text-align: center;
    color: #7B68EE;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Footer */
footer {
    background: linear-gradient(135deg, #000 0%, #1A0B2E 100%);
    padding: 2rem 0;
    text-align: center;
    border-top: 2px solid #7B68EE;
    position: relative;
}

footer::before {
    content: '🎮';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    background: linear-gradient(135deg, #000 0%, #1A0B2E 100%);
    padding: 0 1rem;
    border-radius: 50%;
    border: 2px solid #7B68EE;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.8rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #7B68EE;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #7B68EE, #6A5ACD);
    z-index: 1001;
    transition: width 0.3s ease;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(123, 104, 238, 0.8);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(123, 104, 238, 0.3);
}

.back-to-top:hover {
    background: rgba(106, 90, 205, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(106, 90, 205, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        padding: 1rem;
        position: relative;
    }

    .nav-toggle {
        display: block !important;
        background: none;
        border: none;
        color: #7B68EE;
        font-size: 1.5rem;
        cursor: pointer;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        transition: all 0.3s ease;
    }

    .nav-toggle:hover {
        color: #6A5ACD;
        transform: translateY(-50%) scale(1.1);
    }

    .nav-menu {
        margin-top: 1rem;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        border-radius: 10px;
        padding: 1rem;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 5px 20px rgba(123, 104, 238, 0.3);
    }

    .nav-menu.active {
        max-height: 300px;
    }

    .nav-menu li {
        margin: 0.5rem 0;
        text-align: center;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 0 40px;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .marble {
        width: 150px;
        height: 150px;
    }

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

    .level-showcase {
        grid-template-columns: 1fr;
    }

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

    .steam-links {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form input {
        width: 100%;
        max-width: 300px;
    }

    .video-container iframe {
        height: 250px;
    }

    .mechanics-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .press-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .press-card {
        padding: 2rem;
        min-height: auto;
    }

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

    .fact {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .fact-value {
        text-align: left;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-links a {
        margin: 0;
    }
}

/* Additional mobile improvements */
@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1rem;
    }

    .hero-content p {
        font-size: 0.8rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.7rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-card i {
        font-size: 2rem;
    }

    .level-card h3 {
        font-size: 1rem;
    }

    .level-card p {
        font-size: 0.8rem;
    }

    .team-member {
        padding: 1.5rem;
    }

    .member-avatar {
        font-size: 3rem;
    }

    .faq-question {
        padding: 1rem;
        font-size: 0.7rem;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.7rem;
    }
}

/* Additional mobile improvements */
@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.2rem;
    }

    .hero-content p {
        font-size: 0.8rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.7rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-card i {
        font-size: 2rem;
    }

    .level-card h3 {
        font-size: 1rem;
    }

    .level-card p {
        font-size: 0.8rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn.primary {
        background-color: #fff;
        color: #000;
        border: 2px solid #000;
    }

    .btn.secondary {
        background-color: #fff;
        color: #000;
        border: 2px solid #000;
    }
}

/* Dark mode support (if user prefers dark) */
@media (prefers-color-scheme: dark) {
    /* Already dark, but ensure high contrast */
    body {
        background-color: #000;
    }
}