/* ============================================
   TRUCK SIMULATOR ULTIMATE MOD APK
   Mobile-First Responsive Stylesheet
   ============================================ */

/* CSS Variables */
:root {
  --primary: #FF6B00;
  --primary-dark: #E55A00;
  --secondary: #1A1A2E;
  --accent: #FFD700;
  --text-light: #FFFFFF;
  --text-dark: #333333;
  --text-muted: #666666;
  --bg-light: #F5F5F5;
  --bg-white: #FFFFFF;
  --border-color: #E0E0E0;
  --success: #28A745;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.2);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.text-center {
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-light);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-lg {
  padding: 18px 48px;
  font-size: 1.1rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 46, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo img {
  width: 45px;
  height: 45px;
  border-radius: 10px;
}

.logo-text {
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}

.logo-text span {
  color: var(--primary);
  font-size: 0.75rem;
  display: block;
}

.nav-menu {
  display: none;
}

.nav-menu a {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 25px;
  transition: var(--transition);
}

.nav-menu a:hover {
  background: var(--primary);
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: var(--text-light);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  padding: 100px 0 50px;
  background: linear-gradient(135deg, var(--secondary) 0%, #16213E 50%, #0F3460 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,107,0,0.1)" stroke-width="0.5"/></svg>');
  background-size: 100px 100px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--secondary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-light);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-title span {
  color: var(--primary);
}

.hero-description {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.hero-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.app-icon-wrapper {
  position: relative;
}

.app-icon {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  box-shadow: 0 10px 40px rgba(255, 107, 0, 0.4);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.app-info {
  text-align: center;
}

.app-name {
  color: var(--text-light);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.app-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.app-meta span {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.75rem;
}

.app-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
}

.rating-stars {
  color: var(--accent);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 2rem 0;
}

.stat-item {
  text-align: center;
  padding: 15px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.stat-number {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 800;
}

.stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.hero-cta {
  text-align: center;
  margin-top: 2rem;
}

.download-note {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  margin-top: 1rem;
}

/* ============================================
   INFO TABLE SECTION
   ============================================ */
.info-section {
  padding: 40px 0;
  background: var(--bg-white);
}

.info-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.info-table th,
.info-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  word-break: break-word;
}

.info-table th {
  background: var(--secondary);
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.info-table td {
  font-size: 0.9rem;
}

.info-table tr:nth-child(even) {
  background: var(--bg-light);
}

.info-table tr:hover {
  background: rgba(255, 107, 0, 0.05);
}

.info-table td:first-child {
  font-weight: 600;
  color: var(--secondary);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
  padding: 50px 0;
  background: var(--bg-light);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 2rem;
}

.feature-card {
  background: var(--bg-white);
  padding: 25px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================
   SCREENSHOTS SECTION
   ============================================ */
.screenshots-section {
  padding: 50px 0;
  background: var(--bg-white);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 2rem;
}

.screenshot-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.screenshot-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-hover);
}

.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   CONTENT SECTIONS (SEO)
   ============================================ */
.content-section {
  padding: 50px 0;
}

.content-section:nth-child(odd) {
  background: var(--bg-light);
}

.content-section:nth-child(even) {
  background: var(--bg-white);
}

.content-block {
  margin-bottom: 2rem;
}

.content-block h3 {
  font-size: 1.3rem;
  color: var(--secondary);
  margin-bottom: 1rem;
  padding-left: 15px;
  border-left: 4px solid var(--primary);
}

.content-block p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.content-block ul {
  padding-left: 20px;
  margin-bottom: 1rem;
}

.content-block ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.content-block ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

.highlight-box {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, rgba(255, 215, 0, 0.1) 100%);
  border-left: 4px solid var(--primary);
  padding: 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

.highlight-box p {
  margin: 0;
  color: var(--text-dark);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
  padding: 50px 0;
  background: var(--bg-light);
}

.faq-list {
  margin-top: 2rem;
}

.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background: rgba(255, 107, 0, 0.05);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 20px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ============================================
   DOWNLOAD PAGE STYLES
   ============================================ */
.download-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--secondary) 0%, #16213E 100%);
  display: flex;
  flex-direction: column;
  padding-top: 80px;
}

.download-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.download-icon {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 40px rgba(255, 107, 0, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.download-title {
  font-size: 1.8rem;
  color: var(--text-light);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.download-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.download-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 30px;
  width: 100%;
  max-width: 400px;
  margin-bottom: 2rem;
}

.file-info {
  margin-bottom: 1.5rem;
}

.file-name {
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  word-break: break-all;
}

.file-size {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.download-btn-wrapper {
  position: relative;
}

.download-progress {
  display: none;
  margin-top: 1rem;
}

.download-progress.active {
  display: block;
}

.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.download-note-box {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius);
  padding: 15px;
  margin-top: 1.5rem;
}

.download-note-box p {
  color: var(--accent);
  font-size: 0.8rem;
  margin: 0;
}

/* ============================================
   POPUP MODAL STYLES
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 700px;
  max-height: 85vh;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  background: var(--secondary);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  color: var(--text-light);
  font-size: 1.2rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 25px;
  overflow-y: auto;
  max-height: 50vh;
}

.modal-body h4 {
  color: var(--secondary);
  font-size: 1.1rem;
  margin: 1.5rem 0 0.8rem;
}

.modal-body h4:first-child {
  margin-top: 0;
}

.modal-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.modal-body ul {
  padding-left: 20px;
  margin-bottom: 1rem;
}

.modal-body ul li {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.modal-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
}

.btn-acknowledge {
  background: var(--primary);
  color: var(--text-light);
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-acknowledge:hover {
  background: var(--primary-dark);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--secondary);
  color: var(--text-light);
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-brand .logo-text {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

/* ============================================
   TABLET RESPONSIVE (768px+)
   ============================================ */
@media (min-width: 768px) {
  .container {
    padding: 0 30px;
  }

  .nav-menu {
    display: flex;
    gap: 5px;
  }

  .mobile-menu-btn {
    display: none;
  }

  .hero {
    padding: 120px 0 70px;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .hero-app {
    flex-direction: row;
    text-align: left;
  }

  .app-info {
    text-align: left;
  }

  .app-meta {
    justify-content: flex-start;
  }

  .app-rating {
    justify-content: flex-start;
  }

  .hero-stats {
    max-width: 500px;
  }

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

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .screenshots-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-title {
    font-size: 2.2rem;
  }
}

/* ============================================
   DESKTOP RESPONSIVE (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .modal-container {
    max-width: 800px;
  }

  .modal-body {
    max-height: 60vh;
  }
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--secondary);
  z-index: 1500;
  padding: 80px 20px 20px;
  transition: right 0.3s ease;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav a {
  display: block;
  color: var(--text-light);
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1rem;
}

.mobile-nav a:hover {
  background: var(--primary);
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1400;
  display: none;
}

.mobile-nav-overlay.active {
  display: block;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

/* Scroll animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
