/**
 * Melen Studio - Official Stylesheet
 * Copyright (c) Melen Studio. All rights reserved.
 * https://melen.studio/
 */

:root {
  --primary-color: #4dc47d;
  --primary-glow: rgba(77, 196, 125, 0.4);
  --secondary-color: #8c52ff;
  --secondary-glow: rgba(140, 82, 255, 0.4);
  --bg-dark: #0a0b0d;
  --bg-card: rgba(255, 255, 255, 0.05);
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;
  --glass-bg: rgba(10, 11, 13, 0.7);
  --nav-height: 80px;
  --gradient-main: linear-gradient(135deg, #4dc47d 0%, #8c52ff 50%, #4dc47d 100%);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

* {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
}

*:before,
*:after {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-dark);
  font-family: var(--font-body);
  color: var(--text-main);
  overflow-x: hidden;
  width: 100%;
  min-height: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: #252525;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 56px;
  line-height: 1.1;
}

h2 {
  font-size: 38px;
  line-height: 1.2;
  margin-top: 0;
}

h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

p {
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
}

a {
  color: var(--primary-color);
  transition:
    color 0.3s ease,
    transform 0.3s ease;
  text-decoration: none;
}

a:hover,
a:active,
a:focus {
  color: var(--secondary-color);
  outline: none;
  text-decoration: none;
}

/* ==========================================================================
   Animations & Utilities
   ========================================================================== */

@keyframes gradientText {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.text-gradient {
  background: var(--gradient-main);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientText 5s ease infinite;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(77, 196, 125, 0.6);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(77, 196, 125, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(77, 196, 125, 0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  position: relative;
  padding-bottom: 22px;
}

/* ==========================================================================
   Preloader
   ========================================================================== */

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
  background: var(--bg-dark);
}

.spinner {
  border: 1px solid transparent;
  border-radius: 5px;
  position: relative;
}

.spinner:before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 45px;
  height: 45px;
  margin-top: -10px;
  margin-left: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--primary-color);
  animation: spinner 0.9s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Grid & Layout (Native CSS)
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

[class*="col-"] {
  position: relative;
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

.col-md-12 {
  flex: 0 0 100%;
  max-width: 100%;
}
.col-md-10 {
  flex: 0 0 83.333333%;
  max-width: 83.333333%;
}
.col-md-8 {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
}
.col-md-5 {
  flex: 0 0 41.666667%;
  max-width: 41.666667%;
}
.col-md-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}
.col-md-3 {
  flex: 0 0 25%;
  max-width: 25%;
}
.col-md-offset-1 {
  margin-left: 8.333333%;
}

@media (max-width: 991px) {
  .col-sm-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .col-md-offset-1 {
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  .col-sm-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .col-md-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.text-center {
  text-align: center;
}
.img-responsive {
  max-width: 100%;
  height: auto;
  display: block;
}
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ==========================================================================
   Navigation Bar (Native Flexbox)
   ========================================================================== */

.navbar-fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}

.custom-navbar {
  margin-bottom: 0;
  background-color: transparent;
  padding: 15px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid transparent;
}

.custom-navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.navbar-header {
  display: flex;
  align-items: center;
}

.custom-navbar .navbar-nav,
.custom-navbar .nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.custom-navbar.top-nav-collapse {
  background: linear-gradient(135deg, #4dc47d 0%, #3ba868 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 15px;
  margin-top: 5px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -1px;
}

.brand-logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand:hover .brand-logo {
  transform: rotate(-10deg) scale(1.1);
  filter: brightness(0) invert(1) drop-shadow(0 0 8px var(--primary-glow));
}

.custom-navbar .brand-text {
  background: linear-gradient(to bottom, #ffffff 0%, #d1d1d1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.custom-navbar .nav li a {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.5px;
  transition: all ease-in-out 0.4s;
  padding: 10px 0;
  margin: 10px 20px;
  text-transform: none;
}

.custom-navbar .navbar-nav > li > a:hover,
.custom-navbar .navbar-nav > li > a:focus {
  background-color: transparent;
  color: var(--primary-color);
  transform: scale(1.05);
}

.custom-navbar .nav li.active > a {
  background-color: transparent;
  color: var(--primary-color);
}

.custom-navbar .navbar-toggle {
  border: none;
  padding-top: 10px;
  background-color: transparent;
}

.custom-navbar .navbar-toggle .icon-bar {
  background: #ffffff;
  border-color: transparent;
}

@media (min-width: 768px) {
  .custom-navbar {
    background: transparent;
  }

  .custom-navbar.top-nav-collapse {
    background: linear-gradient(135deg, #4dc47d 0%, #3ba868 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .custom-navbar.top-nav-collapse .nav li a {
    color: #ffffff;
  }

  .custom-navbar.top-nav-collapse .nav li.active > a,
  .custom-navbar.top-nav-collapse .nav li a:hover,
  .custom-navbar.top-nav-collapse .nav li a:focus {
    color: #0f5328;
  }
}

@media (max-width: 767px) {
  .custom-navbar .navbar-brand {
    font-size: 22px;
    padding-left: 20px;
  }
  .brand-logo {
    height: 30px !important;
  }
}

/* ==========================================================================
   Hero Section (#home)
   ========================================================================== */

#home {
  display: flex;
  align-items: center;
  height: 100vh;
  min-height: 100vh;
  position: relative;
  padding-top: 10em;
  width: 100%;
  overflow: hidden;
}

#home .overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(10, 11, 13, 0.4) 0%, rgba(10, 11, 13, 0.9) 100%);
  z-index: 1;
  pointer-events: none;
}

#home .container {
  position: relative;
  z-index: 2;
}

#home h1 {
  color: #ffffff;
  font-size: 8em;
  line-height: 1;
  font-weight: 700;
  text-shadow: 0 0 30px rgba(77, 196, 125, 0.3);
  margin-bottom: 0.2em;
}

#home p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 24px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

#home video {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -100;
  transform: translateX(-50%) translateY(-50%);
  background-size: cover;
  transition: opacity 1s ease;
}

.hero-btn {
  display: inline-block;
  background: var(--primary-color);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 14px 36px;
  border-radius: 50px;
  box-shadow: 0 6px 20px var(--primary-glow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  margin-left: 2em;
}

.hero-btn:hover,
.hero-btn:focus {
  background: #ffffff;
  color: var(--primary-color);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 25px var(--primary-glow);
}

/* ==========================================================================
   Games Section (#games) - Modern CSS Scroll Snap Carousel
   ========================================================================== */

#games {
  background: var(--bg-dark);
  position: relative;
  z-index: 10;
  padding: 100px 0;
  overflow: hidden;
}

.games-carousel-wrapper {
  position: relative;
  width: 100%;
  padding: 0;
}

.games-carousel {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  padding: 25px 15px 40px 15px;
}

.games-carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.games-carousel .item {
  flex: 0 0 calc(33.333% - 20px);
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  display: flex;
}

@media (max-width: 991px) {
  .games-carousel .item {
    flex: 0 0 calc(50% - 15px);
  }
}

@media (max-width: 767px) {
  .games-carousel {
    padding: 20px 16px 36px 16px;
    gap: 20px;
    scroll-padding: 0 16px;
  }

  .games-carousel .item {
    flex: 0 0 88%;
    max-width: 380px;
    scroll-snap-align: center;
  }
}

/* Modern Carousel Navigation Buttons */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0.85;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  outline: none;
}

.carousel-nav-btn:hover,
.carousel-nav-btn:focus-visible {
  background: var(--primary-color);
  border-color: var(--primary-color);
  opacity: 1;
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-50%) scale(1.1);
  color: white;
}

.carousel-prev {
  left: -25px;
}

.carousel-next {
  right: -25px;
}

@media (max-width: 991px) {
  .carousel-nav-btn {
    display: none;
  }
}

/* Carousel Pagination Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 20px;
  width: 100%;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.15);
}

.carousel-dot:focus-visible {
  box-shadow: 0 0 0 2px var(--primary-color);
}

.carousel-dot.active {
  width: 28px;
  background: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-glow);
  border-color: var(--primary-color);
}

/* Project Card Items */
.project-item {
  overflow: hidden;
  position: relative;
  padding: 0;
  border-radius: 32px;
  background: var(--bg-card);
  border: 3px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.4s ease,
    box-shadow 0.4s ease;
  box-sizing: border-box;
  width: 100%;
}

.project-item:hover,
.project-item.mobile-visible {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 30px var(--primary-glow);
}

@media (max-width: 767px) {
  .project-item:hover,
  .project-item.mobile-visible {
    transform: translateY(-4px);
    box-shadow:
      0 15px 35px rgba(0, 0, 0, 0.5),
      0 0 25px var(--primary-glow);
  }
}

.project-overlay {
  background: linear-gradient(to top, rgba(10, 11, 13, 0.95) 0%, rgba(10, 11, 13, 0.6) 50%, transparent 100%);
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.project-item:hover .project-overlay,
.project-item.mobile-visible .project-overlay {
  opacity: 1;
}

.project-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

.project-info {
  padding: 40px 20px;
  text-align: center;
  width: 100%;
  transform: translateY(30px);
  transition: all 0.5s ease;
  opacity: 0;
  z-index: 3;
  position: relative;
}

.project-item:hover .project-info,
.project-item.mobile-visible .project-info {
  transform: translateY(0);
  opacity: 1;
}

.btn-mute,
.btn-expand {
  position: absolute;
  top: 20px;
  background: rgba(10, 11, 13, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.btn-mute {
  right: 20px;
}

.btn-expand {
  right: 70px;
}

.project-item.playing-video .btn-mute,
.project-item.playing-video .btn-expand {
  opacity: 1;
  visibility: visible;
}

.btn-mute:hover,
.btn-expand:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: scale(1.1);
  color: white;
}

.project-info h1 {
  color: var(--text-main);
  font-size: 32px;
  margin-bottom: 5px;
  font-weight: 700;
  letter-spacing: -1px;
}

.project-info h3 {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.btn-play {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 10px 30px;
  border-radius: 50px;
  margin-top: 15px;
  font-weight: 700;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 14px;
  box-shadow: 0 5px 15px var(--primary-glow);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  animation: pulseGlow 2.5s infinite;
}

.btn-play::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -80%;
  width: 50%;
  height: 200%;
  background: rgba(255, 255, 255, 0.5);
  transform: rotate(45deg);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-play:hover {
  background: white;
  color: var(--primary-color);
  transform: scale(1.05);
  box-shadow: 0 10px 25px var(--primary-glow);
}

.btn-play:hover::after {
  left: 120%;
}

/* ==========================================================================
   Native Video Modal (<dialog>)
   ========================================================================== */

dialog.native-video-modal {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
  border-radius: 16px;
  overflow: visible;
  outline: none;
}

dialog.native-video-modal::backdrop {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-content-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#modal-video-player {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(77, 196, 125, 0.2);
  outline: none;
  background: #000;
}

.modal-close {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 44px;
  height: 44px;
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.modal-close:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: scale(1.1);
}

/* ==========================================================================
   About Section (#about)
   ========================================================================== */

#about {
  padding-top: 150px;
  padding-bottom: 150px;
  text-align: center;
  background:
    radial-gradient(circle at 10% 20%, rgba(77, 196, 125, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(139, 82, 255, 0.05) 0%, transparent 50%);
}

.about-info h3 {
  font-size: 16px;
  letter-spacing: 12px;
  color: var(--primary-color);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.about-info h1 {
  font-size: 72px;
  font-weight: 300;
  color: white;
  background: var(--gradient-main);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientText 5s ease infinite;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  background: var(--bg-dark);
  padding-top: 100px;
  padding-bottom: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer h2 {
  color: var(--primary-color);
  font-size: 24px;
  margin-bottom: 20px;
}

footer p {
  font-size: 16px;
}

footer a {
  color: var(--text-muted);
}

footer a:hover {
  color: var(--primary-color);
}

footer .copyright-text {
  padding-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 40px;
  font-size: 14px;
}

/* Social Icons */
.social-icon {
  position: relative;
  padding: 0;
  margin: 0;
  text-align: center;
}

.social-icon li {
  display: inline-block;
  list-style: none;
}

.social-icon li a {
  border-radius: 100%;
  color: var(--text-main);
  opacity: 0.6;
  cursor: pointer;
  font-size: 24px;
  text-decoration: none;
  transition: all ease-in-out 0.3s;
  text-align: center;
  position: relative;
  margin: 4px 12px;
  display: inline-block;
}

.social-icon li a:hover {
  color: var(--primary-color);
  opacity: 1;
  transform: scale(1.3);
  text-shadow: 0 0 15px var(--primary-glow);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 992px) {
  #home h1 {
    font-size: 5em;
  }
}

@media (max-width: 770px) {
  #home {
    padding-top: 6em;
  }

  #home h1 {
    font-size: 3.5em;
  }

  #home p {
    font-size: 18px;
  }

  .hero-btn {
    margin-left: 0;
  }
}

@media (max-width: 580px) {
  #home h1 {
    font-size: 2.8em;
  }

  .about-info h1 {
    font-size: 32px;
  }
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  outline: none;
}

.back-to-top-btn.visible {
  opacity: 0.85;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover,
.back-to-top-btn:focus-visible {
  opacity: 1;
  background: var(--primary-color);
  color: #0a0b0d;
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-4px) scale(1.08);
}

/* ==========================================================================
   Native Cookie Banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 420px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 20px 24px;
  z-index: 9998;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-content p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.cookie-content p a {
  color: var(--primary-color);
  text-decoration: underline;
}

.cookie-btn {
  background: var(--primary-color);
  color: #0a0b0d;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 20px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 10px var(--primary-glow);
}

.cookie-btn:hover,
.cookie-btn:focus-visible {
  background: #ffffff;
  transform: translateY(-1px);
}

@media (max-width: 580px) {
  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}
