/* ==========================================================================
   Bharath Chat - Handcrafted Human Agency Website Stylesheet
   ========================================================================== */

/* --- CSS Variables & Design System --- */
:root {
  --bg-body: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --border-active: #0284c7;
  
  --primary-blue: #0284c7;
  --primary-blue-hover: #0369a1;
  --accent-indigo: #4f46e5;
  --accent-emerald: #10b981;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #94a3b8;

  --font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --container-max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 45px -10px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 20px 40px -10px rgba(2, 132, 199, 0.12);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg-body);
}

a, a:visited, a:hover, a:active {
  text-decoration: none !important;
  color: inherit;
}

/* Soft Ambient Background Glows */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

.ambient-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  top: -80px;
  left: -80px;
}

.ambient-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.07) 0%, rgba(255, 255, 255, 0) 70%);
  top: 45%;
  right: -100px;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.highlight-text {
  color: var(--primary-blue);
  position: relative;
  display: inline-block;
}

/* Section Header */
section {
  padding: 95px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: #f0f9ff;
  border: 1px solid #e0f2fe;
  color: var(--primary-blue);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 16px;
  color: var(--text-main);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary-blue);
  color: #ffffff !important;
  box-shadow: 0 8px 20px -4px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
  background: var(--primary-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -4px rgba(2, 132, 199, 0.45);
}

.btn-secondary {
  background: #f8fafc;
  color: var(--text-main) !important;
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: #f1f5f9;
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main) !important;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a, .nav-links a:visited {
  color: var(--text-muted) !important;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--primary-blue) !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-toggle {
  display: none;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 1.2rem;
  padding: 8px 12px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
}

/* --- HERO SECTION --- */
.hero {
  padding-top: 155px;
  padding-bottom: 85px;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 60% 10%, #f0f9ff 0%, #ffffff 65%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.hero-title {
  font-size: 3.3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* Hero Metrics Strip */
.hero-metrics-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.metric-item strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.metric-item span {
  font-size: 0.85rem;
  color: var(--text-subtle);
  font-weight: 500;
}

.metric-divider {
  width: 1px;
  height: 36px;
  background-color: var(--border-color);
}

/* Product Analytics Showcase Card */
.hero-visual {
  display: flex;
  justify-content: center;
}

.product-preview-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.product-preview-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: #bae6fd;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.preview-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.text-blue { color: var(--primary-blue); }

.preview-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: #f0f9ff;
  color: var(--primary-blue);
  border: 1px solid #e0f2fe;
}

.preview-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.p-stat-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 14px;
  border-radius: var(--radius-md);
}

.p-label {
  display: block;
  font-size: 0.76rem;
  color: var(--text-subtle);
  font-weight: 500;
}

.p-val {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 4px 0;
}

.p-trend {
  font-size: 0.72rem;
  font-weight: 600;
}

.p-trend.positive { color: #10b981; }

.preview-feature-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.f-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f0f9ff;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.f-info strong {
  display: block;
  font-size: 0.84rem;
  color: var(--text-main);
}

.f-info p {
  font-size: 0.74rem;
  color: var(--text-subtle);
}

.f-status {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  color: #10b981;
}

/* --- SECTION 2: SERVICES --- */
#services {
  background: var(--bg-subtle);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: #bae6fd;
  box-shadow: var(--shadow-hover);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #f0f9ff;
  border: 1px solid #e0f2fe;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.service-list li {
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-list li i {
  color: #10b981;
  font-size: 0.8rem;
}

/* --- SECTION 3: PORTFOLIO --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.portfolio-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: #bae6fd;
  box-shadow: var(--shadow-hover);
}

.portfolio-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: #f0f9ff;
  color: var(--primary-blue);
  align-self: flex-start;
  margin-bottom: 16px;
}

.portfolio-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.portfolio-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio-tags span {
  font-size: 0.78rem;
  font-weight: 600;
  background: #f1f5f9;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

/* --- SECTION 4: TECH STACK --- */
#stack {
  background: var(--bg-subtle);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stack-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.stack-item:hover {
  border-color: #bae6fd;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stack-item i {
  font-size: 2rem;
  color: var(--primary-blue);
}

.stack-item span {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

/* --- SECTION 5: PROCESS --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.process-card:hover {
  transform: translateY(-6px);
  border-color: #bae6fd;
  box-shadow: var(--shadow-hover);
}

.process-num {
  font-size: 2rem;
  font-weight: 800;
  color: #e2e8f0;
  margin-bottom: 12px;
}

.process-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.process-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- SECTION 6: CONTACT --- */
#contact {
  background: var(--bg-subtle);
  padding-bottom: 100px;
}

.contact-card-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  margin-top: 32px;
  align-items: start;
}

.contact-direct-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.c-info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f8fafc;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.c-info-card i {
  font-size: 1.4rem;
  color: var(--primary-blue);
}

.c-info-card strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-main);
}

.c-info-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.human-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-success-banner {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  text-align: center;
  font-weight: 600;
}

/* --- FOOTER --- */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px 0;
}

.footer-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-left p {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-nav {
  display: flex;
  gap: 60px;
}

.f-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.f-col strong {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.f-col a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.f-col a:hover {
  color: var(--primary-blue);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  font-size: 0.88rem;
  color: var(--text-subtle);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  color: var(--text-subtle);
  font-size: 1.1rem;
  transition: color var(--transition-fast);
}

.social-links a:hover {
  color: var(--primary-blue);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.7rem; }
  .services-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .stack-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero-metrics-strip { justify-content: center; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-wrapper { flex-direction: column; }
}

@media (max-width: 768px) {
  section { padding: 65px 0; }
  .hero-title { font-size: 2.2rem; }
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .mobile-nav.active {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
  }
  .services-grid, .portfolio-grid, .process-steps { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .contact-card-box { padding: 24px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.9rem; }
  .stack-grid { grid-template-columns: 1fr; }
  .hero-metrics-strip { flex-direction: column; gap: 12px; }
  .metric-divider { display: none; }
}
