:root {
    --ps-blue: #0070d1;
    --main-orange: #f28f3b;
    --ps-blue-dark: #003087;
    --ps-gray: #f5f5f5;
    --ps-gray-dark: #1f1f1f;
    --font-sans: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: #fff;
    color: #1f1f1f;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}



.overlay-buttons-container .btn-blue:hover{
/* background-color: #f47405; */
  color: #fff;

  text-decoration: none;
  transition: background-color 0.2s;
  border: 2px solid transparent;
}

.card-text {
    color: #fff;
}

.header {
    position: sticky;
    top: 0;
    z-index: 50;
}

.top-bar {
    background-color: #000;
    color: #fff;
    height: 2.5rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.sony-logo {
    height: 0.75rem;
}

.main-nav {
    background-color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    height: 4rem;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-left {
    display: flex;
    align-items: center;
}

.ps-logo {
    height: 2rem;
}

.desktop-links {
    display: none;
    margin-left: 2rem;
}

.desktop-links a {
    padding: 0.5rem 0.75rem;
    color: #374151;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.desktop-links a:hover {
    color: var(--ps-blue);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.signin-btn {
    display: none;
    background-color: var(--ps-blue);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
}

.signin-btn:hover {
    background-color: var(--ps-blue-dark);
}

.nav-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: #374151;
}

.nav-icon:hover {
    color: var(--ps-blue);
}

.nav-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke-width: 2;
}

#menu-btn {
    display: block;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background-color: #fff;
    z-index: 50;
    padding: 1rem;
}

.hidden {
    display: none;
}

.mobile-menu-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mobile-menu-top #close-btn svg {
    width: 2rem;
    height: 2rem;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-links a {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
}

.mobile-links a:hover {
    color: var(--ps-blue);
}

.mobile-signin-btn {
    background-color: var(--ps-blue);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    margin-top: 1rem;
}

.mobile-signin-btn:hover {
    background-color: var(--ps-blue-dark);
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    background-color: #000;
}

.hero img.background {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
    /* opacity: 0.9; */
    background-position: 100vh;
    background-size: cover;
}

.overlay-buttons{
    position: absolute;
    bottom: 22%;
    display: flex;
    gap: 45px;
    margin-left: 43%;
    z-index: 10;
}

.main-nav-btn{
    width: 160px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    font-weight: 900;
    background-color: rgba(245, 130, 32, 0);
    border-radius: 15px;
    transition: 0.3s ease;
    text-shadow: 2px 2px 10px #000;
}

.main-nav-btn:hover{
    transform: scale(1.1);
    color: #fff;
}

@media(max-width: 768px){
    .hero-wrapper{
        background-position: 70% center;
    }
.overlay-buttons{
    margin-right: 5%;
    margin-top: 28%;
    gap: 5;
}
.main-nav-btn{
    width: 50%;
    height: 60px;
    font-size: 0.8rem;
    text-shadow: 1px 1px 4px #000;
}
}

.hero-text-box {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.hero-text {
    color: #fff;
    max-width: 36rem;
}

.hero-text img.game-logo {
    width: 66.6%;
    margin-bottom: 1rem;
}

.hero-text h1 {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.btn-light {
    background-color: #fff;
    color: #000;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
    display: inline-block;
}

.btn-light:hover {
    background-color: #e5e7eb;
}

.btn-blue {
    background-color: var(--ps-blue);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
    border: 2px solid transparent;
}

.btn-blue:hover {
    background-color: var(--ps-blue-dark);
}

.btn-orang {
    background-color: #f58220;
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
    border: 2px solid transparent;
}

.btn-orang:hover {
    background-color: #fb9740;
}

.btn-outline {
    background-color: #fff;
    color: var(--ps-blue);
    border: 2px solid var(--ps-blue);
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-outline:hover {
    background-color: #f3f4f6;
}

.product-bar-container {
    background-color: #fff;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.product-bar {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.product-bar::-webkit-scrollbar {
    height: 4px;
}

.product-bar::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 20px;
}

.product-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 5rem;
    flex-shrink: 0;
    color: #374151;
}

.product-bar a:hover {
    color: var(--ps-blue);
}

.product-bar img {
    width: 4rem;
    height: 4rem;
    object-fit: cover;
    border-radius: 9999px;
    transition: opacity 0.2s;
}

.product-bar a:hover img {
    opacity: 0.8;
}

.product-bar span {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.ps5-section {
    background-color: var(--ps-gray);
    padding: 4rem 0;
    text-align: center;
}

.ps5-section h2 {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--ps-blue-dark);
    margin-bottom: 1rem;
}
.section a{
    text-decoration: none;
}
        .branch-card {
            background: linear-gradient(135deg, #111, #000);
            padding: 30px; border-radius: 20px; border-left: 5px solid var(--main-orange);
        }
        .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
        .section { padding: 80px 5%; text-align: center;     background-color: #000;}
.branch-card {
            color:#fff;
        }
.section h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--main-orange);
    font-family: 'Cairo', sans-serif;
}
.branch-card {
    cursor: pointer; /* يغير شكل الماوس ليد */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.branch-card:hover {
    transform: translateY(-5px); /* حركة بسيطة للأعلى عند الوقوف عليه */
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* لضمان ثبات ألوان النصوص داخل الرابط */
a.branch-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ps5-section p {
    font-size: 1.125rem;
    color: #374151;
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.ps5-section .ps5-img {
    width: 100%;
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
}

.btn-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.accessories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 4rem;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
}

.accessory {
    background-color: #fff;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.accessory img {
    width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
}

.accessory span {
    font-weight: 600;
}

.promo-section {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    background-color: #000;
}

.promo-section img.background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.promo-section .promo-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    color: #fff;
}

.promo-content h2 {
    font-size: 1.875rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.promo-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 42rem;
}

.vr2-section {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    background-color: #000;
}

.vr2-section img.background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.vr2-section .promo-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 2rem;
    color: #fff;
    text-align: left;
    justify-content: flex-start;
}

.vr2-section .vr2-text {
    max-width: 36rem;
}

.vr2-section h2 {
    font-size: 1.875rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.vr2-section p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.games-section {
    background-color: var(--ps-gray-dark);
    padding: 4rem 0;
}

.games-section h2 {
    font-size: 1.875rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-bottom: 3rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.game {
    text-decoration: none;
}

.game-img {
    aspect-ratio: 3 / 4;
    border-radius: 0.75rem;
    overflow: hidden;
}

.game img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game:hover img {
    transform: scale(1.05);
}

.game h3 {
    color: #fff;
    font-weight: 600;
    font-size: 1.125rem;
    margin-top: 0.75rem;
}

.games-section .btn-container {
    margin-top: 3rem;
}

.anniversary {
    background-color: #fff;
    padding: 4rem 0;
}

.anniversary-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    text-align: center;
}

.anniversary-box img {
    width: 66.6%;
    max-width: 24rem;
}

.anniversary-text h2 {
    font-size: 1.875rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.anniversary-text p {
    font-size: 1.125rem;
    color: #374151;
    margin-bottom: 1.5rem;
}

.explore {
    background-color: var(--ps-blue-dark);
    padding: 4rem 0;
}

.explore h2 {
    font-size: 1.875rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-bottom: 3rem;
}

.explore-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.explore-card {
    text-decoration: none;
}

.explore-card-img-container {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.explore-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.explore-card:hover img {
    transform: scale(1.05);
}

.explore-card h3 {
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    text-align: center;
    margin-top: 1.5rem;
}

.news {
    background-color: #fff;
    padding: 4rem 0;
}

.news h2 {
    font-size: 1.875rem;
    font-weight: 800;
    color: #111827;
    text-align: center;
    margin-bottom: 3rem;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.news-item {
    display: flex;
    flex-direction: column;
    background-color: var(--ps-gray);
    border-radius: 0.5rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.news-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.news-item-img-container {
    width: 100%;
    height: 12rem;
    overflow: hidden;
}

.news-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover img {
    transform: scale(1.05);
}

.news-text {
    padding: 1.5rem;
    flex-grow: 1;
}

.news-text h3 {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.news-text p {
    font-size: 0.875rem;

    color: #4b5563;
}

.social {
    background-color: var(--ps-gray);
    padding: 4rem 0;
}

.social-content {
    text-align: center;
}

.social h2 {
    font-size: 1.875rem;

    font-weight: 800;
    color: #111827;

    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 20px;
}

.social-icons a {
    color: #4b5563;
    transition: color 0.2s;
}

.social-icons a:hover {
    color: var(--ps-blue);
}

.social-icons svg {
    width: 2rem;
    height: 2rem;
}

.footer {
    background-color: var(--ps-blue-dark);
    color: #fff;
    padding: 4rem 1rem 2rem 1rem;
}

.footer-top {
    padding-bottom: 2rem;
    border-bottom: 1px solid #4b5563;
  
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-top .ps-logo {
    height: 2.5rem;

    margin-bottom: 1.5rem;
}

.footer-region {
    font-size: 0.875rem;
    
    display: flex;
    align-items: center;
}

.footer-region svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2.5rem 0;
}

.footer-col h4 {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col a {
    font-size: 0.875rem;
    color: #d1d5db;
    text-decoration: none;
}

.footer-col a:hover {
    color: #fff;
}

.copyright {
    padding-top: 2rem;
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
}

.copyright p {
    margin-bottom: 1rem;
}

.copyright a {
    color: inherit;
    text-decoration: underline;
}

.copyright a:hover {
    color: #fff;
}


@media (min-width: 640px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 1024px;
    }

    #menu-btn {
        display: none;
    }

    .desktop-links {
        display: flex;
        gap: 0.5rem;
    }

    .signin-btn {
        display: inline-block;
    }

    .hero-text-box {
        padding: 4rem;
    }

    .hero-text h1 {
        font-size: 3rem;
        line-height: 1;
    }

    .hero-text p {
        font-size: 1.25rem;
    }

    .product-bar {
        gap: 3rem;
    }

    .ps5-section {
        padding: 6rem 0;
    }

    .ps5-section h2 {
        font-size: 3rem;
    }

    .ps5-section p {
        font-size: 1.25rem;
    }

    .accessories {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    .promo-content h2 {
        font-size: 3rem;
    }

    .promo-content p {
        font-size: 1.25rem;
    }

    .vr2-section .promo-content {
        padding: 4rem;
    }

    .vr2-section h2 {
        font-size: 3rem;
    }

    .vr2-section p {
        font-size: 1.25rem;
    }

    .games-section,
    .explore,
    .news,
    .social,
    .anniversary {
        padding: 6rem 0;
    }

    .games-section h2,
    .explore h2,
    .news h2,
    .social h2 {
        font-size: 3rem;
    }

    .game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    .anniversary-box {
        flex-direction: row;
        gap: 4rem;
        text-align: left;
    }

    .anniversary-box img {
        width: 33.3%;
    }

    .anniversary-text h2 {
        font-size: 2.25rem;
    }

    .explore-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .footer-top .ps-logo {
        margin-bottom: 0;
    }

    .footer-links {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1280px;
    }

    .desktop-links {
        gap: 1.5rem;
    }
}

/* تنسيق الحاوية الأساسية للكارد */
.game {
    text-decoration: none;
    background-color: #2a2a2a; /* خلفية رمادي غامق للكارد */
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #333;
}

/* حركة عند الوقوف بالماوس */
.game:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-color: var(--ps-blue); /* يظهر خط أزرق خفيف عند التحديد */
}

/* تنسيق الصورة */
.game-img {
    aspect-ratio: 3 / 4;
    width: 100%;
    overflow: hidden;
    background-color: #1a1a1a;
}

.game-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game:hover .game-img img {
    transform: scale(1.1); /* زووم خفيف للصورة عند الهوفر */
}

/* تنسيق النصوص (الاسم والسعر) */
.game h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 12px 12px 4px 12px;
    margin: 0;
    /* لمنع الاسم الطويل من تخريب التصميم */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* تنسيق السعر */
.game p {
    color: #0070d1; /* لون بلاي ستيشن الأزرق */
    font-size: 1.1rem;
    font-weight: 800;
    padding: 0 12px 15px 12px;
    margin: 0;
}
/* --- تنسيق الواجهة للكمبيوتر (Desktop) --- */
.hero-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
}

.background-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.overlay-buttons-container {
    position: absolute;
    /* مكان الأزرار في الكمبيوتر فوق الشاشة اللي في الصورة */
    top: 60%; 
    right: 12%;
    display: flex;
    gap: 25px;
    z-index: 10;
}

.nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: 0.3s ease;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 5px;
    display: none; /* بنخفي الأيقونات في الكمبيوتر عشان تبان أزرار بس */
}

.card-text {
    font-size: 1.5rem;
    font-weight: 900;
    text-shadow: 2px 2px 10px #000;
    font-family: 'Cairo', sans-serif;
}

.nav-card:hover .card-text {
    color: #f58220; /* لون برتقالي عند الوقوف بالماوس */
    transform: scale(1.1);
}

/* --- تنسيق الموبايل (التعديل الجوهري) --- */
@media (max-width: 768px) {
    .hero-wrapper {
        height: auto; /* بنخلي الطول مرن في الموبايل */
        display: flex;
        flex-direction: column;
    }

    .background-img {
        height: 40vh; /* الصورة بتاخد نص الشاشة بس في الموبايل */
    }

    .overlay-buttons-container {
        position: relative; /* بنخلي الكروت تحت الصورة مش فوقها */
        top: 0;
        right: 0;
        flex-direction: column; /* الكروت تحت بعض */
        padding: 20px;
        background: #0a0a0a; /* خلفية سوداء فخمة للكروت */
        width: 100%;
        gap: 15px;
    }

    .nav-card {
        flex-direction: row; /* الأيقونة والكلمة جمب بعض في الكارت */
        justify-content: space-between;
        background: linear-gradient(45deg, #1a1a1a, #222);
        border: 1px solid #f58220; /* برواز برتقالي */
        padding: 20px;
        border-radius: 15px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    }

    .card-icon {
        display: block; /* بنظهر الأيقونات في الموبايل عشان الشكل */
        font-size: 1.5rem;
    }
    .section h2 {
        font-size: 1.8rem;
    }
    .card-text {
        font-size: 1.2rem;
        text-shadow: none;
    }

    .nav-card:active {
        background: #f58220; /* الكارت ينور برتقالي لما تدوس عليه */
        color: #000;
    }
}
