@font-face {
    font-family: 'BodyCustom';
    src: url('fonts/MADE\ Tommy\ Soft\ Regular\ PERSONAL\ USE.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'BodyCustomBold';
    src: url('fonts/MADE\ Tommy\ Soft\ Bold\ PERSONAL\ USE.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'HeaderCustom';
    src: url('fonts/Aristotelica-Display-Bold-trial.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'TitleCustom';
    src: url('fonts/Aristotelica-Display-Fat-trial.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

.about p,
.careers-content p,
footer p {
    font-family: 'BodyCustom', 'Inter', sans-serif;
}

.about strong,
.careers-content strong {
    font-family: 'BodyCustomBold', 'Inter', sans-serif;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'HeaderCustom', 'Inter', sans-serif;
    text-align: center;
    padding-top: 70px;
}

.header {
    background-color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    padding: 15px 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 18px;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #FFCC00;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #333;
}

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

.hero {
    background: linear-gradient(135deg, #FFCC00 0%, #FFA500 100%);
    min-height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="%23ffffff" fill-opacity="0.05" fill-rule="evenodd"/%3E%3C/svg%3E');
    opacity: 0.8;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

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

.hero img {
    max-width: 600px;
    width: 80%;
    margin-bottom: 30px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
    position: relative;
    z-index: 2;
}

.hero p {
    color: white;
    font-size: 1.8rem;
    font-weight: 300;
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Section Styling */
section {
    min-height: 80vh;
    padding: 60px 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

section>div {
    max-width: 1400px;
    margin: 0 auto;
    width: 90%;
}

section h2 {
    font-size: 3.2rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

section p {
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: center;
    font-size: 1.4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

section:first-of-type {
    margin-top: -70px;
}

.games,
.careers {
    padding: 100px 0;
    min-height: auto;
}

.games {
    background-color: #f5f5f5;
}

.careers {
    background-color: #ffffff;
}

.games-content,
.careers-content {
    max-width: 1200px;
    padding: 40px 20px;
    text-align: center;
}

.careers h2 {
    margin-bottom: 30px;
}

.careers p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.game-showcase {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.game-showcase img {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.game-showcase img:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.app-buttons img {
    height: 50px;
    width: auto;
    margin-bottom: 0;
}

.careers-button {
    background-color: #FFCC00;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.careers-button:hover {
    background-color: #e6b800;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #FFCC00 0%, #FFA500 100%);
    color: white;
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
}

.social a img {
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1);
}

.social a:hover img {
    transform: translateY(-5px);
}

footer>div {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

footer img {
    max-width: 200px;
    margin-bottom: 20px;
}

footer p {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

footer .social {
    margin: 20px 0;
}

footer .social img {
    width: 30px;
    margin: 0 10px;
}

footer .copyright {
    font-size: 1rem;
    margin-top: 20px;
    opacity: 0.9;
}

.header.scrolled {
    padding: 10px 40px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header.scrolled .logo img {
    height: 35px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #e6b800;
}

/* Responsive */
@media (max-width: 992px) {
    section h2 {
        font-size: 2.8rem;
    }

    section p {
        font-size: 1.3rem;
    }

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

.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .header {
        padding: 10px 15px;
    }

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

    .logo {
        margin-bottom: 0;
        margin-right: auto;
    }

    .navigation {
        position: relative;
    }

    .menu-toggle {
        display: block;
        width: 25px;
        height: 20px;
        position: relative;
        cursor: pointer;
        z-index: 102;
    }

    .menu-toggle span {
        display: block;
        position: absolute;
        height: 2px;
        width: 100%;
        background: #333;
        border-radius: 2px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: .25s ease-in-out;
    }

    .menu-toggle span:nth-child(1) {
        top: 0px;
    }

    .menu-toggle span:nth-child(2),
    .menu-toggle span:nth-child(3) {
        top: 9px;
    }

    .menu-toggle span:nth-child(4) {
        top: 18px;
    }

    .menu-toggle.active span:nth-child(1) {
        top: 9px;
        width: 0%;
        left: 50%;
    }

    .menu-toggle.active span:nth-child(2) {
        transform: rotate(45deg);
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
    }

    .menu-toggle.active span:nth-child(4) {
        top: 9px;
        width: 0%;
        left: 50%;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        flex-direction: column;
        background-color: white;
        width: 250px;
        height: 100vh;
        padding: 70px 30px 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 101;
        gap: 20px;
        align-items: flex-start;
        transition: transform 0.3s ease;
        transform: translateX(100%);
    }

    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        font-size: 18px;
        padding: 10px 0;
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 15px;
    }

    .logo img {
        height: 35px;
    }

    .nav-links a {
        font-size: 15px;
        padding: 5px 8px;
    }

    .app-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .app-buttons img {
        height: 45px;
    }

    .hero img {
        max-width: 90%;
        margin-bottom: 20px;
    }

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

    section h2 {
        font-size: 2rem;
    }

    section p {
        font-size: 1rem;
    }

    section {
        padding: 40px 0;
    }

    footer p {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .logo img {
        height: 30px;
    }

    .nav-links a {
        font-size: 14px;
    }

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

    section h2 {
        font-size: 1.8rem;
    }

    .careers-button {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 20px;
    }

    section {
        min-height: auto;
        padding: 50px 0;
    }

    .hero img {
        max-width: 300px;
        margin-bottom: 15px;
    }
}

.legal-links {
    margin-top: 10px;
    font-size: 0.9rem;
    font-family: 'BodyCustom', 'Inter', sans-serif;
}

.legal-links a {
    color: #fff;
    text-decoration: underline;
    margin: 0 5px;
    font-size: 0.9rem;
}

.legal-links a:hover {
    text-decoration: underline;
}

/* Legal Pages - Privacy & Terms (shared styles) */
#privacy-content,
#terms-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px 60px 40px;
    text-align: left;
    font-family: 'BodyCustom', 'Inter', sans-serif;
    counter-reset: section subsection;
}

.privacy-title,
.terms-title {
    font-family: 'TitleCustom', 'Inter', sans-serif;
    font-size: 2.625rem;
    font-weight: bold;
    margin-bottom: 30px;
    text-transform: uppercase;
    color: #000;
    text-align: left;
}

.privacy-date,
.terms-date {
    font-family: 'BodyCustom', 'Inter', sans-serif;
    font-size: 1rem;
    margin-bottom: 40px;
    color: #666;
    text-align: left;
}

.privacy-section-title,
.terms-section-title {
    font-family: 'BodyCustomBold', 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 40px 0 20px 0;
    text-transform: uppercase;
    color: #000;
    text-align: left;
    counter-increment: section;
    counter-reset: subsection;
}

.privacy-subsection-title,
.terms-subsection-title {
    font-family: 'BodyCustomBold', 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: bold;
    margin: 30px 0 15px 0;
    color: #000;
    text-align: left;
    counter-increment: subsection;
}

.privacy-text,
.terms-text {
    font-family: 'BodyCustom', 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
    color: #333;
    padding: 0;
}

.privacy-list,
.terms-list {
    margin: 20px 0 20px 40px;
    font-family: 'BodyCustom', 'Inter', sans-serif;
    text-align: left;
    padding-left: 0;
}

.privacy-list li,
.terms-list li {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #333;
    text-align: left;
}

.privacy-sublist {
    margin-left: 20px;
    margin-top: 10px;
}

/* Counter styling for different page types */
#privacy-content {
    counter-reset: section subsection;
}

#terms-content {
    counter-reset: terms-section terms-subsection;
}

.privacy-section-title::before {
    content: counter(section) ". ";
}

.privacy-subsection-title::before {
    content: counter(section) "." counter(subsection) " ";
}

.terms-section-title {
    counter-increment: terms-section;
    counter-reset: terms-subsection;
}

.terms-section-title::before {
    content: counter(terms-section) ". ";
}

.terms-subsection-title {
    counter-increment: terms-subsection;
}

.terms-subsection-title::before {
    content: counter(terms-section) "." counter(terms-subsection) " ";
}

/* Legal page header styling */
header.privacy-page,
header.terms-page {
    background: linear-gradient(135deg, #FFCC00 0%, #FFA500 100%) !important;
    box-shadow: 0 2px 10px rgba(255, 204, 0, 0.2) !important;
}

header.privacy-page .logo img,
header.terms-page .logo img {
    filter: brightness(0) invert(1);
}

header.privacy-page+p:first-of-type,
header.terms-page+p:first-of-type {
    margin-top: 90px;
}

header.privacy-page .nav-links a,
header.terms-page .nav-links a {
    color: white !important;
    font-weight: 700;
}

header.privacy-page .nav-links a:hover,
header.terms-page .nav-links a:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

header.privacy-page .nav-links a::after,
header.terms-page .nav-links a::after {
    background-color: white !important;
}

header.privacy-page .menu-toggle span,
header.terms-page .menu-toggle span {
    background: white !important;
}

@media (max-width: 768px) {

    header.privacy-page .menu-toggle.active span,
    header.terms-page .menu-toggle.active span {
        background: #333 !important;
    }

    header.privacy-page .menu-toggle span,
    header.terms-page .menu-toggle span {
        background: white !important;
    }

    header.privacy-page .nav-links,
    header.terms-page .nav-links {
        background-color: white !important;
    }

    header.privacy-page .nav-links a,
    header.terms-page .nav-links a {
        color: #333 !important;
    }

    header.privacy-page .nav-links a:hover,
    header.terms-page .nav-links a:hover {
        color: #333 !important;
    }

    header.privacy-page .nav-links a::after,
    header.terms-page .nav-links a::after {
        background-color: #FFCC00 !important;
    }
}

/* Legal pages mobile responsive */
@media (max-width: 1023px) {

    #privacy-content,
    #terms-content {
        padding: 40px 20px 60px 20px;
    }

    .privacy-title,
    .terms-title {
        font-size: 2rem;
    }

    .privacy-section-title,
    .terms-section-title {
        font-size: 1.25rem;
    }

    .privacy-subsection-title,
    .terms-subsection-title {
        font-size: 1.125rem;
    }
}