/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: #0a0a1a;
  color: #e0e0ff;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

body.dark-mode {
  background: #050510;
  color: #c0c0dd;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s, padding-left 0.3s;
}

ul, ol {
  list-style: none;
}

img, svg {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input {
  font-family: inherit;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  height: 70px;
  background: rgba(10, 10, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  transition: box-shadow 0.3s, background 0.3s;
}

nav.sticky {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  background: rgba(10, 10, 30, 0.95);
}

.logo svg {
  vertical-align: middle;
  height: 60px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-links a {
  color: #c0c0e0;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.3s, border-color 0.3s;
  font-size: 1rem;
}

.nav-links a.active,
.nav-links a:hover {
  color: #ffd700;
  border-bottom-color: #ffd700;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 5px;
}

.search-box input {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid #444;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  outline: none;
  width: 180px;
  transition: border-color 0.3s, background 0.3s;
}

.search-box input:focus {
  border-color: #ffd700;
  background: rgba(255, 255, 255, 0.1);
}

.search-box button {
  color: #ffd700;
  font-size: 18px;
  padding: 4px;
  transition: transform 0.2s;
}

.search-box button:hover {
  transform: scale(1.1);
}

.menu-toggle {
  display: none;
  color: #ffd700;
  font-size: 28px;
  padding: 4px;
  transition: transform 0.2s;
}

.menu-toggle:hover {
  transform: scale(1.1);
}

/* ===== MAIN ===== */
main {
  padding-top: 70px;
}

/* ===== GLASS SECTION ===== */
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 28px;
  margin: 30px auto;
  max-width: 1200px;
  padding: 50px 40px;
  border: 1px solid rgba(255, 215, 0, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s, box-shadow 0.3s;
}

.glass:hover {
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.6);
}

/* ===== HEADINGS ===== */
h1 {
  font-size: 2.6rem;
  color: #ffd700;
  margin-bottom: 20px;
  text-align: center;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 2rem;
  color: #ffd700;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #ffd700, #ff8c00);
  margin: 12px auto;
  border-radius: 4px;
}

h3 {
  font-size: 1.4rem;
  color: #e0e0ff;
  margin: 25px 0 15px;
}

p {
  font-size: 1.05rem;
  margin-bottom: 18px;
  color: #c0c0e0;
}

/* ===== BANNER / HERO ===== */
.banner {
  position: relative;
  max-width: 1200px;
  margin: 20px auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.banner-slide {
  display: none;
  width: 100%;
  animation: fadeIn 0.6s ease;
}

.banner-slide.active {
  display: block;
}

.banner-slide svg {
  width: 100%;
  height: auto;
  display: block;
}

.banner-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}

.banner-controls button {
  background: rgba(255, 215, 0, 0.3);
  color: #fff;
  font-size: 36px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  pointer-events: auto;
  transition: background 0.3s, transform 0.3s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-controls button:hover {
  background: rgba(255, 215, 0, 0.7);
  transform: scale(1.1);
}

.dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.dot.active {
  background: #ffd700;
  transform: scale(1.2);
}

/* ===== GRIDS ===== */
.about-grid,
.team-grid,
.product-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.about-card,
.team-card,
.product-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.4s, box-shadow 0.4s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.about-card:hover,
.team-card:hover,
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(255, 215, 0, 0.15);
}

.about-card svg,
.team-card svg,
.product-card svg {
  width: 100%;
  height: auto;
  display: block;
}

.team-card p,
.product-card p {
  padding: 15px;
  text-align: center;
  color: #b0b0d0;
}

.product-card p {
  text-align: left;
}

/* ===== NEWS ===== */
.news-grid article {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  padding: 25px;
  border-left: 4px solid #ffd700;
  transition: background 0.3s, transform 0.3s;
}

.news-grid article:hover {
  background: rgba(255, 215, 0, 0.05);
  transform: translateX(4px);
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  color: #ffd700;
  font-weight: 600;
  position: relative;
}

.read-more::after {
  content: ' →';
  transition: margin-left 0.3s;
}

.read-more:hover::after {
  margin-left: 6px;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  padding: 10px 0;
}

.faq-question {
  background: none;
  border: none;
  color: #ffd700;
  font-size: 1.1rem;
  font-weight: 600;
  width: 100%;
  text-align: left;
  padding: 12px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}

.faq-question:hover {
  color: #ffe44d;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding-left: 10px;
}

.faq-answer p {
  padding: 10px 0;
  color: #b0b0d0;
}

/* ===== HOWTO ===== */
.howto-content {
  max-width: 800px;
  margin: 0 auto;
}

.howto-content ul,
.howto-content ol {
  padding-left: 30px;
  margin: 15px 0;
  color: #c0c0e0;
}

.howto-content li {
  margin: 8px 0;
  line-height: 1.6;
}

/* ===== CONTACT ===== */
.contact-info {
  text-align: center;
  font-size: 1.1rem;
}

.contact-info p {
  margin: 12px 0;
}

.map svg {
  width: 100%;
  height: auto;
  margin-top: 20px;
  border-radius: 20px;
  transition: transform 0.3s;
}

.map svg:hover {
  transform: scale(1.01);
}

/* ===== ASIDE ===== */
aside {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

aside h3 {
  color: #ffd700;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

aside ul {
  list-style: none;
}

aside li {
  margin: 8px 0;
}

aside a {
  color: #a0a0d0;
  transition: color 0.3s, padding-left 0.3s;
}

aside a:hover {
  color: #ffd700;
  padding-left: 6px;
}

/* ===== FOOTER ===== */
footer {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 50px 40px 30px;
  border-top: 1px solid rgba(255, 215, 0, 0.15);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.link-group h4 {
  color: #ffd700;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.link-group li {
  margin: 6px 0;
}

.link-group a {
  color: #a0a0d0;
  transition: color 0.3s;
}

.link-group a:hover {
  color: #ffd700;
}

.footer-meta {
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 215, 0, 0.1);
  padding-top: 30px;
  font-size: 0.95rem;
  color: #8080a0;
}

.footer-meta p {
  margin: 8px 0;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #0a0a1a;
  font-size: 24px;
  cursor: pointer;
  display: none;
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
  z-index: 999;
  align-items: center;
  justify-content: center;
}

.back-to-top:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 36px rgba(255, 215, 0, 0.5);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.glass,
.product-card,
.about-card,
.team-card,
.news-grid article {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.glass.visible,
.product-card.visible,
.about-card.visible,
.team-card.visible,
.news-grid article.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  }

  .menu-toggle {
    display: block;
  }

  .search-box input {
    width: 120px;
  }

  .glass {
    padding: 30px 20px;
    margin: 20px;
    border-radius: 20px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .about-grid,
  .team-grid,
  .product-grid,
  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .banner {
    border-radius: 20px;
    margin: 10px;
  }

  .banner-controls button {
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  aside {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  footer {
    padding: 30px 20px;
  }

  .back-to-top {
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .search-box input {
    width: 100px;
    font-size: 0.9rem;
  }

  .glass {
    padding: 20px 15px;
    margin: 15px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .product-card p,
  .team-card p {
    font-size: 0.95rem;
  }
}

/* ===== DARK MODE ENHANCEMENTS ===== */
body.dark-mode nav {
  background: rgba(5, 5, 16, 0.9);
}

body.dark-mode .glass {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 215, 0, 0.05);
}

body.dark-mode .search-box input {
  background: rgba(255, 255, 255, 0.03);
  border-color: #333;
}

body.dark-mode .search-box input:focus {
  border-color: #ffd700;
  background: rgba(255, 255, 255, 0.08);
}

body.dark-mode .back-to-top {
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.2);
}

/* ===== UTILITY ===== */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

/* ===== SELECTION ===== */
::selection {
  background: rgba(255, 215, 0, 0.3);
  color: #fff;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a1a;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 215, 0, 0.5);
}