@font-face {
  font-family: 'Bahnschrift';
  src: url('assets/fonts/bahnschrift.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'SohneBreit';
  src: url('assets/fonts/TestSohneBreit-Extrafett.otf') format('truetype');
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Bahnschrift', Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #0c0f14;
}

/* Header Styles */
.site-header {
  position: fixed;
  background: #0c0f14;
  padding: 0;
  top: 0;
  width: 100%;
  border-bottom: 1px solid #1a1f2e;
  z-index: 100;
}

.header-content {
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  width: 100%;
  gap: 24px;
}

.menu {
  display: flex;
  align-items: center;
}

.menu-toggle {
  background: none;
  border: none;
  border-radius: 10px;
  color: #D9D9D9;
  padding: 10px 18px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  z-index: 30;
}

.menu-toggle:hover {
  color: #F2F2F2;
}

.menu-panel {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: min(320px, 85vw);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
  padding-top: 56px;
  gap: 0;
  background: rgba(12, 15, 20, 0.7);
  backdrop-filter: blur(18px);
  box-shadow: 8px 0 40px rgba(0, 0, 0, 0.45);
  transform: translateX(-100%);
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 20;
}

.menu-panel.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.menu-items {
  list-style: none;
  margin: 0;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-items a {
  color: #D9D9D9;
  text-decoration: none;
  font-family: 'SohneBreit', Arial, sans-serif;
  font-size: 24px;
  padding: 12px 22px;
  display: block;
  transition: background 0.3s ease, color 0.3s ease;
}

.menu-items a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #F2F2F2;
}

/* Language Selector Styles */
.language-selection {
  position: relative;
  margin-left: auto;
  margin-right: 0px;
  right: -30px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.language-toggle {
  display: none;
}

.language-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 5px;
  height: 44px;
  background: rgba(8, 12, 24, 0.6);
  border-radius: 10px;
  transition: background 0.3s ease;
  overflow: hidden;
}

.language-selection:hover .language-list {
  background: rgba(8, 12, 24, 0.95);
}

.language-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease-in-out;
  width: 34px;
  height: 34px;
  opacity: 1;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.language-list li:not(.active) {
  width: 0;
  opacity: 0;
}

.language-selection:hover .language-list li {
  width: 34px;
  opacity: 1;
  margin: 0 4px;
}

.language-list li:hover {
  background: rgba(255, 255, 255, 0.1);
}

.language-list li.active {
  width: 34px;
  opacity: 1;
  margin: 0 4px;
}

.flag {
  width: 24px;
  height: 16px;
  border-radius: 3px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.flag-en { background-image: url("https://flagcdn.com/w40/gb.png"); }
.flag-az { background-image: url("https://flagcdn.com/w40/az.png"); }
.flag-tr { background-image: url("https://flagcdn.com/w40/tr.png"); }
.flag-fa { background-image: url("https://flagcdn.com/w40/ir.png"); }

.auth-section {
  display: flex;
  justify-content: flex-end;
}

.btn-auth {
  background: rgba(8, 12, 24, 0.6);
  border: none;
  border-radius: 10px;
  color: #D9D9D9;
  padding: 10px 18px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-auth:hover {
  background: rgba(8, 12, 24, 0.85);
  color: #F2F2F2;
}

/* Main Content Styles */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}

.content-wrapper {
  max-width: 760px;
  width: 100%;
  margin: 20px;
  padding: 28px;
  text-align: center;
}

h1 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.1;
  color: #F2F2F2;
  margin-bottom: 20px;
}

.hero-top-group {
  display: flex;
  position: fixed;
  
  width: 100%;
  top: 25vh;
  flex-direction: column;
  align-items: center;
  transition: top 0.6s ease, width 0.6s ease, transform 0.6s ease;
  will-change: top, width, transform;
  z-index: 105;
}
.hero-bottom-group {
  display: flex;
  position: fixed;
  width: 100%;
  justify-content: center;
  gap: 20px;
  transition: transform 0.6s ease;
  z-index: 90;
}

.logo-container, .intro-text, .btn-primary, .btn-secondary, .btn-primary {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-container svg {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

p {
  line-height: 1.7;
  margin: 1rem 0 0;
  font-size: 1rem;
  color: #D9D9D9;
}

.intro-text {
  position: relative;
  top: -20px;
  width: 580px;
  margin: 0 auto 24px;
}

.intro-text p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .header-content {
    padding: 10px 16px;
    gap: 12px;
  }
  
  .language-selection {
    margin-right: 6px;
  }

  .content-wrapper {
    margin: 0 16px;
    padding: 20px;
  }

  .logo-container {
    width: 80%;
  }
  .intro-text {
    width: 75%;
    top: -30px;
  }

  .action-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 280px;
  }
}

/* Action Buttons*/
.action-buttons {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  perspective: 1000px;
}

.btn-primary,
.btn-secondary {
  width: 220px;
  padding: 14px 32px;
  min-height: 48px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  position: relative;
  transform-style: preserve-3d;
  overflow: hidden;
}

.btn-primary,
.btn-secondary {
  background: rgba(34, 150, 243, 0.15);
  border-color: rgba(34, 150, 243, 0.25);
  color: #64B5F6;
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(34, 150, 243, 0.3) 0%,
    rgba(255, 255, 255, 0) 50%,
    rgba(0, 0, 0, 0.08) 100%
  );
  pointer-events: none;
  border-radius: 12px;
}

.btn-primary {
  background: rgba(34, 150, 243, 0.18);
  border-color: rgba(34, 150, 243, 0.32);
  color: #64B5F6;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: rgba(34, 150, 243, 0.28);
  border-color: rgba(34, 150, 243, 0.55);
  color: #90CAF9;
  text-shadow: 0 0 18px rgba(144, 202, 249, 0.9);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #F2F2F2;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(0, 0, 0, 0.12) 100%
  );
  pointer-events: none;
  border-radius: 12px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
  color: #FFFFFF;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.8);
}
/* Banners Container */
.banners-container {
  width: 100%;
  max-width: 1200px;
  margin: 100vh auto 0; /* Pushes banners down initially */
  padding: 40px 20px;
  opacity: 0;
  display: flex;
  gap: 20px;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.banner {
  width: 300px;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F2F2F2;
}

body.scrolled .banners-container {
  opacity: 1;
}

/* Animate hiding intro text and secondary button so primary shifts smoothly */
body.scrolled .intro-text {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  height: 0;
  overflow: hidden;
  margin: 0;
}

body.scrolled .btn-secondary {
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s ease, width 0.45s ease, margin 0.45s ease, padding 0.35s ease;
  width: 0;
  padding: 0;
  margin: 0;
  pointer-events: none;
  color: transparent;
}

body.scrolled .hero-top-group {
  top: 14px;
  width: 80px;
}