@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(145deg, #0c0d11, #181b23);
  color: #e0e0e0;
  min-height: 100vh;
  text-align: center;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 50px 20px;
  backdrop-filter: blur(10px);
  background: rgba(20, 20, 25, 0.85);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid #333;
  transition: padding 0.3s ease, gap 0.3s ease;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  text-align: center;
}

.logo {
  width: clamp(50px, 18vw, 100px);
  height: auto;
  object-fit: contain;
  animation: spin 3s linear infinite;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: rotate(5deg) scale(1.05);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



@media (max-width: 1024px) {
  body {
    overflow-x: none;
  }
  header {
    padding: 40px 15px;
  }
}

@media (max-width: 768px) {
  header {
    gap: 12px;
    padding: 30px 10px;
  }

  .logo-container {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 90%;
  }

  body {
    text-align: center;
    word-wrap: break-word;
  }

  header {
    padding: 25px 10px;
    gap: 8px;
  }

  .logo {
    width: 60px;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  button, a {
    touch-action: manipulation;
    min-height: 44px; 
  }
}


@media (max-width: 360px) {
  html {
    font-size: 85%;
  }

  .logo {
    width: 50px;
  }
}
                  
body.mobile-mode header {
  flex-direction: column;
  padding: 30px 10px;
}

body.mobile-mode nav {
  flex-direction: column;
  gap: 15px;
}


#mobile-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
  transition: opacity 0.4s ease;
}

#mobile-popup .popup-content {
  background: #1a1c22;
  border: 1px solid #333;
  border-radius: 14px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  color: #e0e0e0;
  max-width: 85%;
}

#mobile-popup h2 {
  color: #5ac8fa;
  margin-bottom: 10px;
}

#mobile-popup button {
  margin-top: 15px;
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  background: #5ac8fa;
  color: #0c0d11;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s;
}

#mobile-popup button:hover {
  transform: scale(1.05);
  background: #49b7d6;
}
