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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f0f2f5;
  color: #1a1a2e;
  transition: background 0.3s ease, color 0.3s ease;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

ul {
  list-style: none;
}

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

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

/* ===== Glassmorphism ===== */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

body.dark .glass {
  background: rgba(20, 20, 40, 0.7);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ===== Header & Nav ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 25px;
  font-weight: 500;
  font-size: 15px;
}

.nav-links a {
  position: relative;
  padding: 5px 0;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff6b35;
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 5px 15px;
  transition: background 0.3s, box-shadow 0.3s;
}

body.dark .search-box {
  background: rgba(255, 255, 255, 0.08);
}

.search-box:focus-within {
  box-shadow: 0 0 0 2px #ff6b35;
}

.search-box input {
  background: none;
  border: none;
  outline: none;
  color: inherit;
  padding: 5px;
  width: 150px;
  font-size: 14px;
}

.search-box input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

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

.search-box button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-size: 18px;
  padding: 0 4px;
  transition: transform 0.2s;
}

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

.dark-toggle {
  cursor: pointer;
  font-size: 22px;
  background: none;
  border: none;
  color: inherit;
  padding: 4px 8px;
  border-radius: 50%;
  transition: background 0.2s, transform 0.2s;
}

.dark-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}

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

.hamburger span {
  width: 25px;
  height: 3px;
  background: currentColor;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: inherit;
    padding: 20px;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 0 0 16px 16px;
  }

  body.dark .nav-links {
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }

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

  .hamburger {
    display: flex;
  }

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

  .mobile-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 999;
    padding: 80px 30px;
    gap: 20px;
    color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .mobile-menu.open a {
    font-size: 1.5rem;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: color 0.2s;
  }

  .mobile-menu.open a:hover {
    color: #ff6b35;
  }
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  padding: 10px 20px;
  font-size: 0.9rem;
  color: #666;
  background: transparent;
}

body.dark .breadcrumb {
  color: #aaa;
}

.breadcrumb a:hover {
  color: #ff6b35;
}

.breadcrumb span {
  margin: 0 5px;
}

/* ===== Banner ===== */
.banner {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin: 20px;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
  color: white;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,107,53,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.banner-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
  padding: 40px;
  transform: scale(0.95);
}

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

.banner h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.banner p {
  font-size: 1.2rem;
  max-width: 600px;
  opacity: 0.9;
  line-height: 1.7;
}

.banner .cta {
  margin-top: 30px;
  padding: 15px 40px;
  background: #ff6b35;
  border: none;
  border-radius: 50px;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.banner .cta:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(255, 107, 53, 0.5);
}

.banner-dots {
  position: absolute;
  bottom: 20px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.banner-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.banner-dots span.active {
  background: #ff6b35;
  width: 30px;
  border-radius: 6px;
}

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

@media (max-width: 768px) {
  .banner {
    min-height: 320px;
    margin: 10px;
    border-radius: 16px;
  }

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

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

  .banner .cta {
    padding: 12px 30px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .banner {
    min-height: 280px;
  }

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

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

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

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #ff6b35, #f7931e);
  margin: 15px auto 0;
  border-radius: 2px;
}

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

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

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

@media (max-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  section {
    padding: 40px 15px;
  }

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

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

body.dark .card {
  background: rgba(30, 30, 50, 0.6);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

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

body.dark .card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  font-weight: 700;
}

.card h4 {
  margin-bottom: 8px;
  font-weight: 600;
}

.card p {
  line-height: 1.7;
  color: inherit;
  opacity: 0.9;
}

/* ===== SVG Image Placeholder ===== */
.svg-img {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  min-height: 200px;
  transition: transform 0.3s ease;
}

.card:hover .svg-img {
  transform: scale(1.02);
}

/* ===== Stat Number ===== */
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ff6b35;
  line-height: 1.2;
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  transition: border-color 0.3s;
}

body.dark .faq-item {
  border-color: rgba(255, 255, 255, 0.1);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 5px 0;
  transition: color 0.2s;
}

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

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

.faq-item.open .faq-question span {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding-top: 0;
  line-height: 1.7;
}

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

/* ===== HowTo Steps ===== */
.howto-step {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.howto-step .step-num {
  width: 40px;
  height: 40px;
  background: #ff6b35;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
}

.howto-step strong {
  display: block;
  margin-bottom: 4px;
}

/* ===== Footer ===== */
footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 40px 20px;
}

body.dark footer {
  background: #0a0a14;
}

footer a {
  color: #aaa;
  transition: color 0.2s;
}

footer a:hover {
  color: #ff6b35;
}

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

.footer-grid h4 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer-grid p {
  line-height: 1.7;
  font-size: 0.95rem;
}

.footer-grid a {
  display: inline-block;
  padding: 4px 0;
  font-size: 0.95rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #333;
  margin-top: 30px;
  font-size: 0.9rem;
  color: #888;
}

.footer-bottom p {
  margin-bottom: 5px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Back to Top ===== */
.back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #ff6b35;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.back-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-top:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(255, 107, 53, 0.5);
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Badge ===== */
.badge {
  display: inline-block;
  background: #ff6b35;
  color: white;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

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

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

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* ===== Form Elements ===== */
input, textarea, button {
  font-family: inherit;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #ff6b35 !important;
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

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

::-webkit-scrollbar-track {
  background: #f0f2f5;
}

body.dark ::-webkit-scrollbar-track {
  background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

body.dark ::-webkit-scrollbar-thumb {
  background: #444;
}

::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

body.dark ::-webkit-scrollbar-thumb:hover {
  background: #666;
}

/* ===== Selection ===== */
::selection {
  background: #ff6b35;
  color: white;
}

/* ===== Responsive Fine-tune ===== */
@media (max-width: 480px) {
  .logo {
    font-size: 18px;
  }

  .logo svg {
    width: 32px;
    height: 32px;
  }

  .nav-bar {
    padding: 12px 15px;
  }

  .search-box input {
    width: 80px;
    font-size: 13px;
  }

  .banner .cta {
    padding: 10px 24px;
    font-size: 0.95rem;
  }

  .card {
    padding: 18px;
  }

  .card h3 {
    font-size: 1.1rem;
  }

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