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

html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #6366f1;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
}

body {
    font-family: 'Fredoka', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bangers', cursive;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    border: 2px solid #1f2937;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.navbar.visible {
    transform: translateY(0);
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

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

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

.hero-subtitle {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('Assets/Background.jpg') no-repeat center right;
    background-size: cover;
    z-index: -1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
}

.hero-content {
    text-align: left;
    color: white;
    padding: 20px;
    padding-left: 100px;
    padding-top: 60px;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
    margin-left: 80px;
    margin-right: auto;
    position: relative;
    z-index: 10;
}

.hero-logo {
    height: 120px;
    width: auto;
    margin-bottom: 30px;
}

.hero-content h1 {
    font-size: 56px;
    margin-bottom: 30px;
    line-height: 1.2;
    color: white;
    letter-spacing: 2px;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 0, 0, 0.5);
}

.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Games Section */
.games-section {
    padding: 120px 0;
    background: var(--bg-white);
}

.section-title {
    font-size: 48px;
    margin-bottom: 40px;
    text-align: center;
}

.games-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.games-left {
    display: flex;
    flex-direction: column;
}

.games-description {
    margin-bottom: 40px;
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
}

.games-description p {
    max-width: 500px;
}

.download-buttons {
    display: flex;
    flex-direction: row;
    gap: 16px;
    flex-wrap: wrap;
}

.store-button {
    display: inline-block;
    width: fit-content;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.store-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.store-button img {
    height: 60px;
    width: auto;
    display: block;
}

.games-right {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 400px;
}

.character-image {
    width: 100%;
    max-width: 500px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.character-image img {
    width: 100%;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.game-bg {
    position: relative;
    transform: none;
}

.game-fg {
    transition: transform 0.4s ease;
    cursor: pointer;
    transform: translate(-50%, -50%);
}

.character-image:hover .game-fg {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Screenshots Section */
.screenshots-section {
    padding: 40px 0 0px 0;
    background: linear-gradient(to bottom, #ffffff 0%, #8dd8fa 70%);
    overflow: hidden;
    #min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.screenshots-background {
    width: 100%;
    min-height: 140px;
    background: url('Assets/Background_Tile.png') no-repeat center top;
    background-size: cover;
    pointer-events: none;
    z-index: 0;
}

.screenshots-section .section-title {
    color: white;
    margin-bottom: 60px;
    text-align: center;
}

.grid-gallery {
    --size: 125px;
    display: grid;
    grid-template-columns: repeat(6, var(--size));
    grid-auto-rows: 0;
    gap: 15px;
    place-items: center;
    justify-content: center;
    margin-top: var(--size);
    margin-bottom: var(--size);
}

.grid-gallery img {
    width: calc(var(--size) * 2);
    height: calc(var(--size) * 2);
    object-fit: cover;
    grid-column: auto / span 2;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: inset 0 0 0 3px white;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1), border-radius 1s cubic-bezier(0.4, 0, 0.2, 1), filter 1s ease, transform 0.3s ease, box-shadow 1s ease;
    cursor: pointer;
}

.grid-gallery img:nth-child(5n - 1) {
    grid-column: 2 / span 2;
}

.grid-gallery:has(img:hover) img:not(:hover) {
    filter: brightness(0.4) contrast(0.8);
    transition: filter 1s ease;
}

.grid-gallery img:hover {
    border-radius: 20px;
    transform: scale(1.05);
    z-index: 10;
    width: calc(var(--size) * 3);
}

/* About Section */
.about-section {
    padding: 120px 0;
    background: #ffce59;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.link-text {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.link-text:hover {
    border-color: var(--primary-color);
}

.about-image {
    margin-top: 80px;
    height: 500px;
    background: url('Assets/Arabia.jpg') no-repeat center center;
    background-size: cover;
    border-radius: 20px;
}

/* Careers Section */
.careers-section {
    padding: 120px 0;
    background: var(--bg-white);
}

.careers-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.careers-image {
    height: 500px;
    background: url('Assets/Career.jpg') no-repeat center center;
    background-size: cover;
    border-radius: 20px;
}

.careers-text p {
    font-size: 18px;
    color: var(--text-light);
    margin: 20px 0 30px;
    line-height: 1.8;
}

/* News Section */
.news-section {
    padding: 120px 0;
    background: var(--bg-light);
}

.news-section .container {
    position: relative;
}

.see-all {
    position: absolute;
    top: 0;
    right: 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.news-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-10px);
}

.news-image {
    height: 250px;
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.news-card h3 {
    padding: 24px;
    font-size: 24px;
}

.news-card p {
    padding: 0 24px 24px;
    color: var(--text-light);
}

/* Footer */
.footer {
    padding: 60px 0;
    background: var(--text-dark);
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
}

.footer-column h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: white;
}

.footer-left p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-right ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #8dd8fa;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 15px;
        width:100%;
    }

    /* Navigation */
    .navbar {
        padding: 15px 0;
    }

    .logo img {
        height: 40px;
    }

    .nav-links {
        gap: 15px;
        font-size: 12px;
    }

    /* Hero Section */
    .hero {
        min-height: 100vh;
        height: auto;
        padding: 100px 0 60px;
    }

    .hero-content {
        padding: 20px;
        padding-left: 20px;
        padding-top: 20px;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }

    .hero-logo {
        height: 80px;
        margin-bottom: 20px;
    }

    .hero-content h1 {
        font-size: 32px;
        line-height: 1.3;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        position: relative;
        bottom: auto;
        left: auto;
        text-align: center;
        margin-top: 40px;
        font-size: 10px;
        padding: 0 20px;
    }

    .btn-primary {
        padding: 12px 30px;
        font-size: 16px;
    }

    /* Section Titles */
    .section-title {
        font-size: 32px;
        margin-bottom: 30px;
        text-align: center;
    }

    /* Games Section */
    .games-section {
        padding: 60px 0;
    }

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

    .games-left {
        order: 2;
    }

    .games-right {
        order: 1;
        min-height: 300px;
    }

    .games-description p {
        max-width: 100%;
        font-size: 16px;
    }

    .download-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .store-button img {
        height: 50px;
    }

    /* Screenshots Section */
    .screenshots-section {
        padding: 60px 0;
        #min-height: 500px;
    }

    .screenshots-background {
        background-size: cover;
        background-position: center top;
        min-height: 150px;
    }

    .grid-gallery {
        --size: 90px;
        grid-template-columns: repeat(6, var(--size));
        gap: 10px;
        #margin-bottom: calc(var(--size) * 0.5);
    }

    .grid-gallery img {
        width: calc(var(--size) * 2);
        height: calc(var(--size) * 2);
    }

    .grid-gallery img:hover {
        width: calc(var(--size) * 2.3);
    }

    /* About Section */
    .about-section {
        padding: 60px 0;
    }

    .about-content p {
        font-size: 16px;
    }

    .about-links {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .about-image {
        height: 300px;
    }

    /* Careers Section */
    .careers-section {
        padding: 60px 0;
    }

    .careers-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .careers-image {
        height: 300px;
    }

    .careers-text p {
        font-size: 16px;
    }

    /* News Section */
    .news-section {
        padding: 60px 0;
    }

    .see-all {
        position: relative;
        display: block;
        text-align: center;
        right: auto;
        margin-bottom: 30px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 30px;
    }

    .news-image {
        height: 200px;
    }

    .news-card h3 {
        font-size: 20px;
    }

    /* Footer */
    .footer {
        padding: 40px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-column h3 {
        font-size: 20px;
    }

    .footer-left p {
        font-size: 14px;
    }

    .footer-links li {
        margin-bottom: 10px;
    }

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

@media (max-width: 480px) {
    /* Extra small devices */
    .hero-content h1 {
        font-size: 24px;
    }

    .hero-logo {
        height: 60px;
    }

    .section-title {
        font-size: 28px;
    }

    .screenshots-section {
        padding: 40px 0 0 0;
        #min-height: 400px;
    }

    .grid-gallery {
        --size: 70px;
        gap: 8px;
    }

    .grid-gallery img:hover {
        width: calc(var(--size) * 2.2);
    }

    .nav-links {
        gap: 10px;
        font-size: 11px;
    }

    .games-description {
        font-size: 14px;
    }

    .store-button img {
        height: 45px;
    }

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