:root {
    --bg-dark: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-1: #ff2a5f;
    --accent-2: #6b21a8;
    --accent-glow: rgba(255, 42, 95, 0.5);
    --font-primary: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animations Tools */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

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

@keyframes glowPulse {
    0% { box-shadow: 0 0 20px var(--accent-glow); }
    50% { box-shadow: 0 0 50px var(--accent-glow); }
    100% { box-shadow: 0 0 20px var(--accent-glow); }
}

/* Scroll Animation Classes */
.observe {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.observe.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    border-radius: 8px;
    animation: glowPulse 3s infinite;
}

.navbar nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.navbar nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
}

.navbar nav a:hover:not(.btn) {
    color: var(--accent-1);
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    display: inline-block;
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
    background-size: 200% 200%;
    animation: gradientBG 5s ease infinite;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 42, 95, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 42, 95, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-2) 0%, rgba(107, 33, 168, 0) 70%);
    opacity: 0.4;
    filter: blur(80px);
    z-index: -1;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent-1), #ff9a9e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-graphics {
    position: absolute;
    right: 15%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    animation: float 6s infinite ease-in-out;
}

.shape-1 {
    width: 250px;
    height: 350px;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    opacity: 0.8;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: -20px;
    left: -50px;
    border-radius: 50%;
    background: url('assets/stellar_command_1776627484568.png') center/cover;
    animation-delay: 1s;
    border: 3px solid var(--accent-1);
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: -30px;
    left: 20px;
    border-radius: 15px;
    background: white;
    opacity: 0.1;
    animation-delay: 2s;
}

/* Games Section */
.games-section {
    padding: 100px 10%;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.game-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

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

.game-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

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

.game-image-wrapper {
    width: 100%;
    height: 250px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.game-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.filter-arcane {
    filter: hue-rotate(240deg) saturate(1.8) brightness(0.9);
}

.game-card:hover .game-image-wrapper img {
    transform: scale(1.1);
}

.game-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.game-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.play-btn {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.game-card:hover .play-btn {
    background: var(--accent-1);
    color: white;
}

/* About Section */
.about-section {
    padding: 100px 10%;
    background: linear-gradient(to bottom, var(--bg-dark), rgba(107, 33, 168, 0.1));
    position: relative;
}

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

.about-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-content h2 span {
    color: var(--accent-2);
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

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

.stat {
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    min-width: 150px;
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-5px);
    border-color: var(--accent-2);
    box-shadow: 0 10px 30px rgba(107, 33, 168, 0.2);
}

.stat h4 {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(90deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.stat p {
    font-size: 0.9rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
footer {
    background: #050508;
    padding: 80px 10% 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-secondary);
}

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

.link-group h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.link-group a:hover {
    color: var(--accent-1);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 900px) {
    .navbar { padding: 20px; }
    .navbar nav { display: none; }
    .hero { flex-direction: column; text-align: center; justify-content: center; padding-top: 120px; }
    .hero-content { margin: 0 auto; }
    .hero-buttons { justify-content: center; }
    .hero-graphics { display: none; }
    .hero h1 { font-size: 3rem; }
    .games-grid { grid-template-columns: 1fr; }
    .stats { gap: 30px; }
    .footer-links { gap: 40px; justify-content: space-between; width: 100%; }
}
