/* CSS variables for AI Automation Agency Light Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-color: #F8FAFC;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --accent-blue: #3B82F6;
  --accent-indigo: #4F46E5;
  --gradient-primary: linear-gradient(135deg, #3B82F6, #4F46E5);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.6);
  --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; border: 0;}
a { text-decoration: none; color: inherit; }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: 3.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; color: var(--text-primary); text-align: center; }
p { margin-bottom: 1rem; color: var(--text-secondary); }
.section-subtitle { text-align: center; color: var(--text-secondary); max-width: 600px; margin: -0.5rem auto 3rem; font-size: 1.125rem;}

/* Layout */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 6rem 0; }
.clearfix { clear:both }

/* Header & Glassmorphism */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo img { height: 36px; }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; margin: 0; }
.nav-links li { list-style: none; }
.nav-links li a { font-weight: 500; font-size: 0.95rem; color: var(--text-secondary); transition: color 0.3s ease; }
.nav-links li a:hover, .nav-links li a.active { color: var(--accent-indigo); }
.cta-btn {
  background: var(--gradient-primary);
  color: white !important;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
  display: inline-block;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px -3px rgba(79, 70, 229, 0.4);
}
.cta-btn-outline {
  background: transparent;
  color: var(--accent-indigo) !important;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 2px solid var(--accent-indigo);
  transition: all 0.3s ease;
  display: inline-block;
}
.cta-btn-outline:hover {
  background: rgba(79, 70, 229, 0.05);
}

/* Hero Section */
.hero {
  padding: 10rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -20%; left: -10%; width: 50%; height: 70%;
  background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, rgba(250,250,250,0) 70%);
  z-index: -1;
}
.hero::after {
  content: ''; position: absolute; bottom: -20%; right: -10%; width: 50%; height: 70%;
  background: radial-gradient(circle, rgba(79,70,229,0.1) 0%, rgba(250,250,250,0) 70%);
  z-index: -1;
}
.hero-content { display: flex; align-items: center; gap: 4rem; }
.hero-text { flex: 1.1; }
.hero-text h1 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-text p { font-size: 1.125rem; margin-bottom: 2rem; max-width: 540px; line-height: 1.7; }
.hero-btns { display: flex; gap: 1rem; }
.hero-slider { flex: 0.9; position: relative; width: 100%; max-width: 550px;}
.hero-slider img { border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); width: 100%; height: auto;}

/* Tech Stack */
.tech-stack { background: white; padding: 3rem 0; border-top: 1px solid #E5E7EB; border-bottom: 1px solid #E5E7EB; text-align: center; }
.tech-stack p { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 2rem; color: var(--text-secondary); }
.tech-logos { display: flex; justify-content: center; gap: 4rem; align-items: center; flex-wrap: wrap; }
.tech-logos svg { height: 32px; fill: #94A3B8; transition: all 0.3s ease; }
.tech-logos svg:hover { fill: var(--accent-indigo); transform: scale(1.05); }

/* Services (Glass Cards) */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 3rem; }
.glass-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}
.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(59, 130, 246, 0.3);
}
.glass-card .icon {
  width: 56px; height: 56px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-blue);
}
.glass-card .icon svg { width: 28px; height: 28px; fill: currentColor; stroke: currentColor; }
.glass-card h3 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--text-primary); }
.glass-card p { font-size: 0.95rem; margin-bottom: 0; }

/* How It Works */
.process-section { background: white; }
.process-steps { display: flex; justify-content: space-between; position: relative; margin-top: 4rem; gap: 2rem; }
.process-steps::before {
  content: ''; position: absolute; top: 35px; left: 10%; width: 80%; height: 2px;
  background: #E2E8F0; z-index: 1;
}
.step { text-align: center; flex: 1; position: relative; z-index: 2; }
.step-number {
  width: 70px; height: 70px; margin: 0 auto 1.5rem;
  background: white; border: 3px solid var(--accent-indigo);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700; color: var(--accent-indigo);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.step h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.step p { font-size: 0.95rem; }

/* Results / Case Studies */
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.result-card { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); display: flex;}
.result-card img { width: 45%; object-fit: cover; }
.result-content { padding: 2.5rem; width: 55%; display: flex; flex-direction: column; justify-content: center; }
.result-metric { font-size: 3rem; font-weight: 800; color: var(--accent-blue); margin-bottom: 0.5rem; line-height: 1; }
.result-content h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.result-content p { font-size: 0.95rem; margin-bottom: 0; }

/* FAQ & CTA Section */
.faq-cta-section { background: white; }
.faq-container { max-width: 800px; margin: 0 auto 4rem; }
.faq-item { border-bottom: 1px solid #E2E8F0; padding: 1.5rem 0; }
.faq-question { font-weight: 600; font-size: 1.125rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--text-primary); }
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--accent-blue); transition: transform 0.3s ease; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { margin-top: 1rem; color: var(--text-secondary); display: none; line-height: 1.6; }

.bottom-cta { text-align: center; padding: 4rem; background: var(--glass-bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); margin-top: 4rem; border: 1px solid var(--glass-border); position: relative; overflow: hidden; }
.bottom-cta h2 { margin-bottom: 1rem; }
.bottom-cta p { margin-bottom: 2rem; font-size: 1.125rem; }

/* Footer */
.footer { background: #F8FAFC; padding: 5rem 0 2rem; border-top: 1px solid #E2E8F0; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3rem; margin-bottom: 3rem; }
.footer-col { flex: 1; min-width: 200px; }
.footer-col .logo img { height: 32px; margin-bottom: 1.5rem; }
.footer-col p { font-size: 0.95rem; }
.footer-col h4 { margin-bottom: 1.5rem; font-size: 1.125rem; color: var(--text-primary); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col ul li a { color: var(--text-secondary); transition: color 0.3s ease; font-size: 0.95rem; }
.footer-col ul li a:hover { color: var(--accent-indigo); }
.social-links { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: white; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: all 0.3s ease; color: var(--text-secondary); }
.social-links a:hover { color: var(--accent-indigo); transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.social-links svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid #E2E8F0; font-size: 0.875rem; color: var(--text-secondary); }

/* Mobile Navigation */
.cus-navbar { display: none; background: transparent; border: none; cursor: pointer; padding: 10px; }
.cus-navbar svg { width: 24px; height: 24px; fill: var(--text-primary); }
.wrp { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 1001; }
.sideMenu { display: none; position: fixed; top: 0; right: 0; width: 280px; max-width: 80%; height: 100%; background: white; z-index: 1002; padding: 3rem 2rem; box-shadow: -10px 0 30px rgba(0,0,0,0.05); }
.sideMenu ul { list-style: none; padding: 0; margin-top: 1rem; }
.sideMenu ul li { margin-bottom: 1.25rem; }
.sideMenu ul li a { font-size: 1.125rem; font-weight: 500; color: var(--text-primary); display: block; border-bottom: 1px solid #F1F5F9; padding-bottom: 0.75rem; transition: color 0.3s ease; }
.sideMenu ul li a:hover, .sideMenu ul li a.active { color: var(--accent-indigo); border-bottom-color: var(--accent-indigo); }
.cross { display: none; position: fixed; top: 1.25rem; right: 1.25rem; background: var(--bg-color); border: none; cursor: pointer; z-index: 1003; border-radius: 50%; padding: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: all 0.3s ease; text-align: center; }
.cross:hover { transform: scale(1.05); background: white; box-shadow: 0 6px 15px rgba(0,0,0,0.1); }
.cross svg { width: 20px; height: 20px; fill: var(--text-primary); vertical-align: middle; }

/* Legacy overrides for older pages */
.banner, .topH, .service, .whatwedo, .ourServ, .engage { display: none; } /* Hide old sections on index if they conflict */

/* Subpage headers & content wrappers */
.subpage-header { padding: 10rem 0 2rem; background: var(--glass-bg); border-bottom: 1px solid #E2E8F0; text-align: center; }
.subpage-header h1 { font-family: 'Inter', sans-serif; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.5rem; }
.content-section { padding: 3rem 0 5rem; background: white; }

/* Contact Form */
.contact-wrap { display: flex; gap: 4rem; flex-wrap: wrap; }
.contact-form { flex: 2; min-width: 300px; background: white; padding: 3rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); border: 1px solid #E2E8F0; }
.contact-info { flex: 1; min-width: 250px; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.95rem; }
.form-control { width: 100%; padding: 0.75rem 1rem; border: 1px solid #CBD5E1; border-radius: var(--radius-sm); font-family: 'Inter', sans-serif; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.form-control:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* Responsive */
@media (max-width: 991px) {
  .hero-content { flex-direction: column; text-align: center; }
  .hero-text p { margin: 0 auto 2rem; }
  .hero-btns { justify-content: center; }
  .process-steps { flex-direction: column; }
  .process-steps::before { display: none; }
  .results-grid { grid-template-columns: 1fr; }
  .result-card { flex-direction: column; }
  .result-card img { width: 100%; height: 250px; }
  .result-content { width: 100%; }
}
@media (max-width: 767px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  .nav-links { display: none; }
  .header-inner .cta-btn { display: none; }
  .cus-navbar { display: block; }
  .section { padding: 4rem 0; }
  .hero { padding: 8rem 0 4rem; }
  
  /* Subpage Adjustments */
  .subpage-header { padding: 7rem 0 1.5rem; }
  .content-section { padding: 1.5rem 0 3rem; }
  .glass-card { padding: 1.5rem; }
  
  /* Footer */
  .footer-inner { flex-direction: column; gap: 2rem; text-align: center; }
  .footer-col { min-width: 100%; }
  .social-links { justify-content: center; }
  
  /* Forms & Content */
  .contact-wrap { flex-direction: column; gap: 2rem; }
  .contact-form { padding: 1.5rem; min-width: unset; }
  .contact-info { min-width: unset; }
  .tech-logos { gap: 1.5rem; }
  .bottom-cta { padding: 2rem 1rem; }
  ul[style*="column-count: 2"] { column-count: 1 !important; }
}