/* ============================================
   EARTHLYTIX - DARK THEME STYLESHEET
   Satellite Earth Observation Website
   ============================================ */

/* ============================================
   ROOT VARIABLES - DARK THEME COLOR PALETTE
   ============================================ */
:root {
  /* Primary Dark Colors - Matching logo navy */
  --primary-dark: #0d1b2a;
  --secondary-dark: #1b2838;
  --tertiary-dark: #243447;
  
  /* Accent Colors - Matching logo teal/cyan and green */
  --accent-blue: #2b8fa3;
  --accent-cyan: #3da5ba;
  --accent-green: #7cb342;
  --accent-teal: #26a69a;
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #b8d4e0;
  --text-muted: #7a98a8;
  
  /* UI Colors */
  --border-color: #2b4558;
  --card-bg: #162532;
  --card-hover: #1f3545;
  
  /* Overlay & Effects */
  --overlay-dark: rgba(13, 27, 42, 0.85);
  --overlay-light: rgba(13, 27, 42, 0.6);
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
  box-sizing: border-box;
}

body, html {
  font-family: 'Raleway', sans-serif;
  background-color: var(--primary-dark);
  color: var(--text-primary);
  line-height: 1.8;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

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

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

/* ============================================
   NAVIGATION BAR
   ============================================ */
.navbar-dark {
  background-color: var(--primary-dark) !important;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-dark.navbar-scrolled {
  background-color: rgba(10, 14, 39, 0.95) !important;
  backdrop-filter: blur(10px);
}

.navbar-dark .w3-bar-item {
  color: var(--text-secondary) !important;
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.navbar-dark .w3-bar-item:hover {
  color: var(--accent-cyan) !important;
  background-color: transparent !important;
}

.brand-text {
  font-size: 1.4em !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  letter-spacing: 1px;
}

.brand-text i {
  color: var(--accent-blue);
  margin-right: 8px;
}

/* ============================================
   SIDEBAR (MOBILE)
   ============================================ */
.sidebar-dark {
  background-color: var(--secondary-dark) !important;
  border-right: 1px solid var(--border-color);
}

.sidebar-dark .w3-bar-item {
  color: var(--text-secondary) !important;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-dark .w3-bar-item:hover {
  background-color: var(--tertiary-dark) !important;
  color: var(--accent-cyan) !important;
}

/* ============================================
   HERO SECTION - TEXT TOP, SLIDESHOW PANEL BELOW
   ============================================ */
.hero-section {
  background-color: var(--primary-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px 20px 60px 20px;
}

/* Hero Text at Top */
.hero-text-container {
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
}

.hero-title {
  font-size: 3.5em;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px 0;
  background: linear-gradient(135deg, #ffffff 0%, #00d9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-main {
  font-size: 3.2em;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 20px 0;
  font-family: 'Raleway', 'Segoe UI', Tahoma, sans-serif;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, #3da5ba 0%, #2b8fa3 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(43, 143, 163, 0.3);
}

.hero-subtitle {
  font-size: 1.4em;
  font-weight: 400;
  color: var(--text-secondary);
  margin: 0;
}

/* Slideshow Panel */
.slideshow-panel {
  width: 100%;
  max-width: 1200px;
  border-radius: 15px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  box-shadow: 0 20px 60px rgba(43, 143, 163, 0.2), 0 0 40px rgba(61, 165, 186, 0.1);
  margin-bottom: 40px;
}

.slideshow-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio (1080/1920 = 0.5625 = 56.25%) */
  height: 0;
  overflow: hidden;
}

/* Individual Slides */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--primary-dark);
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

/* Fade animation for slides */
.fade-slide {
  animation-timing-function: ease-in-out;
}

/* CTA Button */
.hero-cta {
  margin-bottom: 40px;
}

/* Social Links */
.hero-social {
  margin-bottom: 30px;
}

.cta-button {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
  color: white !important;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 25px rgba(43, 143, 163, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(61, 165, 186, 0.5);
}

/* Scroll Indicator */
.scroll-indicator {
  animation: bounce 2s infinite;
}

.scroll-indicator a {
  color: var(--accent-cyan);
  font-size: 2em;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* ============================================
   SOCIAL ICONS
   ============================================ */
.social-icon {
  margin: 0 10px;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.social-icon:hover {
  color: var(--accent-cyan);
  transform: translateY(-3px);
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section-dark {
  background-color: var(--primary-dark);
  color: var(--text-primary);
}

.section-light {
  background-color: var(--secondary-dark);
  color: var(--text-primary);
}

.section-title {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.2em;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 10px;
}

/* ============================================
   FEATURE CARDS (ABOUT SECTION)
   ============================================ */
#about .w3-row-padding {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

#about .w3-half {
  display: flex;
}

.feature-card {
  background-color: var(--card-bg);
  padding: 40px 30px;
  border-radius: 15px;
  transition: all 0.4s ease;
  border: 1px solid var(--border-color);
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.feature-card:hover {
  transform: translateY(-10px);
  background-color: var(--card-hover);
  box-shadow: 0 15px 40px rgba(43, 143, 163, 0.2);
  border-color: var(--accent-blue);
}

.feature-icon {
  font-size: 3.5em;
  color: var(--accent-blue);
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  color: var(--accent-cyan);
  transform: scale(1.1);
}

.feature-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--text-primary);
  margin: 20px 0 15px 0;
}

.feature-text {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95em;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.service-text {
  color: var(--text-secondary);
  font-size: 1.05em;
  line-height: 1.9;
  margin-bottom: 20px;
}

.service-image {
  border: 2px solid var(--border-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
}

.service-image:hover {
  transform: scale(1.03);
  border-color: var(--accent-blue);
  box-shadow: 0 15px 50px rgba(43, 143, 163, 0.3);
}

.accent-button {
  background-color: var(--accent-blue);
  color: white !important;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.accent-button:hover {
  background-color: var(--accent-cyan);
  transform: translateX(5px);
}

/* ============================================
   SOLUTIONS CARDS (4 SOLUTION TYPES)
   ============================================ */
.solution-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid var(--border-color);
  height: 100%;
}

.solution-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 50px rgba(61, 165, 186, 0.25);
  border-color: var(--accent-cyan);
}

.solution-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.solution-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.solution-card:hover .solution-image {
  transform: scale(1.15);
}

.solution-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--overlay-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
}

.solution-card:hover .solution-overlay {
  opacity: 1;
}

.solution-icon-overlay {
  font-size: 3em;
  color: var(--accent-cyan);
}

.solution-content {
  padding: 30px;
}

.solution-title {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.solution-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 0.95em;
}

.solution-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.solution-features li {
  color: var(--text-secondary);
  padding: 8px 0;
  font-size: 0.9em;
}

.solution-features li i {
  color: var(--accent-green);
  margin-right: 10px;
}

/* ============================================
   STATISTICS SECTION
   ============================================ */
.stats-section {
  background: linear-gradient(135deg, var(--tertiary-dark) 0%, var(--primary-dark) 100%);
  padding: 80px 16px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stat-item {
  padding: 30px 20px;
}

.stat-icon {
  font-size: 2.5em;
  color: var(--accent-blue);
  margin-bottom: 15px;
}

.stat-number {
  display: block;
  font-size: 3em;
  font-weight: 700;
  color: var(--accent-teal);
  margin: 10px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 1em;
  font-weight: 500;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-info {
  padding: 20px 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  padding: 20px;
  background-color: var(--card-bg);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.contact-item:hover {
  background-color: var(--card-hover);
  border-color: var(--accent-blue);
  transform: translateX(5px);
}

.contact-icon {
  font-size: 2em;
  color: var(--accent-blue);
  margin-right: 20px;
  min-width: 40px;
}

.contact-item h4 {
  color: var(--text-primary);
  margin: 0 0 8px 0;
  font-size: 1.2em;
}

.contact-item p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.contact-item a {
  color: var(--accent-blue);
}

.contact-item a:hover {
  color: var(--accent-cyan);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
  padding: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-input {
  width: 100%;
  padding: 15px 20px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1em;
  font-family: 'Raleway', sans-serif;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  background-color: var(--tertiary-dark);
  box-shadow: 0 0 0 3px rgba(43, 143, 163, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

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

.submit-button {
  width: 100%;
  padding: 15px 30px;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(43, 143, 163, 0.3);
}

.submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(61, 165, 186, 0.5);
}

/* ============================================
   FOOTER
   ============================================ */
.footer-dark {
  background-color: var(--primary-dark);
  border-top: 1px solid var(--border-color);
  padding: 60px 20px 40px 20px;
}

.back-to-top {
  background-color: var(--tertiary-dark);
  color: var(--text-secondary) !important;
  border: 1px solid var(--border-color);
  padding: 12px 30px;
  border-radius: 50px;
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background-color: var(--accent-blue);
  color: white !important;
  border-color: var(--accent-blue);
  transform: translateY(-3px);
}

.footer-social {
  margin: 30px 0;
}

.footer-text {
  color: var(--text-secondary);
  margin: 15px 0;
  font-size: 0.95em;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9em;
  font-style: italic;
  margin-top: 10px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8em;
  }
  
  .hero-title-main {
    font-size: 3.2em;
    letter-spacing: 1.5px;
  }
  
  .section-title {
    font-size: 2.2em;
  }
  
  .solution-image-wrapper {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 80px 15px 40px 15px;
  }
  
  .hero-title {
    font-size: 2.2em;
  }
  
  .hero-title-main {
    font-size: 2.5em;
    letter-spacing: 1px;
  }
  
  .hero-subtitle {
    font-size: 1.1em;
  }
  
  .section-title {
    font-size: 1.8em;
  }
  
  .feature-card {
    min-height: auto;
    margin-bottom: 20px;
  }
  
  .stat-number {
    font-size: 2.5em;
  }
  
  .solution-card {
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8em;
  }
  
  .hero-title-main {
    font-size: 1.9em;
    letter-spacing: 0.5px;
  }
  
  .hero-subtitle {
    font-size: 1em;
  }
  
  .cta-button {
    padding: 12px 25px !important;
    font-size: 0.9em !important;
  }
  
  .feature-icon {
    font-size: 2.5em;
  }
  
  .section-title {
    font-size: 1.5em;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent-glow {
  box-shadow: 0 0 20px rgba(0, 168, 255, 0.5);
}

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

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}