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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background: #0f1419;
    color: #fff;
}

/* Custom cursor */
body {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="8" fill="%2364b5f6" opacity="0.8"/></svg>'), auto;
}

/* Navigation Styles */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(100, 181, 246, 0.1);
}

nav.scrolled {
    background: rgba(15, 20, 25, 0.98);
    box-shadow: 0 2px 20px rgba(100, 181, 246, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #64b5f6;
    text-decoration: none;
    position: relative;
}

.logo::after {
    margin-left: 0.5rem;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { 
        transform: rotate(0deg) scale(1);
        filter: brightness(1);
    }
    25% { 
        transform: rotate(90deg) scale(1.1);
        filter: brightness(1.2);
    }
    50% { 
        transform: rotate(180deg) scale(1);
        filter: brightness(1.4);
    }
    75% { 
        transform: rotate(270deg) scale(1.1);
        filter: brightness(1.2);
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #64b5f6, #42a5f5, #90caf9);
    transition: width 0.3s ease;
}

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

.nav-links a:hover {
    color: #64b5f6;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f1419 0%, #1e3a8a 30%, #1e40af 70%, #3b82f6 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="snowflakes" patternUnits="userSpaceOnUse" width="100" height="100"><path d="M20 20 L24 16 M20 20 L16 16 M20 20 L20 14 M20 20 L20 26 M20 20 L24 24 M20 20 L16 24" stroke="%2364b5f6" stroke-width="0.5" opacity="0.3"/><path d="M70 40 L74 36 M70 40 L66 36 M70 40 L70 34 M70 40 L70 46 M70 40 L74 44 M70 40 L66 44" stroke="%2390caf9" stroke-width="0.3" opacity="0.2"/><path d="M40 70 L44 66 M40 70 L36 66 M40 70 L40 64 M40 70 L40 76 M40 70 L44 74 M40 70 L36 74" stroke="%23bbdefb" stroke-width="0.4" opacity="0.25"/></pattern></defs><rect width="100" height="100" fill="url(%23snowflakes)"/></svg>') repeat;
    animation: snowfall 15s linear infinite;
    z-index: 1;
}

@keyframes snowfall {
    0% { transform: translateY(-100px) translateX(0); }
    100% { transform: translateY(100vh) translateX(-100px); }
}

.hero-logo {
    max-width: 700px; /* adjust size as needed */
    height: auto;
    display: block;
    transform: translateY(50px); /* moves logo down without pushing other elements */
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #64b5f6, #90caf9, #bbdefb, #e3f2fd);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: frostedShimmer 4s ease infinite;
    text-shadow: 0 0 30px rgba(100, 181, 246, 0.3);
}

@keyframes frostedShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #64b5f6, #42a5f5);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.3);
    border: none;
    cursor: pointer;
}

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

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(100, 181, 246, 0.5);
}

/* Floating snowflakes */
.snowflake {
    position: absolute;
    color: #64b5f6;
    font-size: 1rem;
    animation: snowflake-fall 8s infinite linear;
    opacity: 0.7;
}

@keyframes snowflake-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Titles */
.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #64b5f6;
    position: relative;
    text-shadow: 0 0 20px rgba(100, 181, 246, 0.3);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #64b5f6, #90caf9, #bbdefb);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(100, 181, 246, 0.5);
}

/* About Section */
.about {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0f1419 0%, #1a237e 100%);
    position: relative;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap; /* makes it responsive */
}

.about-image img {
    width: 100%;
    border-radius: 25px;
    max-width: 460px;
    object-fit: cover;
}

.about-text {
    flex: 1;
    text-align: justify;
}

.about-text b {
    color: #64b5f6;
}

.about p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Games Section */
.games {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0f1419 0%, #1e3a8a 50%, #1e40af 100%);
}

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

.game-card {
    background: rgba(100, 181, 246, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(100, 181, 246, 0.2);
    cursor: pointer;

    display: flex;
    flex-direction: column;
}


.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #64b5f6, #90caf9, #bbdefb);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.game-card:hover::before {
    transform: scaleX(1);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(100, 181, 246, 0.3);
}

.game-image {
    aspect-ratio: 3 / 4; /* adjust as needed */
    background-size: cover;
    background-position: center;
}

.game-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-title {
    font-size: 1.5rem;
    color: #90caf9;
    margin-bottom: 1rem;
}

.game-content p {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.game-details-btn {
    background: linear-gradient(135deg, #64b5f6, #42a5f5);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    align-self: flex-start;
    margin-top: auto;
}

.game-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(100, 181, 246, 0.4);
}

/* Simple Game Cards (without modals) */
.simple-card {
    cursor: default;
}

.simple-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(100, 181, 246, 0.3);
}

.simple-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.simple-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, #64b5f6, #42a5f5);
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.simple-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(100, 181, 246, 0.4);
}

.simple-link.steam {
    background: linear-gradient(135deg, #1b2838, #2a475e);
}

.simple-link.itch {
    background: linear-gradient(135deg, #fa5c5c, #ff7979);
}

.simple-link.epic {
    background: linear-gradient(135deg, #0078f2, #00a8ff);
}

.simple-link.playstation {
    background: linear-gradient(135deg, #003087, #0070d1);
}

.simple-link.xbox {
    background: linear-gradient(135deg, #107c10, #16c60c);
}

.simple-link.nintendo {
    background: linear-gradient(135deg, #e60012, #ff6b6b);
}

.coming-soon-badge {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
    margin-top: auto;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.simple-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(100, 181, 246, 0.05);
    border-radius: 20px;
    border: 2px dashed rgba(100, 181, 246, 0.3);
    pointer-events: none;
}

/* Mobile adjustments for simple cards */
@media (max-width: 768px) {
    .simple-links {
        flex-direction: column;
    }
    
    .simple-link {
        justify-content: center;
        width: 100%;
    }
    
    .coming-soon-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.game-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background: linear-gradient(135deg, #0f1419 0%, #1a237e 100%);
    border-radius: 20px;
    border: 2px solid rgba(100, 181, 246, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(100, 181, 246, 0.2);
}

.modal-overlay.active .game-modal {
    transform: translate(-50%, -50%) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-content {
    height: 100%;
    overflow-y: auto;
    padding: 2rem;
}

.modal-header {
    margin-bottom: 2rem;
    text-align: center;
}

.modal-title {
    font-size: 2.5rem;
    color: #64b5f6;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(100, 181, 246, 0.3);
}

.game-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.platform-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #64b5f6, #42a5f5);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.platform-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(100, 181, 246, 0.4);
}

.platform-link.steam {
    background: linear-gradient(135deg, #1b2838, #2a475e);
}

.platform-link.itch {
    background: linear-gradient(135deg, #fa5c5c, #ff7979);
}

.platform-link.epic {
    background: linear-gradient(135deg, #0078f2, #00a8ff);
}

/* Modal Body */
.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Media Carousel */
.media-section {
    background: rgba(100, 181, 246, 0.1);
    border-radius: 15px;
    padding: 1rem;
    border: 1px solid rgba(100, 181, 246, 0.2);
}

.media-carousel {
    position: relative;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.carousel-item iframe {
    width: 100%;
    height: 300px;
    border: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(100, 181, 246, 0.8);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(100, 181, 246, 1);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(100, 181, 246, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #64b5f6;
    transform: scale(1.2);
}

/* Game Info */
.game-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.game-description {
    background: rgba(100, 181, 246, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #64b5f6;
}

.game-description h3 {
    color: #90caf9;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.game-features {
    background: rgba(100, 181, 246, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
}

.game-features h3 {
    color: #90caf9;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.features-list li:before {
    content: '❄️';
    position: absolute;
    left: 0;
    top: 0.5rem;
}

.game-specs {
    background: rgba(100, 181, 246, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
}

.game-specs h3 {
    color: #90caf9;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(100, 181, 246, 0.1);
}

.spec-label {
    color: #90caf9;
    font-weight: bold;
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
    .game-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    .modal-title {
        font-size: 2rem;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .game-links {
        flex-direction: column;
        align-items: center;
    }
    
    .platform-link {
        width: 200px;
        justify-content: center;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-item img,
    .carousel-item iframe {
        height: 200px;
    }
}

/* Contact Section */
.contact {
    padding: 3rem 0;
    background: #0f1419;
    position: relative;
}

.contact::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="20" cy="30" r="1" fill="%2364b5f6" opacity="0.1"><animate attributeName="opacity" values="0.1;0.3;0.1" dur="3s" repeatCount="indefinite"/></circle><circle cx="80" cy="20" r="1.5" fill="%2390caf9" opacity="0.15"><animate attributeName="opacity" values="0.15;0.4;0.15" dur="4s" repeatCount="indefinite"/></circle><circle cx="60" cy="70" r="1.2" fill="%23bbdefb" opacity="0.12"><animate attributeName="opacity" values="0.12;0.35;0.12" dur="3.5s" repeatCount="indefinite"/></circle></svg>') repeat;
    z-index: 1;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact p {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #64b5f6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.contact a {
    color: inherit;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #90caf9;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(100, 181, 246, 0.1);
    border: 2px solid rgba(100, 181, 246, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #64b5f6;
    box-shadow: 0 0 15px rgba(100, 181, 246, 0.3);
    background: rgba(100, 181, 246, 0.15);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0f1419 0%, #1a237e 100%);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(100, 181, 246, 0.2);
}

/* Ice crystal effects */
.ice-crystal {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    animation: crystal-shimmer 4s ease-in-out infinite;
}

.ice-crystal:nth-child(1) {
    border-width: 5px 8.7px 5px 0;
    border-color: transparent #64b5f6 transparent transparent;
    top: 20%;
    left: 10%;
}

.ice-crystal:nth-child(2) {
    border-width: 3px 5.2px 3px 0;
    border-color: transparent #90caf9 transparent transparent;
    top: 60%;
    right: 15%;
}

.ice-crystal:nth-child(3) {
    border-width: 4px 6.9px 4px 0;
    border-color: transparent #bbdefb transparent transparent;
    bottom: 30%;
    left: 20%;
}

@keyframes crystal-shimmer {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .about-grid,
    .games-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.5rem;
    }
}