/* ==============================================================================
   SB SPHERE & NEWSDHARA - MODERN WEB DESIGN SYSTEM
   Brand Colors, Typography, Glassmorphism, Micro-Animations & Responsive Tokens
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Brand Palettes */
  --primary-900: #041B3B;
  --primary-800: #062A5A;
  --primary-700: #0C468A;
  --primary-600: #1862B5;
  --primary-500: #2563EB;
  --primary-400: #3B82F6;
  --primary-100: #DBEAFE;
  --primary-50: #EFF6FF;

  --accent-saffron: #F59E0B;
  --accent-saffron-dark: #D97706;
  --accent-emerald: #10B981;
  --accent-emerald-dark: #059669;
  --accent-rose: #EF4444;
  --accent-purple: #8B5CF6;

  /* Surfaces & Backgrounds */
  --bg-dark: #090E17;
  --bg-dark-card: #0F172A;
  --bg-dark-card-hover: #1E293B;
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  
  /* Text */
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-subtle: #94A3B8;
  --text-white: #FFFFFF;
  --text-white-muted: #CBD5E1;

  /* Borders & Glass */
  --border-light: rgba(226, 232, 240, 0.8);
  --border-glass: rgba(255, 255, 255, 0.15);
  --border-dark: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-dark: rgba(15, 23, 42, 0.85);
  
  /* Elevation Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(6, 42, 90, 0.08), 0 8px 10px -6px rgba(6, 42, 90, 0.04);
  --shadow-lg: 0 20px 40px -15px rgba(6, 42, 90, 0.15);
  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.25);
  --shadow-saffron-glow: 0 0 30px rgba(245, 158, 11, 0.3);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 800;
}

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

a:hover {
  color: var(--primary-500);
}

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

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

/* ==============================================================================
   NAVIGATION BAR
   ============================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all var(--transition-normal);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}

.navbar.scrolled {
  padding: 12px 0;
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-800), var(--primary-500));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(6, 42, 90, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--primary-900);
}

.brand-subtitle {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-600);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-main);
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary-600);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-600);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-900);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-glow {
  background: linear-gradient(135deg, #FFB703, #FB8500);
  color: #041B3B;
  box-shadow: var(--shadow-saffron-glow);
}

.btn-glow:hover {
  transform: translateY(-2px) scale(1.02);
  color: #041B3B;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-main);
  cursor: pointer;
}

/* ==============================================================================
   HERO SECTION
   ============================================================================== */
.hero {
  position: relative;
  padding: 170px 0 100px;
  background: linear-gradient(145deg, #041B3B 0%, #062A5A 50%, #0B4A94 100%);
  color: #fff;
  overflow: hidden;
  border-bottom-left-radius: 48px;
  border-bottom-right-radius: 48px;
}

.hero-glow-1 {
  position: absolute;
  top: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.4) 0%, rgba(37, 99, 235, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: #FDE68A;
  backdrop-filter: blur(8px);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-title span {
  background: linear-gradient(135deg, #60A5FA, #FDE68A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-marathi {
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #E2E8F0;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-white-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
}

.stat-label {
  font-size: 13px;
  color: var(--text-white-muted);
  font-weight: 600;
}

/* Mockup Device Preview */
.mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-card {
  width: 320px;
  height: 600px;
  background: #0F172A;
  border-radius: 44px;
  padding: 12px;
  border: 4px solid #334155;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.6), var(--shadow-glow);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.phone-notch {
  width: 120px;
  height: 18px;
  background: #000;
  border-radius: 0 0 14px 14px;
  margin: 0 auto 10px;
}

.phone-screen {
  flex: 1;
  background: #0F172A;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #fff;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.screen-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 1px;
  color: #60A5FA;
}

.news-card-mock {
  background: #1E293B;
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.news-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--accent-rose);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.news-headline {
  font-family: 'Baloo 2', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}

.floating-pill {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-900);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  animation: float 4s ease-in-out infinite;
}

.floating-pill.pill-left {
  top: 15%;
  left: -40px;
  animation-delay: 0s;
}

.floating-pill.pill-right {
  bottom: 20%;
  right: -30px;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* ==============================================================================
   FEATURES GRID SECTION
   ============================================================================== */
.features-section {
  padding: 100px 0;
  position: relative;
}

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

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--primary-100);
  color: var(--primary-700);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
}

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

.feature-card {
  background: var(--bg-white);
  padding: 36px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.3);
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
}

.feature-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.feature-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==============================================================================
   DEVELOPER PORTFOLIO / MISSION SECTION
   ============================================================================== */
.developer-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%);
  border-radius: 48px;
}

.dev-box {
  background: var(--primary-900);
  border-radius: var(--radius-xl);
  padding: 60px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.dev-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.dev-title {
  font-size: 2.4rem;
  color: #fff;
  margin-bottom: 20px;
}

.dev-desc {
  font-size: 1.05rem;
  color: var(--text-white-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-badge {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  color: #E2E8F0;
}

/* ==============================================================================
   LEGAL / DOCUMENT PAGE LAYOUT
   ============================================================================== */
.legal-header {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--primary-900), var(--primary-700));
  color: #fff;
  text-align: center;
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
}

.legal-header h1 {
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 12px;
}

.legal-header p {
  color: var(--text-white-muted);
  font-size: 1.1rem;
}

.legal-content-wrapper {
  max-width: 920px;
  margin: -40px auto 100px;
  background: #fff;
  padding: 48px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  position: relative;
  z-index: 10;
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section h2 {
  font-size: 1.6rem;
  color: var(--primary-900);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-100);
}

.legal-section p, .legal-section li {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-section ul {
  padding-left: 24px;
  margin-bottom: 18px;
}

.legal-callout {
  background: var(--primary-50);
  border-left: 4px solid var(--primary-500);
  padding: 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 20px 0;
}

.legal-callout p {
  margin-bottom: 0;
  color: var(--primary-900);
  font-weight: 600;
}

/* ==============================================================================
   FOOTER
   ============================================================================== */
.footer {
  background: var(--primary-900);
  color: #fff;
  padding: 80px 0 40px;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand h3 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 12px;
}

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

.footer-col h4 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 20px;
}

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

.footer-links a {
  color: var(--text-white-muted);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: #60A5FA;
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-white-muted);
  font-size: 0.9rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-desc {
    margin: 0 auto 36px;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .floating-pill {
    display: none;
  }
  .dev-box {
    grid-template-columns: 1fr;
    padding: 40px 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .legal-content-wrapper {
    padding: 24px;
    margin-top: -20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}
