html, body {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
}

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

:root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --background-color: #ffffff;
    --text-color: #000000;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --border-radius: 20px;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: min(90%, 1200px);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: #f5f5f5;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.back-button {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--primary-color);
}

.back-button svg {
    width: 24px;
    height: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo img {
    height: 42px;
    width: auto;
    transition: var(--transition);
}

/* Navigation */
nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

/* Buttons */
.btn, button[type="submit"] {
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

.btn:hover, button[type="submit"]:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn.secondary {
    background-color: transparent;
    color: var(--primary-color);
}

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

/* Hero Section */
.hero {
    padding: 80px 0;
    min-height: calc(50vh - 80px);
    display: flex;
    align-items: center;
}

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

.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    font-size: clamp(36px, 5vw, 48px);
    line-height: 1.2;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero-text p {
    font-size: clamp(16px, 2vw, 18px);
    margin-bottom: 32px;
    color: var(--secondary-color);
}

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

/* 3D Animation */
.hero-3d-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    margin-left: 40px;
}

.hero-3d-box {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.hero-3d-box img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.hero-3d-clone {
    position: absolute;
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    z-index: 3;
}

.hero-3d-clone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

/* Games Section */
.games-section {
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.search-bar {
    width: 100%;
    max-width: 600px;
    margin-bottom: 40px;
    text-align: center;
}

#searchInput {
    width: 100%;
    padding: 16px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 16px;
    transition: var(--transition);
    background-color: white;
}

#searchInput:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.game-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: flex-start;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.game-thumb {
    width: 100%;
    height: 135px;
    object-fit: contain;
    background: #f5f5f5;

}

.game-info {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.game-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.game-info p {
    font-size: 14px;
    color: var(--secondary-color);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    line-height: 1.4;
}

/* Forms */
.careers-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

form {
    display: grid;
    gap: 20px;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Hero Icons Network */
.hero-icons-network {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin: 80px 0;
    flex-wrap: wrap;
}

.hero-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hero-icon-circle {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.hero-icon-circle:hover {
    transform: scale(1.05);
}

.hero-icon-circle svg {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

.hero-icon-label {
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 14px;
}

/* reCAPTCHA */
.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* Footer */
footer {
    background-color: #f5f5f5;
    padding: 24px 0;
    text-align: center;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 20px;
    }

    .hero-icons-network {
        gap: 40px;
    }
}

@media (max-width: 768px) {

    nav, 
    nav ul,
    .hamburger {
        display: none !important;
    }

    .container {
        padding: 0 16px;
    }

    .header-container {
        padding: 0 16px;
    }

    .back-button {
        display: none;
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
    }

    .back-button.show {
        display: block;
    }

    .header-container.with-back .logo {
        margin: 0 auto;
    }

    .header-container.with-back .btn {
        display: none;
    }

    .logo {
        font-size: 20px;
        gap: 8px;
    }

    .logo img {
        height: 32px;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 16px;
        box-shadow: var(--shadow);
        flex-direction: column;
        gap: 12px;
        z-index: 1000;
    }

    nav ul.show {
        display: flex;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .hero {
        padding: 40px 0;
        min-height: auto;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .hero-text h1 {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .hero-text p {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .hero-buttons {
        justify-content: center;
        gap: 12px;
    }

    .hero-3d-wrapper {
        width: 240px;
        height: 240px;
        margin: 0 auto;
    }

    .hero-3d-clone {
        width: 40px;
        height: 40px;
    }

    .games-section {
        padding: 24px 0;
    }

    .search-bar {
        padding: 0 20px;
        margin-bottom: 24px;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .game-card {
        max-width: 100%;
    }



    .hero-icons-network {
        gap: 24px;
        margin: 40px 0;
    }

    .hero-icon-circle {
        width: 60px;
        height: 60px;
    }

    .hero-icon-circle svg {
        width: 24px;
        height: 24px;
    }

    .hero-icon-label {
        font-size: 12px;
    }

    .careers-container {
        margin: 24px auto;
        padding: 24px 16px;
    }

    form {
        gap: 16px;
    }

    input,
    textarea,
    select {
        padding: 10px 14px;
        font-size: 14px;
    }

    button[type="submit"] {
        padding: 10px 20px;
        font-size: 14px;
    }

    footer {
        padding: 16px 0;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 28px;
    }

    .hero-3d-wrapper {
        width: 200px;
        height: 200px;
    }

    .hero-3d-clone {
        width: 32px;
        height: 32px;
    }

    .hero-icons-network {
        gap: 16px;
    }

    .hero-icon-circle {
        width: 50px;
        height: 50px;
    }

    .hero-icon-circle svg {
        width: 20px;
        height: 20px;
    }
}


.notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.notification {
    padding: 15px 25px;
    margin: 10px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.5s ease forwards, fadeOut 0.5s ease 4.5s forwards;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.success {
    background-color: rgba(34, 197, 94, 0.95);
}

.notification.error {
    background-color: rgba(239, 68, 68, 0.95);
}

.notification-text {
    flex-grow: 1;
    margin-right: 15px;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
    padding: 0;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.notification-close:hover {
    opacity: 1;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 90%;
    width: 400px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: scaleIn 0.3s ease;
}

.modal-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.modal-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.modal-button {
    padding: 12px 24px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-button:hover {
    background-color: #333;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

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

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
