/* ============================================================
   365 Services Next-Gen ISP Web Design System & Components
   Includes Tokens, Glassmorphism, Theme Switcher, Micro-Animations
   ============================================================ */

:root {
  /* Dark Theme Default Variables */
  --bg-primary: #07132b;
  --bg-secondary: #0c1d3d;
  --bg-card: rgba(15, 35, 71, 0.75);
  --bg-card-hover: rgba(22, 48, 97, 0.9);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --text-muted: #718096;
  
  /* Brand Accent Colors */
  --brand-blue: #00d2ff;
  --brand-navy: #0066ff;
  --brand-cyan: #00f2fe;
  --brand-red: #ff2a4b;
  --brand-yellow: #ffd400;
  --brand-green: #25d366;
  
  /* Gradients */
  --grad-hero: radial-gradient(circle at 80% 10%, rgba(0, 210, 255, 0.18) 0%, rgba(7, 19, 43, 0) 60%);
  --grad-primary: linear-gradient(135deg, var(--brand-blue), var(--brand-navy));
  --grad-accent: linear-gradient(135deg, var(--brand-red), #ff6b4b);
  --grad-card: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  
  /* Shadows & Radius */
  --shadow-glow: 0 0 25px rgba(0, 210, 255, 0.25);
  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.35);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-full: 999px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f4f8fc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f6ff;
  --glass-border: rgba(7, 25, 59, 0.12);
  --text-primary: #07193b;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --grad-hero: radial-gradient(circle at 80% 10%, rgba(0, 210, 255, 0.2) 0%, rgba(244, 248, 252, 0) 60%);
  --shadow-card: 0 16px 40px rgba(7, 25, 59, 0.08);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top Notification Status Bar */
.topbar {
  background: linear-gradient(90deg, #050d1e, #0f2b5c);
  border-bottom: 1px solid var(--glass-border);
  font-size: 13.5px;
  padding: 8px 0;
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: var(--brand-green);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--brand-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--brand-green);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 600;
}

/* Main Navigation Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 19, 43, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

[data-theme="light"] header {
  background: rgba(255, 255, 255, 0.88);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

/* 100% Transparent Adaptive Official Logo System */
.logo-group {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-group:hover {
  transform: translateY(-2px) scale(1.03);
}

.logo-svg-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

.official-logo-svg {
  height: 52px;
  width: auto;
  overflow: visible;
  display: block;
}

/* Light Theme Vector Colors */
.svg-num {
  fill: #00d2ff;
}

.svg-word {
  fill: #063c94;
}

.svg-tagline {
  fill: #4a5568;
}

/* Dark Theme Vector Colors (Fit Dark Header Perfectly) */
[data-theme="dark"] .svg-num {
  fill: #00d2ff;
  filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.6));
}

[data-theme="dark"] .svg-word {
  fill: #ffffff;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

[data-theme="dark"] .svg-tagline {
  fill: #cbd5e1;
}

.svg-swoop {
  filter: drop-shadow(0 3px 6px rgba(0, 210, 255, 0.5));
  transition: filter 0.3s ease;
}

.logo-group:hover .svg-swoop {
  filter: drop-shadow(0 4px 12px rgba(0, 210, 255, 0.9));
}

/* Shimmer Light Sweep Effect */
.logo-4d-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 210, 255, 0.4),
    rgba(255, 255, 255, 0.6),
    transparent
  );
  transform: skewX(-25deg);
  animation: lightSweep 4s infinite;
  pointer-events: none;
}

/* Hero Multi-Slide Interactive Carousel System */
.hero-slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px; /* Clean compact width prevents horizontal stretching */
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 210, 255, 0.25);
  border: 1px solid var(--glass-border);
}

.hero-slides-container {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.hero-slide {
  min-width: 100%;
  box-sizing: border-box;
  background: var(--grad-primary);
  padding: 38px 48px 48px 48px;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 320px; /* Clean balanced 3:2 card proportion */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-slide-2 {
  background: linear-gradient(135deg, #06285d, #0b58b9);
}

.hero-slide-3 {
  background: linear-gradient(135deg, #4a00e0, #8e2de2);
}

.hero-slide-4 {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
}

/* Slider Navigation Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.slider-arrow:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #000;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 6px 18px rgba(0, 210, 255, 0.5);
}

.slider-arrow.prev { left: 12px; }
.slider-arrow.next { right: 12px; }

/* Pagination Dots */
.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 20;
}

.dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.dot.active {
  width: 26px;
  border-radius: 10px;
  background: var(--brand-yellow);
  box-shadow: 0 0 10px var(--brand-yellow);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  font-weight: 700;
  font-size: 15px;
}

.nav-link:hover {
  color: var(--brand-blue);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle, .lang-toggle {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition);
}

.theme-toggle:hover, .lang-toggle:hover {
  background: var(--brand-blue);
  color: #000;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 10px 20px rgba(255, 42, 75, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(255, 42, 75, 0.45);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--glass-border);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 72px 0 60px;
  background: var(--grad-hero);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.3);
  color: var(--brand-blue);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 13.5px;
  margin-bottom: 20px;
}

/* 365 AirFiber Wireless 5G Banner */
.airfiber-banner-section {
  padding: 40px 0;
  background: linear-gradient(180deg, rgba(7, 19, 43, 0) 0%, rgba(0, 210, 255, 0.05) 50%, rgba(7, 19, 43, 0) 100%);
}

.airfiber-banner-card {
  background: linear-gradient(135deg, #061e47 0%, #0d448a 50%, #0084ff 100%);
  border-radius: var(--radius-lg);
  padding: 44px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 132, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}

.airfiber-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 210, 255, 0.2);
  border: 1px solid rgba(0, 210, 255, 0.5);
  color: var(--brand-cyan);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 16px;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.airfiber-title {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 14px;
}

.airfiber-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0;
}

.airfiber-feat-pill {
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 54px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.highlight {
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 19px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 620px;
}

/* Interactive Coverage PIN Search Box */
.coverage-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.coverage-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-group {
  display: flex;
  gap: 12px;
}

.input-group input {
  flex: 1;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
}

[data-theme="light"] .input-group input {
  background: #ffffff;
}

.input-group input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.3);
}

#coverage-result {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  display: none;
}

#coverage-result.active {
  display: block;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: var(--brand-green);
}

#coverage-result.expanding {
  display: block;
  background: rgba(255, 212, 0, 0.15);
  border: 1px solid rgba(255, 212, 0, 0.4);
  color: var(--brand-yellow);
}

/* Stats Counter Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-blue);
}

.stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--brand-blue);
}

/* Section Headings */
section {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.section-tag {
  color: var(--brand-blue);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

/* Interactive Plan Finder Slider */
.slider-container {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-card);
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.device-count {
  font-size: 28px;
  font-weight: 900;
  color: var(--brand-blue);
}

input[type="range"] {
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: var(--glass-border);
  outline: none;
  cursor: pointer;
}

/* Plans Grid */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.plan-card.popular {
  border-color: var(--brand-blue);
  box-shadow: 0 0 30px rgba(0, 210, 255, 0.25);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.plan-name {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.plan-speed {
  font-size: 42px;
  font-weight: 900;
  color: var(--brand-blue);
  line-height: 1;
  margin-bottom: 16px;
}

.plan-price {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--brand-red);
}

.plan-features {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}

.plan-features li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px dashed var(--glass-border);
}

/* Live Speed Test Section */
.speedtest-panel {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.speed-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.metric-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
  padding: 16px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.metric-val {
  font-size: 26px;
  font-weight: 900;
  color: var(--brand-cyan);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  max-width: 480px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-card);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--brand-green);
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 99;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Footer */
footer {
  background: #030a17;
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 30px;
  color: var(--text-secondary);
  font-size: 14px;
}

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

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid, .speedtest-panel { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 42px; }
}

@media (max-width: 640px) {
  .plans-grid, .footer-grid { grid-template-columns: 1fr; }
  .nav-menu { display: none; }
  h1 { font-size: 34px; }
}
