/* ==========================================================================
   DIGITAL AGENCY - MASTER DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

/* ---------- 1. ROOT DESIGN TOKENS ---------- */
:root {
  /* Brand Color Palette */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: rgba(37, 99, 235, 0.08);
  --primary-glow: rgba(37, 99, 235, 0.25);
  
  --secondary: #0f172a;
  --secondary-hover: #1e293b;
  
  --accent: #14b8a6;
  --accent-hover: #0d9488;
  --accent-light: rgba(20, 184, 166, 0.1);

  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #1d4ed8 100%);
  --gradient-accent: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);

  /* Neutral Spectrum */
  --bg-body: #ffffff;
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-light: rgba(0, 0, 0, 0.06);

  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Typography */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* UI Tokens */
  --border-radius-sm: 8px;
  --border-radius: 14px;
  --border-radius-lg: 24px;
  --border-radius-pill: 9999px;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.1);
  --shadow-hover: 0 24px 48px rgba(37, 99, 235, 0.15);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 3. TYPOGRAPHY & SECTION HEADERS ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 18px;
  border-radius: var(--border-radius-pill);
  margin-bottom: 16px;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-title span {
  color: var(--primary);
  background: linear-gradient(135deg, #2563eb, #0d9488);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 48px;
}

.text-center {
  text-align: center;
}

.text-center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* Page Header Hero (Internal Pages) */
.page-hero {
  background: var(--secondary);
  color: #ffffff;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(20, 184, 166, 0.2) 0%, transparent 40%);
}

.page-hero h1 {
  color: #ffffff;
  font-size: 3rem;
  margin-bottom: 16px;
}

.page-hero p {
  color: #94a3b8;
  font-size: 1.2rem;
  max-width: 640px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #94a3b8;
  margin-top: 20px;
}

.breadcrumb a {
  color: #ffffff;
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* ---------- 4. BUTTONS & UI CONTROLS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--border-radius-pill);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 20px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.btn-accent {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(20, 184, 166, 0.3);
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
}

/* ---------- 5. NAVIGATION / HEADER ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

header.scrolled {
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo-img {
  height: 46px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  transition: var(--transition-fast);
}

.logo:hover .logo-img {
  transform: scale(1.03);
}

.logo span {
  color: var(--primary);
}

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

.nav-links a:not(.btn) {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-body);
  position: relative;
  padding: 6px 0;
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active {
  color: var(--primary);
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after {
  width: 100%;
}

.nav-links a.btn {
  color: #ffffff !important;
  background: var(--primary);
  padding: 10px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--border-radius-pill);
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.nav-links a.btn:hover {
  background: var(--primary-hover);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--shadow-hover);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--text-main);
  border-radius: 3px;
  transition: var(--transition);
}

/* Mobile Nav Open State */
.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- 6. FOOTER ---------- */
footer {
  background: var(--secondary);
  color: #ffffff;
  padding: 80px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.footer-newsletter {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(20, 184, 166, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--border-radius-lg);
  padding: 36px 40px;
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.footer-tagline {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.2fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo {
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 24px;
  max-width: 340px;
  line-height: 1.6;
}

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

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-4px) scale(1.1);
  color: #ffffff;
  box-shadow: 0 8px 20px var(--primary-glow);
  border-color: rgba(255, 255, 255, 0.2);
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #94a3b8;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
}

.footer-col ul li a:hover {
  color: #ffffff;
  transform: translateX(6px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #94a3b8;
  font-size: 0.925rem;
  line-height: 1.5;
  transition: transform 0.2s ease;
}

.footer-contact-item:hover {
  transform: translateX(3px);
}

.footer-contact-item i {
  font-size: 1.05rem;
  margin-top: 3px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.footer-contact-item a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition-fast);
  word-break: break-word;
}

.footer-contact-item a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  color: #64748b;
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* ---------- 7. HERO SECTION (HOME) ---------- */
.hero {
  padding: 160px 0 100px;
  background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(20, 184, 166, 0.05) 0%, transparent 50%);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.4rem;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-content h1 span {
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.hero-stats li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
}

.hero-stats li i {
  color: var(--accent);
}

/* Visual Mockup Card */
.mockup {
  background: #ffffff;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: var(--transition);
}

.mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-bar {
  background: #f1f5f9;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
}

.mockup-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mockup-bar span:nth-child(1) { background: #ef4444; }
.mockup-bar span:nth-child(2) { background: #f59e0b; }
.mockup-bar span:nth-child(3) { background: #10b981; }

.mockup-preview {
  padding: 40px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  text-align: center;
}

.mockup-preview .m-icon {
  width: 72px;
  height: 72px;
  background: rgba(37, 99, 235, 0.2);
  color: #3b82f6;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 20px;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* ---------- 8. TRUSTED BY LOGOS ---------- */
.trusted {
  padding: 48px 0;
  border-y: 1px solid var(--border-color);
  background: var(--bg-light);
  text-align: center;
}

.trusted p {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
  margin-bottom: 24px;
  font-weight: 600;
}

.trusted-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trusted-logos .logo-item {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-light);
  opacity: 0.7;
  transition: var(--transition);
}

.trusted-logos .logo-item:hover {
  color: var(--primary);
  opacity: 1;
}

/* ---------- 9. SERVICES SECTION & CARDS ---------- */
.services {
  padding: 100px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 36px 30px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.service-card .icon {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 24px;
  transition: var(--transition);
}

.service-card:hover .icon {
  background: var(--primary);
  color: #ffffff;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-card .link-btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-card .link-btn i {
  transition: var(--transition);
}

.service-card:hover .link-btn i {
  transform: translateX(4px);
}

/* ---------- 10. PORTFOLIO & FILTERING ---------- */
.portfolio {
  padding: 100px 0;
  background: var(--bg-light);
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: var(--border-radius-pill);
  background: #ffffff;
  border: 1px solid var(--border-color);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-body);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px;
}

.portfolio-card {
  background: #ffffff;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.portfolio-img {
  height: 240px;
  background: var(--gradient-dark);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portfolio-img .preview-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  transition: var(--transition);
}

.portfolio-card:hover .portfolio-img .preview-icon {
  transform: scale(1.15);
  background: var(--primary);
}

.portfolio-info {
  padding: 24px;
}

.portfolio-info .tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.portfolio-info h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.portfolio-info p {
  color: var(--text-muted);
  font-size: 0.925rem;
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--border-radius-lg);
  max-width: 650px;
  width: 100%;
  padding: 40px;
  position: relative;
  transform: scale(0.9);
  transition: var(--transition);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-light);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: #ef4444;
  color: #ffffff;
}

/* ---------- 11. PRICING & TOGGLE ---------- */
.pricing {
  padding: 100px 0;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  font-family: var(--font-heading);
  font-weight: 600;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 32px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(28px);
}

.discount-badge {
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: var(--border-radius-pill);
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.pricing-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 20px 40px var(--primary-glow);
  transform: scale(1.03);
}

.pricing-card.featured .popular-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: var(--border-radius-pill);
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.pricing-card .price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-card .desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.pricing-features {
  margin-bottom: 36px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: var(--text-body);
}

.pricing-features li i {
  color: var(--accent);
}

.pricing-features li.disabled {
  color: var(--text-light);
}

.pricing-features li.disabled i {
  color: var(--text-light);
}

/* Calculator Card */
.calculator-box {
  background: var(--secondary);
  color: #ffffff;
  border-radius: var(--border-radius-lg);
  padding: 48px;
  margin-top: 80px;
  box-shadow: var(--shadow-lg);
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.calc-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calc-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.06);
  padding: 16px 20px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-option:hover {
  background: rgba(255, 255, 255, 0.12);
}

.calc-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

/* ---------- 12. TESTIMONIALS ---------- */
.testimonials {
  padding: 100px 0;
  background: var(--bg-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.testimonial-card {
  background: #ffffff;
  border-radius: var(--border-radius);
  padding: 36px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.stars {
  color: #f59e0b;
  margin-bottom: 16px;
}

.testimonial-card blockquote {
  font-size: 1.05rem;
  color: var(--text-body);
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.6;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-placeholder {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.author-details h4 {
  font-size: 1rem;
}

.author-details p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- 13. FAQ ACCORDION ---------- */
.faq {
  padding: 100px 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text-main);
}

.faq-question i {
  transition: var(--transition);
  color: var(--text-muted);
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 28px;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 28px 24px;
}

/* ---------- 14. CONTACT FORM & LAYOUT ---------- */
.contact {
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.contact-card {
  background: #ffffff;
  border-radius: var(--border-radius-lg);
  padding: 40px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background: var(--bg-light);
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--primary-light);
}

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

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-item .c-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* ---------- 15. BLOG GRID ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.blog-card {
  background: #ffffff;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.blog-img {
  height: 200px;
  background: var(--gradient-dark);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 2.5rem;
}

.blog-content {
  padding: 28px;
}

.blog-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-content h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.blog-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* ---------- 16. UTILITY / FLOATING BUTTONS ---------- */
.back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--primary-glow);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  background: var(--primary-hover);
  transform: translateY(-4px);
}

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 54px;
  height: 54px;
  background: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  z-index: 999;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 90px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--secondary);
  color: #ffffff;
  padding: 16px 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ---------- 17. RESPONSIVE BREAKPOINTS ---------- */
@media (max-width: 1024px) {
  .hero-grid,
  .contact-grid,
  .calculator-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .pricing-card.featured {
    transform: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 32px;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    display: none;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
/* ========== CASE STUDY (PORTFOLIO) ========== */
.case-study {
  background: var(--bg-alt);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 60px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}
.case-study-hero {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}
.case-study-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.case-study:hover .case-study-hero img {
  transform: scale(1.05);
}
.case-study-content {
  padding: 40px;
}
.case-study-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--dark-text);
  margin-bottom: 10px;
}
.case-study-category {
  display: inline-block;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.case-study-section {
  margin-bottom: 24px;
}
.case-study-section h4 {
  font-size: 1.1rem;
  color: var(--dark-text);
  margin-bottom: 8px;
  font-family: var(--font-heading);
}
.case-study-section p {
  color: var(--gray-text);
  font-size: 1rem;
  line-height: 1.7;
}
.case-study-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media(max-width: 768px) {
  .case-study-grid { grid-template-columns: 1fr; }
  .case-study-hero { height: 250px; }
  .case-study-content { padding: 24px; }
}
.tech-stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.tech-tag {
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 500;
}
/* ========== TECH STACK SHOWCASE ========== */
.tech-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.tech-category {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.tech-category h3 {
  font-size: 1.2rem;
  color: var(--dark-text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}
.tech-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tech-category li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--gray-text);
  font-weight: 500;
}
.tech-category li i {
  color: var(--primary);
  width: 20px;
}

/* ==========================================================================
   ADVANCED ANIMATION & INTERACTION SYSTEM (STRIPE / VERCEL LEVEL)
   ========================================================================== */

/* ---------- 1. KEYFRAME DEFINITIONS ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(35px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

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

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(37, 99, 235, 0);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes shimmerSweep {
  0% {
    transform: translateX(-100%) rotate(25deg);
  }
  100% {
    transform: translateX(200%) rotate(25deg);
  }
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.5;
  }
}

/* ---------- 2. ANIMATED GRADIENT HEADINGS ---------- */
.section-title span,
h1 span,
.hero h1 span,
.case-study-title span {
  background: linear-gradient(135deg, #2563eb, #6366f1, #3b82f6, #1d4ed8);
  background-size: 250% 250%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
  display: inline-block;
}

/* ---------- 3. SCROLL REVEAL CLASSES ---------- */
.reveal {
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
  transform: translateY(35px);
}

.reveal-zoom {
  transform: scale(0.92);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal.active {
  opacity: 1;
  transform: translate(0, 0) scale(1) rotate(0deg);
}

/* Stagger Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* Directional reveal extras */
.reveal-down {
  transform: translateY(-35px);
}

.reveal-flip {
  transform: perspective(600px) rotateX(25deg) translateY(30px);
}

/* ---------- 4. SCROLL PROGRESS BAR ---------- */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #2563eb, #14b8a6, #3b82f6);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.7), 0 0 5px rgba(20, 184, 166, 0.5);
  z-index: 1001;
  transition: width 0.1s ease-out;
}

/* ---------- 5. CURSOR SPOTLIGHT GLOW ---------- */
.cursor-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 450px;
  height: 450px;
  margin-top: -225px;
  margin-left: -225px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(20, 184, 166, 0.04) 45%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.15s ease-out;
  mix-blend-mode: multiply;
}

body:hover .cursor-spotlight {
  opacity: 1;
}

/* ---------- 6. AMBIENT FLOATING ORBS ---------- */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
}

.orb-primary {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.4), transparent 70%);
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.orb-accent {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.4), transparent 70%);
  animation: floatOrb 16s ease-in-out infinite reverse alternate;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -40px) scale(1.1);
  }
  100% {
    transform: translate(-20px, 30px) scale(0.95);
  }
}

/* ---------- 7. BUTTON RIPPLE EFFECT ---------- */
.btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease !important;
}

.btn-primary {
  animation: pulseGlow 4s infinite;
}

.btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: translateX(-100%) rotate(25deg);
  pointer-events: none;
}

.btn:hover::after {
  animation: shimmerSweep 0.8s ease-in-out;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: rippleWave 0.6s linear;
  pointer-events: none;
}

@keyframes rippleWave {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ---------- 8. 3D CARD TILT & GLASS SHIMMER ---------- */
.service-card,
.case-study,
.pricing-card,
.tech-category,
.testimonial-card,
.stat-card,
.portfolio-card,
.tilt-card {
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s ease, border-color 0.35s ease !important;
  will-change: transform;
}

.service-card:hover,
.case-study:hover,
.pricing-card:hover,
.tech-category:hover,
.portfolio-card:hover,
.tilt-card:hover {
  box-shadow: 0 24px 48px rgba(37, 99, 235, 0.15), 0 0 1px rgba(37, 99, 235, 0.3) !important;
  border-color: rgba(37, 99, 235, 0.35) !important;
}

/* Icon Wobble & Float on Card Hover */
.service-card:hover .service-icon,
.tech-category:hover i,
.stat-card:hover i {
  transform: scale(1.15) rotate(5deg);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-icon,
.tech-category i,
.stat-card i {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- 9. HERO IMAGE GLOW & FLOAT ---------- */
.hero-image img,
.page-hero-image img {
  animation: floatSlow 6s ease-in-out infinite;
  box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.25);
  border-radius: 16px;
  transition: transform 0.5s ease;
}

.hero-image img:hover {
  transform: scale(1.03) rotate(0.5deg);
}

/* ---------- 10. NAVBAR LINK HOVER ANIMATION ---------- */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ---------- 11. CRO & DIGITAL MARKETING CONVERSION WIDGETS ---------- */
.cro-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2400;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cro-sticky-bar.visible {
  transform: translateY(0);
}

.cro-sticky-content {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.95rem;
}

.cro-sticky-content strong {
  color: #38bdf8;
}

@media (max-width: 768px) {
  .cro-sticky-bar {
    padding: 10px 14px;
  }
  .cro-sticky-content p {
    font-size: 0.825rem;
  }
}

/* ==========================================================================
   ENHANCED MOBILE RESPONSIVENESS & TOUCH OPTIMIZATIONS (320px - 768px)
   ========================================================================== */

/* Prevent horizontal overflow on all viewports */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Fluid Responsive Typography & Scaling */
@media (max-width: 768px) {
  /* Prevent iOS input auto-zoom by forcing minimum 16px font-size */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Header & Logo Mobile Adjustments */
  .logo-img {
    max-height: 42px !important;
    width: auto !important;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: #ffffff;
    flex-direction: column;
    padding: 30px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border-color);
    display: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    z-index: 3500;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    font-size: 1.1rem;
    padding: 8px 0;
    display: block;
    width: 100%;
  }

  /* Section Padding & Typography */
  section:not(.hero):not(.page-hero) {
    padding: 60px 0 !important;
  }

  .hero,
  .page-hero {
    padding: 130px 0 60px !important;
  }

  .hero-content h1,
  .page-hero h1 {
    font-size: 2.1rem !important;
    line-height: 1.25 !important;
  }

  .section-title {
    font-size: 1.85rem !important;
    line-height: 1.3 !important;
  }

  .section-sub, .hero-sub {
    font-size: 1rem !important;
  }

  /* Form Grid Fields Collapse on Mobile */
  .form-group-row,
  .contact-grid,
  .hero-grid,
  .calculator-grid,
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns: 1.2fr 1fr"],
  div[style*="grid-template-columns: 1.45fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Services & Case Studies Grids */
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Floating Widgets & Toasts on Mobile */
  .toast-container {
    right: 16px !important;
    left: 16px !important;
    bottom: 80px !important;
    width: auto !important;
  }

  .toast {
    padding: 12px 18px !important;
    font-size: 0.9rem !important;
  }

  .whatsapp-float {
    bottom: 20px !important;
    left: 20px !important;
    width: 48px !important;
    height: 48px !important;
    font-size: 1.6rem !important;
  }

  .back-top {
    bottom: 20px !important;
    right: 20px !important;
    width: 46px !important;
    height: 46px !important;
    font-size: 1.1rem !important;
  }

  /* Footer Adjustments */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }

  .footer-newsletter form {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .footer-newsletter form input,
  .footer-newsletter form button {
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .hero,
  .page-hero {
    padding: 120px 0 40px !important;
  }

  .hero-content h1,
  .page-hero h1 {
    font-size: 1.8rem !important;
  }

  .section-title {
    font-size: 1.6rem !important;
  }

  .btn-lg {
    padding: 14px 22px !important;
    font-size: 0.95rem !important;
    width: 100% !important;
    justify-content: center !important;
  }

  .modal-card {
    padding: 28px 20px !important;
  }
}


