
/* ==============================================================
   Global Reset & Box Sizing
   ============================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ==============================================================
   Wrapper — ограничение макета до 1920px, центрирование
   ============================================================== */
.wrapper {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

#particles-canvas {
    position: fixed; 
    inset: 0;
    z-index: 10 ; 
    pointer-events: none; 
    width: 100vw;
    height: 100vh;
    display: block;
}

/* ==============================================================
   Base Styles
   ============================================================== */
html {
  font-size: 16px; 
}

body {
  min-height: 100vh;
  margin: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  background: #151527 url('../img/Backgraund.png') no-repeat center center fixed;
  background-size: cover;
  
  overflow-x: hidden;
  overflow-y: hidden;
}

@media (max-width: 1560px) {
  body {
    overflow-y: auto;
  }
}

/* ==============================================================
   Top Bar
   ============================================================== */
.top-bar {
  display: flex;
  align-items: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  
  z-index: 10;
  
  
}

 #fog-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
  }

  .logo-box {
    flex: 0 0 auto;
    width: 12.5rem;  
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
  }

.logo {
  width: 7.5rem;  
  height: auto;
}

.logo-caption {
    position: fixed;
    top: 58%;
    transform: translateY(-50%) rotate(-90deg);
    font-family: UNCAGE, Arial, sans-serif;
    font-weight: bold;
    font-size: 6rem;
    line-height: 1.1;
    letter-spacing: 1px;
    color: rgb(255, 255, 255);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.logo-caption.visible {
  opacity: 1;
}


.nav-menu {
  flex: 1 1 auto;
  display: flex;
  gap: 3.375rem; 
  margin-left: 3.5rem; 
  flex-wrap: wrap;
}

.nav-link {
  font-family: 'KievitOT', monospace;
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: #fff;
  text-decoration: none;
  position: relative;
  padding: 0 0.625rem; 
  white-space: nowrap;
  transition: color 0.22s, text-shadow 0.23s;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-link:hover,
.nav-link.active {
  color: #ffe98a;
  text-shadow:
    0 0 8px #ffe98a99,
    0 0 16px #ffe98a33;
}

.nav-link:hover::after,
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -0.5625rem; 
  left: 0;
  width: 2rem;  
  height: 0.1875rem; 
  background: none;
  border-radius: 0.125rem; 
  box-shadow: 0 0 8px #ffe98a80, 0 0 18px #ffe98a40;
  transition: background 0.22s, box-shadow 0.22s;
}

/* ==============================================================
   Decorative Dividers
   ============================================================== */
.vertical-divider1,
.vertical-divider2 {
  position: absolute;
  top: 0;
  right: 400px; 
  width: 0.1500rem; 
  height: 100vh;
  background: rgba(98, 13, 140, 0.699);
  z-index: 5;
}

.vertical-divider1 {
  left: 198px; 
}

.vertical-divider2 {
  right: 400px; 
}

.horizontal-divider {
  position: absolute;
  top: 200px; 
  left: 203px; 
  width: 100vw;
  height: 0.1500rem; 
  background: rgba(98, 13, 140, 0.699);
  z-index: 6;
}

/* ==============================================================
   Side Icons
   ============================================================== */
.side-icons {
  position: absolute;
  top: 400px; 
  right: 50px;  
  display: flex;
  flex-direction: column;
  gap: 0.9375rem; 
  z-index: 50;
}

.side-icons a img {
  width: 3.375rem; 
  height: 3.375rem;
  border-radius: 50%;
  background: #E9C560;
  box-shadow: 0 0.125rem 1rem #31230a60; 
  transition: box-shadow 0.18s, transform 0.17s;
}

.side-icons a:hover img {
  box-shadow: 0 0.25rem 1.75rem #e3c243a0; 
  transform: scale(1.07);
}

/* ==============================================================
   Main Content & Sections
   ============================================================== */
.main-content {
  margin-left: 140px;
  padding: 3.625rem 7.5rem 0 3.75rem;
}
#main.main-section,
#coin.coin-section {
  margin-left: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100%;
  max-width: 100vw;
}

.section {
  display: none;
  animation: fadein 0.7s ease-out;
}

.section.active {
  display: block;
}
#main.section {
  
  padding-top: 200px;
}

/* ==============================================================
   Typography
   ============================================================== */
h1 {
  font-family: 'UNCAGE', sans-serif;
  font-weight: 800;
  font-size: 6.45rem;
  letter-spacing: 2px;
  margin-bottom: 0;
}
.avestas, .concept {
  display: inline;
}

h2 {
  font-family: 'KievitOT', monospace;
  font-weight: 300;
  font-size: 2.5rem;
  letter-spacing: 2px;
  margin: 0 0 1.5625rem; 
}


.consultation {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  color: #ffe98a;
  margin: 6.25rem 0 1.75rem; 
  letter-spacing: 1px;
}

.dot {
  display: inline-block;
  width: 1.25rem; height: 1.25rem; 
  background: #ffe98a;
  border-radius: 50%;
  margin-right: 0.75rem; 
}

.desc {
  font-size: 1.21rem;
  margin-bottom: 1.5rem; 
}

footer,
.main-footer {
  font-size: 1rem;
  color: #ffe98a;
  opacity: 0.8;
  margin-top: 2.75rem; 
}

.main-footer {
  position: fixed;
  right: 1.875rem; 
  bottom: 1.125rem; 
  pointer-events: none;
  user-select: none;
  z-index: 1000;
  text-align: right;
}

.main-footer strong {
  font-weight: 800;
  letter-spacing: 0.5px;
}


.preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  pointer-events: none;
}

.preloader-text {
  font-size: 1.5rem;
  color: #fff;
  opacity: 0;
  animation: dropInOut 3s forwards;
}

@keyframes dropInOut {
  0% {
    opacity: 0;
    transform: translateY(-3.125rem);
  }
  20% {
    opacity: 1;
    transform: translateY(0);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(3.125rem);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(1.5625rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



@media (min-width: 2560px) {
  .wrapper {
    padding: 0;
  }
}


@media (max-width: 1919px) {
  html {
    font-size: 93.75%; 
  }
}


@media (max-width: 1439px) {
  html {
    font-size: 87.5%; 
  }
}


@media (max-width: 1079px) {
  html {
    font-size: 81.25%; 
  }
}


@media (max-width: 719px) {
  html {
    font-size: 75%; 
  }

  h1 {
    font-size: 2.3rem;     
    line-height: 1.1;
    text-align: center;     
    margin: 0 0 1.2rem 0;
  }

  .logo-caption {
    position: static;      
    transform: none;       
    font-size: 1.1rem;     
    line-height: 1.1;
    letter-spacing: 1px;
    color: #fff;
    text-align: center;
    margin-top: 0.5rem;
    width: 100%;
    z-index: auto;            
  }

  .avestas,
  .concept {
    display: block;
    width: 100%;
    text-align: center;
  }


  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .logo-box {
    margin-top: 2rem;
    width: 8rem;
  }

  .side-icons {
    top: 6.875rem;  
    right: 0.5rem;  
  }

  .vertical-divider1,
  .vertical-divider2,
  .horizontal-divider {
    display: none;
  }

  .main-content {
    margin-left: 0;
    padding: 1.25rem 4vw 0 4vw;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2rem;
  }
}
@media (min-width: 720px) {
  .menu-toggle,
  .mobile-menu,
  .mobile-backdrop {
    display: none !important;
  }
}
@media (min-width: 768px) {
  .burger,
  .panel {
    display: none !important;
  }
}

