/* ============================================================
   Pantech Automation — style.css
   Corporate Tech Solutions Website
   Color Scheme: Indigo/Navy + White + Blue Accent
   ============================================================ */

/* === CSS VARIABLES === */
:root {
  --primary: #1e3a5f;
  --primary-dark: #0f2440;
  --primary-light: #2a4f7a;
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --accent-glow: rgba(37, 99, 235, 0.15);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #f1f5f9;
  --bg-card: #ffffff;
  --text: #0f172a;
  --text2: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
  --shadow-accent: 0 4px 20px rgba(37,99,235,0.2);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-primary: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --container: 1200px;
  --nav-height: 72px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
::selection { background: var(--accent); color: #fff; }

/* === CONTAINER === */
.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
  position: fixed; top: var(--nav-height); left: 0; right: 0;
  height: 3px; z-index: 999; background: transparent;
}
.scroll-progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--primary), var(--accent-light));
  transition: width 0.1s linear;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; height: var(--nav-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 2rem;
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: transparent;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container); width: 100%; margin: 0 auto;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-primary);
  font-size: 1.3rem; font-weight: 700;
  color: var(--primary);
}
.nav-logo img { height: 64px; width: auto; }
.nav-logo-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 0.9rem;
}
.nav-links { display: flex; gap: 0.25rem; align-items: center; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500;
  color: var(--text2); padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); background: var(--accent-glow); }
.nav-links a::after {
  content: ''; position: absolute;
  bottom: 4px; left: 50%; width: 0; height: 2px;
  background: var(--accent); border-radius: 1px;
  transition: var(--transition); transform: translateX(-50%);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 50%; }
.nav-cta {
  padding: 0.55rem 1.5rem !important;
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: var(--radius-full) !important;
  font-weight: 600 !important;
  box-shadow: var(--shadow-accent);
  transition: var(--transition);
}
.nav-cta:hover { background: var(--primary) !important; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.nav-cta::after { display: none !important; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 1px; transition: var(--transition);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #f0f9ff 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(30,58,95,0.05) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 2rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem; border-radius: var(--radius-full);
  background: rgba(37,99,235,0.08); border: 1px solid rgba(37,99,235,0.15);
  color: var(--accent); font-size: 0.8rem; font-weight: 600;
  margin-bottom: 1.5rem; letter-spacing: 0.5px;
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}
.hero h1 {
  font-family: var(--font-primary);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800; line-height: 1.15;
  color: var(--primary-dark);
  margin-bottom: 1.25rem;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.05rem; color: var(--text2);
  line-height: 1.8; margin-bottom: 2rem; max-width: 520px;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff; border: none; border-radius: var(--radius-full);
  font-size: 0.95rem; font-weight: 600;
  box-shadow: var(--shadow-accent);
  transition: var(--transition);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37,99,235,0.3); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: transparent; color: var(--primary);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.95rem; font-weight: 600;
  transition: var(--transition);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* Hero Card */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary), var(--accent-light));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.hero-card-title {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.25rem;
}
.hc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}
.hc-row:last-of-type { border-bottom: none; }
.hc-lbl { color: var(--text2); }
.hc-val { font-weight: 600; color: var(--text); }
.hc-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.hc-tag {
  padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 500;
  border-radius: var(--radius-full);
  background: var(--accent-glow); color: var(--accent);
  border: 1px solid rgba(37,99,235,0.15);
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--primary-dark);
  padding: 3rem 2rem;
}
.stats-inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  text-align: center;
}
.stat-num {
  font-family: var(--font-primary);
  font-size: 2.2rem; font-weight: 800; color: #fff;
  margin-bottom: 0.25rem;
}
.stat-divider {
  width: 40px; height: 2px; margin: 0.5rem auto;
  background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
}
.stat-lbl { font-size: 0.85rem; color: rgba(255,255,255,0.7); font-weight: 500; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-badge {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; color: var(--accent);
  background: var(--accent-glow); border: 1px solid rgba(37,99,235,0.15);
  padding: 0.35rem 1rem; border-radius: var(--radius-full); margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-primary);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800; color: var(--primary-dark); margin-bottom: 0.75rem;
}
.section-title span {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub {
  font-size: 1rem; color: var(--text2); max-width: 600px; margin: 0 auto;
}
.section-line {
  width: 60px; height: 3px; margin: 0 auto 1rem;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: 2px;
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  border-color: rgba(37,99,235,0.2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.service-icon {
  width: 52px; height: 52px;
  background: var(--accent-glow);
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; color: var(--accent);
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--accent); color: #fff;
  box-shadow: var(--shadow-accent);
}
.service-card h3 {
  font-family: var(--font-primary);
  font-size: 1.1rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.5rem;
}
.service-card p { font-size: 0.9rem; color: var(--text2); line-height: 1.7; }
.service-card ul {
  margin-top: 1rem; padding-left: 0;
}
.service-card li {
  font-size: 0.85rem; color: var(--text2);
  padding: 0.3rem 0; padding-left: 1.25rem;
  position: relative;
}
.service-card li::before {
  content: ''; position: absolute; left: 0; top: 0.7rem;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}
.why-card {
  text-align: center; padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.why-card:hover {
  border-color: rgba(37,99,235,0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.why-icon {
  width: 60px; height: 60px; margin: 0 auto 1rem;
  background: var(--accent-glow);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1.5rem;
}
.why-card h4 {
  font-family: var(--font-primary);
  font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem;
}
.why-card p { font-size: 0.85rem; color: var(--text2); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
  padding: 4rem 2rem; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-banner h2 {
  font-family: var(--font-primary);
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800;
  color: #fff; margin-bottom: 0.75rem; position: relative;
}
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; font-size: 1rem; position: relative; }
.cta-banner .btn-primary {
  background: #fff; color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.cta-banner .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }

/* ============================================================
   PROJECTS GRID
   ============================================================ */
.filter-tabs {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  justify-content: center; margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 0.5rem 1.25rem;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text2); border-radius: var(--radius-full);
  font-size: 0.85rem; font-weight: 500;
  transition: var(--transition);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active {
  background: var(--accent); border-color: var(--accent);
  color: #fff; font-weight: 600;
  box-shadow: var(--shadow-accent);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.project-card:hover {
  border-color: rgba(37,99,235,0.3);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.project-card.hidden { display: none; }
.project-card.hiding { opacity: 0; transform: scale(0.95); pointer-events: none; }
.project-img {
  height: 220px; background: var(--bg-dark);
  overflow: hidden; position: relative;
}
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-img img { transform: scale(1.05); }
.project-img-placeholder {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 100%; color: var(--text-muted);
  font-size: 0.85rem; gap: 0.5rem;
}
.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.2), rgba(30,58,95,0.3));
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-overlay span { color: #fff; font-weight: 700; font-size: 0.9rem; letter-spacing: 1px; }
.project-body { padding: 1.5rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.75rem; }
.project-tag {
  font-size: 0.7rem; font-weight: 600; padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--accent-glow); color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.project-body h3 {
  font-family: var(--font-primary);
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: 0.5rem;
}
.project-body p { font-size: 0.85rem; color: var(--text2); line-height: 1.6; margin-bottom: 1rem; }
.project-btn {
  padding: 0.45rem 1.1rem; font-size: 0.82rem; font-weight: 600;
  background: transparent; border: 1px solid var(--accent);
  color: var(--accent); border-radius: var(--radius-full);
  transition: var(--transition);
}
.project-btn:hover { background: var(--accent); color: #fff; }

/* ============================================================
   REVIEWS / TESTIMONIALS
   ============================================================ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
}
.review-card:hover {
  border-color: rgba(37,99,235,0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.review-card::before {
  content: '\201C'; position: absolute; top: 1rem; right: 1.5rem;
  font-size: 4rem; font-family: Georgia, serif;
  color: rgba(37,99,235,0.08); line-height: 1;
}
.review-stars { display: flex; gap: 2px; margin-bottom: 1rem; }
.review-star { color: var(--warning); font-size: 1rem; }
.review-text { font-size: 0.9rem; color: var(--text2); line-height: 1.7; margin-bottom: 1.25rem; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 0.75rem; }
.review-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.85rem;
  overflow: hidden;
}
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-name { font-weight: 600; font-size: 0.9rem; }
.review-company { font-size: 0.78rem; color: var(--text-muted); }

.review-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-bottom: 3rem;
}
.review-stat {
  text-align: center; padding: 1.5rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.review-stat-num {
  font-family: var(--font-primary);
  font-size: 2rem; font-weight: 800; color: var(--accent);
}
.review-stat-lbl { font-size: 0.85rem; color: var(--text2); margin-top: 0.25rem; }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 3rem; align-items: start;
}
.contact-info h2 {
  font-family: var(--font-primary);
  font-size: 1.8rem; font-weight: 800;
  color: var(--primary-dark); margin-bottom: 0.75rem;
}
.contact-info > p {
  font-size: 0.95rem; color: var(--text2);
  line-height: 1.7; margin-bottom: 2rem;
}
.info-card {
  display: flex; gap: 1rem; align-items: center;
  padding: 1rem; margin-bottom: 0.75rem;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.info-card:hover { border-color: rgba(37,99,235,0.2); box-shadow: var(--shadow-sm); }
.info-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--accent-glow);
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.info-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.info-value { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-top: 0.1rem; }
.info-value a { color: var(--text); transition: var(--transition); }
.info-value a:hover { color: var(--accent); }

/* Contact Form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.contact-form-wrap h3 {
  font-family: var(--font-primary);
  font-size: 1.2rem; font-weight: 700;
  margin-bottom: 1.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--text); margin-bottom: 0.35rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.7rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem; color: var(--text);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-submit {
  width: 100%; padding: 0.85rem;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff; border: none; border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-accent);
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37,99,235,0.3); }
.form-success {
  display: none; margin-top: 1rem; padding: 1rem;
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius-sm);
  color: var(--success); font-size: 0.9rem; font-weight: 500;
}

/* Google Maps placeholder */
.map-wrap {
  margin-top: 3rem; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border);
  height: 300px; background: var(--bg-dark);
}
.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* ============================================================
   PROCESS / TIMELINE
   ============================================================ */
.process-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1rem; position: relative;
}
.process-grid::before {
  content: ''; position: absolute;
  top: 40px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary), var(--accent-light));
  z-index: 0;
}
.process-step {
  text-align: center; position: relative; z-index: 1;
}
.process-num {
  width: 48px; height: 48px; margin: 0 auto 1rem;
  background: var(--accent);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1rem;
  box-shadow: var(--shadow-accent);
  border: 3px solid var(--bg);
}
.process-step h4 {
  font-family: var(--font-primary);
  font-size: 0.9rem; font-weight: 700; margin-bottom: 0.35rem;
}
.process-step p { font-size: 0.78rem; color: var(--text2); }

/* ============================================================
   PAGE HERO (for inner pages)
   ============================================================ */
.page-hero {
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 3rem;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #f0f9ff 100%);
  text-align: center;
}
.page-hero .section-badge { margin-bottom: 1rem; }
.page-hero h1 {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800;
  color: var(--primary-dark); margin-bottom: 0.75rem;
}
.page-hero p { font-size: 1.05rem; color: var(--text2); max-width: 600px; margin: 0 auto; }

/* ============================================================
   FLOATING ACTION BUTTONS (FAB)
   ============================================================ */
.fab-wrap {
  position: fixed; bottom: 2rem; right: 2rem;
  z-index: 1500; display: flex; flex-direction: column-reverse;
  align-items: flex-end; gap: 0.5rem;
}
.fab-options {
  display: flex; flex-direction: column-reverse;
  gap: 0.5rem; opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: var(--transition);
}
.fab-wrap.open .fab-options { opacity: 1; pointer-events: all; transform: translateY(0); }
.fab-btn {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  color: #fff; font-size: 0.82rem; font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  white-space: nowrap;
}
.fab-btn:hover { transform: scale(1.05); }
.fab-wa { background: #25d366; }
.fab-email { background: var(--accent); }
.fab-call { background: var(--primary); }
.fab-main {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  border: none; border-radius: 50%;
  color: #fff; box-shadow: var(--shadow-accent);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.fab-main:hover { transform: scale(1.1); }
.fab-icon-close { display: none; }
.fab-wrap.open .fab-icon-open { display: none; }
.fab-wrap.open .fab-icon-close { display: block; }

/* ============================================================
   CHATBOT WIDGET
   ============================================================ */
.chatbot-wrap {
  position: fixed; bottom: 6rem; right: 2rem;
  z-index: 1600; width: 380px; max-width: calc(100vw - 2rem);
  display: none; flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: chatIn 0.3s ease;
}
.chatbot-wrap.open { display: flex; }
@keyframes chatIn { from { opacity: 0; transform: translateY(10px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

.chatbot-header {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  color: #fff;
}
.chatbot-header-info { display: flex; align-items: center; gap: 0.75rem; }
.chatbot-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
}
.chatbot-header-name { font-weight: 700; font-size: 0.9rem; }
.chatbot-header-status { font-size: 0.72rem; opacity: 0.85; display: flex; align-items: center; gap: 0.35rem; }
.chatbot-header-status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #10b981;
}
.chatbot-close {
  background: rgba(255,255,255,0.15); border: none;
  width: 30px; height: 30px; border-radius: 50%;
  color: #fff; font-size: 1rem; display: flex;
  align-items: center; justify-content: center;
  transition: var(--transition);
}
.chatbot-close:hover { background: rgba(255,255,255,0.3); }

.chatbot-messages {
  flex: 1; min-height: 300px; max-height: 350px;
  overflow-y: auto; padding: 1rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  background: var(--bg-alt);
}
.chat-msg { display: flex; gap: 0.5rem; max-width: 85%; animation: chatIn 0.3s ease; }
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-bubble {
  padding: 0.75rem 1rem; border-radius: var(--radius);
  font-size: 0.85rem; line-height: 1.6;
}
.chat-msg.bot .chat-bubble { background: var(--bg-card); border: 1px solid var(--border); color: var(--text); }
.chat-msg.user .chat-bubble { background: var(--accent); color: #fff; }
.chat-time { font-size: 0.65rem; color: var(--text-muted); margin-top: 0.25rem; }
.chat-msg.bot .chat-time { text-align: left; }
.chat-msg.user .chat-time { text-align: right; }

.typing-indicator { display: flex; gap: 4px; padding: 0.75rem 1rem; }
.typing-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-muted);
  animation: typingBounce 1.4s ease infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

.chatbot-input {
  display: flex; padding: 0.75rem;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.chatbot-input input {
  flex: 1; padding: 0.65rem 1rem;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.85rem; outline: none;
  transition: var(--transition);
}
.chatbot-input input:focus { border-color: var(--accent); }
.chatbot-input button {
  margin-left: 0.5rem; width: 40px; height: 40px;
  background: var(--accent); border: none;
  border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.chatbot-input button:hover { background: var(--primary); }

.chatbot-toggle {
  position: fixed; bottom: 2rem; left: 2rem;
  z-index: 1500; width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none; border-radius: 50%; color: #fff;
  box-shadow: var(--shadow-accent);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.chatbot-toggle:hover { transform: scale(1.1); }
.chatbot-toggle .badge {
  position: absolute; top: -2px; right: -2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--danger); font-size: 0.65rem;
  font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center;
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-backdrop {
  display: none; position: fixed; inset: 0;
  z-index: 2000; background: rgba(15,23,42,0.6);
  backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 1rem;
}
.modal-backdrop.active { display: flex; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 750px; width: 100%; max-height: 90vh;
  overflow-y: auto; position: relative;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-close {
  position: sticky; top: 1rem; float: right;
  margin: 1rem; width: 34px; height: 34px;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 50%; font-size: 1rem; color: var(--text2);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); z-index: 10;
}
.modal-close:hover { background: rgba(239,68,68,0.1); border-color: var(--danger); color: var(--danger); }
.modal-header { padding: 1.5rem 1.5rem 0; }
.modal-meta {
  font-size: 0.75rem; color: var(--accent);
  letter-spacing: 2px; text-transform: uppercase;
  font-weight: 600; margin-bottom: 0.5rem;
}
.modal-title {
  font-family: var(--font-primary);
  font-size: 1.4rem; font-weight: 800;
}
.modal-img {
  margin: 1.25rem 1.5rem 0;
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg-dark); aspect-ratio: 16/9;
}
.modal-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-img-placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 100%; color: var(--text-muted); font-size: 0.85rem;
}
.modal-body { padding: 1.25rem 1.5rem 1.5rem; }
.modal-section { margin-bottom: 1.5rem; }
.modal-section h3 {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.75rem;
}
.modal-section p { font-size: 0.9rem; color: var(--text2); line-height: 1.7; }
.modal-section ul { padding-left: 1.25rem; }
.modal-section li { font-size: 0.87rem; color: var(--text2); margin-bottom: 0.4rem; line-height: 1.6; list-style: disc; }
.modal-section li::marker { color: var(--accent); }
.modal-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.modal-tag {
  padding: 0.3rem 0.8rem; font-size: 0.75rem; font-weight: 500;
  border-radius: var(--radius-full);
  background: var(--accent-glow); color: var(--accent);
  border: 1px solid rgba(37,99,235,0.15);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--primary-dark); color: rgba(255,255,255,0.85);
  padding: 4rem 2rem 0;
}
.footer-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.6); margin-top: 1rem; }
.footer-logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-primary);
  font-size: 1.2rem; font-weight: 700; color: #fff;
}
.footer-logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 0.8rem;
}
.footer h4 {
  font-family: var(--font-primary);
  font-size: 0.9rem; font-weight: 700; color: #fff;
  margin-bottom: 1rem;
}
.footer ul li { margin-bottom: 0.5rem; }
.footer ul a {
  font-size: 0.85rem; color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer ul a:hover { color: var(--accent-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  text-align: center;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.45); }
.footer-bottom span { color: var(--accent-light); }
.footer-logo-img {
  height: 76px;          /* Bigger than navbar */
  width: auto;
  margin-bottom: 1rem;
  object-fit: contain;
}

/* Tablet */
@media (max-width: 1024px) {
  .footer-logo-img {
    height: 68px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .footer-logo-img {
    height: 60px;
    margin: 0 auto 1rem;
    display: block;
  }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in { opacity: 0; transform: translateY(25px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }
.fade-in:nth-child(5) { transition-delay: 0.4s; }
.fade-in:nth-child(6) { transition-delay: 0.5s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
  .hero-sub { margin: 0 auto 2rem; }
  .hero-btns { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid::before { display: none; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: var(--nav-height); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 1rem 0; box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 2rem; border-radius: 0; }
  .nav-toggle { display: flex; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .review-stats { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .section { padding: 3.5rem 0; }
  .chatbot-wrap { right: 0.5rem; bottom: 5rem; width: calc(100vw - 1rem); }
  .fab-wrap { bottom: 1.25rem; right: 1.25rem; }
  .chatbot-toggle { bottom: 1.25rem; left: 1.25rem; }
}
@media (max-width: 480px) {
  .stats-inner { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--nav-height) + 2rem); padding-bottom: 3rem; }
  .hero h1 { font-size: 2rem; }
  .process-grid { grid-template-columns: 1fr; }
}


/* Footer Social Icons */
.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-socials a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}