/* ==========================================================================
   COSMO EXPLORER - THEME DESIGN SYSTEM (VANILLA CSS)
   ========================================================================== */

/* --- GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --- CUSTOM VARIABLES --- */
:root {
  /* Color Palette */
  --bg-deep-space: #030209;
  --bg-nebula-void: rgba(9, 6, 21, 0.7);
  --bg-glass-card: rgba(15, 12, 30, 0.45);
  
  --accent-cyan: #00f0ff;
  --accent-purple: #9b51e0;
  --accent-pink: #ff007f;
  --accent-cyan-glow: rgba(0, 240, 255, 0.35);
  --accent-purple-glow: rgba(155, 81, 224, 0.35);
  --accent-pink-glow: rgba(255, 0, 127, 0.35);

  --text-white: #ffffff;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Fonts */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Grid & Spacing */
  --header-height: 80px;
  --max-width: 1200px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET & BASE STYLE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-purple) var(--bg-deep-space);
}

/* Custom Scrollbar for Chrome/Safari/Edge */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep-space);
}
::-webkit-scrollbar-thumb {
  background: rgba(155, 81, 224, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep-space);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* --- CANVAS STARFIELD BACKGROUND --- */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: auto;
}

/* Background Cosmic Ambient Light */
.nebula-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  z-index: -1;
  filter: blur(140px);
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: screen;
  transition: transform 0.5s ease-out;
}

.nebula-purple {
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
  top: -10%;
  right: -10%;
}

.nebula-cyan {
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
  bottom: -10%;
  left: -10%;
}

/* --- UTILITY CLASSES --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--text-white) 30%, var(--accent-cyan) 70%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-cyan {
  color: var(--accent-cyan);
}

.text-purple {
  color: var(--accent-purple);
}

/* --- GLASS CONTAINER STYLING --- */
.glass-panel {
  background: var(--bg-glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--border-radius-md);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  transition: var(--transition-normal);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid transparent;
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
  color: var(--bg-deep-space);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.6), 0 0 10px rgba(155, 81, 224, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px var(--accent-cyan-glow);
  transform: translateY(-3px);
}

/* --- HEADER / NAVIGATION --- */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background: rgba(3, 2, 9, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-normal);
}

header.scrolled {
  background: rgba(3, 2, 9, 0.9);
  padding: 5px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 1px;
}

.logo-img {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
  transition: var(--transition-normal);
}

.logo-link:hover .logo-img {
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 0 25px var(--accent-cyan);
}

.main-nav {
  display: flex;
  gap: 36px;
  align-items: center;
}

.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  transition: var(--transition-fast);
}

.main-nav a:hover {
  color: var(--text-white);
}

.main-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
}

.hamburger-menu .line {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--text-white);
  margin: 6px 0;
  transition: var(--transition-normal);
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  z-index: 2;
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(155, 81, 224, 0.15);
  border: 1px solid rgba(155, 81, 224, 0.4);
  padding: 6px 16px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #d8b4fe;
  margin-bottom: 24px;
  box-shadow: 0 0 15px rgba(155, 81, 224, 0.1);
}

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

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 15px var(--accent-pink); }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: 4.8rem;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* Interactive Floating Astronaut or Space Portal */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.cosmic-portal {
  position: relative;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 81, 224, 0.1) 0%, transparent 70%);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 80px rgba(155, 81, 224, 0.15) inset;
}

.portal-ring {
  position: absolute;
  border: 1px dashed rgba(0, 240, 255, 0.2);
  border-radius: 50%;
  animation: rotatePortal 20s linear infinite;
}

.ring-1 { width: 420px; height: 420px; animation-duration: 25s; border-color: rgba(155, 81, 224, 0.2); }
.ring-2 { width: 340px; height: 340px; animation-duration: 15s; animation-direction: reverse; }
.ring-3 { width: 260px; height: 260px; border-style: solid; border-color: rgba(255, 0, 127, 0.1); }

@keyframes rotatePortal {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.floating-globe {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at 30% 30%, #4ea1ff, #040011 85%);
  border-radius: 50%;
  position: relative;
  box-shadow: -20px -20px 50px rgba(255, 255, 255, 0.1) inset,
              15px 15px 35px rgba(0, 0, 0, 0.8),
              0 0 40px rgba(0, 240, 255, 0.3);
  animation: floatGlobal 6s ease-in-out infinite;
}

.floating-globe::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M10,20 Q30,10 50,20 T90,20 M5,50 Q35,40 55,50 T95,50 M15,80 Q35,70 65,80 T85,80" fill="none" stroke="rgba(255,255,255,0.15)" stroke-width="2"/></svg>') repeat;
  background-size: cover;
  opacity: 0.6;
}

@keyframes floatGlobal {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* --- ABOUT APP SECTION --- */
.section-padding {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 70px;
}

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

.section-header h2 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
}

/* App Showroom Columns */
.app-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.phone-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-glow-bg {
  position: absolute;
  width: 300px;
  height: 480px;
  border-radius: 40px;
  background: radial-gradient(circle, var(--accent-cyan-glow) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 1;
}

.phone-container {
  width: 320px;
  height: 640px;
  background: #0d0c15;
  border: 12px solid #1f202e;
  border-radius: 40px;
  position: relative;
  z-index: 2;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8),
              0 0 0 2px rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

/* Speaker notch */
.phone-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 25px;
  background: #1f202e;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  position: relative;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

/* Showroom Features Description */
.app-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.app-details h3 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.app-details p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.app-features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
}

.feature-bullet {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-normal);
}

.feature-bullet:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 240, 255, 0.2);
  transform: translateX(5px);
}

.bullet-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15) 0%, rgba(155, 81, 224, 0.15) 100%);
  border: 1px solid var(--accent-cyan);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent-cyan);
  font-weight: bold;
  flex-shrink: 0;
}

.feature-bullet:nth-child(2) .bullet-icon {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

.bullet-text h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 4px;
}

.bullet-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* --- INTERACTIVE SOLAR SYSTEM (ORRERY) SECTION --- */
.orrery-section {
  position: relative;
  overflow: hidden;
}

.orrery-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

/* Dashboard Panel (Visual Orrery) */
.orrery-dashboard {
  height: 520px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(16, 12, 42, 0.6) 0%, rgba(5, 3, 15, 0.8) 100%);
}

.orrery-grid-overlay {
  position: absolute;
  width: 150%;
  height: 150%;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px, 20px 20px, 20px 20px;
  background-position: center;
  transform: rotateX(60deg);
  opacity: 0.7;
}

/* Solar System Orbit Rings */
.orbit-ring {
  position: absolute;
  border: 1px solid rgba(0, 240, 255, 0.08);
  border-radius: 50%;
  transform: rotateX(65deg);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.orbit-sun {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, #ffe359 0%, #ffaa00 70%, #ff5500 100%);
  border-radius: 50%;
  box-shadow: 0 0 50px #ffaa00, 0 0 20px #ffaa00 inset;
  z-index: 5;
  cursor: pointer;
  transition: transform 0.3s;
}

.orbit-sun:hover {
  transform: scale(1.15);
}

.ring-earth { width: 180px; height: 180px; }
.ring-mars { width: 280px; height: 280px; }
.ring-jupiter { width: 380px; height: 380px; }

/* Interactive Planet Nodes */
.planet-node {
  position: absolute;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.2s, box-shadow 0.3s;
  z-index: 10;
}

.planet-node::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: 0.3s;
}

.planet-node.selected::after,
.planet-node:hover::after {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
  transform: scale(1.2);
}

.planet-earth {
  width: 18px;
  height: 18px;
  background: radial-gradient(circle at 30% 30%, #4f96ff, #001859);
  box-shadow: 0 0 8px rgba(79, 150, 255, 0.6);
  animation: orbitEarth 12s linear infinite;
}

.planet-mars {
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 30% 30%, #ff7f50, #400c00);
  box-shadow: 0 0 8px rgba(255, 127, 80, 0.6);
  animation: orbitMars 18s linear infinite;
}

.planet-jupiter {
  width: 32px;
  height: 32px;
  background: radial-gradient(circle at 30% 30%, #e39d73, #6e3c15);
  box-shadow: 0 0 12px rgba(227, 157, 115, 0.4);
  animation: orbitJupiter 30s linear infinite;
}

/* Keyframe Orbits (Flat ellipses adjusted for rotateX) */
@keyframes orbitEarth {
  from { transform: rotate(0deg) translate(90px) rotate(0deg); }
  to { transform: rotate(360deg) translate(90px) rotate(-360deg); }
}

@keyframes orbitMars {
  from { transform: rotate(0deg) translate(140px) rotate(0deg); }
  to { transform: rotate(360deg) translate(140px) rotate(-360deg); }
}

@keyframes orbitJupiter {
  from { transform: rotate(0deg) translate(190px) rotate(0deg); }
  to { transform: rotate(360deg) translate(190px) rotate(-360deg); }
}

/* Planet Info Screen (Telemetry Deck) */
.telemetry-card {
  padding: 40px;
  border-radius: var(--border-radius-lg);
  border-color: rgba(0, 240, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.telemetry-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.telemetry-header h3 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.telemetry-header .planet-type {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-cyan);
  letter-spacing: 2px;
  margin-top: 4px;
}

.telemetry-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.spec-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 14px;
  border-radius: var(--border-radius-sm);
}

.spec-item .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.spec-item .value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-white);
  margin-top: 4px;
}

.telemetry-desc h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-white);
  margin-bottom: 8px;
}

.telemetry-desc p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- SERVICES (CORE SERVICES) SECTION --- */
.services-section {
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  padding: 40px 30px;
  border-radius: var(--border-radius-md);
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, var(--accent-purple-glow) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition-normal);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(155, 81, 224, 0.4);
  box-shadow: 0 15px 40px rgba(155, 81, 224, 0.15);
}

.service-card:nth-child(2)::before {
  background: radial-gradient(circle at 50% 0%, var(--accent-cyan-glow) 0%, transparent 60%);
}

.service-card:nth-child(2):hover {
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 15px 40px rgba(0, 240, 255, 0.15);
}

.service-card:nth-child(3)::before {
  background: radial-gradient(circle at 50% 0%, var(--accent-pink-glow) 0%, transparent 60%);
}

.service-card:nth-child(3):hover {
  border-color: rgba(255, 0, 127, 0.4);
  box-shadow: 0 15px 40px rgba(255, 0, 127, 0.15);
}

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 28px;
  font-size: 1.8rem;
  transition: var(--transition-normal);
  color: var(--accent-purple);
  z-index: 2;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(10deg);
  border-color: var(--accent-purple);
  box-shadow: 0 0 20px var(--accent-purple-glow);
  color: var(--text-white);
  background: var(--accent-purple);
}

.service-card:nth-child(2) .service-icon {
  color: var(--accent-cyan);
}
.service-card:nth-child(2):hover .service-icon {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px var(--accent-cyan-glow);
  background: var(--accent-cyan);
}

.service-card:nth-child(3) .service-icon {
  color: var(--accent-pink);
}
.service-card:nth-child(3):hover .service-icon {
  border-color: var(--accent-pink);
  box-shadow: 0 0 20px var(--accent-pink-glow);
  background: var(--accent-pink);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
  z-index: 2;
  color: var(--text-white);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  z-index: 2;
}

/* --- INITIATIVE & AI MOCK ASSISTANT SECTION --- */
.initiative-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.initiative-content h2 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.initiative-content p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 30px;
}

/* Futuristic AI Assistant Widget Mock */
.ai-assistant-widget {
  height: 420px;
  border-radius: var(--border-radius-lg);
  border-color: rgba(255, 0, 127, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.widget-header {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-container {
  position: relative;
}

.avatar-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-purple) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-white);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 0 10px var(--accent-pink-glow);
}

.status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #00c853;
  border: 2px solid #0d0c15;
  border-radius: 50%;
}

.user-meta h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-white);
}

.user-meta span {
  font-size: 0.75rem;
  color: var(--accent-pink);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.widget-chat-box {
  flex-grow: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(9, 6, 21, 0.4);
}

.chat-bubble {
  max-width: 80%;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.bubble-received {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.bubble-sent {
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-pink) 100%);
  color: var(--text-white);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  box-shadow: 0 5px 15px var(--accent-purple-glow);
}

.widget-input-area {
  background: rgba(255, 255, 255, 0.01);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px 20px;
  display: flex;
  gap: 12px;
}

.widget-input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  padding: 10px 20px;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.widget-input:focus {
  border-color: var(--accent-pink);
  box-shadow: 0 0 10px var(--accent-pink-glow);
}

.widget-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-pink);
  border: none;
  color: var(--text-white);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-fast);
}

.widget-send-btn:hover {
  background: #ff2a94;
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--accent-pink);
}

/* --- CONTACT & NEWSLETTER SECTION --- */
.contact-section {
  position: relative;
}

.contact-card-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  border-radius: var(--border-radius-lg);
  border-color: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
}

.contact-details-panel {
  padding: 50px;
  background: linear-gradient(135deg, rgba(15, 12, 30, 0.8) 0%, rgba(9, 6, 21, 0.8) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-meta h3 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-meta p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 40px 0;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  color: var(--accent-cyan);
  transition: var(--transition-normal);
}

.info-item:hover .info-icon {
  border-color: var(--accent-cyan);
  color: var(--bg-deep-space);
  background: var(--accent-cyan);
  box-shadow: 0 0 20px var(--accent-cyan-glow);
}

.info-content span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-content p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-white);
  margin-top: 4px;
}

.info-content a {
  color: var(--text-white);
  text-decoration: none;
  transition: var(--transition-fast);
}

.info-content a:hover {
  color: var(--accent-cyan);
}

.contact-socials {
  display: flex;
  gap: 16px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition-normal);
}

.social-btn:hover {
  border-color: var(--text-white);
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
}

/* Contact Form Panel */
.contact-form-panel {
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-sm);
  padding: 14px 18px;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-normal);
}

.form-input:focus {
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 20px var(--accent-cyan-glow);
}

textarea.form-input {
  min-height: 140px;
  resize: vertical;
}

.form-submit-btn {
  width: 100%;
  border: none;
}

/* --- FOOTER SECTION --- */
footer {
  background: #020106;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px 0 30px;
  position: relative;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-white);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-links-col h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-cyan);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- SCROLL REVEAL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3.8rem;
  }
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .services-grid .service-card:nth-child(3) {
    grid-column: span 2;
  }
  .orrery-container {
    grid-template-columns: 1fr;
  }
  .orrery-dashboard {
    height: 450px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .main-nav {
    display: none; /* Hide on Mobile, handled via JS */
  }
  
  .header-actions .btn {
    display: none; /* Hide download button in nav on mobile */
  }

  .hamburger-menu {
    display: block;
  }

  /* Full Screen Slide Menu */
  .main-nav.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: rgba(9, 6, 21, 0.96);
    backdrop-filter: blur(25px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding: 100px 40px;
    gap: 32px;
    z-index: 1000;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
  }

  .hamburger-menu.active .line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--accent-cyan);
  }
  .hamburger-menu.active .line:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.active .line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--accent-cyan);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
  }

  .hero-content h1 {
    font-size: 3.2rem;
  }

  .hero-content p {
    margin: 0 auto 30px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 40px;
  }

  .app-grid, .initiative-grid, .contact-card-grid {
    grid-template-columns: 1fr;
  }

  .phone-mockup-wrapper {
    order: -1;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-grid .service-card:nth-child(3) {
    grid-column: span 1;
  }

  .contact-details-panel {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
  }

  .contact-form-panel {
    padding: 40px 30px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .section-header h2 {
    font-size: 2.2rem;
  }
}
