/* Game Titles - Black Text */
.game-card p {
    color: #000; /* Set text color to black */
    font-weight: 600; /* Optional: Add slight boldness for visibility */
    font-family: 'Poppins', sans-serif; /* Ensure font consistency */
    margin-top: 5px; /* Add spacing above the title */
}

/* Import Poppins Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif; /* Apply Poppins font globally */
    font-size: var(--font-size, 16px);
    font-weight: var(--font-weight, 400);
    line-height: 1.6;
    color: #333;
}

header {
    position: relative; /* Ensure positioning context for pseudo-element */
    background: #ff509c; /* Pink background with lower opacity */
    color: #fff;
    text-align: center;
    padding: 20px 0;
    overflow: hidden; /* Prevent any overflow */
}

header::after {
    content: ""; /* Required for pseudo-elements */
    position: absolute;
    bottom: 0; /* Attach to bottom of header */
    left: 0;
    width: 100%;
    height: 100px; /* Gradient height */
    background: linear-gradient(to top, rgb(255, 80, 157), transparent);
     /* White gradient */
    pointer-events: none; /* Prevent the gradient from blocking interactions */
    z-index: 1; /* Ensure it stays on top of the video and pink color but below text */
}

header .container {
    position: relative; /* Ensure content stays above the gradient */
    z-index: 2; /* Keep text and content above gradient and video */
}


.container {
    width: 90%;
    margin: 0 auto;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.navbar .logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.navbar span {
    color: #FFBF00;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: white;
}

/* Hero Section */
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    margin-top: 50px;
}

.hero button {
    padding: 10px 20px;
    background: #fff;
    color: #ff509d;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

/* About Section */
.about {
    background: #ff509d;
    padding: 40px 20px;
    text-align: center;
}

.about-card {
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.about h2 span {
    color: #ff509d;
}

.partners {
    margin-top: 10px;
    font-weight: bold;
}

/* Games Section */

.games {
    position: relative; /* To ensure the gradient applies within this section */
    background: linear-gradient(to bottom, rgb(255, 80, 157) 0px, rgba(75, 84, 110, 0) 100px), #4b546e;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
   
    }
   
    

.games-container {
    display: flex;
    flex-wrap: wrap;
    justify-content:center;
    gap: 10px;
    padding: 10px;
}


.game-card {
    flex: 0 1 calc(20% - 10px); /* Default layout: 5 cards per row */
    background-color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 15px; /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    width: 200px; /* Fixed width for the cards */
    max-width: 200px; /* Prevents cards from growing larger */
    transition: transform 0.3s ease; /* Optional: smooth scaling */
}

.game-placeholder {
    width: 100%;
    padding-top: 100%; /* Maintains square aspect ratio */
    background-color: #ddd;
    object-fit: cover; /* Ensures images maintain their aspect ratio */
    border-radius: 15px; /* Keeps the corners rounded */
    margin-bottom: 10px;
    position: relative;
    border-radius: 15px;
    
}

.game-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* Buttons for iOS and Android */
.game-buttons {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.game-buttons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px; /* Circle width */
    height: 40px; /* Circle height */
    border-radius: 50%; /* Circular shape */
    overflow: hidden; /* Ensure the image stays inside the circle */
}

.icon-button {
    width: 100%; /* Make the image fill the circle */
    height: 100%;
    object-fit: contain; /* Keeps the aspect ratio without stretching */
}

/* Careers Section */
.careers {
    margin-top: -50px; /* Moves the element 10px up */
    padding: 40px 20px;
    text-align: center;
}

.careers-content button {
    margin-top: 10px;
    padding: 10px 20px;
    background: #ff509d;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
}
.footer-extension {
    background-color: #333; /* Same color as footer */
    padding: 20px 0; /* Optional: Adjust padding for consistency */
}


/* Responsive Design for Navigation */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.5rem; /* Adjust this value to make it smaller */
        line-height: 1.2; /* Reduce line spacing for compact look */
        margin-top: 60px; /* Moves the text down by 20 pixels */
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: #ff509d;
        width: 100%;
        text-align: center;
        gap: 10px;
        padding: 20px 0;
        border-radius: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    /* Prevent scaling after certain widths */
    @media (min-width: 1024px) {
        .game-card {
            flex: 0 1 200px; /* Fixed size for large screens */
        }
    }

    .game-card {
        flex: 0 1 calc(50% - 10px); /* 2 cards per row */
    }
}

/* Center Single Card in Last Row */
@media (max-width: 768px) {
    .games-container .game-card:nth-child(odd):last-child {
        margin: 0 auto;
    }
    .game-card {
        flex: 0 1 calc(50% - 10px); /* 2 cards per row */
        max-width: 200px; /* Smaller cards for mobile view */
    }
}
/* Video Container */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1; /* Places the video behind content */
}

/* Header Styling */
header {
    position: relative; /* Ensures video stays within the header */
    overflow: hidden; /* Prevents content spill outside header */
    height: 400px; /* Set header height */
}

/* Video Wrapper */
.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place video behind content */
}

/* Background Video */
.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the header area */
    position: absolute;
    top: 0;
    left: 0;
}

/* Pink Overlay */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 80, 156, 0.26); /* Pink with 70% opacity */
    z-index: 0;
}

/* Ensure Main Content Stays Above */
header .container {
    position: relative; /* Content above video and overlay */
    z-index: 1;
    color: #fff; /* Ensure text remains readable */
}
.rounded-button {
    border-radius: 20px; /* Adjust for roundness */
    padding: 10px 20px; /* Spacing inside the button */
    border: none; /* Optional: removes button border */
    background-color: #ff509d; /* Optional: button background color */
    color: white; /* Optional: text color */
    font-size: 1rem; /* Optional: font size */
    cursor: pointer; /* Adds a pointer on hover */
}
/* Increase the text size and spacing for the Careers section */
.careers-content h3 {
    font-size: 1.8rem; /* Increase the heading size */
    margin-bottom: 10px; /* Add spacing below the heading */
}

.careers-content p {
    font-size: 1rem; /* Increase paragraph text size */
    line-height: 1.8; /* Increase line spacing for readability */
    margin-bottom: 20px; /* Add spacing below the paragraph */
}

.careers-content button {
    padding: 20px 35px; /* Make the button larger */
    font-size: 1.1rem; /* Increase button text size */
    border-radius: 30px; /* Maintain rounded corners */
    
}

.careers {
    position: relative; /* To ensure the gradient applies within this section */
    background: linear-gradient(to bottom, rgb(75, 84, 110, 0) 0px, rgba(75, 84, 110, 0) 100px), #4b546e;
   
    }

.careers-content {
    padding-top: -50px;
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.logo-image {
    max-height: 100px; /* Set a maximum height for the logo */
    width: auto; /* Maintain aspect ratio */
    display: block; /* Ensure no inline spacing issues */
}
footer a {
    color: white; /* Set text color to white */
    text-decoration: none; /* Optional: Remove underline */
}

footer a:hover {
    text-decoration: underline; /* Optional: Add underline on hover */
}
/* Scrolling Background Pattern for Header */
.animated-pattern-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-image: url('images/Logo_Bg.png');
    background-repeat: repeat;
    background-size: 300px auto;
    animation: scroll-pattern 20s linear infinite;
    opacity: 0.07;
    z-index: 0;
}

@keyframes scroll-pattern {
    0% {
        transform: translate(-50%, 50%);
    }
    100% {
        transform: translate(0%, 0%);
    }
}



/* Solid pink base background */
header {
    background-color: #ff509e !important;
}

/* Patterned moving background */
.animated-pattern-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-image: url('images/Logo_Bg.png');
    background-repeat: repeat;
    background-size: var(--pattern-size, 120px) auto; /* control size via variable */
    animation: scroll-pattern 25s linear infinite;
    opacity: 1; /* keep logo color unchanged */
    z-index: 0;
    filter: brightness(120%) saturate(90%) invert(0%) sepia(0%) hue-rotate(0deg) contrast(100%);
}

/* Animation for moving left to right */
@keyframes scroll-pattern {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Centered logo stays above everything */
.centered-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.centered-logo img {
    width: 280px;
    max-width: 90vw;
    
}
/* ===== Footer (like competitor layout, white text) ===== */
.site-footer{
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 20px 24px;
  border-radius: 30px;
  /* بدون زمینه خاکستری؛ متن سفید روی پس‌زمینه‌ی صورتی صفحه */
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-left{
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-icon{
  display: block;
  border-radius: 9999px; /* دایره‌ای مثل نمونه */
}

.footer-nav{
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.footer-nav a{
  color: #fff;               /* رنگ لینک‌ها سفید */
  text-decoration: none;
}
.footer-nav a:hover{ text-decoration: underline; }

.divider{ opacity: .6; color: #fff; }

.footer-right{
  color: #fff;               /* نام شرکت سفید و راست‌چین */
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

/* موبایل */
@media (max-width: 768px){
  .site-footer{
    flex-direction: column;
    align-items: flex-start;  /* همه‌چیز چپ‌چین در موبایل */
    border-radius: 20px;
  }
  .footer-right{
    text-align: left;
    white-space: normal;
  }
}


/* Footer - white bold text, same width as card */
.site-footer{
  max-width: 900px;                /* هم‌عرض با privacy-container */
  margin: 0 auto 40px;
  padding: 18px 24px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  font-weight: 700;                 /* bold */
  font-family: 'Poppins', sans-serif;
}

.footer-left{ display:flex; align-items:center; gap:14px; }

/* LinkedIn button (visible even if <img> fails) */
.social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ff2e78;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon {
  width: 100%;   /* نسبت به دایره */
  height: 100%;
  object-fit: contain;
}


.footer-nav{ display:flex; align-items:center; gap:12px; }
.footer-nav a{ color:#fff; text-decoration:none; }
.footer-nav a:hover{ text-decoration:underline; }
.divider{ color:#fff; opacity:.7; }

.footer-right{
  color:#fff; text-align:right; white-space:nowrap; font-weight:700;
}

/* موبایل */
@media (max-width: 768px){
  .site-footer{ flex-direction:column; align-items:flex-start; }
  .footer-right{ text-align:left; white-space:normal; }
}
/* خنثی کردن استایل سراسری header فقط برای این صفحه */
header.topbar{ 
  height:auto !important;
  background:transparent !important;
  overflow:visible !important;
  padding:12px 6px;
}
header.topbar::after{ content:none !important; } /* حذف گرادیانتِ ::after سراسری */
