/* ===== NEXUS AGENCY - SHARED STYLES ===== */

/* ===== CSS RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--highlight);
}

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

/* ===== THEME VARIABLES ===== */
:root {
  /* Dark Theme (Default) */
  --bg-primary: #0f2133;
  --bg-secondary: #162032;
  --bg-card: #1a2744;
  --bg-card-hover: #1e3050;
  --text-primary: #ffffff;
  --text-secondary: #c3cede;
  --text-muted: #9aa8bd;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --accent: #3b82f6;
  --accent-light: rgba(59, 130, 246, 0.15);
  --highlight: #f97316;
  --highlight-light: rgba(249, 115, 22, 0.15);
  --shadow: rgba(0, 0, 0, 0.4);
  --shadow-sm: rgba(0, 0, 0, 0.2);
  --overlay: rgba(0, 0, 0, 0.75);
  --navbar-bg: rgba(15, 33, 51, 0.92);
  --card-gradient: linear-gradient(145deg, var(--bg-card), var(--bg-secondary));
}

/* Light Theme */
[data-theme="light"] {
  --bg-primary: #f3f4f1;
  --bg-secondary: #eaece7;
  --bg-card: #fdfdfc;
  --bg-card-hover: #f1f2ee;
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --accent: #2563eb;
  --accent-light: rgba(37, 99, 235, 0.1);
  --highlight: #ea580c;
  --highlight-light: rgba(234, 88, 12, 0.1);
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-sm: rgba(0, 0, 0, 0.04);
  --overlay: rgba(255, 255, 255, 0.9);
  --navbar-bg: rgba(243, 244, 241, 0.92);
  --card-gradient: linear-gradient(145deg, var(--bg-card), #f1f2ee);
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 68px;
  padding: 0 24px;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.navbar-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 24px;
}

.navbar-brand {
  flex-shrink: 0;
  z-index: 2;
}

.navbar-brand img {
  height: 42px;
  width: auto;
  transition: transform 0.2s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 28px;
  list-style: none;
  margin: 0 auto;
  padding: 0 40px;
  white-space: nowrap;
  z-index: 1;
}

.navbar-menu a {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  position: relative;
  padding: 8px 0;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--highlight);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
  width: 100%;
}

.navbar-menu a:hover,
.navbar-menu a.active {
  color: var(--text-primary);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
  z-index: 2;
}

.navbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--highlight);
  color: #fff !important;
  font-weight: 600;
  font-size: 13px;
  border-radius: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.navbar-cta:hover {
  background: #ea580c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.navbar-cta::after {
  display: none !important;
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: scale(1.05);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  border-radius: 1px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--highlight);
  color: #fff;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
  background: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

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

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
  padding: 24px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo img {
  height: 36px;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.footer-logo:hover img {
  opacity: 1;
}

.footer-copy {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-copy span {
  color: var(--highlight);
  font-weight: 600;
}

/* ===== MAIN CONTENT WRAPPER ===== */
.main-content {
  flex: 1;
  padding: 88px 24px 40px;
  display: flex;
  flex-direction: column;
}

.main-container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* ===== CARD STYLES ===== */
:root {
  --neon-border: rgba(249, 115, 22, 0.55);
  --neon-glow-sm: 0 0 12px rgba(249, 115, 22, 0.35);
  --neon-glow-md: 0 0 32px rgba(249, 115, 22, 0.14);
  --neon-glow-hover: 0 0 18px rgba(249, 115, 22, 0.55), 0 0 48px rgba(249, 115, 22, 0.20);
}

.card {
  background: var(--card-gradient);
  border: 1px solid var(--neon-border);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s ease;
  box-shadow: var(--neon-glow-sm), var(--neon-glow-md);
}

.card:hover {
  border-color: var(--highlight);
  box-shadow: var(--neon-glow-hover);
}

/* Site-wide neon boxes (per-page card classes share styles.css) */
.service-card,
.equipment-card,
.feature-card,
.project-card,
.contact-info-card,
.contact-map-card,
.about-overview,
.stats-card,
.features-card,
.cta-section,
.live-player,
.live-offline,
.live-cta,
.stream-tab {
  border: 1px solid var(--neon-border) !important;
  box-shadow: var(--neon-glow-sm), var(--neon-glow-md);
}

.service-card:hover,
.equipment-card:hover,
.feature-card:hover,
.project-card:hover,
.contact-info-card:hover,
.contact-map-card:hover,
.about-overview:hover,
.stats-card:hover,
.features-card:hover,
.cta-section:hover,
.live-player:hover,
.live-offline:hover,
.live-cta:hover,
.stream-tab:hover {
  border-color: var(--highlight) !important;
  box-shadow: var(--neon-glow-hover);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .navbar-menu {
    gap: 20px;
    padding: 0 20px;
  }

  .navbar-menu a {
    font-size: 12px;
  }

  .navbar-cta {
    padding: 8px 12px;
    font-size: 12px;
  }

  .navbar-actions {
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .navbar-container {
    gap: 8px;
  }

  .navbar-menu {
    display: none;
    flex: none;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    transform: none;
    flex-direction: column;
    background: var(--bg-primary);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
    white-space: normal;
  }

  .navbar-menu.active {
    display: flex;
  }

  .navbar-cta {
    display: none;
  }

  /* Keep theme toggle grouped next to the menu button on the right */
  .navbar-actions {
    margin-left: auto;
    margin-right: 0;
    gap: 4px;
    flex-shrink: 0;
  }

  .theme-toggle {
    flex-shrink: 0;
  }

  .mobile-toggle {
    display: flex;
    flex-shrink: 0;
  }

  .main-content {
    padding: 88px 16px 32px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

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

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

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) var(--bg-secondary);
}
