@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Orbitron:wght@400;500;700;900&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-color: #060913;
  --panel-bg: rgba(10, 16, 30, 0.7);
  --panel-bg-solid: #0d1222;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-active: rgba(0, 240, 255, 0.3);
  --text-primary: #f0f4f8;
  --text-secondary: #8e9bb4;

  --accent-cyan: #00f0ff;
  --accent-blue: #0066ff;
  --accent-green: #39ff14;
  --accent-yellow: #ffdf00;
  --accent-red: #ff3366;

  --glow-cyan: 0 0 10px rgba(0, 240, 255, 0.5);
  --glow-green: 0 0 10px rgba(57, 255, 20, 0.5);
  --glow-red: 0 0 10px rgba(255, 51, 102, 0.5);

  --font-display: 'Orbitron', sans-serif;
  --font-sans: 'Outfit', sans-serif;
  --font-inter: 'Inter', sans-serif;

  --header-height: 60px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Header */
header {
  height: var(--header-height);
  background: linear-gradient(180deg, rgba(13, 22, 43, 0.95) 0%, rgba(6, 9, 19, 0.95) 100%);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 0;
}

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

.logo-icon {
  width: 24px;
  height: 24px;
  position: relative;
}

.logo-icon::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  animation: pulse-ring 2s infinite linear;
}

.logo-icon::after {
  content: '';
  position: absolute;
  top: 8px; left: 8px; width: 8px; height: 8px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: var(--glow-cyan);
}

h1 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #fff 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation Tabs */
.header-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 3px;
  gap: 2px;
}

.header-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 5px 14px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.header-tab.active {
  background: var(--accent-cyan);
  color: #000;
  font-weight: 700;
  box-shadow: var(--glow-cyan);
}

.tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Status Badge */
.status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid rgba(57, 255, 20, 0.2);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: var(--glow-green);
  animation: pulse-dot 3s infinite ease-in-out;
}

/* Page Content */
.page-content {
  flex: 1;
  display: none;
}

.page-content.active {
  display: block;
}

/* Hero Section */
.hero {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.03) 0%, transparent 70%),
              radial-gradient(ellipse at 30% 20%, rgba(0, 102, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-badge {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 4px;
  padding: 4px 12px;
  letter-spacing: 2px;
  margin-bottom: 24px;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.1);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: 4px;
  background: linear-gradient(135deg, #fff 0%, var(--accent-cyan) 50%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
  transform: translateY(-2px);
}

/* Stats Bar */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 32px 24px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
  flex-wrap: wrap;
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  display: block;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* Section Styles */
.section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 28px 24px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--accent-cyan);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Architecture Section */
.architecture-section {
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.02) 0%, transparent 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.architecture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.arch-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}

.arch-card .feature-icon {
  margin: 0 auto 16px;
}

.arch-card h3 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.arch-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.arch-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.5rem;
}

/* About Page */
.about-hero {
  padding: 80px 24px 40px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.about-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
}

.about-card.full {
  grid-column: 1 / -1;
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.creator-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.creator-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  object-fit: cover;
}

.creator-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.creator-title {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.creator-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 8px 14px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.social-link:hover {
  color: #fff;
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.05);
}

.info-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 8px;
}

.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-label {
  color: var(--text-secondary);
}

.info-value {
  font-weight: 500;
  color: #fff;
}

.highlight-cyan {
  color: var(--accent-cyan);
  font-family: var(--font-display);
  font-weight: 600;
}

.about-story {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.about-story p {
  margin-bottom: 12px;
}

.about-story a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.about-story a:hover {
  text-decoration: underline;
}

/* Tech Stack */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-tag {
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-family: var(--font-display);
  letter-spacing: 0.5px;
}

/* GPS Tracker Page */
.tracker-hero {
  padding: 80px 24px 40px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.dashboard-showcase {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  margin: 40px auto;
  max-width: 1100px;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.05);
}

/* Slideshow */
.slideshow {
  position: relative;
  overflow: hidden;
  padding: 32px 24px 48px;
  min-height: 380px;
}

.slideshow-track {
  position: relative;
  min-height: 300px;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

.slide-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  max-width: 700px;
  margin: 0 auto;
}

.slide-visual {
  flex-shrink: 0;
}

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

.slide-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.slide-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 360px;
}

.slideshow-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.slide-nav-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slide-nav-btn:hover {
  background: rgba(0, 240, 255, 0.4);
}

.slide-nav-btn.active {
  background: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  width: 28px;
  border-radius: 5px;
}

/* Preview Globe (shared) */
.preview-globe {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid rgba(0, 240, 255, 0.2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.preview-globe::before {
  content: '';
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.1);
}

.preview-globe-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: var(--glow-cyan);
  position: absolute;
}

.preview-globe-dot:nth-child(1) { top: 20%; left: 40%; animation: float-dot 3s infinite ease-in-out; }
.preview-globe-dot:nth-child(2) { top: 55%; left: 25%; animation: float-dot 4s infinite ease-in-out 0.5s; }
.preview-globe-dot:nth-child(3) { top: 35%; left: 65%; animation: float-dot 3.5s infinite ease-in-out 1s; }
.preview-globe-dot:nth-child(4) { top: 70%; left: 55%; animation: float-dot 4.5s infinite ease-in-out 1.5s; }
.preview-globe-dot:nth-child(5) { top: 45%; left: 45%; animation: float-dot 3.2s infinite ease-in-out 2s; }
.preview-globe-dot:nth-child(6) { top: 25%; left: 75%; animation: float-dot 3.8s infinite ease-in-out 0.8s; }

/* Heatmap slide */
.slide-heatmap {
  border-color: rgba(255, 51, 102, 0.3);
}

.heatmap-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: heatmap-pulse 4s infinite ease-in-out;
}

.slide-heatmap::before {
  border-color: rgba(255, 51, 102, 0.15);
}

/* Earth slide */
.slide-earth {
  border-color: rgba(57, 255, 20, 0.25);
  overflow: hidden;
}

.slide-earth::before {
  border-color: rgba(57, 255, 20, 0.1);
}

.slide-earth::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 30% 40%, rgba(0, 180, 255, 0.08) 0%, transparent 60%);
}

.earth-continent {
  position: absolute;
  background: rgba(57, 255, 20, 0.2);
  border: 1px solid rgba(57, 255, 20, 0.15);
  border-radius: 40% 60% 50% 50% / 50% 40% 60% 50%;
  z-index: 1;
}

.earth-grid-line {
  position: absolute;
  background: rgba(57, 255, 20, 0.08);
  z-index: 0;
}

@keyframes heatmap-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.tracker-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.tracker-feature-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
}

.tracker-feature-card h3 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tracker-feature-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tracker-feature-card ul {
  list-style: none;
  margin-top: 12px;
}

.tracker-feature-card li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tracker-feature-card li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--accent-cyan);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 24px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

footer a {
  color: var(--accent-cyan);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Animations */
@keyframes pulse-ring {
  0% { transform: scale(0.65); opacity: 0; }
  50% { opacity: 0.5; }
  100% { transform: scale(1.3); opacity: 0; }
}

@keyframes pulse-dot {
  0%, 100% { background-color: var(--accent-green); box-shadow: var(--glow-green); }
  50% { background-color: rgba(255, 255, 255, 0.15); box-shadow: none; }
}

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

/* Responsive */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .architecture-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .tracker-features { grid-template-columns: 1fr; }
  .slide-content { flex-direction: column; gap: 24px; text-align: center; }
  .slide-info { text-align: center; }
  .slide-desc { max-width: 100%; }
  .preview-globe { width: 160px; height: 160px; }
  .preview-globe::before { width: 110px; height: 110px; }
}

@media (max-width: 768px) {
  header { padding: 0 12px; }
  h1 { font-size: 1rem; letter-spacing: 1px; }
  .header-tab { padding: 4px 8px; font-size: 0.7rem; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-bar { gap: 24px; }
  .stat-number { font-size: 1.4rem; }
  .section-title { font-size: 1.5rem; }
  .slideshow { min-height: 320px; padding: 24px 16px 40px; }
  .slide-content { flex-direction: column; gap: 16px; }
  .slide-info { text-align: center; }
  .slide-desc { max-width: 100%; }
  .slide-label { font-size: 0.85rem; }
  .slide-desc { font-size: 0.8rem; }
  .preview-globe { width: 140px; height: 140px; }
  .preview-globe::before { width: 100px; height: 100px; }
}
