*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

html {
  scroll-padding-top: 95px;
}

img,
video,
iframe {
  max-width: 100%;
}

.container {
  width: min(92%, 1400px);
}

/* =========================================================
   NAVBAR / HAMBURGER
   ========================================================= */

.nav-toggle {
  display: none;
}

.hamburger-menu {
  display: none;
}

@media (max-width: 1100px) {
  .nav-inner {
    width: 94%;
    gap: 14px;
  }

  .logo-icon {
    width: 120px;
  }

  .nav-links {
    gap: 4px;
  }

  .nav-link {
    padding: 10px 12px;
    font-size: 15px;
    letter-spacing: 0.7px;
  }
}

@media (max-width: 820px) {
  .navbar {
    position: fixed;
    padding: 0 !important;
  }

  .nav-inner {
    width: 94% !important;
    height: 86px !important;
    min-height: 86px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0 !important;
  }

  .logo-link,
  .logo-section,
  .logo-wrapper {
    height: 86px !important;
    display: flex !important;
    align-items: center !important;
  }

  .logo-section:hover,
  .logo-section:hover .logo-icon {
    transform: none !important;
  }

  .logo-icon {
    width: 150px !important;
    max-width: 150px !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
    transform: translateY(2px) !important;
  }

  .hamburger-menu {
    width: 46px;
    height: 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 1002;
    transition: 0.3s ease;
  }

  .hamburger-menu span {
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 999px;
    transition: 0.3s ease;
  }

  .hamburger-menu:hover {
    background: rgba(75, 59, 255, 0.22);
    border-color: rgba(75, 59, 255, 0.45);
  }

  .nav-links {
    position: fixed;
    top: 96px;
    right: 4%;
    width: min(300px, 92vw);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(
      180deg,
      rgba(5, 5, 15, 0.98) 0%,
      rgba(10, 5, 35, 0.98) 100%
    );
    border: 1px solid rgba(75, 59, 255, 0.25);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(25px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px) scale(0.96);
    transition: 0.28s ease;
    z-index: 1001;
  }

  .nav-toggle:checked ~ .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-toggle:checked + .hamburger-menu span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle:checked + .hamburger-menu span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .hamburger-menu span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-link {
    width: 100%;
    flex: 0 0 auto;
    justify-content: flex-start;
    padding: 14px 16px;
    font-size: 17px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.07);
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(75, 59, 255, 0.18);
  }

  .link-underline,
  .link-glow {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    width: 94% !important;
    height: 86px !important;
    min-height: 86px !important;
  }

  .logo-link,
  .logo-section,
  .logo-wrapper {
    height: 86px !important;
  }

  .logo-icon {
    width: 145px !important;
    max-width: 145px !important;
    transform: translateY(2px) !important;
  }

  .hamburger-menu {
    width: 43px;
    height: 43px;
  }

  .nav-links {
    top: 96px;
    width: 92vw;
  }

  .nav-link {
    font-size: 15px;
    padding: 13px 15px;
  }
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  min-height: 90vh !important;
  height: 90vh !important;
  overflow: hidden;
}

.hero-video {
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: translateX(-50%) !important;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-family: "Kolker Brush", cursive;
  font-weight: 400;
  font-size: clamp(200px, 7vw, 250px);
  line-height: 1;
  letter-spacing: 3px;
  color: #ffffff;
  text-align: center;
  margin: 0;
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.08),
    0 0 30px rgba(75, 59, 255, 0.15);
}

.hero h2 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  margin-top: -15px;
  font-size: clamp(18px, 2vw, 32px);
  letter-spacing: 8px;
  text-transform: uppercase;
  color: #ffffff;
  text-align: center;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.06),
    0 0 20px rgba(75, 59, 255, 0.12);
}

@media (max-width: 900px) {
  .hero {
    min-height: 75vh !important;
    height: 75vh !important;
    padding: 140px 16px 60px !important;
  }

  .hero h1 {
    font-size: clamp(42px, 10vw, 72px);
    letter-spacing: 2px;
  }

  .hero h2 {
    font-size: clamp(16px, 5vw, 24px);
    letter-spacing: 6px;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 75vh !important;
    height: 75vh !important;
    padding-top: 130px !important;
  }

  .hero h1 {
    font-size: clamp(95px, 11vw, 150px);
    letter-spacing: 1px;
  }

  .hero h2 {
    font-size: clamp(10px, 6vw, 15px);
    letter-spacing: 4px;
    margin-top: 4px;
  }
}



/* =========================================================
   SECTIONS GLOBAIS
   ========================================================= */

@media (max-width: 768px) {
  .section,
  .events-section,
  .ranking-section,
  .gallery-section,
  .about-section {
    padding: 58px 0;
  }

  .events-section .container h2,
  .ranking-section .container h2 {
    font-size: 28px;
    margin-bottom: 28px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    width: 91%;
  }

  .events-section .container h2,
  .ranking-section .container h2 {
    font-size: 24px;
  }
}

/* =========================================================
   ABOUT
   ========================================================= */

@media (max-width: 900px) {
  .about-intro {
    font-size: 1.22rem;
    margin-bottom: 38px;
  }

  .about-cards {
    gap: 22px;
  }

  .about-card {
    width: calc(50% - 12px);
    min-width: 260px;
  }
}

@media (max-width: 620px) {
  .about-intro {
    font-size: 1.08rem;
    line-height: 1.65;
    margin-bottom: 30px;
  }

  .about-card {
    width: 100%;
    padding: 26px 18px;
  }

  .about-card h3 {
    font-size: 1.35rem;
  }

  .about-card p {
    font-size: 1.05rem;
  }

  .card-icon img {
    width: 52px;
  }
}

/* =========================================================
   EVENTS
   ========================================================= */

@media (max-width: 900px) {
  .events-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .event-card {
    height: 260px;
    min-height: 260px;
    max-height: 260px;
    overflow: hidden;
  }

  .event-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .event-card:hover {
    transform: none;
  }
}

@media (max-width: 520px) {
  .event-card {
    height: 220px;
    min-height: 220px;
    max-height: 220px;
    aspect-ratio: auto;
    border-radius: 18px;
  }

  .event-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

/* =========================================================
   RANKING
   ========================================================= */

@media (max-width: 1050px) {
  .ranking-columns {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 720px;
  }
}

@media (max-width: 620px) {
  .ranking-section {
    padding: 60px 0;
  }

  .ranking-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px;
    padding: 13px 12px;
    border-radius: 13px;
  }

  .ranking-player {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    flex: 1;
    min-width: 0;
  }

  .rank-number {
    width: 42px;
    min-width: 42px;
    height: 42px;
    font-size: 15px;
    flex-shrink: 0;
  }

  .rank-number .medal {
    font-size: 21px;
  }

  .player-name {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .player-badge {
    font-size: 10px;
  }

  .rank-points {
    font-size: 16px;
    white-space: nowrap;
    margin-left: auto;
    text-align: right;
    flex-shrink: 0;
  }
}

@media (max-width: 390px) {
  .ranking-row {
    grid-template-columns: 40px 1fr;
  }

  .rank-points {
    grid-column: 2;
    text-align: left;
    font-size: 15px;
  }

  .rank-number {
    width: 38px;
    min-width: 38px;
    height: 38px;
  }
}

/* =========================================================
   GALLERY
   ========================================================= */

@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .gallery-item {
    height: 200px;
  }
}

@media (max-width: 620px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gallery-item {
    height: 160px;
    padding: 4px;
    border-radius: 15px;
  }

  .gallery-item img {
    border-radius: 11px;
  }
}

@media (max-width: 380px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 210px;
  }
}

/* =========================================================
   MENU PAGE
   ========================================================= */

@media (max-width: 1200px) {
  .menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .menu-page-hero {
    padding: 150px 0 34px;
  }

  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-categories-nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .menu-categories-nav::-webkit-scrollbar {
    display: none;
  }

  .menu-category-pill {
    flex: 0 0 auto;
  }
}

@media (max-width: 620px) {
  .menu-page-hero {
    padding: 145px 0 30px;
  }

  .menu-page-hero h1 {
    font-size: 2rem;
  }

  .menu-page-hero p {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .menu-stats {
    gap: 10px;
  }

  .menu-stat {
    flex: 1 1 calc(50% - 10px);
    min-width: 130px;
  }

  .menu-section {
    padding: 16px 0 60px;
  }

  .menu-category-block {
    padding: 16px;
    border-radius: 18px;
  }

  .menu-category-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-category-count {
    align-self: flex-start;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .menu-card-image {
    height: 210px;
  }

  .menu-card-top {
    min-height: auto;
  }

  .menu-description {
    margin-top: 0;
  }
}

@media (max-width: 420px) {
  .menu-page-hero h1 {
    font-size: 1.75rem;
  }

  .menu-stat {
    flex-basis: 100%;
  }

  .menu-card-image {
    height: 190px;
  }

  .menu-card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */

@media (max-width: 1050px) {
  .contact-section {
    padding-top: 150px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-form-card,
  .contact-map-card {
    min-height: auto;
  }

  .contact-map-card iframe {
    min-height: 380px;
  }
}

@media (max-width: 700px) {
  .contact-section {
    padding: 145px 0 70px;
  }

  .contact-heading {
    margin-bottom: 32px;
  }

  .contact-heading h1 {
    font-size: clamp(2.35rem, 12vw, 4rem);
    letter-spacing: 2px;
  }

  .contact-heading p {
    font-size: 1.05rem;
    line-height: 1.6;
  }

  .contact-kicker {
    font-size: 0.68rem;
    padding: 0 14px;
    min-height: 31px;
  }

  .contact-form-card {
    padding: 22px;
    border-radius: 22px;
  }

  .contact-card-header h2 {
    font-size: 1.55rem;
  }

  .contact-card-header p {
    font-size: 1rem;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-field input {
    height: 52px;
  }

  .contact-field textarea {
    min-height: 150px;
    max-height: 220px;
    resize: vertical;
  }

  .contact-submit {
    margin-top: 6px;
  }

  .contact-map-card {
    padding: 6px;
    border-radius: 22px;
  }

  .contact-map-card iframe {
    min-height: 310px;
    border-radius: 16px;
  }
}

@media (max-width: 420px) {
  .contact-section {
    padding-top: 140px;
  }

  .contact-form-card {
    padding: 18px;
  }

  .contact-heading h1 {
    font-size: 2.25rem;
  }
}

/* =========================================================
   FOOTER
   ========================================================= */

@media (max-width: 700px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand {
    align-items: center;
    text-align: center;
    max-width: 100%;
  }

  .footer-logo-link {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .footer-logo {
    width: 140px;
  }

  .footer-brand-text {
    text-align: center;
    max-width: 420px;
    margin: 0 auto;
  }

  .footer-column {
    text-align: left;
    align-items: flex-start;
  }

  .footer-column h3,
  .footer-column ul,
  .footer-column li {
    text-align: left;
  }

  .footer-column ul {
    padding: 0;
  }

  .footer-bottom {
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    gap: 0;
  }

  .footer-bottom p {
    width: 100%;
    text-align: center;
    margin: 0;
  }

  .footer-bottom-links {
    display: none !important;
  }

  .footer-socials {
  justify-content: center;
}
}

/* =========================================================
   TOUCH DEVICES
   ========================================================= */

@media (hover: none) {
  .about-card:hover,
  .event-card:hover,
  .menu-card:hover,
  .ranking-row:hover,
  .logo-section:hover,
  .footer-logo-link:hover .footer-logo {
    transform: none;
  }

  .event-card:hover img,
  .menu-card:hover .menu-card-image img,
  .gallery-item:hover img {
    transform: none;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   MOBILE SECTION BACKGROUND IMPROVEMENTS
   ========================================================= */

@media (max-width: 768px) {
  .ranking-section {
    background:
      radial-gradient(circle at top left, rgba(75, 59, 255, 0.18) 0%, transparent 45%),
      radial-gradient(circle at bottom right, rgba(140, 70, 255, 0.12) 0%, transparent 40%),
      linear-gradient(180deg, #07070f 0%, #0b0b18 45%, #090914 100%) !important;
  }

  .menu-section {
    background:
      radial-gradient(circle at top right, rgba(75, 59, 255, 0.16) 0%, transparent 42%),
      radial-gradient(circle at bottom left, rgba(130, 60, 255, 0.10) 0%, transparent 38%),
      linear-gradient(180deg, #06060d 0%, #0a0a16 50%, #080812 100%) !important;
  }
}

.mobile-nav-socials {
  display: none;
}

@media (max-width: 820px) {
  .mobile-nav-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-nav-socials a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: 0.25s ease;
  }

  .mobile-nav-socials a:hover {
    color: #ffffff;
    background: rgba(75, 59, 255, 0.28);
    border-color: rgba(75, 59, 255, 0.55);
    transform: translateY(-2px);
  }

  .mobile-nav-socials svg {
    width: 21px;
    height: 21px;
  }
}