/* PrahiX - Dark-first Enterprise Theme */

/* ==================== ROOT VARIABLES (DARK MODE) ==================== */
:root {
  /* Dark Background Colors */
  --bg-primary: #0B0F14;
  --bg-secondary: #070A0F;
  --bg-card: #101720;
  --bg-elevated: #161D26;
  
  /* Border & Divider Colors */
  --border-primary: #1C2A33;
  --border-subtle: #15202A;
  
  /* Text Colors */
  --text-primary: #FFFFFF;
  --text-secondary: #C9D4D8;
  --text-tertiary: #8B9BA5;
  
  /* Brand Teal */
  --teal-primary: #18AA9C;
  --teal-bright: #45E3D4;
  --teal-dark: #127A6E;
  
  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #070A0F 0%, #0B1218 50%, #0D1B1F 100%);
  --gradient-teal: linear-gradient(135deg, var(--teal-primary), var(--teal-bright));
  --gradient-card: linear-gradient(180deg, #101720 0%, #0C1218 100%);
  
  /* Shadows & Glows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --glow-teal: 0 0 20px rgba(24, 170, 156, 0.3);
  --glow-teal-strong: 0 0 30px rgba(69, 227, 212, 0.4);
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ==================== LIGHT MODE VARIABLES ==================== */
[data-theme="light"] {
  /* Light Background Colors */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --bg-card: #FFFFFF;
  --bg-elevated: #F1F3F5;
  
  /* Border & Divider Colors */
  --border-primary: #DEE2E6;
  --border-subtle: #E9ECEF;
  
  /* Text Colors */
  --text-primary: #212529;
  --text-secondary: #495057;
  --text-tertiary: #6C757D;
  
  /* Teal stays same */
  --teal-primary: #18AA9C;
  --teal-bright: #16C9B7;
  --teal-dark: #127A6E;
  
  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 50%, #DEE2E6 100%);
  --gradient-teal: linear-gradient(135deg, var(--teal-primary), var(--teal-bright));
  --gradient-card: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 100%);
  
  /* Shadows & Glows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --glow-teal: 0 0 20px rgba(24, 170, 156, 0.2);
  --glow-teal-strong: 0 0 30px rgba(24, 170, 156, 0.3);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==================== SECTION ALTERNATING STYLES ==================== */
.section-light {
  background: #FFFFFF !important;
}

.section-dark {
  background: #0A1628 !important;
}

/* Text colors for LIGHT sections */
.section-light,
.section-light * {
  color: #212529;
}

.section-light .section-title,
.section-light .card-title,
.section-light h1, 
.section-light h2, 
.section-light h3, 
.section-light h4 {
  color: #212529 !important;
}

.section-light .section-subtitle,
.section-light .card-description,
.section-light p {
  color: #495057 !important;
}

.section-light .text-tertiary,
.section-light .outcome-description,
.section-light .flow-description {
  color: #6C757D !important;
}

/* Text colors for DARK sections */
.section-dark,
.section-dark * {
  color: #FFFFFF;
}

.section-dark .section-title,
.section-dark .card-title,
.section-dark h1, 
.section-dark h2, 
.section-dark h3, 
.section-dark h4 {
  color: #FFFFFF !important;
}

.section-dark .section-subtitle,
.section-dark .card-description,
.section-dark p {
  color: #C9D4D8 !important;
}

.section-dark .text-tertiary,
.section-dark .outcome-description,
.section-dark .flow-description {
  color: #8B9BA5 !important;
}

/* Keep teal colors for icons and accents */
.text-teal {
  color: #18AA9C !important;
}

.section-dark .text-teal {
  color: #45E3D4 !important;
}

.section-light .card-icon,
.section-light .feature-icon,
.section-light .outcome-icon,
.section-light .flow-icon,
.section-light .stat-icon,
.section-light i.fas,
.section-light i.fab {
  color: #18AA9C !important;
}

.section-dark .card-icon,
.section-dark .feature-icon,
.section-dark .outcome-icon,
.section-dark .flow-icon,
.section-dark .stat-icon,
.section-dark i.fas,
.section-dark i.fab {
  color: #45E3D4 !important;
}

/* Card backgrounds */
.section-light .card {
  background: #FFFFFF !important;
  border: 1px solid #E9ECEF !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.section-dark .card {
  background: #0D1B2E !important;
  border: 1px solid #1A2942 !important;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.section-dark .card:hover {
  border-color: #18AA9C !important;
  box-shadow: 0 4px 24px rgba(24, 170, 156, 0.15);
}

/* Icon backgrounds */
.section-light .card-icon,
.section-light .feature-icon,
.section-light .outcome-icon,
.section-light .flow-icon,
.section-light .stat-icon,
.section-light .audience-icon {
  background: rgba(24, 170, 156, 0.1) !important;
  border: 1px solid rgba(24, 170, 156, 0.2);
}

.section-dark .card-icon,
.section-dark .feature-icon,
.section-dark .outcome-icon,
.section-dark .flow-icon,
.section-dark .stat-icon,
.section-dark .audience-icon {
  background: rgba(24, 170, 156, 0.15) !important;
  border: 1px solid rgba(24, 170, 156, 0.3);
}

/* Flow steps and containers */
.section-dark .flow-container {
  background: #0D1B2E !important;
  border: 1px solid #1A2942 !important;
}

.section-dark .flow-step {
  background: #070A0F !important;
  border: 1px solid #15202A !important;
}

.section-dark .flow-step:hover {
  border-color: #18AA9C !important;
}

/* Made in India cards */
.section-dark .made-in-india-content {
  background: #0D1B2E !important;
  border: 1px solid #1A2942 !important;
}

.section-dark .india-stat {
  background: #070A0F !important;
  border: 1px solid #15202A !important;
}

.section-dark .made-in-india-icon {
  background: rgba(24, 170, 156, 0.15) !important;
  border: 1px solid rgba(24, 170, 156, 0.3) !important;
}

/* Force light theme for body */
[data-theme="light"] {
  background: #FFFFFF;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
}

p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

a {
  color: var(--teal-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--teal-bright);
}

/* ==================== NAVIGATION ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #DEE2E6;
  transition: all var(--transition-medium);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-bottom-color: #DEE2E6;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #212529;
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-menu li a {
  color: #495057;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-menu li a:hover {
  color: #212529;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-teal);
  transition: width var(--transition-medium);
}

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

.nav-cta {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: all var(--transition-medium);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-teal);
  color: #FFFFFF !important;
  box-shadow: 0 0 20px rgba(24, 170, 156, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(69, 227, 212, 0.4);
  color: #FFFFFF !important;
}

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

.btn-secondary:hover {
  border-color: var(--teal-primary);
  background: rgba(24, 170, 156, 0.1);
  transform: translateY(-2px);
}

.btn-teal-outline {
  background: transparent;
  color: #18AA9C !important;
  border: 2px solid #18AA9C;
  font-weight: 600;
}

.btn-teal-outline:hover {
  background: rgba(24, 170, 156, 0.1);
  border-color: #16C9B7;
  color: #16C9B7 !important;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--teal-primary);
  padding: 0.75rem 1.5rem;
}

.btn-ghost:hover {
  background: rgba(24, 170, 156, 0.1);
}

/* ==================== THEME TOGGLE ==================== */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  color: var(--teal-primary);
  font-size: 1.125rem;
  cursor: pointer;
  transition: all var(--transition-medium);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: rgba(24, 170, 156, 0.1);
  border-color: var(--teal-primary);
  transform: rotate(180deg);
}

/* ==================== LOGO STYLES ==================== */
.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.footer-logo .logo-img {
  height: 36px;
  margin-bottom: 1rem;
}

/* ==================== CONTAINERS ==================== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

.section-sm {
  padding: var(--spacing-lg) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.25rem;
  line-height: 1.6;
}

/* ==================== CARDS ==================== */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  padding: 2rem;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-medium);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-primary);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: rgba(24, 170, 156, 0.08);
  border: 1px solid rgba(24, 170, 156, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: #18AA9C;
  transition: all var(--transition-medium);
}

.card:hover .card-icon {
  background: rgba(24, 170, 156, 0.15);
  border-color: rgba(24, 170, 156, 0.4);
  transform: translateY(-2px);
}

.card-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.card-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ==================== GRID LAYOUTS ==================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* ==================== HERO SECTION ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 50%, #E8F7F5 100%);
  position: relative;
  overflow: hidden;
  padding: 120px 2rem 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(24, 170, 156, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(24, 170, 156, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1000px;
  padding: 0 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(24, 170, 156, 0.15);
  border: 1px solid rgba(24, 170, 156, 0.3);
  border-radius: 50px;
  color: #127A6E;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #212529 0%, #495057 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: #495057;
  margin-bottom: 1rem;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-trust {
  font-size: 1rem;
  color: #18AA9C;
  font-weight: 500;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.6s ease 0.6s both;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.8s both;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== FOOTER ==================== */
.footer {
  background: #0A1628;
  border-top: 1px solid #1A2942;
  padding: var(--spacing-lg) 0 var(--spacing-md);
  color: #C9D4D8;
}

.footer * {
  --bg-primary: #0A1628;
  --bg-secondary: #070A0F;
  --bg-card: #101720;
  --bg-elevated: #161D26;
  --border-primary: #1C2A33;
  --border-subtle: #15202A;
  --text-primary: #FFFFFF;
  --text-secondary: #C9D4D8;
  --text-tertiary: #8B9BA5;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: var(--spacing-md);
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-logo-img {
  height: 40px;
  width: auto;
}

.footer-description {
  color: var(--text-tertiary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.made-in-india {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(24, 170, 156, 0.1);
  border: 1px solid rgba(24, 170, 156, 0.3);
  border-radius: 20px;
  margin-top: 1rem;
}

.made-in-india i {
  color: #FF9933;
  font-size: 1rem;
}

.made-in-india span {
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 600;
}

.footer-section h4 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--teal-primary);
}

.footer-bottom {
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.footer-legal p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.footer-separator {
  color: rgba(255, 255, 255, 0.2);
  margin: 0 0.25rem;
}

.footer-flag-icon {
  height: 14px;
  width: auto;
  vertical-align: middle;
  margin-right: 0.25rem;
  border-radius: 2px;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-social a {
  color: var(--text-tertiary);
  font-size: 1.25rem;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  color: var(--teal-primary);
  transform: translateY(-2px);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .nav-menu {
    position: fixed;
    top: 73px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 73px);
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
    transition: left var(--transition-medium);
    border-top: 1px solid var(--border-primary);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .nav-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .nav-cta .btn {
    width: 100%;
    justify-content: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  .section {
    padding: var(--spacing-lg) 0;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .hero {
    min-height: calc(100vh - 73px);
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 1rem 1rem;
  }
  
  .logo {
    font-size: 1.25rem;
  }
  
  .logo-img {
    height: 32px;
  }
}

/* ==================== UTILITY CLASSES ==================== */
.text-center {
  text-align: center;
}

.text-teal {
  color: var(--teal-primary);
}

.text-bright {
  color: var(--teal-bright);
}

.bg-dark {
  background: var(--bg-secondary);
}

.bg-darker {
  background: var(--bg-primary);
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.flex {
  display: flex;
}

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

.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.gap-3 { gap: 3rem; }
