/* ============================================
   APEXVEST UNIFIED STYLESHEET
   All pages - No duplicates
   ============================================ */

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

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --orange-light: #ffedd5;
  --card-bg: #ffffff;
  --border-light: #e5e7eb;
  --shadow: 0 20px 30px -15px rgba(0, 0, 0, 0.08);
  --header-bg: rgba(255, 255, 255, 0.92);
  --footer-bg: #1f2937;
  --footer-text: #e5e7eb;
  --footer-text-secondary: #9ca3af;
  --section-padding: 80px 0;
  --section-padding-mobile: 50px 0;
  --card-padding: 28px 22px;
  --card-padding-mobile: 22px 16px;
  --container-padding: 0 24px;
  --transition: 0.3s;
  --tesla-red: #e82127;
  --byd-green: #00a650;
}

body.dark {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --orange: #f97316;
  --orange-dark: #fb923c;
  --orange-light: #2d1f10;
  --card-bg: #181818;
  --border-light: #2a2a2a;
  --shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.8);
  --header-bg: rgba(10, 10, 10, 0.9);
  --footer-bg: #000000;
  --footer-text: #e5e7eb;
  --footer-text-secondary: #9ca3af;
}

/* === Base Styles === */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: background var(--transition), color var(--transition);
  line-height: 1.7;
  margin: 0;
  scroll-behavior: smooth;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--container-padding);
}

/* === Header & Navigation === */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  z-index: 60;
  border-bottom: 1px solid var(--border-light);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.logo span { color: var(--orange); }

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

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--orange); }
.nav-links a.active-link { color: var(--orange); font-weight: 600; }

.nav-auth-btns { display: flex; gap: 8px; }

.btn-sm {
  padding: 7px 14px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm-outline {
  border: 1.5px solid var(--orange);
  color: var(--orange);
  background: transparent;
}

.btn-sm-primary { background: var(--orange); color: white; }
.btn-sm-primary:hover { background: var(--orange-dark); }

.theme-toggle {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  padding: 8px 14px;
  border-radius: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.theme-toggle i { color: var(--orange); }

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-light);
  font-size: 1.4rem;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-toggle:hover { border-color: var(--orange); color: var(--orange); }

/* === Page Content Wrapper === */
.page-content {
  padding-top: 120px;
  min-height: 80vh;
}

/* === Sections === */
section { padding: var(--section-padding); }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.section-sub {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  line-height: 1.6;
}

/* === Hero Slider === */
.hero {
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.video-background {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

.video-background video {
  width: 100%; height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.82) 100%);
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
  padding-top: 100px;
  width: 100%;
}

.slider-wrapper { border-radius: 28px; overflow: hidden; }

.slides-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px;
  color: white;
}

.slide-content { max-width: 700px; margin: 0 auto; }

.slide-content h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  line-height: 1.2;
}

.highlight { color: var(--orange); }

.slide-content p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 28px;
  text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

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

.dot {
  width: 10px; height: 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.4);
  border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer;
  transition: 0.3s;
}

.dot.active { background: var(--orange); width: 36px; border-color: var(--orange); }

/* === Buttons === */
.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.btn {
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  text-decoration: none;
  transition: 0.3s;
}

.btn-primary { background: var(--orange); color: white; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 10px 25px rgba(249,115,22,0.4); }

.btn-outline { border: 2px solid white; color: white; background: transparent; backdrop-filter: blur(8px); }
.btn-outline:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

.btn-white { background: white; color: var(--orange); }
.btn-white:hover { background: transparent; color: white; transform: translateY(-2px); }

/* === Cards === */
.cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card {
  flex: 1 1 230px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 22px;
  padding: var(--card-padding);
  text-align: center;
  box-shadow: var(--shadow);
  transition: 0.25s;
}

.card:hover { transform: translateY(-5px); border-color: var(--orange); }
.card i { font-size: 2rem; color: var(--orange); margin-bottom: 12px; }
.card h3 { margin-bottom: 6px; font-size: 1.1rem; }
.card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

/* === Tables (Architecture, Comparison, Table-Style Header) === */
.table-style-header {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.table-style-header th {
  background: var(--orange);
  color: white;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 1.2rem;
  text-align: center;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.table-style-header td {
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 1rem;
  vertical-align: top;
}

.architecture-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.architecture-table th {
  background: var(--orange);
  color: white;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.architecture-table td {
  padding: 16px;
  border: 1px solid var(--border-light);
  background: var(--card-bg);
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.6;
  vertical-align: middle;
}

.architecture-table td i { font-size: 1.8rem; color: var(--orange); margin-right: 10px; }
.architecture-table tr:hover td { background: var(--orange-light); }

.comparison-wrapper { overflow-x: auto; }

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comparison-table th {
  background: var(--orange);
  color: white;
  padding: 14px;
  font-weight: 600;
  font-size: 0.95rem;
}

.comparison-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  text-align: center;
  background: var(--card-bg);
  color: var(--text-primary);
  font-size: 0.9rem;
}

/* === Progress Bars === */
.progress-bar-container { margin: 16px 0; }

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.progress-bar {
  height: 12px;
  background: var(--border-light);
  border-radius: 20px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 20px;
  transition: width 0.5s ease;
}

/* === EV Badges & Stats === */
.ev-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.ev-badge.tesla { background: #fef2f2; color: var(--tesla-red); }
.ev-badge.byd { background: #f0fdf4; color: var(--byd-green); }

body.dark .ev-badge.tesla { background: #2d1a1a; }
body.dark .ev-badge.byd { background: #1a2d1f; }

.ev-stat { font-size: 2.2rem; font-weight: 800; color: var(--orange); margin: 10px 0; }

/* === Vehicle Showcase === */
.vehicle-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.vehicle-card {
  flex: 1 1 280px;
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
}

.vehicle-img { height: 180px; background-size: cover; background-position: center; }
.vehicle-info { padding: 18px; }

.vehicle-specs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.spec {
  background: var(--bg-secondary);
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* === About Flex === */
.about-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: center;
}

.about-text { flex: 1 1 380px; }

.about-image {
  flex: 1 1 380px;
  background: url('https://images.unsplash.com/photo-1600880292203-757bb62b4baf?q=80&w=1000&auto=format&fit=crop') center/cover no-repeat;
  border-radius: 28px;
  min-height: 300px;
  box-shadow: var(--shadow);
}

/* === Gallery === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-item {
  border-radius: 18px;
  overflow: hidden;
  height: 190px;
  background-size: cover;
  background-position: center;
  transition: 0.3s;
}

.gallery-item:hover { transform: scale(1.02); }

/* === Counters === */
.counters {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  text-align: center;
}

.counter-box h3 { font-size: 2.4rem; color: var(--orange); font-weight: 800; }
.counter-box p { color: var(--text-secondary); font-size: 0.9rem; }

/* === Steps (How It Works) === */
.steps-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.step-card {
  flex: 1 1 180px;
  text-align: center;
  padding: 24px 16px;
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid var(--border-light);
  transition: 0.3s;
}

.step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--orange); }

.step-number {
  width: 44px; height: 44px;
  background: var(--orange);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 14px;
}

.step-icon { font-size: 2rem; color: var(--orange); margin-bottom: 12px; }

/* === Testimonials === */
.testimonial-slider {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  padding: 32px 24px;
}

.testimonial-track { display: flex; transition: transform 0.6s ease; }

.testimonial-slide { min-width: 100%; text-align: center; padding: 14px; }

.testimonial-avatar {
  width: 65px; height: 65px;
  border-radius: 50%;
  background-size: cover;
  margin: 0 auto 14px;
  border: 3px solid var(--orange);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.testimonial-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-light);
  cursor: pointer;
  border: none;
  transition: 0.3s;
}

.testimonial-dot.active { background: var(--orange); width: 28px; border-radius: 10px; }

/* === FAQ === */
.faq-search {
  max-width: 600px;
  margin: 0 auto 40px;
  position: relative;
}

.faq-search input {
  width: 100%;
  padding: 14px 50px 14px 20px;
  border-radius: 50px;
  border: 2px solid var(--border-light);
  background: var(--card-bg);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.faq-search input:focus { outline: none; border-color: var(--orange); }
.faq-search i { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--orange); font-size: 1.2rem; }

.faq-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.faq-category-btn {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1.5px solid var(--border-light);
  background: var(--card-bg);
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: 0.3s;
  font-family: inherit;
}

.faq-category-btn:hover { border-color: var(--orange); color: var(--orange); }
.faq-category-btn.active { background: var(--orange); color: white; border-color: var(--orange); }

.faq-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: 0.3s;
}

.faq-item:hover { border-color: var(--orange); }
.faq-item.hidden { display: none; }

.faq-question {
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  gap: 12px;
}

.faq-answer {
  display: none;
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-icon { transform: rotate(180deg); }

.faq-icon { transition: transform 0.3s; color: var(--orange); font-size: 1rem; flex-shrink: 0; }

/* === Feature List === */
.feature-list { list-style: none; padding: 0; max-width: 700px; margin: 0 auto; }

.feature-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
}

.feature-list li i { color: var(--orange); font-size: 1.2rem; margin-top: 3px; }

/* === Team === */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.team-member {
  flex: 1 1 200px;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 28px 20px;
  box-shadow: var(--shadow);
  transition: 0.25s;
}

.team-member:hover { transform: translateY(-5px); border-color: var(--orange); }

.team-img {
  width: 100px; height: 100px;
  border-radius: 50%;
  background-size: cover;
  margin: 0 auto 14px;
  border: 3px solid var(--orange);
}

/* === Timeline === */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 100%;
  background: var(--orange);
  border-radius: 2px;
}

.timeline-item { display: flex; align-items: center; margin-bottom: 30px; position: relative; }
.timeline-item:nth-child(odd) { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }

.timeline-dot {
  width: 20px; height: 20px;
  background: var(--orange);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  border: 4px solid var(--bg-primary);
}

.timeline-content {
  width: 45%;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.timeline-content h4 { color: var(--orange); margin-bottom: 4px; }
.timeline-content p { color: var(--text-secondary); font-size: 0.9rem; }

/* === News === */
.news-grid { display: flex; flex-wrap: wrap; gap: 20px; }

.news-card {
  flex: 1 1 260px;
  background: var(--card-bg);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.news-img { height: 160px; background-size: cover; background-position: center; }
.news-content { padding: 16px; }

/* === Packages === */
.package-table { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }

.package-card {
  flex: 1 1 260px;
  background: var(--card-bg);
  border-radius: 24px;
  padding: 32px 22px;
  border: 1px solid var(--border-light);
  text-align: center;
}

.package-card.featured { border: 2px solid var(--orange); background: var(--orange-light); }

.package-badge {
  background: var(--orange);
  color: white;
  padding: 5px 16px;
  border-radius: 16px;
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 600;
}

.package-returns { font-size: 2rem; font-weight: 800; color: var(--orange); margin: 12px 0; }

.package-features { list-style: none; text-align: left; margin: 16px 0; }

.package-features li {
  padding: 6px 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-light);
}

.package-features li i { color: var(--orange); margin-right: 8px; }

/* === Contact === */
.contact-cta {
  background: var(--orange);
  color: white;
  text-align: center;
  padding: 45px 20px;
  border-radius: 28px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  background: var(--card-bg);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
}

/* === Footer === */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 45px 0 14px;
  margin-top: 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h4 {
  color: white;
  margin-bottom: 14px;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 30px; height: 3px;
  background: var(--orange);
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 8px; }

.footer-col ul li a {
  color: var(--footer-text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col p {
  color: var(--footer-text-secondary);
  font-size: 0.85rem;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-col p i { color: var(--orange); }

.social-links { display: flex; gap: 8px; margin-top: 12px; }

.social-links a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--footer-text);
  text-decoration: none;
}

.social-links a:hover { background: var(--orange); }

.newsletter-form { display: flex; gap: 6px; margin-top: 10px; }

.newsletter-form input {
  flex: 1;
  padding: 9px 12px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 0.85rem;
}

.newsletter-form button {
  padding: 9px 16px;
  border-radius: 50px;
  background: var(--orange);
  color: white;
  border: none;
  cursor: pointer;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--footer-text-secondary);
}

.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: var(--footer-text-secondary); text-decoration: none; }

/* === Responsive Breakpoints === */
@media (max-width: 1024px) {
  .slide-content h2 { font-size: 2.2rem; }
}

@media (max-width: 900px) {
  section { padding: var(--section-padding-mobile); }
  .slide { padding: 40px 24px; }
  .slide-content h2 { font-size: 1.8rem; }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px; left: 0;
    width: 100%;
    background: var(--header-bg);
    flex-direction: column;
    padding: 18px;
    gap: 14px;
    border-bottom: 1px solid var(--border-light);
    backdrop-filter: blur(14px);
  }
  .nav-links.show { display: flex; }
  .mobile-toggle { display: block; }
  .section-title { font-size: 1.7rem; }
  .section-sub { font-size: 0.9rem; margin-bottom: 30px; }
  .card { padding: var(--card-padding-mobile); }
  .timeline::before { left: 20px; }
  .timeline-item, .timeline-item:nth-child(even) { flex-direction: row; }
  .timeline-dot { left: 20px; }
  .timeline-content { width: 80%; margin-left: 50px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .slide { padding: 30px 16px; }
  .slide-content h2 { font-size: 1.5rem; }
  .btn { padding: 11px 22px; font-size: 0.85rem; }
  .section-title { font-size: 1.5rem; }
  .hero .container { padding-top: 70px; }
  .page-content { padding-top: 90px; }
}


/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */

.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll_to_top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--orange);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  font-size: 1.1rem;
}

.scroll_to_top:hover {
  background: var(--orange-dark);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.45);
  color: white;
  text-decoration: none;
}

.scroll_to_top:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.3);
}

/* Dark mode hover */
body.dark .scroll_to_top:hover {
  background: #fb923c;
  color: white;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .scroll-top {
    bottom: 20px;
    right: 20px;
  }
  
  .scroll_to_top {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .scroll-top {
    bottom: 16px;
    right: 16px;
  }
  
  .scroll_to_top {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }
}

