/* ===================== ROOT VARIABLES (LIGHT THEME) ===================== */
:root {
  --bg-deep:      #f0f4f8;
  --bg-mid:       #ffffff;
  --glass-bg:     rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-shine:  rgba(255, 255, 255, 0.5);
  --glass-shadow: rgba(15, 23, 42, 0.05);
  --neon-blue:    #0060ff;
  --neon-cyan:    #00b4ff;
  --neon-purple:  #8b5cf6;
  --neon-pink:    #f72585;
  --text-primary: #0f172a;
  --text-muted:   #475569;
  --font-head:    'Bricolage Grotesque', sans-serif;
  --font-body:    'Outfit', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --radius-lg:    24px;
  --radius-sm:    12px;
  --transition:   0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ===================== RESET & BASE ===================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, #e5ebf4 0%, #f6f8fb 50%, #e0eaf5 100%);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
}
::selection { background: rgba(0, 96, 255, 0.15); color: var(--neon-blue); }
a { color: inherit; text-decoration: none; }
img { display: block; }

/* ===================== LOADER ===================== */
#loader {
  position: fixed; inset: 0;
  background: var(--bg-deep);
  z-index: 100000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 24px;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: pulseGlow 1.2s ease-in-out infinite alternate;
}
.loader-bar-wrap {
  width: 220px; height: 3px;
  background: rgba(0, 96, 255, 0.1);
  border-radius: 99px; overflow: hidden;
}
.loader-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-cyan));
  border-radius: 99px;
  animation: loadFill 1.6s ease forwards;
  box-shadow: 0 0 12px rgba(0, 180, 255, 0.4);
}
@keyframes loadFill { from { width: 0 } to { width: 100% } }
@keyframes pulseGlow {
  from { text-shadow: 0 0 20px rgba(0, 96, 255, 0.15); }
  to   { text-shadow: 0 0 40px rgba(0, 180, 255, 0.3), 0 0 80px rgba(139, 92, 246, 0.15); }
}

/* ===================== CANVAS BG ===================== */
#bg-canvas {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
}

/* ===================== ORBS ===================== */
.orb {
  position: fixed; border-radius: 50%;
  filter: blur(90px); pointer-events: none;
  z-index: 0; opacity: 0.25;
  animation: orbFloat linear infinite;
}
.orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(0,120,255,0.4), transparent); top: -15%; left: -10%; animation-duration: 28s; }
.orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(139,92,246,0.3), transparent); bottom: -10%; right: -8%; animation-duration: 22s; animation-direction: reverse; }
.orb-3 { width: 350px; height: 350px; background: radial-gradient(circle, rgba(0,180,255,0.3), transparent); top: 40%; left: 55%; animation-duration: 35s; opacity: 0.2; }
@keyframes orbFloat {
  0%   { transform: translate(0,0) scale(1); }
  33%  { transform: translate(40px,-30px) scale(1.05); }
  66%  { transform: translate(-25px,20px) scale(0.97); }
  100% { transform: translate(0,0) scale(1); }
}

/* ===================== LAYOUT ===================== */
#app { position: relative; z-index: 1; }

/* ===================== NAVBAR ===================== */
nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 9000;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid var(--glass-border);
  border-radius: 60px;
  padding: 6px 8px;
  display: flex; align-items: center; gap: 4px;
  box-shadow: 0 8px 32px var(--glass-shadow), 0 0 0 1px var(--glass-shine) inset;
  width: min(600px, calc(100vw - 32px));
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-right: 8px; padding: 0 10px;
  white-space: nowrap;
}
.nav-tabs {
  display: flex; gap: 4px; flex: 1; align-items: center;
}
.nav-tab {
  flex: 1;
  background: none; border: none;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  padding: 9px 6px;
  border-radius: 50px;
  cursor: pointer;
  transition: color 0.3s, background 0.3s, transform 0.2s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.nav-tab::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(0, 96, 255, 0.08), rgba(139, 92, 246, 0.08));
  opacity: 0;
  transition: opacity 0.3s;
}
.nav-tab:hover { color: var(--text-primary); }
.nav-tab:hover::before { opacity: 1; }
.nav-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  box-shadow: 0 4px 16px rgba(0, 96, 255, 0.25);
}

/* AI Nav Button Override */
.nav-tabs .ai-nav-btn {
  flex: 0 0 auto; /* Prevent stretching */
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-left: 4px;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 96, 255, 0.2);
}
.nav-tabs .ai-nav-btn::before { display: none; }
.nav-tabs .ai-nav-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 96, 255, 0.3);
}
.nav-tabs .ai-nav-btn.active {
  box-shadow: 0 4px 20px rgba(0, 96, 255, 0.4);
  transform: scale(1.05);
}

/* ===================== MAIN CONTENT ===================== */
main { padding-top: 90px; min-height: 100vh; }

.tab-panel {
  display: none;
  animation: tabIn 0.55s cubic-bezier(0.23,1,0.32,1) both;
}
.tab-panel.active { display: block; }

@keyframes tabIn {
  from { opacity: 0; transform: translateY(22px) scale(0.985); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0) scale(1);    filter: blur(0); }
}

/* ===================== HERO ===================== */
.hero {
  min-height: calc(100vh - 90px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 40px 24px 60px;
  position: relative;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0, 96, 255, 0.06);
  border: 1px solid rgba(0, 96, 255, 0.15);
  border-radius: 40px;
  padding: 7px 18px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  font-weight: 500;
  color: var(--neon-blue);
  margin-bottom: 30px;
  animation: fadeUp 0.8s 0.3s both;
  box-shadow: 0 4px 12px rgba(0, 96, 255, 0.05);
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--neon-blue);
  box-shadow: 0 0 8px var(--neon-blue);
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero-logo-wrap {
  margin-bottom: 32px;
  animation: fadeUp 0.8s 0.4s both;
}
.hero-logo-img {
  width: 90px; height: 90px;
  border-radius: 24px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 96, 255, 0.1), inset 0 0 0 1px var(--glass-shine);
  padding: 10px;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 8vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.0;
  background: linear-gradient(135deg, #0f172a 0%, var(--neon-blue) 40%, var(--neon-cyan) 65%, var(--neon-purple) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradShift 5s ease infinite, fadeUp 0.8s 0.5s both;
  margin-bottom: 20px;
}
@keyframes gradShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  min-height: 2em;
  animation: fadeUp 0.8s 0.65s both;
  margin-bottom: 40px;
}
.typed-cursor {
  display: inline-block;
  width: 2px; height: 1.1em;
  background: var(--neon-blue);
  vertical-align: middle;
  margin-left: 3px;
  animation: blink 0.9s step-end infinite;
  box-shadow: 0 0 6px var(--neon-blue);
}

.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  animation: fadeUp 0.8s 0.8s both;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none; cursor: pointer;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute; inset: -2px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan), var(--neon-purple));
  z-index: -1; opacity: 0;
  transition: opacity 0.3s;
  filter: blur(12px);
}
.btn:hover::after { opacity: 0.3; }
.btn-primary {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 96, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0, 96, 255, 0.35); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 12px var(--glass-shadow);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.9); border-color: var(--neon-blue); transform: translateY(-3px); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===================== SECTION HEADERS ===================== */
.section-header {
  text-align: center;
  padding: 70px 24px 50px;
}
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--neon-blue);
  background: rgba(0, 96, 255, 0.06);
  border: 1px solid rgba(0, 96, 255, 0.15);
  border-radius: 40px;
  padding: 5px 16px;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--neon-blue) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 500;
}

/* ===================== PRICING GRID ===================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  padding: 0 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.price-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.23,1,0.32,1), box-shadow 0.35s, border-color 0.35s;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform-style: preserve-3d;
  box-shadow: 0 10px 30px var(--glass-shadow), inset 0 0 0 1px var(--glass-shine);
}
.price-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 180, 255, 0.3), transparent);
}
.price-card:hover {
  transform: translateY(-10px) rotateX(3deg);
  border-color: rgba(0, 180, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 0 30px rgba(0, 180, 255, 0.1), inset 0 0 0 1px var(--glass-shine);
}
.price-card.featured {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(245, 243, 255, 0.65);
}
.price-card.featured::before { background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.4), transparent); }
.price-card.featured:hover {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 0 40px rgba(139, 92, 246, 0.15), inset 0 0 0 1px var(--glass-shine);
}

.featured-badge {
  position: absolute; top: 16px; right: 16px;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  font-family: var(--font-body); font-size: 0.62rem; letter-spacing: 0.06em; font-weight: 600;
  padding: 5px 12px; border-radius: 20px;
  color: #fff; text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
  margin-bottom: 18px; background: #ffffff; border: 1px solid rgba(0, 96, 255, 0.15);
  box-shadow: 0 8px 16px rgba(0, 96, 255, 0.08); color: var(--neon-blue);
}
.price-card.featured .card-icon {
  border-color: rgba(139, 92, 246, 0.2); box-shadow: 0 8px 16px rgba(139, 92, 246, 0.1); color: var(--neon-purple);
}

.card-title {
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 700;
  letter-spacing: -0.01em; color: var(--text-primary); margin-bottom: 10px;
}
.card-price {
  font-family: var(--font-head); font-size: 2.6rem; font-weight: 800;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 20px; line-height: 1; letter-spacing: -0.03em;
}
.price-card.featured .card-price { background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.card-price span { font-size: 1.2rem; font-weight: 700; }

.card-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.card-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; font-weight: 500; }
.card-features li::before {
  content: ''; width: 18px; height: 18px; border-radius: 50%; background: rgba(0, 96, 255, 0.08); border: 1px solid rgba(0, 96, 255, 0.2); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%230060ff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 10px; background-repeat: no-repeat; background-position: center;
}
.price-card.featured .card-features li::before { background-color: rgba(139, 92, 246, 0.08); border-color: rgba(139, 92, 246, 0.25); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%238b5cf6' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.card-btn {
  width: 100%; padding: 12px; border-radius: 50px; background: rgba(0, 96, 255, 0.05); border: 1px solid rgba(0, 96, 255, 0.2);
  color: var(--neon-blue); font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: var(--transition);
}
.card-btn:hover { background: var(--neon-blue); color: #fff; box-shadow: 0 8px 20px rgba(0, 96, 255, 0.25); transform: scale(1.02); }
.price-card.featured .card-btn { background: rgba(139, 92, 246, 0.05); border-color: rgba(139, 92, 246, 0.25); color: var(--neon-purple); }
.price-card.featured .card-btn:hover { background: var(--neon-purple); color: #fff; box-shadow: 0 8px 20px rgba(139, 92, 246, 0.25); }

/* ===================== PORTFOLIO GRID ===================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 0 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
}
.portfolio-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.23,1,0.32,1), box-shadow 0.35s, border-color 0.35s;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px var(--glass-shadow), inset 0 0 0 1px var(--glass-shine);
  display: flex; flex-direction: column;
}
.portfolio-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 180, 255, 0.3), transparent);
}
.portfolio-card:hover {
  transform: translateY(-8px); border-color: rgba(0, 180, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 0 30px rgba(0, 180, 255, 0.1), inset 0 0 0 1px var(--glass-shine);
}
.port-content { display: flex; flex-direction: column; flex: 1; }
.port-title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; }
.port-features { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; flex: 1; }
.port-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.9rem; color: var(--text-muted); font-weight: 500; line-height: 1.5; }
.port-features li::before { content: '✦'; color: var(--neon-blue); font-size: 0.8rem; margin-top: 1px; }
.port-link { display: inline-block; width: 100%; text-align: center; margin-top: auto; }

/* ===================== FOUNDER ===================== */
.founder-section { display: flex; align-items: center; justify-content: center; padding: 60px 24px; min-height: calc(100vh - 90px); }
.founder-card {
  max-width: 780px; width: 100%; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 32px;
  padding: 52px 48px; backdrop-filter: blur(24px); display: flex; gap: 44px; align-items: flex-start; position: relative; overflow: hidden;
  box-shadow: 0 20px 50px var(--glass-shadow), inset 0 0 0 1px var(--glass-shine); animation: fadeUp 0.8s 0.2s both;
}
.founder-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(0, 96, 255, 0.4), rgba(139, 92, 246, 0.4), transparent); }
.founder-img-wrap { flex-shrink: 0; position: relative; }
.founder-img-ring { width: 140px; height: 140px; border-radius: 50%; padding: 4px; background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple), var(--neon-pink)); box-shadow: 0 10px 30px rgba(0, 96, 255, 0.2); animation: rotateBorder 6s linear infinite; }
@keyframes rotateBorder { from { filter: hue-rotate(0deg); } to { filter: hue-rotate(360deg); } }
.founder-img-inner { width: 100%; height: 100%; border-radius: 50%; background: #ffffff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.founder-img-inner img { width: 100%; height: 100%; object-fit: cover; }
.founder-info { flex: 1; }
.founder-role-badge { display: inline-block; font-family: var(--font-body); font-size: 0.68rem; font-weight: 600; color: var(--neon-blue); background: rgba(0, 96, 255, 0.06); border: 1px solid rgba(0, 96, 255, 0.15); border-radius: 30px; padding: 5px 14px; margin-bottom: 14px; text-transform: uppercase; }
.founder-name { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; background: linear-gradient(135deg, var(--text-primary), var(--neon-blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 4px; }
.founder-title { font-size: 0.95rem; color: var(--neon-purple); font-weight: 600; margin-bottom: 20px; }
.founder-desc { font-size: 0.96rem; line-height: 1.8; color: var(--text-muted); font-weight: 500; margin-bottom: 14px; }
.founder-skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.skill-tag { font-family: var(--font-body); font-size: 0.75rem; padding: 6px 16px; border-radius: 30px; background: #ffffff; border: 1px solid rgba(0, 96, 255, 0.15); color: var(--neon-blue); font-weight: 600; }

/* ===================== POLARITH AI CHAT ===================== */
.ai-section { min-height: calc(100vh - 90px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 24px 80px; }
.ai-chat-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); width: 100%; max-width: 800px;
  height: 65vh; min-height: 500px; display: flex; flex-direction: column; backdrop-filter: blur(24px); box-shadow: 0 20px 50px var(--glass-shadow), inset 0 0 0 1px var(--glass-shine); animation: fadeUp 0.8s 0.2s both; position: relative;
}
.ai-chat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(0, 96, 255, 0.4), transparent); }
.chat-window { flex: 1; padding: 30px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; scrollbar-width: thin; scrollbar-color: rgba(0, 96, 255, 0.3) transparent; }
.chat-window::-webkit-scrollbar { width: 6px; } .chat-window::-webkit-scrollbar-track { background: transparent; } .chat-window::-webkit-scrollbar-thumb { background: rgba(0, 96, 255, 0.2); border-radius: 99px; }
.chat-message { display: flex; gap: 14px; max-width: 85%; animation: fadeUp 0.4s ease both; }
.ai-message { align-self: flex-start; } .user-message { align-self: flex-end; flex-direction: row-reverse; }
.msg-avatar { width: 36px; height: 36px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: bold; }
.ai-message .msg-avatar { background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple)); color: #fff; box-shadow: 0 4px 12px rgba(0, 96, 255, 0.2); }
.user-message .msg-avatar { background: rgba(255, 255, 255, 0.8); border: 1px solid var(--glass-border); color: var(--neon-blue); }
.msg-bubble { padding: 14px 18px; border-radius: 18px; font-size: 0.95rem; line-height: 1.6; font-weight: 500; word-wrap: break-word; }
.ai-message .msg-bubble { background: rgba(255, 255, 255, 0.7); border: 1px solid var(--glass-border); color: var(--text-primary); border-top-left-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,0.02); }
.user-message .msg-bubble { background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple)); color: #fff; border-top-right-radius: 4px; box-shadow: 0 8px 20px rgba(0, 96, 255, 0.2); }

/* Overflow Fixes for Chat Input */
.chat-input-area {
  padding: 16px; background: rgba(255, 255, 255, 0.3); border-top: 1px solid rgba(0, 0, 0, 0.05); display: flex; gap: 10px; align-items: center; width: 100%;
}
#ai-input {
  flex: 1 1 auto; min-width: 0; background: #ffffff; border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 50px; padding: 14px 22px; font-family: var(--font-body); font-size: 0.95rem; color: var(--text-primary); outline: none; transition: all 0.3s; box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
#ai-input:focus { border-color: rgba(0, 96, 255, 0.4); box-shadow: 0 0 0 4px rgba(0, 96, 255, 0.1); }
#ai-send-btn {
  width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple)); border: none; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); box-shadow: 0 4px 14px rgba(0, 96, 255, 0.25); flex-shrink: 0; 
}
#ai-send-btn:hover { transform: scale(1.05) translateY(-2px); box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3); }

/* Typing Indicator */
.typing-indicator { display: flex; gap: 4px; padding: 4px 8px; align-items: center; height: 24px; }
.typing-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--neon-blue); animation: typing 1.4s infinite ease-in-out both; }
.typing-dot:nth-child(1) { animation-delay: -0.32s; } .typing-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes typing { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

/* ===================== CONTACT & PRIVACY ===================== */
.contact-section, .privacy-section { min-height: calc(100vh - 90px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 24px; gap: 40px; }
.contact-info-card, .contact-form-card, .privacy-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 520px;
  backdrop-filter: blur(20px); box-shadow: 0 20px 50px var(--glass-shadow), inset 0 0 0 1px var(--glass-shine); position: relative; animation: fadeUp 0.7s 0.35s both;
}
.contact-info-card { padding: 28px 36px; display: flex; align-items: center; gap: 20px; animation-delay: 0.2s; }
.privacy-card { max-width: 780px; max-height: 75vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(0, 96, 255, 0.3) transparent; padding: 48px;}
.privacy-card::-webkit-scrollbar { width: 6px; } .privacy-card::-webkit-scrollbar-track { background: transparent; } .privacy-card::-webkit-scrollbar-thumb { background: rgba(0, 96, 255, 0.2); border-radius: 99px; }
.contact-form-card::before, .privacy-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.4), transparent); }
.privacy-card h1 { font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; background: linear-gradient(135deg, var(--text-primary), var(--neon-blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 8px; }
.privacy-card h2 { font-family: var(--font-head); font-size: 1rem; color: var(--neon-blue); margin: 32px 0 12px; text-transform: uppercase; }
.privacy-card p, .privacy-card li { font-size: 0.95rem; line-height: 1.8; color: var(--text-muted); font-weight: 500; }
.privacy-card ul { padding-left: 20px; margin-top: 8px; } .privacy-card hr { border: none; border-top: 1px solid rgba(0, 0, 0, 0.08); margin: 24px 0; }

.email-icon { width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0; background: #ffffff; border: 1px solid rgba(0, 96, 255, 0.2); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; box-shadow: 0 8px 16px rgba(0, 96, 255, 0.1); }
.email-text { flex: 1; }
.email-label { font-family: var(--font-body); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em; color: var(--text-muted); text-transform: uppercase; }
.email-addr { font-family: var(--font-mono); font-size: 0.9rem; font-weight: 600; color: var(--neon-blue); word-break: break-all; }
.copy-btn { background: #ffffff; border: 1px solid rgba(0, 96, 255, 0.2); border-radius: 12px; padding: 9px 16px; font-family: var(--font-body); font-size: 0.75rem; color: var(--neon-blue); font-weight: 600; cursor: pointer; transition: var(--transition); }
.copy-btn:hover { background: var(--neon-blue); color: #fff; transform: scale(1.04); }

.form-title { font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; background: linear-gradient(135deg, var(--text-primary), var(--neon-purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 28px; }
.form-group { position: relative; margin-bottom: 20px; }
.form-group label { display: block; font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; margin-bottom: 8px; }
.form-group input, .form-group textarea { width: 100%; background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 14px; padding: 14px 18px; font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; color: var(--text-primary); outline: none; transition: 0.3s; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input:focus, .form-group textarea:focus { background: #ffffff; border-color: rgba(0, 96, 255, 0.4); box-shadow: 0 0 0 4px rgba(0, 96, 255, 0.1); }
.submit-btn { width: 100%; padding: 15px; border-radius: 50px; background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple)); border: none; color: #fff; font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: var(--transition); }
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(139, 92, 246, 0.3); }

/* ===================== SCROLL REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===================== RESPONSIVE (MOBILE FIXES) ===================== */
@media (max-width: 640px) {
  nav { padding: 6px 8px; width: min(100%, calc(100vw - 32px)); }
  .nav-logo { display: none; }
  
  /* Compact tab styling to ensure space for the circular AI tab */
  .nav-tab { font-size: 0.7rem; padding: 8px 4px; }
  .nav-tabs .ai-nav-btn { width: 32px; height: 32px; font-size: 0.95rem; padding: 0; margin-left: 2px; }

  .founder-card { flex-direction: column; text-align: center; padding: 36px 24px; align-items: center; }
  .founder-skills { justify-content: center; }
  .pricing-grid, .portfolio-grid { grid-template-columns: 1fr; padding: 0 16px 60px; }
  .contact-form-card, .contact-info-card { padding: 28px 22px; }
  .privacy-card { padding: 32px 20px; }
  
  /* Mobile Chat UI Fixes */
  .ai-chat-card { height: 75vh; }
  .chat-input-area { padding: 12px; gap: 8px; } 
  #ai-input { padding: 12px 16px; font-size: 0.9rem; }
  #ai-send-btn { width: 44px; height: 44px; }
  .chat-message { max-width: 95%; }
}

/* ===================== GRID LINES BG & FOOTER ===================== */
.grid-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 60px 60px; mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 80%);
}
footer {
  text-align: center; padding: 30px 24px; font-family: var(--font-body); font-size: 0.75rem; font-weight: 500;
  color: var(--text-muted); border-top: 1px solid rgba(0, 0, 0, 0.05);
}
footer span { color: var(--neon-blue); font-weight: 600; }
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
}
