:root {
    --primary-color: #FA8072;
    /* Salmon/Fox Orange */
    --primary-hover: #E96D5F;
    --text-dark: #F8F9FA;
    --text-light: #A0A0B0;
    --bg-white: #2A2A32;
    --bg-offwhite: #1E1E24;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 40px rgba(250, 128, 114, 0.25);
    --border-radius: 24px;
    --border-light: rgba(255, 255, 255, 0.05);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar tweaks */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-offwhite);
}

::-webkit-scrollbar-thumb {
    background: #d1d1e0;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(30, 30, 36, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

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

.header-logo {
    height: 48px;
    object-fit: contain;
    transition: var(--transition);
}

.header-logo:hover {
    transform: scale(1.05) rotate(-2deg);
}

.nav {
    display: flex;
    gap: 40px;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    border-radius: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

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

/* Typography */
.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.section-text {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 8px 20px rgba(250, 128, 114, 0.35);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(250, 128, 114, 0.45);
}

.btn-secondary {
    background: var(--text-dark);
    color: #1E1E24;
}

.btn-secondary:hover {
    background: #404050;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.hero {
    padding: 160px 0 60px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: #FAFAFD;
    color: #2B2B36;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    z-index: 10;
}

.hero-logo {
    max-width: 100%;
    width: 320px;
    margin: 0 auto 30px;
    display: block;
}

.hero-title {
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #555565;
    margin: 0 auto 40px;
    max-width: 480px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.mascot {
    max-width: 100%;
    width: 400px;
    z-index: 2;
    filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.12));
    transition: transform 0.3s ease-in-out;
}

.mascot:hover {
    transform: scale(1.05);
}

/* Floating animation for Mascot */
@keyframes hover {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.floating {
    animation: hover 5s ease-in-out infinite;
}

/* About Section */
.about {
    padding: 120px 0;
    background-color: var(--bg-offwhite);
    border-radius: 60px;
    margin: 0 24px;
}

/* Advantages Section */
.advantages {
    padding: 180px 0;
    background: #FAFAFD;
    color: #2B2B36;
}

.advantages .section-title {
    color: #1E1E24;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.card {
    background: #FFFFFF;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #1E1E24;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hover-scale:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-md);
    border-color: rgba(250, 128, 114, 0.2);
}

.card-img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    padding: 20px;
    background-color: #FAFAFD;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.hover-scale:hover .card-img {
    transform: scale(1.05);
}

.card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 800;
}

.card-content p {
    color: #555565;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Games Section */
.games {
    padding: 140px 0;
    background-color: var(--bg-offwhite);
    border-radius: 60px 60px 0 0;
    margin: 0;
}

.game-showcase {
    display: flex;
    align-items: center;
    gap: 60px;
    background: var(--bg-white);
    padding: 50px;
    border-radius: 40px;
    box-shadow: var(--shadow-md);
}

.game-image-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: 24px;
}

.game-preview {
    width: 100%;
    height: auto;
    border-radius: 24px;
    transition: var(--transition);
    display: block;
}

.hover-glow:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.game-info {
    flex: 1;
}

.game-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.game-description {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 36px;
    line-height: 1.7;
}

.game-feature-list {
    list-style-type: none;
    padding-left: 0;
    margin: 15px 0;
    color: var(--text-light);
}

.game-feature-list li {
    margin-bottom: 6px;
}

/* Footer Section */
.footer {
    background-color: #15151A;
    color: white;
    padding: 100px 0 60px;
    text-align: center;
}

.footer-contact {
    margin-bottom: 80px;
}

.footer-contact h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 800;
}

.footer-contact p {
    color: #B4B4C8;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #B4B4C8;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.copyright {
    color: #78788A;
    font-size: 0.95rem;
}

/* Animations Triggered By Scroll (JS) */
.fade-up-element {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up-element.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animations */
.slide-up {
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
}

.slide-left {
    animation: slideLeft 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateX(40px);
}

.dissolve-in {
    animation: dissolveIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.fade-in {
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes dissolveIn {
    to {
        opacity: 1;
    }
}

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

/* Responsive */
@media (max-width: 1024px) {

    .section-title,
    .hero-title {
        font-size: 3rem;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .hero-container,
    .game-showcase {
        flex-direction: column;
        text-align: center;
    }

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

    .hero-subtitle {
        margin: 0 auto 30px;
    }

    .nav {
        display: none;
    }

    .header-container {
        justify-content: center;
    }

    .about,
    .games {
        margin: 0;
        border-radius: 0;
    }
}

/* Wave Animation */
.wave-text {
    cursor: default;
}

.wave-text span {
    display: inline-block;
}

.wave-text:hover span {
    animation: waveAnim 0.6s ease-in-out;
}

@keyframes waveAnim {
    0%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
}