:root {
    --primary-color: #0f2027;
    --secondary-color: #203a43;
    --accent-color: #2c5364;
    --highlight-color: #e74c3c;
    --text-primary: #ffffff;
    --text-secondary: #b2bec3;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --font-main: 'Montserrat', sans-serif;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: var(--primary-color);
    color: var(--text-primary);
    scroll-behavior: smooth;
    line-height: 1.6;
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(to bottom, #0f2027, #203a43, #2c5364); 
}

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

.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(to right, #fff, #bdc3c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header */
.header {
    background-color: rgba(15, 32, 39, 0.9);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--highlight-color);
    transition: width 0.3s ease;
}

.nav a:hover {
    color: var(--text-primary);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    flex-direction: column;
}

.hero-content h2 {
    font-size: 5rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 50px;
    color: var(--text-secondary);
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    border: 2px solid var(--text-primary);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--text-primary);
    z-index: -1;
    transition: width 0.3s ease;
}

.btn:hover {
    color: var(--primary-color);
}

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

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-down span {
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--text-secondary);
    border-right: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    margin: -5px;
    animation: scroll 2s infinite;
    opacity: 0;
}

.scroll-down span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-down span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scroll {
    0% { opacity: 0; transform: rotate(45deg) translate(-20px, -20px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(20px, 20px); }
}

/* Games Section */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.game-card {
    background-color: transparent;
    height: 400px;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.game-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    padding: 20px;
    box-sizing: border-box;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.card-front h4 {
    font-size: 1.5rem;
    margin: 20px 0 10px;
}

.card-front p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--highlight-color);
}

.card-back {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: rotateY(180deg);
}

.card-btn {
    margin-top: 20px;
    padding: 10px 25px;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.card-btn:hover {
    background: var(--text-primary);
    color: var(--primary-color);
}

/* Philosophy Section */
.philosophy-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.philosophy-item {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 40px 20px;
    background: var(--glass-bg);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
}

.philosophy-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.philosophy-item i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--highlight-color);
}

.philosophy-item h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.philosophy-item p {
    color: var(--text-secondary);
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Contact Section */
.contact {
    text-align: center;
}

.contact-box {
    margin-top: 40px;
    display: inline-flex;
    align-items: center;
    padding: 20px 40px;
    background: var(--glass-bg);
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
}

.contact-box:hover {
    transform: scale(1.05);
    border-color: var(--highlight-color);
}

.contact-box i {
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--highlight-color);
}

.email-link {
    font-size: 1.2rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: #0b171c;
    padding: 50px 0;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.copyright {
    color: #5d6d75;
    font-size: 0.8rem;
    margin-top: 20px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .nav a {
        margin: 0;
    }

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

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