/* Nati Games — redesign on the charcoal + sage palette.
   Colors come only from root.css variables. This file does not define :root. */

#body {
  background-color: var(--bg);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* =========================
   HEADER / NAV
========================= */

.header-1 {
  width: 95%;
  height: 90px;
  margin: 2.5% auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 9999999;
  background-color: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  border-radius: 24px;
}

.header-logo {
  width: 64px;
  margin-right: 20px;
  border-radius: 16px;
}

.header-nav-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  position: relative;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.btn-menu-1 {
  width: 150px;
  height: 46px;
  border: 1px solid transparent;
  border-radius: 12px;
  outline: none;
  background-color: transparent;
  color: var(--accent);
  transition: 0.25s ease;
}

.btn-menu-1:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.btn-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  cursor: pointer;
  background-color: var(--surface-2);
  transition: 0.25s ease;
  z-index: 10;
}

.btn-hamburger:hover,
.btn-hamburger.active {
  border-color: var(--accent);
}

.btn-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 5px;
  background-color: var(--text);
  transition: 0.25s ease;
}

.btn-hamburger.active span {
  background-color: var(--accent);
}

.btn-hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.btn-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.btn-hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =========================
   HERO
========================= */

.sec-main {
  width: 95%;
  margin: 0 auto;
  padding: 16px;
  background-color: color-mix(in srgb, var(--accent) 22%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: 36px;
  overflow: hidden;
}

.main-row {
  align-items: stretch;
}

.box-latest {
  height: 100%;
  min-height: 70vh;
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background-color: var(--surface-2);
  background-image:
    linear-gradient(180deg, rgba(17, 17, 17, 0.05), rgba(17, 17, 17, 0.85)),
    url("../../media/img/nati_games_logo.png");
  background-size: cover;
  background-position: center;
  transition: border-color 0.3s ease;
}

.box-latest:hover {
  border-color: var(--accent);
}

.latest-overlay {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  background: linear-gradient(to top, rgba(17, 17, 17, 0.9), rgba(17, 17, 17, 0) 70%);
}

.latest-badge {
  width: fit-content;
  margin-bottom: 16px;
  padding: 6px 16px;
  border-radius: 8px;
  background-color: var(--accent);
  color: var(--bg);
  font-size: 13px;
  font-weight: bold;
}

.latest-overlay h3 {
  margin: 0 0 24px;
  color: var(--text);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.35;
}

.btn-main {
  width: fit-content;
  padding: 14px 26px;
  border: none;
  border-radius: 12px;
  outline: none;
  background-color: var(--accent);
  color: var(--bg);
  font-weight: bold;
  cursor: pointer;
  transition: 0.25s ease;
}

.btn-main i {
  margin-left: 10px;
  transition: 0.25s ease;
}

.btn-main:hover {
  background-color: var(--accent-2);
  transform: translateY(-2px);
}

.btn-main:hover i {
  transform: translateX(5px);
}

.box-main-left-side {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  direction: ltr !important;
  padding: 40px;
}

.main-content {
  width: 90%;
}

.small-title {
  display: block;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 15px;
  text-align: center;
}

.h1-main {
  margin: 0;
  padding: 28px 30px;
  background-color: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 24px;
  color: var(--text);
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

.h1-main span {
  color: var(--accent);
}

.est-line {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 30px 20px;
}

.est-line div {
  flex: 1;
  height: 1px;
  background-color: color-mix(in srgb, var(--accent) 55%, var(--line));
}

.h2-main {
  margin: 0;
  padding: 8px 20px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background-color: var(--accent);
  color: var(--bg);
  font-size: 17px;
  letter-spacing: 3px;
  text-align: center;
  white-space: nowrap;
}

.main-description {
  max-width: 480px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 2;
  text-align: center;
}

/* =========================
   ABOUT
========================= */

.sec-about-us {
  width: 95%;
  margin: 100px auto;
  padding: 100px 5%;
  position: relative;
  overflow: hidden;
  background-color: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  border-radius: 36px;
}

.sec-about-us::before {
  content: "";
  position: absolute;
  top: -250px;
  right: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 70px solid color-mix(in srgb, var(--accent) 16%, transparent);
  pointer-events: none;
}

.about-header {
  position: relative;
  z-index: 2;
  max-width: 750px;
  margin: 0 auto 80px;
  text-align: center;
}

.about-label {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 16px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background-color: var(--accent);
  color: var(--bg);
  font-size: 13px;
  font-weight: bold;
}

.about-header h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 900;
  line-height: 1.2;
}

.about-header h2 span {
  color: var(--accent);
}

.about-header p {
  max-width: 600px;
  margin: 24px auto 0;
  color: color-mix(in srgb, var(--accent) 35%, var(--muted));
  font-size: 16px;
  line-height: 2;
}

.team-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.team-card {
  width: 31%;
  min-height: 500px;
  position: relative;
  overflow: hidden;
  background-color: color-mix(in srgb, var(--accent) 8%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  border-radius: 24px;
  transition: 0.3s ease;
}

.team-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
}

.team-card-main {
  min-height: 550px;
  transform: translateY(-25px);
  border-color: var(--accent);
}

.team-card-main:hover {
  transform: translateY(-35px);
}

.member-image {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
  background-color: var(--bg);
}

.member-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg), transparent 45%);
}

.member-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: 0.5s ease;
}

.team-card:hover .member-image img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.member-info {
  position: relative;
  z-index: 3;
  padding: 10px 28px 30px;
}

.member-info h3 {
  margin: 0;
  color: var(--text);
  font-size: 26px;
  font-weight: 800;
}

.member-info span {
  display: block;
  margin-top: 6px;
  color: var(--accent);
  font-size: 14px;
  font-weight: bold;
}

.member-line {
  width: 40px;
  height: 2px;
  margin: 16px 0;
  border-radius: 10px;
  background-color: var(--accent);
}

.member-info p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.about-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 70px;
}

.about-bottom span {
  color: var(--accent);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 3px;
}

.about-bottom div {
  flex: 1;
  height: 1px;
  background-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

/* =========================
   STORE
========================= */

.store {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 40px 20px 80px;
}

.store-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 25px;
  width: min(700px, 100%);
  min-height: 170px;
  padding: 30px 40px;
  overflow: hidden;
  background-color: color-mix(in srgb, var(--accent) 14%, var(--surface));
  border: 1px solid var(--accent);
  border-radius: 24px;
  color: var(--text);
  text-decoration: none;
  transition: 0.3s ease;
}

.store-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent);
}

.store-btn:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-6px);
}

.store-btn-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 18px;
  background-color: var(--accent);
  color: var(--bg);
  font-size: 34px;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.store-btn-text strong {
  font-size: 40px;
  font-weight: 900;
}

.store-btn-text small {
  color: color-mix(in srgb, var(--accent) 45%, var(--muted));
  font-size: 16px;
}

.store-arrow {
  margin-right: auto;
  color: var(--accent);
  font-size: 28px;
  transition: 0.3s ease;
}

.store-btn:hover .store-arrow {
  transform: translateX(-8px);
}

/* =========================
   CONTACT
========================= */

.sec-callus {
  position: relative;
  width: 90%;
  min-height: 500px;
  margin: 5%;
  padding: 30px;
  overflow: hidden;
  background-color: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  border-radius: 32px;
}

.callus-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.glow-1 {
  top: -110px;
  right: -80px;
  background: var(--accent);
  opacity: 0.3;
}

.glow-2 {
  bottom: -130px;
  left: -100px;
  background: var(--accent);
  opacity: 0.18;
}

.p-header-callus {
  position: relative;
  margin: 0 0 24px;
  padding: 30px;
  background-color: color-mix(in srgb, var(--accent) 20%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: 20px;
  text-align: center;
}

.p-header-callus h1 {
  margin: 0;
  color: var(--text);
  font-size: 42px;
  font-weight: 900;
}

.p-header-callus p {
  margin: 12px 0 0;
  color: color-mix(in srgb, var(--accent) 35%, var(--muted));
  font-size: 16px;
  line-height: 1.9;
}

.header-icon {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 28px;
}

.box-input-callus {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: 30px;
  background-color: color-mix(in srgb, var(--accent) 6%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 20px;
}

.input-group-callus {
  margin-bottom: 20px;
  text-align: right;
}

.input-group-callus label {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: bold;
}

.box-input-callus input,
.box-input-callus textarea {
  width: 100%;
  box-sizing: border-box;
  background-color: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.box-input-callus input {
  height: 56px;
  padding: 0 18px;
  border-radius: 12px;
  text-align: right;
}

.box-input-callus textarea {
  height: 160px;
  padding: 15px 18px;
  border-radius: 12px;
  direction: rtl;
  resize: vertical;
}

.box-input-callus input::placeholder,
.box-input-callus textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.box-input-callus input:focus,
.box-input-callus textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.btn-send-callus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 90%;
  height: 60px;
  margin: 25px auto 0;
  background-color: var(--accent);
  border: none;
  border-radius: 14px;
  color: var(--bg);
  font-family: inherit;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.25s ease;
}

.btn-send-callus:hover {
  background-color: var(--accent-2);
  transform: translateY(-2px);
}

.btn-send-callus:active {
  transform: translateY(0);
}

.btn-send-callus:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.send-icon {
  font-size: 22px;
  transition: 0.25s ease;
}

.btn-send-callus:hover .send-icon {
  transform: translateX(-5px);
}

.loading-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.loader {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(17, 17, 17, 0.25);
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: loading 0.8s linear infinite;
}

@keyframes loading {
  to {
    transform: rotate(360deg);
  }
}

/* =========================
   FOOTER
========================= */

.footer {
  position: relative;
  width: 95%;
  margin: 0 auto 40px;
  padding: 70px 5% 30px;
  overflow: hidden;
  background-color: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  border-radius: 32px;
}

.footer-top {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-col {
  flex: 1;
  min-width: 200px;
}

.footer-brand {
  flex: 1.6;
  min-width: 260px;
}

.footer-logo {
  width: 64px;
  margin-bottom: 20px;
  border-radius: 16px;
}

.footer-brand p {
  max-width: 320px;
  margin: 0 0 24px;
  color: color-mix(in srgb, var(--accent) 30%, var(--muted));
  font-size: 14px;
  line-height: 1.9;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background-color: var(--accent);
  color: var(--bg);
  font-size: 16px;
  transition: 0.25s ease;
}

.footer-socials a:hover {
  background-color: var(--accent-2);
  border-color: var(--accent-2);
  color: var(--bg);
  transform: translateY(-3px);
}

.footer-col h4 {
  position: relative;
  margin: 0 0 24px;
  padding-bottom: 12px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 800;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 2px;
  border-radius: 10px;
  background-color: var(--accent);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col ul li a {
  color: color-mix(in srgb, var(--accent) 30%, var(--muted));
  font-size: 14px;
  text-decoration: none;
  transition: 0.25s ease;
}

.footer-col ul li a:hover {
  padding-right: 5px;
  color: var(--accent);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: color-mix(in srgb, var(--accent) 30%, var(--muted));
  font-size: 14px;
}

.footer-contact li i {
  color: var(--accent);
}

.footer-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
}

.footer-bottom span {
  color: var(--accent);
  font-size: 11px;
  font-weight: bold;
  white-space: nowrap;
}

.footer-bottom div {
  flex: 1;
  height: 1px;
  background-color: var(--line);
}

.box-enamad {
  width: 100%;
  height: fit-content;
  margin-top: 30px;
  border-radius: 12px;
  background-color: #fff;
  text-align: center;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {
  .header-1 {
    height: 80px;
    padding: 0 15px;
  }

  .header-logo {
    width: 56px;
    margin-right: 10px;
  }

  .btn-hamburger {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    padding: 16px;
    background-color: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: 0.25s ease;
  }

  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu .row {
    flex-direction: column;
    gap: 8px;
  }

  .nav-menu .row>div {
    flex: 0 0 100%;
    width: 100% !important;
    max-width: 100%;
  }

  .btn-menu-1 {
    width: 100%;
  }

  .sec-main {
    border-radius: 28px;
  }

  .box-latest {
    height: 60vh;
    min-height: 0;
    margin-bottom: 16px;
  }

  .box-main-left-side {
    padding: 30px 10px;
  }

  .sec-about-us {
    padding: 80px 4%;
    border-radius: 28px;
  }

  .team-container {
    flex-wrap: wrap;
  }

  .team-card {
    width: 45%;
  }

  .team-card-main {
    transform: none;
  }

  .team-card-main:hover {
    transform: translateY(-10px);
  }

  .footer {
    padding: 60px 6% 30px;
    border-radius: 28px;
  }

  .footer-top {
    gap: 35px;
  }
}

@media (max-width: 768px) {
  .sec-callus {
    width: 92%;
    margin: 4%;
    padding: 15px;
    border-radius: 24px;
  }

  .p-header-callus {
    padding: 25px 15px;
  }

  .p-header-callus h1 {
    font-size: 30px;
  }

  .p-header-callus p {
    font-size: 14px;
  }

  .box-input-callus {
    padding: 20px 15px;
  }

  .btn-send-callus {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .sec-about-us {
    width: 92%;
    margin: 60px auto;
    padding: 60px 20px;
    border-radius: 24px;
  }

  .about-header {
    margin-bottom: 50px;
  }

  .team-container {
    flex-direction: column;
  }

  .team-card,
  .team-card-main {
    width: 100%;
    min-height: auto;
    transform: none;
  }

  .team-card-main:hover {
    transform: translateY(-8px);
  }

  .member-image {
    height: 320px;
  }

  .footer {
    width: 92%;
    padding: 50px 6% 25px;
    border-radius: 24px;
  }

  .footer-top {
    flex-direction: column;
    gap: 35px;
    padding-bottom: 35px;
  }

  .footer-bottom {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .footer-bottom div {
    display: none;
  }
}

@media (max-width: 576px) {
  .header-1 {
    width: 94%;
    height: 68px;
    margin: 3% auto;
    padding: 0 10px;
    border-radius: 18px;
  }

  .header-logo {
    width: 46px;
    margin-right: 5px;
  }

  .btn-hamburger {
    width: 42px;
    height: 42px;
  }

  .nav-menu {
    top: 62px;
  }

  .sec-main {
    width: 92%;
    padding: 10px;
    border-radius: 22px;
  }

  .box-latest {
    height: 45vh;
    border-radius: 16px;
  }

  .latest-overlay {
    padding: 24px;
  }

  .latest-overlay h3 {
    font-size: 28px;
  }

  .h1-main {
    padding: 20px;
    border-radius: 18px;
    font-size: 32px;
  }

  .main-content {
    width: 100%;
  }

  .est-line {
    margin: 25px 0;
  }

  .store {
    padding: 30px 15px 50px;
  }

  .store-btn {
    min-height: 130px;
    gap: 15px;
    padding: 20px;
  }

  .store-btn-icon {
    width: 62px;
    height: 62px;
    font-size: 26px;
  }

  .store-btn-text strong {
    font-size: 26px;
  }

  .store-btn-text small {
    font-size: 13px;
  }

  .store-arrow {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}