/* Google Font: Space Grotesk - Modern Tech Font */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* Tech Cold Color Palette */
:root {
  --bg-primary: #0A1929;
  --bg-secondary: #132F4C;
  --text-primary: #B2BAC2;
  --text-heading: #E6EDF3;
  --accent-cyan: #00D4FF;
  --accent-dark-cyan: #00A8CC;
  --glass-bg: rgba(19, 47, 76, 0.4);
  --glass-border: rgba(0, 212, 255, 0.3);
  --glow-color: rgba(0, 212, 255, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*:not(i) {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
}

/* Bootstrap Grid Fixes */
.container,
.container-fluid {
  max-width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}

.row {
  margin-left: -15px;
  margin-right: -15px;
  max-width: 100%;
}

[class*="col-"] {
  padding-left: 15px;
  padding-right: 15px;
}

/* Prevent text overflow */
h1, h2, h3, h4, h5, h6, p, span, a {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Header - Modern Glassmorphism */
.modern-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  padding: 18px 0;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.header-logo a {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.header-logo img {
  width: 60px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
  transition: all 0.3s ease;
}

.header-logo img:hover {
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.6));
  transform: scale(1.05);
}

.header-logo span {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, #00D4FF 0%, #00A8CC 50%, #00D4FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.header-logo a:hover span {
  filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.8));
  transform: translateX(3px);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav li a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
}

.header-nav li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--glow-color);
}

.header-nav li a:hover::after,
.header-nav li a.active-my::after {
  width: 100%;
}

.header-nav li a:hover,
.header-nav li a.active-my {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px var(--glow-color);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--accent-cyan);
  color: var(--accent-cyan);
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.mobile-menu-toggle:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

/* Old Navigation Styles (для обратной совместимости) */
.navbarim {
  display: none;
}

.logom {
  display: none;
}

.ul-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  list-style: none;
}

.ul-links li a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
}

.ul-links li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--glow-color);
}

.ul-links li a:hover::after,
.ul-links li a.active-my::after {
  width: 100%;
}

.ul-links li a:hover,
.ul-links li a.active-my {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px var(--glow-color);
}

/* Hero Section */
.hero {
  padding: 80px 0;
}

.hero-cont-in {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.1);
  transition: all 0.3s ease;
}

.hero-cont-in:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 12px 48px rgba(0, 212, 255, 0.2);
}

.hero img {
  border-radius: 16px;
  width: 100%;
  height: auto;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.15);
}

/* Typography */
.style-1 {
  color: var(--text-heading);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #E6EDF3, #00D4FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.style-2 {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
}

.style-3 {
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
}

/* Buttons - Glassmorphism with Neon Glow */
.link-main,
.btn-casino {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  display: inline-block;
  text-decoration: none;
  padding: 14px 36px;
  color: var(--accent-cyan);
  border: 2px solid var(--accent-cyan);
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px var(--glow-color);
  position: relative;
  overflow: hidden;
}

.link-main::before,
.btn-casino::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--accent-cyan);
  opacity: 0.1;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.link-main:hover::before,
.btn-casino:hover::before {
  width: 300px;
  height: 300px;
}

.link-main:hover,
.btn-casino:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  box-shadow: 0 0 30px var(--glow-color), 0 0 60px rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
}

/* About Section */
.about {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.about img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.15);
}

/* Game Card - Glassmorphism */
.game {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 50px;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.1);
  transition: all 0.4s ease;
}

.game::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.game:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 12px 48px rgba(0, 212, 255, 0.25);
  transform: translateY(-5px);
}

.game-inner {
  position: relative;
  z-index: 1;
}

/* Why Us Section - Glassmorphism */
.why-us {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 50px 30px;
}

.why-item {
  background: rgba(19, 47, 76, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 35px 25px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.05);
}

.why-item:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
  transform: translateY(-8px);
}

.why-item img {
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px var(--glow-color));
  transition: transform 0.3s ease;
}

.why-item:hover img {
  transform: scale(1.1);
}

/* FAQ - Glassmorphism */
.faq-item {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.15);
}

.accordion-button {
  background: transparent;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 18px;
  border: none;
  padding: 20px 25px;
  transition: all 0.3s ease;
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 168, 204, 0.1));
  color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.accordion-button::after {
  filter: brightness(0) saturate(100%) invert(70%) sepia(51%) saturate(2878%) hue-rotate(163deg) brightness(101%) contrast(101%);
}

.accordion-body {
  background: rgba(10, 25, 41, 0.8);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  padding: 20px 25px;
  border-top: 1px solid var(--glass-border);
}

/* Form Inputs - Glassmorphism */
.glass-input {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  padding: 14px 20px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.glass-input::placeholder {
  color: rgba(178, 186, 194, 0.5);
}

.glass-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px var(--glow-color);
  outline: none;
  background: rgba(19, 47, 76, 0.6);
}

/* Footer - Modern Glassmorphism */
.modern-footer {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 30px;
  margin-top: 80px;
  box-shadow: 0 -4px 20px rgba(0, 212, 255, 0.1);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--glass-border);
}

.footer-column h3 {
  color: var(--text-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #E6EDF3, #00D4FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-column p {
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links li a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  padding-left: 15px;
}

.footer-links li a::before {
  content: '→';
  position: absolute;
  left: 0;
  opacity: 0;
  transition: all 0.3s ease;
  color: var(--accent-cyan);
}

.footer-links li a:hover {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px var(--glow-color);
  padding-left: 20px;
}

.footer-links li a:hover::before {
  opacity: 1;
  left: 0;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo a {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.footer-logo img {
  width: 60px;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
  transition: all 0.3s ease;
}

.footer-logo img:hover {
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.6));
}

.footer-logo span {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #00D4FF 0%, #00A8CC 50%, #00D4FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1.2px;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-logo a:hover span {
  filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.8));
  transform: translateX(3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
}

.footer-bottom p {
  color: var(--text-primary);
  font-size: 14px;
  margin: 0;
  line-height: 1.8;
}

.footer-bottom a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
}

.footer-bottom a:hover {
  text-shadow: 0 0 10px var(--glow-color);
  color: var(--accent-dark-cyan);
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.footer-badge {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--accent-cyan);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--accent-cyan);
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.footer-badge:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
  transform: translateY(-2px);
}

/* Old Footer (для обратной совместимости) */


footer p a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all 0.3s ease;
}

footer p a:hover {
  text-shadow: 0 0 10px var(--glow-color);
  color: var(--accent-dark-cyan);
}

/* Responsive Design */
@media (max-width: 992px) {
  .style-1 {
    font-size: 36px;
  }
  
  .hero-cont-in {
    padding: 30px;
  }
  
  .game {
    padding: 35px;
    min-height: 300px;
  }

  .header-nav {
    gap: 25px;
  }

  .footer-top {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
  }
}

@media (max-width: 768px) {
  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden !important;
  }

  .container {
    padding-left: 10px;
    padding-right: 10px;
    max-width: 100vw;
  }

  .row {
    margin: 0 auto;
  }

  [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
  }

  .ul-links {
    gap: 25px;
  }
  
  .style-1 {
    font-size: 28px;
  }
  
  .style-2 {
    font-size: 16px;
  }
  
  .hero-cont-in {
    padding: 20px;
  }
  
  .why-item {
    min-height: 220px;
  }
  
  .game {
    padding: 20px;
  }

  /* Mobile Header */
  .header-container {
    flex-wrap: wrap;
  }

  .header-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 15px;
    padding-top: 20px;
  }

  .header-nav.mobile-open {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .header-logo span {
    font-size: 18px;
    letter-spacing: 0.5px;
  }

  .footer-logo span {
    font-size: 22px;
    letter-spacing: 0.8px;
  }

  .header-logo img {
    width: 50px;
  }

  /* Mobile Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-badges {
    justify-content: center;
    flex-wrap: wrap;
  }

  .modern-footer {
    padding: 40px 0 20px;
  }

  /* Ensure sections don't overflow */
  section {
    max-width: 100vw;
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  /* Extra small screens - prevent overflow */
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .row {
    margin: 0 auto;
  }

  [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
  }

  .hero-cont-in {
    padding: 15px;
  }

  .game {
    padding: 15px;
  }

  .style-1 {
    font-size: 24px;
  }

  .style-2 {
    font-size: 14px;
  }

  .header-logo span {
    font-size: 16px;
    letter-spacing: 0.3px;
  }

  .footer-logo span {
    font-size: 18px;
    letter-spacing: 0.5px;
  }

  .header-logo a {
    gap: 10px;
  }

  .footer-logo a {
    gap: 10px;
  }

  .header-logo img {
    width: 45px;
  }

  .footer-badges {
    gap: 8px;
  }

  .footer-badge {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--glow-color);
}

/* Selection */
::selection {
  background: var(--accent-cyan);
  color: var(--bg-primary);
}

::-moz-selection {
  background: var(--accent-cyan);
  color: var(--bg-primary);
}
