* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 58, 96, 0.22), transparent 34%),
    radial-gradient(circle at top right, rgba(255, 151, 84, 0.14), transparent 30%),
    radial-gradient(circle at 50% 30%, rgba(109, 80, 255, 0.09), transparent 34%),
    #050507;
  color: #fff;
  overflow-x: hidden;
  transition: 0.4s ease;
}

body.fa {
  direction: rtl;
  text-align: right;
  font-family: 'Vazirmatn', sans-serif;
}

body.light {
  background:
    radial-gradient(circle at top left, rgba(255, 86, 120, 0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(255, 170, 90, 0.18), transparent 30%),
    #f7f1ea;
  color: #151515;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.55;
  z-index: -3;
}

.orb-one {
  width: 360px;
  height: 360px;
  background: #ff3d63;
  top: 10%;
  left: -140px;
}

.orb-two {
  width: 420px;
  height: 420px;
  background: #6d50ff;
  right: -170px;
  top: 45%;
}

.noise {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 4px 4px;
  pointer-events: none;
  z-index: -2;
  opacity: 0.18;
}

.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(8,8,12,0.62);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  z-index: 1000;
  box-shadow: 0 20px 60px rgba(0,0,0,0.22);
}

body.light .navbar {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,0,0,0.08);
}

.logo {
  display: flex;
  gap: 14px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.logo-circle {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff3d63, #ff9b5f);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 12px 34px rgba(255,77,109,0.32);
}

.logo h3 { font-size: 18px; }
.logo p { font-size: 12px; opacity: 0.58; }

nav {
  display: flex;
  gap: 10px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
}

nav a {
  color: inherit;
  opacity: 0.7;
  text-decoration: none;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  transition: 0.3s;
}

nav a:hover {
  opacity: 1;
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.nav-actions {
  display: flex;
  gap: 10px;
}

.control-btn {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: inherit;
  padding: 11px 15px;
  border-radius: 16px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 800;
}

.control-btn:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.13);
}

.hero {
  min-height: 100vh;
  padding: 160px 8% 90px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 76px;
  align-items: center;
}

.badge {
  display: inline-flex;
  padding: 10px 17px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: #ff9b9b;
  font-size: 12px;
  letter-spacing: 2.5px;
  margin-bottom: 28px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
}

.hero h1 {
  font-size: clamp(46px, 6.4vw, 88px);
  line-height: 1.01;
  margin-bottom: 28px;
  letter-spacing: -4px;
  text-shadow: 0 18px 55px rgba(255,77,109,0.16);
}

body.fa .hero h1 {
  letter-spacing: -1px;
}

.hero h1 strong {
  display: block;
  background: linear-gradient(90deg, #ff4d6d, #ffb36b, #ffd3a5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text {
  max-width: 690px;
  opacity: 0.72;
  font-size: 18px;
  line-height: 1.95;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 44px;
}

.btn {
  position: relative;
  overflow: hidden;
  padding: 16px 28px;
  border-radius: 18px;
  text-decoration: none;
  transition: 0.3s;
  font-weight: 800;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-130%);
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.24), transparent);
  transition: 0.65s;
}

.btn:hover::before {
  transform: translateX(130%);
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #ff4d6d, #ff9966);
  box-shadow: 0 20px 48px rgba(255,77,109,0.3);
}

.secondary-btn {
  color: inherit;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.12);
}

.btn:hover { transform: translateY(-5px); }

.hero-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.stat-card,
.info-card,
.article-box,
.floating-card,
.panel-card,
.detail-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.065), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.09);
  backdrop-filter: blur(20px);
  box-shadow:
    0 18px 48px rgba(0,0,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

body.light .stat-card,
body.light .info-card,
body.light .article-box,
body.light .panel-card {
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(0,0,0,0.08);
}

.stat-card {
  min-width: 150px;
  padding: 22px;
  border-radius: 26px;
}

.stat-card h3 { font-size: 28px; }
.stat-card p { opacity: 0.62; margin-top: 8px; }

.dynamic-card {
  position: relative;
  overflow: hidden;
  transition: 0.35s ease;
}

.dynamic-card::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-130%);
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.07), transparent);
  transition: 0.75s;
}

.dynamic-card:hover::before {
  transform: translateX(130%);
}

.dynamic-card:hover {
  transform: translateY(-10px) scale(1.015);
  border-color: rgba(255,255,255,0.21);
  box-shadow: 0 28px 70px rgba(0,0,0,0.34);
}

.dynamic-card:hover h3,
.dynamic-card:hover p,
.dynamic-card:hover small {
  opacity: 1;
}

.hero-right {
  position: relative;
}

.main-visual {
  height: 720px;
  border-radius: 46px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(to top, rgba(0,0,0,0.82), rgba(0,0,0,0.14)),
    url("./assets/hero-tokyo.png");
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.11);
  box-shadow: 0 34px 120px rgba(0,0,0,0.5);
}

.main-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255,77,109,0.28), transparent 38%),
    linear-gradient(135deg, rgba(255,255,255,0.05), transparent 44%);
  pointer-events: none;
}

.overlay-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 12%, rgba(255,77,109,0.32), transparent 38%);
}

.visual-content {
  position: absolute;
  left: 42px;
  bottom: 42px;
  z-index: 2;
}

body.fa .visual-content {
  left: unset;
  right: 42px;
}

.visual-content span { color: #ff9b9b; font-size: 22px; font-weight: 800; }
.visual-content h2 { font-size: 54px; margin: 10px 0; }
.visual-content p { opacity: 0.74; }

.floating-card {
  position: absolute;
  padding: 19px 23px;
  border-radius: 26px;
  z-index: 5;
}

.card-one { top: 45px; left: -38px; }
.card-two { bottom: 50px; right: -34px; }

body.fa .card-one {
  left: unset;
  right: -38px;
}

body.fa .card-two {
  right: unset;
  left: -34px;
}

.floating-card p { opacity: 0.62; font-size: 13px; }
.floating-card h3 { margin-top: 6px; }

.section {
  padding: 112px 8%;
}

.section-header p {
  color: #ff8a8a;
  letter-spacing: 3px;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(36px, 5vw, 58px);
  margin-bottom: 56px;
  line-height: 1.1;
}

.article-box {
  padding: 38px;
  border-radius: 34px;
  max-width: 1120px;
}

.article-box p {
  font-size: 18px;
  line-height: 2.05;
  opacity: 0.76;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 24px;
}

.info-card {
  padding: 36px;
  border-radius: 34px;
  cursor: pointer;
}

.card-icon {
  font-size: 42px;
  color: #ff6b81;
  margin-bottom: 22px;
  transition: 0.35s;
}

.info-card:hover .card-icon {
  transform: scale(1.18) rotate(-4deg);
}

.info-card h3 {
  font-size: 29px;
  margin-bottom: 16px;
}

.info-card p {
  opacity: 0.68;
  line-height: 1.9;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 22px;
}

.gallery-item {
  min-height: 370px;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.1);
}

.large-item { background-image: url("./assets/shibuya.png"); }
.small-item-one { background-image: url("./assets/kyoto.png"); }
.small-item-two { background-image: url("./assets/cafe.png"); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82), rgba(0,0,0,0.06));
}

.gallery-content {
  position: absolute;
  bottom: 28px;
  left: 28px;
  z-index: 2;
}

body.fa .gallery-content {
  left: unset;
  right: 28px;
}

.gallery-content p { opacity: 0.72; }
.gallery-content h3 { font-size: 31px; margin-top: 6px; }

.panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 24px;
  transition: 0.35s ease;
}

.panel-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.detail-panel {
  width: min(1120px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: rgba(9,9,13,0.92);
  border-radius: 36px;
  padding: 38px;
  position: relative;
  transform: translateY(28px) scale(0.96);
  transition: 0.35s ease;
}

.panel-backdrop.active .detail-panel {
  transform: translateY(0) scale(1);
}

body.light .detail-panel {
  background: rgba(255,255,255,0.9);
  color: #111;
}

.close-btn {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.09);
  color: inherit;
  font-size: 30px;
  cursor: pointer;
}

body.fa .close-btn {
  right: unset;
  left: 24px;
}

.panel-title {
  font-size: clamp(34px, 5vw, 48px);
  margin-bottom: 16px;
}

.panel-subtitle {
  opacity: 0.72;
  line-height: 1.9;
  margin-bottom: 34px;
  max-width: 860px;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px,1fr));
  gap: 18px;
}

.panel-card {
  padding: 26px;
  border-radius: 28px;
}

.panel-card .emoji {
  font-size: 38px;
  display: block;
  margin-bottom: 18px;
}

.panel-card h3 {
  font-size: 23px;
  margin-bottom: 12px;
}

.panel-card p {
  opacity: 0.74;
  line-height: 1.85;
  margin-bottom: 12px;
}

.panel-card small {
  opacity: 0.62;
  line-height: 1.75;
  display: block;
}

.footer {
  padding: 80px 8% 90px;
}

.footer-inner {
  max-width: 1000px;
  margin: auto;
  padding: 46px;
  border-radius: 36px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.09);
  backdrop-filter: blur(20px);
}

body.light .footer-inner {
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(0,0,0,0.08);
}

.footer h3 {
  font-size: 34px;
  margin-bottom: 14px;
}

.footer p {
  opacity: 0.65;
  max-width: 720px;
  margin: auto;
  line-height: 1.9;
}

body.fa .footer,
body.fa .footer-inner {
  direction: rtl;
  text-align: center;
}

body.fa .footer p {
  text-align: center;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #08080c; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff4d6d, #ff9966);
  border-radius: 999px;
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .main-visual {
    height: 540px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  nav {
    display: none;
  }

  .floating-card {
    display: none;
  }
}

@media (max-width: 650px) {
  .navbar {
    top: 10px;
    width: calc(100% - 20px);
  }

  .logo p {
    display: none;
  }

  .hero {
    padding: 140px 5% 70px;
  }

  .section {
    padding: 80px 5%;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }

  .main-visual {
    height: 440px;
    border-radius: 34px;
  }

  .visual-content h2 {
    font-size: 38px;
  }

  .detail-panel {
    padding: 28px;
  }
}