/* ============================
Font
============================ */
@font-face {
  font-family: 'IphoneMedium';
  src: url('Font/iPhone/iphone-fonst/Ios 15 Medium.ttf') format('truetype');
}

@font-face {
  font-family: 'Lalezar';
  src: url('Font/Lalezar/Digi Lalezar Plus.ttf') format('truetype');
}

/* ============================
Body Style
============================ */
body {
  margin: 0;
  background: rgba(255,255,255,0.06);
  font-family: 'IphoneMedium', sans-serif;
  font-size: 1rem;
  direction: rtl;
  text-align: right;
  scroll-behavior: smooth;
}

/* ============================
Header
============================ */
.header {
  background: #000;
  color: #fff;
  padding: 12px 0;
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}
.header-container {
  width: 100%;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.header-links {
  display: flex;
  gap: clamp(40px, 9vw, 150px);
}
.header-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1em;
  transition: color .3s, transform .3s;
}
.header-links a:hover {
  color: #bdbdbd;
  transform: scale(1.05);
}
.logo-container {
  display: flex;
  justify-content: center;
  flex-grow: 0.5;
}
.logo {
  max-width: 120px;
  transition: transform .3s;
  cursor: pointer;
}
.logo:hover {
  transform: scale(1.4);
}

/* ------------------------------------------------------------------
hamburger panel
------------------------------------------------------------------ */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 10px;
  z-index: 1001;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 250px;
  height: 100vh;
  background: #222;
  color: #fff;
  transform: translateX(100%);
  transition: transform .3s ease-in-out;
  z-index: 1000;
  overflow-y: auto;
  padding-top: 60px;
}
.mobile-nav a {
  display: block;
  padding: 15px 20px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid #444;
  font-size: 1.1rem;
}
.mobile-nav a:hover { background: #333; }
.mobile-menu.open { transform: translateX(0); }

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease;
  z-index: 999;
}
.overlay.show { opacity: 1; visibility: visible; }

body.no-scroll { overflow: hidden; }
/* ============================
Sport Fields section
============================ */
.sports-section {
    background: radial-gradient(1200px 600px at 50% -10%, rgba(255,255,255,0.06), transparent 55%),
    linear-gradient(180deg, #0f0f12 0%, #141418 55%, #0f0f12 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.section-title {
    text-align: center;
    font-size: clamp(32px, 3.2vw, 36px);
    font-weight: 900;
    letter-spacing: 0.2px;
    margin-bottom: 100px;
    opacity: 0.95;
}
.highlight {
    color: red;
    font-weight: bold;
}
.sports-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
    margin: 0 auto;
    justify-items: center;
}

.sport-item {
    width: clamp(320px, 25vw, 820px);
    height: clamp(100px, 18vw, 220px);
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease-in-out;
}

/* لینک‌های عکس */
.sport-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* عکس دقیقاً اندازه باکس */
.sport-image{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;     /* فیت شدن داخل باکس بدون بیرون زدن */
  object-position: center;
  filter: grayscale(0%);
  transform: scale(1);
  transition: transform 0.6s ease, filter 0.6s ease;
}

/* هاور: سیاه‌وسفید + زوم داخل کادر */
.sport-item:hover .sport-image{
  filter: grayscale(100%);
  transform: scale(0.90);
}

/* نوشته روی هر عکس */
.sport-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 15px;
}

.sport-overlay h3 {
    font-family: 'Iphone Medium', sans-serif;
    font-size: 22px;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}
/* گرادینت زنده روی هر باکس */
.sport-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at center,
        rgba(106, 106, 106, 0.08),
        rgba(0, 0, 0, 0.493)
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.sport-item:hover::before {
    opacity: 1;
}

/* Glow خیلی ظریف */
.sport-item:hover {
    box-shadow:
        0 0 30px rgba(255, 255, 255, 0.08),
        0 20px 60px rgba(0, 0, 0, 0.8);
}

/* برای parallax */
.sport-image {
    will-change: transform;
}
.reveal {
    opacity: 0;
    transform: translateY(50px); /* یا هر مقدار دیگری که دوست دارید */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* افکت‌ها فقط داخل باکس هستن */
/* ریسپانسیو برای موبایل و تبلت‌ها */
@media (max-width: 1050px){
  .sport-item{
    width: clamp(280px, 25vw, 720px);
    height: clamp(100px, 18vw, 220px);
  }
  }
  @media (max-width: 900px){
  .sport-item{
    width: clamp(220px, 25vw, 620px);
    height: clamp(100px, 18vw, 220px);
  }
  }
@media (max-width: 768px) {
    .sport-item{
    width: clamp(390px, 20vw, 700px);
    height: clamp(200px, 10vw, 280px);
    }
    .sports-container {
        padding-bottom: 5px;
        grid-template-columns: 1fr;
        gap: 50px;
        max-width: 100%;
    }
    .section-title {
        font-size: 26px;
        margin-bottom: 40px;
    }
    .sports-container{
    margin-left: 30px;
    margin-right: 30px;
    }
}
@media (max-width:500px){
  .sport-item{
    width: 300px;
    height: 200px;
  }
}
@media (max-width:375px){
  .sport-item{
    width: 250px;
    height: 160px;
  }
}
/* ============================
  Footer
============================ */
.footer {
  background: #0a0a0a;
  color: #eee;
  padding: 50px;
  font-family: 'IphoneMedium', sans-serif;
  border-top: 4px solid #0c0c0c;
  box-sizing: border-box;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.footer-section h3 {
  font-family: 'Lalezar', cursive;
  color: #fff;
  margin-bottom: 15px;
}

.footer-section p {
  margin-bottom: 10px;
}

.location-link{
  color: #ddd;
  text-decoration: none;
  transition: all 0.3s ease;
}
.location-link:hover{
  color: red;
}
.contact-link {
  color: #ddd;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-link:hover {
  color: red;
}

.social-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 35px;
  margin-top: 20px;
  background: #181818;
  padding: 3px;
  border-radius: 12px;
  width: 100%;
  max-width: 100%;
  border: 1px solid #333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link img {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease, filter 0.3s;
  filter: grayscale(100%);
}

.social-link:hover img {
  transform: translateY(-5px) scale(1.1);
  filter: grayscale(0%);
}

.designer-link {
  color: #ff5252;
  text-decoration: none;
  font-weight: bold;
}

/* موبایل */
@media (max-width: 900px) {
  .footer-section {
    max-width: 100%;
    text-align: center;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-section {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
  }

  .social-box {
    width: 100%;
    justify-content: center;
  }
}

/* ============================
Responsive
============================ */
@media (max-width: 900px) {
  .icon-item {
    max-width: 30%;
  }
  .icon-item {
    max-width: 45%;
  }
  .icon-img {
    width: 50px;
    height: 50px;
  }
  .icon-text {
    font-size: 13px;
  }
  .hamburger-btn {
     display: block; 
  }
  .header-links { 
    display: none;
  }
}
@media (max-width: 400px) {
  .icon-item {
    max-width: 100%;
  }
}
