:root {
    --primary-blue: #10a8e9;
    --primary-dark-blue: #068CC5;
    --text-dark: #333;
    --text-medium: #666;
    --text-light: #171717;
    --white: white;
    --button-hover: rgba(255, 107, 157, 0.4);
    --transition-standard: 0.3s;
    --transition-smooth: 0.6s;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Darumadrop One", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: var(--text-dark);
    background: linear-gradient(#5BC7F5, #068DC7);
    scroll-behavior: smooth;
}

header {
    background: transparent;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    font-family: "Karla", sans-serif;
}

header > div {
    flex: 1;
}

header > nav {
    display: flex;
    gap: 100px;
    justify-content: space-between;
}

.header-icon {
    fill: var(--white);
    width: 50px;
    height: 50px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: var(--white);
}

.logo img {
    height: 40px;
    width: auto;
}

.main-logo {
    font-family: "Mansalva", sans-serif;
    font-weight: 400;
    font-size: 1rem;
}

nav {
    display: flex;
    gap: 40px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: opacity var(--transition-standard);
}

nav a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    padding: 30px 150px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    background: var(--primary-blue);
    padding: 50px;
    border-radius: 30px;
    border: 3px solid var(--primary-dark-blue);
    box-shadow: 0px 5px 0px 0px var(--primary-dark-blue), 0 10px 40px rgba(0,0,0,0.1);
    display: flex;
    gap: 30px;
}

.hero-icon {
    fill: var(--primary-blue);
    flex-shrink: 0;
    width: 70%;
}

.hero-icon-container {
    width: 180px;
    height: 180px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.6s ease-out;
}

.hero-icon-container:hover {
    transform: rotate(360deg);
}

.hero-text {
    text-align: left;
}

h1 {
    font-weight: 400;
}

.hero-text h1 {
    color: var(--white);
    font-size: 32px;
    line-height: 1;
    margin-bottom: 15px;
}

.hero-text p {
    color: var(--white);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: "Karla", sans-serif;
}

.cta-button {
    font-family: "Karla", sans-serif;
    display: inline-block;
    background: var(--white);
    color: var(--primary-blue);
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: transform var(--transition-standard), box-shadow var(--transition-standard);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--button-hover);
}

/* Who Are We Section */
.who-section {
    background: var(--white);
    padding: 175px 50px 80px;
    text-align: center;
}

.who-section h2 {
    color: var(--primary-blue);
    margin-bottom: 30px;
}

.section-title {
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 2px;
}

.slide-in {
    transform: translateX(150px);
    opacity: 0;
    will-change: transform, opacity;
    transition: transform var(--transition-smooth) cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s;
}

.slide-in.visible {
    transform: translateX(0);
    opacity: 1;
}

.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.team-member h3,
.team-member p {
    font-family: "Karla", sans-serif;
}

.team-member h3 {
    color: var(--text-dark);
    font-size: 16px;
    font-weight: bold;
}

.team-member p {
    color: var(--text-medium);
    font-size: 14px;
}

.member-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #d0d0d0, #e0e0e0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
    font-size: 60px;
}

/* Wave divider */
.wave-divider,
.wave-divider-bottom {
    height: 100px;
    background: url('data:image/svg+xml,<svg width="920" height="253" viewBox="0 0 1920 253" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="68.5714" cy="68.5714" r="68.5714" fill="white"/><circle cx="205.714" cy="68.5714" r="68.5714" fill="white"/><circle cx="342.857" cy="68.5714" r="68.5714" fill="white"/><circle cx="480" cy="68.5714" r="68.5714" fill="white"/><circle cx="617.143" cy="68.5714" r="68.5714" fill="white"/><circle cx="754.286" cy="68.5714" r="68.5714" fill="white"/><circle cx="891.428" cy="68.5714" r="68.5714" fill="white"/><circle cx="1028.57" cy="68.5714" r="68.5714" fill="white"/><circle cx="1165.71" cy="68.5714" r="68.5714" fill="white"/><circle cx="1302.86" cy="68.5714" r="68.5714" fill="white"/><circle cx="1440" cy="68.5714" r="68.5714" fill="white"/><circle cx="1577.14" cy="68.5714" r="68.5714" fill="white"/><circle cx="1714.29" cy="68.5714" r="68.5714" fill="white"/><circle cx="1851.43" cy="68.5714" r="68.5714" fill="white"/><rect y="69" width="1920" height="184" fill="white"/></svg>');
    background-repeat: repeat-x;
    position: relative;
    z-index: 1;
}

.wave-divider {
    margin-top: -300px;
}

.wave-divider-bottom {
    margin-top: -1px;
    transform: rotate(180deg);
}

/* Games Section */
.games-section {
    display: flex;
    flex-direction: column;
    gap: 60px;
    justify-content: center;
    align-items: center;
}

.games-section h2 {
    color: var(--white);
}

.games-container {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.game-item-container {
    width: 100%;
    background: linear-gradient(rgba(6, 140, 197, 0), rgba(6, 140, 197, 1));
    display: flex;
    justify-content: center;
    min-height: 600px;
}

.game-item-container-mobile {
    display: none;
}

.game-item {
    padding: 0 50px;
    max-width: 1500px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30%;
    align-items: center;
    background: linear-gradient(rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    padding: 40px;
    padding-bottom: 120px;
    border-radius: 20px;
    position: relative;
}

.game-item-parallax-image {
    position: absolute;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    pointer-events: none;
}

.game-item-parallax-image > img {
    width: 45%;
}

.game-item:nth-child(even) {
    direction: rtl;
}

.game-item:nth-child(even) > * {
    direction: ltr;
}

.game-image {
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.game-image > img {
    width: 90%;
    height: auto;
}

.game-info h2 {
    color: var(--white);
    font-size: 32px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: bold;
}

.game-description {
    align-items: flex-start;
    font-family: "Karla", sans-serif;
    background: var(--white);
    padding: 30px 50px;
    border-radius: 35px;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.2;
    font-size: 14px;
    display: flex;
    gap: 15px;
}

.game-icon {
    background-color: var(--primary-blue);
    border-radius: 15px;
    padding: 10px;
    width: 60px;
    height: 60px;
}

.game-icon img {
    width: 40px;
    height: 40px;
}

.game-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.badge,
.horizontal-badge {
    font-family: "Karla", sans-serif;
    font-weight: 600;
    background: var(--white);
    color: var(--primary-blue);
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    gap: 8px;
}

.badge {
    padding: 8px 0 0 0;
    flex-direction: column;
    align-items: center;
    width: 250px;
    font-size: 12px;
}

.horizontal-badge {
    padding: 16px;
    align-items: center;
    white-space: nowrap;
}

.badge-image {
    width: 100%;
    border-radius: 0 0 20px 20px;
}

.game-button {
    background-color: var(--white);
    color: var(--primary-blue);
    font-family: "Karla", sans-serif;
    font-weight: bold;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 13px;
    display: inline-block;
    transition: transform var(--transition-standard), box-shadow var(--transition-standard);
    text-transform: uppercase;
}

.game-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--button-hover);
}

a,
a img {
    text-decoration: none;
}

a img {
    display: block;
}

/* Footer */
footer {
    padding: 60px 50px;
    text-align: center;
    color: var(--white);
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 950px;
    margin: 0 auto 40px;
}

.social-link {
    background: rgba(255, 255, 255, 0.1);
    font-family: "Karla", sans-serif;
    border: 1px solid var(--white);
    color: var(--white);
    padding: 20px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 1rem;
    transition: all var(--transition-standard);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.social-link > img {
    width: 25px;
}

.social-link:hover {
    background: var(--white);
    color: #0a7fa3;
}

.contact-section {
    margin-top: 40px;
}

.contact-section h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-section h3,
.contact-section a,
.contact-section p {
    font-family: "Karla", sans-serif;
}

.contact-section a {
    color: var(--white);
    transition: text-decoration var(--transition-standard);
}

.contact-section a:hover {
    text-decoration: underline;
}

.contact-description {
    font-size: 14px;
    margin-top: 10px;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 450px) {
    header {
        gap: 20px;
        padding: 15px 25px;
    }

    .logo {
        flex-direction: row-reverse;
    }

    .main-logo {
        display: none;
    }

    .div-malardo {
        display: none;
    }

    nav {
        display: none !important;
        gap: 20px;
    }

    .hero {
        padding: 60px 30px 40px;
    }

    .hero-icon-container {
        position: absolute;
        top: -50px;
        width: 100px;
        height: 100px;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
        padding: 30px;
        padding-top: 80px;
    }

    .hero-text h1 {
        text-align: center;
        font-size: 1.8rem;
    }

    .hero-text p {
        text-align: center;
        font-size: 1.1rem;
        line-height: 1.5rem;
    }

    .who-section {
        padding: 185px 30px 80px;
    }

    .team-container {
        gap: 30px;
    }

    .member-avatar {
        width: 80px;
        height: 80px;
    }

    .games-section {
        padding: 0 0 40px;
    }

    .game-item-container {
        display: none;
    }

    .game-item-container-mobile {
        background: linear-gradient(rgba(6, 140, 197, 0), rgba(6, 140, 197, 1));
        width: 100%;
        display: flex;
        justify-content: center;
        min-height: 600px;
    }

    .game-item-parallax-image {
        position: relative;
        margin-bottom: -20px;
        margin-top: 175px;
    }

    .game-item-parallax-image > img {
        width: 80%;
        position: absolute;
        bottom: 0;
    }

    .game-item {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 30px;
        direction: ltr !important;
        background: none;
    }

    .game-item > * {
        direction: ltr !important;
    }

    .game-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .game-image > img {
        width: 70%;
    }

    .game-description {
        font-size: 0.8rem;
        padding: 30px;
        margin: 0;
        position: relative;
    }

    .social-links {
        grid-template-columns: 1fr;
        margin: 0 50px;
    }

    footer {
        padding: 40px 20px;
    }
}
