/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #f5f7fa;
  color: #1a1a2e;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

body.dark-mode {
  background: #0f0f1a;
  color: #e0e0e0;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

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

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header / Nav ===== */
.header {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffd700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  font-size: 1rem;
  color: #ccc;
}

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

.nav a {
  color: #ccc;
  font-size: 0.95rem;
  transition: color 0.3s;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffd700;
  transition: width 0.3s;
}

.nav a:hover {
  color: #ffd700;
}

.nav a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: #1a1a2e;
  padding: 20px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 999;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(26, 26, 46, 0.95);
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: #ccc;
  border-bottom: 1px solid #2a2a4e;
  transition: color 0.3s, padding-left 0.3s;
}

.mobile-menu a:hover {
  color: #ffd700;
  padding-left: 8px;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: #ffd700;
  text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  color: #ddd;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, #ffd700, #f0c000);
  color: #1a1a2e;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

/* ===== Sections ===== */
.section {
  padding: 60px 0;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #ffd700;
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ===== Grids ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* ===== Cards ===== */
.card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.95);
}

body.dark-mode .card {
  background: rgba(30, 30, 48, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .card:hover {
  background: rgba(40, 40, 60, 0.95);
}

/* ===== About Section ===== */
.about-section {
  background: #fff;
}

body.dark-mode .about-section {
  background: #16162a;
}

.company-info {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.company-info .text {
  flex: 2;
  min-width: 280px;
}

.company-info .meta {
  flex: 1;
  min-width: 200px;
  background: #f0f4ff;
  padding: 20px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

body.dark-mode .company-info .meta {
  background: rgba(26, 26, 48, 0.8);
}

/* ===== Stats ===== */
.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffd700;
}

/* ===== Services Section ===== */
.services-section {
  background: #f0f4ff;
}

body.dark-mode .services-section {
  background: #12122a;
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 15px;
}

/* ===== Testimonials ===== */
.testimonial-card {
  border-left: 4px solid #ffd700;
  padding: 20px 25px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 0 12px 12px 0;
  transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.dark-mode .testimonial-card {
  background: rgba(30, 30, 48, 0.85);
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
  transition: background 0.3s;
}

.faq-item:hover {
  background: rgba(255, 215, 0, 0.03);
}

body.dark-mode .faq-item {
  border-color: #333;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 8px 0;
  user-select: none;
}

.faq-question .icon {
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 15px;
  color: #555;
}

body.dark-mode .faq-answer {
  color: #bbb;
}

.faq-answer.open {
  max-height: 300px;
  padding: 15px;
}

/* ===== HowTo Steps ===== */
.howto-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.howto-step {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.howto-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

body.dark-mode .howto-step {
  background: rgba(30, 30, 48, 0.85);
}

.howto-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -10px;
  left: -10px;
  width: 36px;
  height: 36px;
  background: #ffd700;
  color: #1a1a2e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* ===== Articles ===== */
.articles .article-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

body.dark-mode .articles .article-card {
  background: rgba(30, 30, 48, 0.85);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.article-card h3 {
  margin-bottom: 10px;
}

.article-card .date {
  font-size: 0.85rem;
  color: #888;
}

.article-card .read-more {
  color: #ffd700;
  font-weight: 600;
  transition: color 0.3s, padding-left 0.3s;
}

.article-card .read-more:hover {
  color: #e6b800;
  padding-left: 4px;
}

/* ===== Contact Section ===== */
.contact-section {
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  color: #fff;
}

.contact-info p {
  margin: 10px 0;
  font-size: 1.05rem;
}

/* ===== Footer ===== */
.footer {
  background: #0f0f1a;
  color: #aaa;
  padding: 40px 0;
  text-align: center;
}

.footer a {
  color: #ffd700;
  transition: color 0.3s;
}

.footer a:hover {
  color: #fff;
}

.footer .legal-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px 0;
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #ffd700;
  color: #1a1a2e;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: opacity 0.3s, transform 0.3s;
}

.back-to-top.show {
  display: flex;
}

.back-to-top:hover {
  transform: scale(1.1);
}

/* ===== Dark Mode Toggle ===== */
.dark-mode-toggle {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: #1a1a2e;
  color: #ffd700;
  border: 2px solid #ffd700;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.dark-mode-toggle:hover {
  background: #ffd700;
  color: #1a1a2e;
  transform: scale(1.1);
}

/* ===== Search Box ===== */
.search-box {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 20px auto;
}

.search-box input {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border 0.3s, background 0.3s;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

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

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-box button {
  padding: 12px 24px;
  background: #ffd700;
  color: #1a1a2e;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.search-box button:hover {
  background: #e6b800;
  transform: scale(1.02);
}

.search-results {
  margin-top: 20px;
  text-align: left;
}

/* ===== Banner Carousel ===== */
.banner-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin: 40px 0;
  height: 300px;
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #fff;
  transition: opacity 0.8s ease, transform 0.8s ease;
  opacity: 0;
  transform: scale(0.95);
}

.banner-slide.active {
  opacity: 1;
  transform: scale(1);
}

.banner-slide h2 {
  font-size: 2.2rem;
  color: #ffd700;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.banner-slide p {
  font-size: 1.1rem;
  max-width: 600px;
  text-align: center;
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.banner-dots span {
  width: 12px;
  height: 12px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.banner-dots span.active {
  background: #ffd700;
  transform: scale(1.3);
}

.banner-dots span:hover {
  background: #ffd700;
}

/* ===== Scroll Animation ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .company-info {
    flex-direction: column;
  }

  .banner-carousel {
    height: 220px;
  }

  .banner-slide h2 {
    font-size: 1.5rem;
  }

  .banner-slide p {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

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

  .dark-mode-toggle {
    bottom: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .search-box {
    flex-direction: column;
    gap: 8px;
  }

  .search-box input {
    width: 100%;
  }

  .search-box button {
    width: 100%;
  }

  .footer .legal-links {
    gap: 12px;
  }

  .howto-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .section {
    padding: 40px 0;
  }

  .card {
    padding: 20px;
  }

  .company-info .meta {
    min-width: 100%;
  }
}