/* === style.css for DEFORTZ.RU === */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&display=swap');

body, html {
  margin: 0;
  padding: 0;
  font-family: 'Orbitron', sans-serif;
  height: 100%;
  background: linear-gradient(to bottom, #000000 0%, #0d0b1f 100%);
  color: #ffffff;
  overflow-x: hidden;
}

.background {
  display: none;
}

header {
  height: 100px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 0, 30, 0.6);
  box-shadow: 0 0 30px #8f00ff88;
}

header img {
  height: 60px;
  object-fit: contain;
  transform-origin: center center;
}

.discover-btn {
  font-size: 1.1em;
  padding: 12px 24px;
  color: #ffffff;
  background: rgba(50, 0, 100, 0.4);
  border: 2px solid #8f00ff;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px #8f00ff55;
  margin-right: 40px;
}

.discover-btn:hover {
  background-color: #8f00ff;
  color: #0d0b1f;
  box-shadow: 0 0 30px #8f00ffaa;
}

section {
  padding: 100px 20px;
  text-align: center;
  margin: 40px 0;
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 0 40px #8f00ff33;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#audio {
  background: url("assets/audio-amplifier.jpg") center center / cover no-repeat;
  position: relative;
  z-index: 1;
  color: white;
  overflow: hidden;
}

#audio::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(10, 0, 25, 0.7);
  z-index: 0;
}

#audio > * {
  position: relative;
  z-index: 1;
}

#three-d {
    background: url("assets/printer.jpg") center 30% / cover no-repeat;
    position: relative;
    z-index: 0;
    color: white;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  #three-d::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 0, 25, 0.7);
    z-index: -1;
    pointer-events: auto;
  }
  
  #three-d > * {
    position: relative;
    z-index: 1;
  }
  

section:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 60px #8f00ff88;
}

section h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: 400;
  color: #ffffff;
}

footer {
  text-align: center;
  padding: 30px;
  color: #aaaaaa;
  font-size: 0.9em;
  background: rgba(5, 0, 15, 0.8);
  border-top: 1px solid #8f00ff33;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  .dropdown {
    position: relative;
    font-size: 1em;
  }
  
  
  .dropdown-toggle {
    cursor: pointer;
    color: #ffffff;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
  }
  
  .dropdown-toggle:hover {
    background-color: transparent;
    color: #ffffff;
  }
  
  .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: calc(100% + 6px); /* Чуть ниже кнопки */
    right: 0;
    background: rgba(20, 0, 40, 0.95);
    border-radius: 8px;
    box-shadow: 0 0 20px #8f00ff55;
    z-index: 10;
    flex-direction: column;
    padding: 8px 0;
    min-width: 160px;
    display: flex;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: auto; /* важно */
  }  
  
  
  .dropdown-menu a {
    color: #fff;
    text-decoration: none;
    padding: 10px 16px;
    display: block;
    transition: background 0.2s ease;
  }
  
  .dropdown-menu a:hover {
    background: #8f00ff33;
  }
  
  .dropdown:hover .dropdown-menu,
  .dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }  

  #updates {
    padding: 80px 40px;
    text-align: center;
  }
  
  .updates-title {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 40px;
    color: #ffffff;
  }
  
  .update-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
  }
  
  .update-card {
  background: rgba(255, 255, 255, 0.02);
  border: none;
  border-radius: 10px;
  padding: 0;
  width: 300px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
  
 .update-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  margin-bottom: 15px;
  display: block;
}

  .update-card p {
    font-size: 1em;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    margin-bottom: 15px;
  }
  
  .update-card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  flex-grow: 1;
}

  .more-btn {
  padding: 10px 24px;
  background: rgba(50, 0, 100, 0.4);
  border: 1px solid #8f00ff;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 10px auto 20px; /* Центрирование */
  display: inline-block;
}

  
  .more-btn:hover {
    background-color: #8f00ff;
    color: #0d0b1f;
  }
  
  .more-btn,
  .discover-btn {
    font-family: 'Orbitron', sans-serif;
  }

.centered-image img {
  max-width: 100%;
  height: auto;
}
