/* ============================================
   GEETA KAKRANI | AI PLATFORM
   Main Stylesheet — Premium Dark Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================
   DESIGN TOKENS & VARIABLES
   ============================================ */
:root {
  /* Dark Tech Theme Colors */
  --bg-dark-base: #06070b;
  --bg-dark-card: rgba(13, 16, 26, 0.6);
  --bg-dark-card-hover: rgba(20, 24, 38, 0.85);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(20, 184, 166, 0.35);

  /* Brand Accents */
  --primary-teal: #14b8a6;
  --primary-teal-rgb: 20, 184, 166;
  --primary-violet: #8b5cf6;
  --primary-violet-rgb: 139, 92, 246;
  --primary-cyan: #06b6d4;
  --primary-cyan-rgb: 6, 182, 212;

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --white: #ffffff;

  /* Accent Alert */
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --nav-height: 76px;

  /* Shadows & Glows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.5);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.6);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.8);
  --shadow-teal: 0 8px 32px rgba(20, 184, 166, 0.25);
  --shadow-violet: 0 8px 32px rgba(139, 92, 246, 0.2);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark-base);
}

body {
  font-family: var(--font-body);
  color: var(--text-secondary);
  background-color: var(--bg-dark-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.25s var(--ease-premium); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark-base);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-dark-base);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-teal);
}

/* ::selection */
::selection {
  background: rgba(20, 184, 166, 0.3);
  color: var(--white);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--text-primary);
  font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.15rem; }

p { color: var(--text-secondary); line-height: 1.8; }

.text-teal { color: var(--primary-teal); }
.text-cyan { color: var(--primary-cyan); }
.text-violet { color: var(--primary-violet); }
.text-gradient-teal-violet {
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-cyan-teal {
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-sm { font-size: 0.9rem; }
.text-xs { font-size: 0.78rem; }
.text-lg { font-size: 1.15rem; }
.font-mono { font-family: var(--font-mono); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Text wrapping */
h1, h2, h3, .section-heading {
  text-wrap: balance;
}
p, .article-body {
  text-wrap: pretty;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-sm {
  padding: 60px 0;
  position: relative;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

/* Glowing Background Blobs */
.glow-blob {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(140px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
}
.blob-teal {
  background: var(--primary-teal);
  width: 400px;
  height: 400px;
}
.blob-violet {
  background: var(--primary-violet);
  width: 350px;
  height: 350px;
}
.blob-cyan {
  background: var(--primary-cyan);
  width: 450px;
  height: 450px;
}

/* Section Labels */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-teal);
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.25);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary-teal);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary-teal);
}

.section-heading {
  margin-bottom: 16px;
}

.section-intro {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 60px;
}

.text-center { text-align: center; }
.text-center .section-intro { margin: 0 auto 60px; }
.text-center .section-label { margin: 0 auto 24px; display: flex; width: fit-content; }

/* ============================================
   BUTTONS (Premium glowing styles)
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all 0.25s var(--ease-premium);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-cyan));
  color: var(--bg-dark-base);
  box-shadow: var(--shadow-teal);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(20, 184, 166, 0.45);
  color: var(--white);
}

.btn-secondary {
  background: var(--bg-dark-card);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}
.btn-secondary:hover {
  border-color: var(--primary-teal);
  color: var(--primary-teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--bg-dark-card-hover);
}

.btn-outline {
  background: transparent;
  color: var(--primary-teal);
  border: 1.5px solid rgba(20, 184, 166, 0.4);
}
.btn-outline:hover {
  background: rgba(20, 184, 166, 0.08);
  border-color: var(--primary-teal);
  transform: translateY(-2px);
}

.btn-lg { padding: 16px 38px; font-size: 1.05rem; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* Focus outlines */
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary-teal);
  outline-offset: 4px;
}

/* ============================================
   GLASSMORPHISM CARDS
   ============================================ */
.card {
  background: var(--bg-dark-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s var(--ease-premium);
}

.card:hover {
  box-shadow: var(--shadow-lg), 0 0 20px rgba(20, 184, 166, 0.1);
  transform: translateY(-4px);
  border-color: var(--border-glass-hover);
  background: var(--bg-dark-card-hover);
}

.card-glass {
  background: rgba(13, 16, 26, 0.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================
   BADGES & TAGS
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.badge-teal {
  background: rgba(20, 184, 166, 0.1);
  color: var(--primary-teal);
  border: 1px solid rgba(20, 184, 166, 0.2);
}

.badge-gray {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.1);
  color: var(--amber-400);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* ============================================
   NAVBAR (Glassmorphism Dark)
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(6, 7, 11, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: all 0.3s var(--ease-premium);
}

.navbar.scrolled {
  background: rgba(6, 7, 11, 0.9);
  box-shadow: var(--shadow-md);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav-logo-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--primary-teal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.25s var(--ease-premium);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-teal);
  background: rgba(20, 184, 166, 0.08);
}

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

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile Nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(6, 7, 11, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-glass);
  padding: 16px 24px 24px;
  z-index: 999;
  box-shadow: var(--shadow-lg);
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.3s var(--ease-premium);
}

.nav-mobile.open {
  transform: translateY(0);
  opacity: 1;
}

.nav-mobile a {
  display: block;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.nav-mobile a:hover {
  color: var(--primary-teal);
  background: rgba(20, 184, 166, 0.08);
}

/* ============================================
   FOOTER (Premium Tech style)
   ============================================ */
.footer {
  background: #030406;
  color: var(--text-secondary);
  padding: 80px 0 0;
  border-top: 1px solid var(--border-glass);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border-glass);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 18px 0 28px;
  max-width: 380px;
}

.footer-logo-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
}

.footer-logo-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--primary-teal);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 600;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all 0.25s var(--ease-premium);
}

.footer-social a:hover {
  background: var(--primary-teal);
  border-color: var(--primary-teal);
  color: var(--bg-dark-base);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(20, 184, 166, 0.35);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.footer-col a {
  display: block;
  font-size: 0.92rem;
  color: var(--text-secondary);
  padding: 6px 0;
  transition: color 0.2s;
}

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

.footer-bottom {
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  padding: calc(var(--nav-height) + 80px) 0 80px;
  background: radial-gradient(circle at top right, rgba(20, 184, 166, 0.06) 0%, transparent 60%),
              radial-gradient(circle at bottom left, rgba(139, 92, 246, 0.04) 0%, transparent 60%);
  border-bottom: 1px solid var(--border-glass);
  position: relative;
  overflow: hidden;
}

.page-hero-breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--primary-teal);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.page-hero h1 {
  margin-bottom: 18px;
}

.page-hero p {
  font-size: 1.15rem;
  max-width: 720px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================
   DIVIDERS & SEPARATORS
   ============================================ */
.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-teal), var(--primary-cyan));
  border-radius: var(--radius-full);
  margin: 24px 0;
}

.divider-center { margin: 24px auto; }

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

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-premium), transform 0.7s var(--ease-premium);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: rgba(13, 16, 26, 0.4);
  transition: all 0.25s var(--ease-premium);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary-teal);
  background: rgba(13, 16, 26, 0.75);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

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

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

/* ============================================
   TAGS & TECH STACKS
   ============================================ */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border-glass);
  transition: all 0.25s var(--ease-premium);
}

.tag:hover {
  background: rgba(20, 184, 166, 0.08);
  color: var(--primary-teal);
  border-color: rgba(20, 184, 166, 0.3);
}

/* ============================================
   NEWSLETTER / BANNER SECTION
   ============================================ */
.newsletter-section {
  background: linear-gradient(135deg, #090e16 0%, #030406 100%);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.newsletter-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.newsletter-inner h2 {
  margin-bottom: 16px;
}

.newsletter-inner p {
  color: var(--text-secondary);
  margin-bottom: 36px;
  font-size: 1.05rem;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  font-size: 0.95rem;
  outline: none;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  transition: all 0.25s;
}

.newsletter-form input:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--primary-teal);
}

.newsletter-form button {
  padding: 14px 28px;
  background: var(--primary-teal);
  color: var(--bg-dark-base);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.25s;
  white-space: nowrap;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.4);
}

/* ============================================
   RESPONSIVE MEDIA QUERIES
   ============================================ */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --nav-height: 68px; }

  .nav-links, .nav-cta .btn:not(.btn-sm) { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { display: block; }

  .section { padding: 70px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }

  .newsletter-form { flex-direction: column; }

  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.8rem; }

  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .btn-lg { padding: 14px 26px; font-size: 0.95rem; }
}
