/* ==========================================================================
   ZidTech 3.0 -- Premium Visual Redesign Layer
   Loaded AFTER main.css to override and enhance styles.
   Version: 1.0.0
   ========================================================================== */

/* --------------------------------------------------------------------------
   TABLE OF CONTENTS
   --------------------------------------------------------------------------
   0.  CSS Custom Properties (extended)
   1.  Keyframe Animations
   2.  Global Enhancements
   3.  Utility Classes
   4.  Hero Section Upgrade
   5.  About Section Upgrade
   6.  Services / ZidTech Features Section
   7.  Feature Cards Section
   8.  Process / How We Work Section
   9.  CTA Banner Section (new)
   10. Testimonials Section
   11. Footer Upgrade
   12. Responsive Refinements
   -------------------------------------------------------------------------- */

/* ==========================================================================
   0. EXTENDED CSS CUSTOM PROPERTIES
   ========================================================================== */
:root {
  --accent-color: #0d83fd;
  --accent-light: #4da6fe;
  --accent-dark: #0966cc;
  --accent-glow: rgba(13, 131, 253, 0.35);
  --teal: #06d6a0;
  --gradient-primary: linear-gradient(135deg, #0d83fd 0%, #06d6a0 100%);
  --gradient-accent: linear-gradient(135deg, #0d83fd 0%, #6c63ff 100%);
  --gradient-warm: linear-gradient(135deg, #0d83fd 0%, #00c6fb 50%, #06d6a0 100%);
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.35);
  --glass-shadow: 0 8px 32px rgba(13, 131, 253, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 20px rgba(13, 131, 253, 0.25);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   1. KEYFRAME ANIMATIONS
   ========================================================================== */

/* Gentle floating motion for decorative elements */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Icon pulse glow */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(13, 131, 253, 0.4);
  }
  50% {
    box-shadow: 0 0 18px 6px rgba(13, 131, 253, 0.15);
  }
}

/* Animated gradient background shift */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Slide in from left */
@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade up */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Shimmer for skeleton / loading states */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Orbit for decorative floating elements */
@keyframes orbit {
  0% { transform: rotate(0deg) translateX(30px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(30px) rotate(-360deg); }
}

/* Underline slide for accent text */
@keyframes underline-grow {
  from { width: 0; }
  to { width: 100%; }
}

/* ==========================================================================
   2. GLOBAL ENHANCEMENTS
   ========================================================================== */

/* Selection color */
::selection {
  background: rgba(13, 131, 253, 0.2);
  color: var(--heading-color);
}

::-moz-selection {
  background: rgba(13, 131, 253, 0.2);
  color: var(--heading-color);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-color), var(--accent-dark));
  border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dark);
}

/* Firefox scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) #f1f5f9;
}

/* All images: subtle rounded corners */
img {
  border-radius: var(--radius-sm);
}

/* Section title h2: gradient underline */
.section-title h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 100px;
  margin: 12px auto 0;
}

/* Focus visible outlines for accessibility */
:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   3. UTILITY CLASSES
   ========================================================================== */

/* Glass-morphism card */
.glass-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}

/* Gradient text */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glow hover effect */
.glow-hover {
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

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

/* Animated gradient border */
.gradient-border {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.gradient-border::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: var(--gradient-primary);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ==========================================================================
   4. HERO SECTION UPGRADE
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
}

/* Animated gradient background with floating orbs */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    #f0f7ff 0%,
    #e8f4fd 25%,
    #f0f0ff 50%,
    #e8f8f5 75%,
    #f0f7ff 100%
  );
  background-size: 400% 400%;
  animation: gradient-shift 12s ease infinite;
  z-index: 0;
}

/* Floating orb -- left */
.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(13, 131, 253, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  top: -80px;
  left: -120px;
  filter: blur(40px);
  animation: float 8s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

/* Second floating orb via a wrapper pseudo-element -- placed on hero-content parent */
.hero .container {
  position: relative;
  z-index: 1;
}

.hero .container::before {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(6, 214, 160, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -60px;
  right: -80px;
  filter: blur(50px);
  animation: float 10s ease-in-out infinite reverse;
  pointer-events: none;
  z-index: -1;
}

/* Gradient text on accent-text in hero heading */
.hero .hero-content h1 .accent-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

/* Animated underline on accent text */
.hero .hero-content h1 .accent-text::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--gradient-accent);
  border-radius: 100px;
  animation: underline-grow 1s ease-out 0.5s both;
}

/* Glowing CTA buttons */
.hero .btn-primary {
  background: var(--gradient-primary);
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(13, 131, 253, 0.3);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hero .btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(13, 131, 253, 0.45);
}

.hero .btn-link {
  transition: transform var(--transition-base);
}

.hero .btn-link:hover {
  transform: translateX(4px);
}

/* Stats row: light elevated cards */
.hero .stats-row {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(13, 131, 253, 0.06);
}

.hero .stat-item {
  background: transparent;
  border-radius: var(--radius-lg);
  transition: background var(--transition-base), transform var(--transition-base);
}

.hero .stat-item:hover {
  background: rgba(13, 131, 253, 0.04);
  transform: translateY(-2px);
}

/* Stat icons: light blue bg with visible icon */
.hero .stat-item .stat-icon {
  background: rgba(13, 131, 253, 0.08) !important;
  border-radius: 16px;
  animation: pulse-glow 3s ease-in-out infinite;
}

.hero .stat-item .stat-icon i {
  color: var(--accent-color) !important;
  font-size: 1.4rem;
}

/* Stat text: clear readable gray */
.hero .stat-item .stat-content h4 {
  color: #1a1f2e;
  font-weight: 700;
}

.hero .stat-item .stat-content p {
  color: #6b7280;
}

/* ==========================================================================
   5. ABOUT SECTION UPGRADE
   ========================================================================== */

/* Images with rounded corners and hover lift */
.about .image-wrapper .small-image,
.about .image-wrapper img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.about .image-wrapper img:hover,
.about .image-wrapper .small-image:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Experience badge with gradient + glass border */
.about .image-wrapper .experience-badge {
  background: var(--gradient-primary);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(13, 131, 253, 0.25);
}

.about .image-wrapper .experience-badge h3,
.about .image-wrapper .experience-badge p {
  color: #fff;
}

/* Feature list items: left border accent that slides in on hover */
.about .feature-list li {
  position: relative;
  padding-left: 28px;
  transition: padding-left var(--transition-base), background var(--transition-base);
  border-radius: var(--radius-sm);
}

.about .feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  transition: width var(--transition-base);
}

.about .feature-list li:hover::before {
  width: 4px;
}

.about .feature-list li:hover {
  padding-left: 34px;
  background: rgba(13, 131, 253, 0.04);
}

/* About buttons */
.about .btn-primary,
.about .cta-btn {
  background: var(--gradient-primary);
  border: none;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(13, 131, 253, 0.25);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.about .btn-primary:hover,
.about .cta-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 25px rgba(13, 131, 253, 0.4);
}

.about .btn-outline-primary,
.about .btn-outline {
  border: 2px solid var(--accent-color);
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  transition: color var(--transition-base), border-color var(--transition-base);
}

.about .btn-outline-primary::before,
.about .btn-outline::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: -1;
}

.about .btn-outline-primary:hover,
.about .btn-outline:hover {
  color: #fff;
  border-color: transparent;
}

.about .btn-outline-primary:hover::before,
.about .btn-outline:hover::before {
  opacity: 1;
}

/* ==========================================================================
   6. SERVICES / ZIDTECH FEATURES SECTION
   ========================================================================== */

/* Tab content area: subtle card background */
.zidtech-features .tab-content {
  background: rgba(243, 249, 255, 0.6);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid rgba(13, 131, 253, 0.06);
}

/* Feature illustrations: smoother floating */
.zidtech-features img {
  animation: float 6s ease-in-out infinite;
  transition: transform var(--transition-slow);
}

.zidtech-features img:hover {
  animation-play-state: paused;
  transform: scale(1.02);
}

/* Active tab indicator with animated underline */
.zidtech-features .nav-link {
  position: relative;
  overflow: hidden;
}

.zidtech-features .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 100px;
  transition: width var(--transition-base), left var(--transition-base);
}

.zidtech-features .nav-link.active::after {
  width: 60%;
  left: 20%;
}

.zidtech-features .nav-link:hover::after {
  width: 40%;
  left: 30%;
}

/* ==========================================================================
   7. FEATURE CARDS SECTION
   ========================================================================== */

.features-cards .feature-box {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

/* Colored gradient top border */
.features-cards .feature-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.features-cards .feature-box.orange::before {
  background: linear-gradient(90deg, #ff9a44, #fc6076);
}

.features-cards .feature-box.blue::before {
  background: linear-gradient(90deg, #0d83fd, #6c63ff);
}

.features-cards .feature-box.green::before {
  background: linear-gradient(90deg, #06d6a0, #0dcaf0);
}

.features-cards .feature-box.red::before {
  background: linear-gradient(90deg, #fc6076, #ff5252);
}

/* Icon with circular gradient background */
.features-cards .feature-box i {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(13, 131, 253, 0.1), rgba(13, 131, 253, 0.05));
  transition: transform var(--transition-base), background var(--transition-base);
}

.features-cards .feature-box.orange i {
  background: linear-gradient(135deg, rgba(255, 154, 68, 0.12), rgba(252, 96, 118, 0.06));
}

.features-cards .feature-box.blue i {
  background: linear-gradient(135deg, rgba(13, 131, 253, 0.12), rgba(108, 99, 255, 0.06));
}

.features-cards .feature-box.green i {
  background: linear-gradient(135deg, rgba(6, 214, 160, 0.12), rgba(13, 202, 240, 0.06));
}

.features-cards .feature-box.red i {
  background: linear-gradient(135deg, rgba(252, 96, 118, 0.12), rgba(255, 82, 82, 0.06));
}

/* Hover: card lifts, icon scales */
.features-cards .feature-box:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.features-cards .feature-box:hover i {
  transform: scale(1.15);
}

/* ==========================================================================
   8. PROCESS / HOW WE WORK SECTION
   ========================================================================== */

/* Container: connected timeline */
.process-section .row {
  position: relative;
}

/* Horizontal dotted line connecting steps */
.process-section .row::before {
  content: "";
  position: absolute;
  top: 65px;
  left: 15%;
  right: 15%;
  height: 2px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--accent-color) 0,
    var(--accent-color) 8px,
    transparent 8px,
    transparent 16px
  );
  opacity: 0.3;
  z-index: 0;
}

/* Step cards */
.process-step {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  border-left: 4px solid transparent;
  transition: transform var(--transition-base), box-shadow var(--transition-base),
    border-color var(--transition-base);
}

/* Step numbers with gradient fill */
.process-step .step-number {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

/* Hover: card lifts, left border glows */
.process-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--accent-color);
}

.process-step:hover .step-number {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ==========================================================================
   9. CTA BANNER SECTION (NEW)
   ========================================================================== */

.cta-banner {
  position: relative;
  background: linear-gradient(135deg, #0d83fd 0%, #06d6a0 100%);
  padding: 80px 0;
  overflow: hidden;
}

/* Floating decorative circles */
.cta-banner::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  top: -80px;
  right: -60px;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

.cta-banner::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  bottom: -40px;
  left: -30px;
  pointer-events: none;
  animation: float 10s ease-in-out infinite reverse;
}

/* Dot pattern overlay */
.cta-banner .container {
  position: relative;
  z-index: 1;
}

.cta-banner .container::before {
  content: "";
  position: absolute;
  inset: -40px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: -1;
}

/* Heading */
.cta-banner h2 {
  color: #ffffff;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  margin-bottom: 28px;
}

/* CTA button: white with blue text */
.cta-banner .btn {
  background: #ffffff;
  color: var(--accent-color);
  border: 2px solid #ffffff;
  border-radius: 50px;
  padding: 14px 36px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: background var(--transition-base), color var(--transition-base),
    box-shadow var(--transition-base), transform var(--transition-base);
}

.cta-banner .btn:hover {
  background: transparent;
  color: #ffffff;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.25);
  transform: scale(1.04);
}

/* CTA Primary Button */
.cta-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 14px 32px;
  background: #ffffff;
  color: #0966cc;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.cta-btn-primary:hover {
  background: #f0f6ff;
  color: #0d83fd;
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
}

/* CTA Secondary Button */
.cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 14px 32px;
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-btn-secondary:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* ==========================================================================
   10. TESTIMONIALS SECTION
   ========================================================================== */

/* Review cards with glass-morphism */
.testimonials .testimonial-item {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.testimonials .testimonial-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Quotation mark decorative element */
.testimonials .testimonial-item::before {
  content: "\201C";
  position: absolute;
  top: 12px;
  left: 20px;
  font-size: 5rem;
  line-height: 1;
  font-family: Georgia, serif;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.15;
  pointer-events: none;
}

/* Star ratings with gold gradient */
.testimonials .testimonial-item .stars i {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 16px;
}

/* Avatar with colored border ring */
.testimonials .testimonial-item .testimonial-img {
  border: 3px solid transparent;
  background-image: linear-gradient(#fff, #fff), var(--gradient-primary);
  background-origin: border-box;
  background-clip: content-box, border-box;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(13, 131, 253, 0.15);
}

/* ==========================================================================
   11. FOOTER UPGRADE
   ========================================================================== */

/* Decorative gradient top border */
.footer::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--gradient-warm);
}

/* Subtle dark gradient background */
.footer {
  background: linear-gradient(180deg, #1a1f2e 0%, #141824 100%);
  color: rgba(255, 255, 255, 0.55);
}

.footer h4 {
  color: rgba(255, 255, 255, 0.9);
}

.footer .footer-about p,
.footer .footer-contact p {
  color: rgba(255, 255, 255, 0.5);
}

.footer .footer-links ul a {
  color: rgba(255, 255, 255, 0.45);
}

.footer .footer-links ul a:hover {
  color: var(--accent-light);
}

.footer .social-links a {
  color: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.15);
}

.footer .copyright p {
  color: rgba(255, 255, 255, 0.35);
  border-top-color: rgba(255, 255, 255, 0.08);
}

.footer .copyright {
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* Social icons: filled hover state with gradient */
.footer .social-links a {
  border-radius: 50%;
  transition: background var(--transition-base), color var(--transition-base),
    transform var(--transition-base), box-shadow var(--transition-base);
}

.footer .social-links a:hover {
  background: var(--gradient-primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(13, 131, 253, 0.3);
}

/* Footer links: arrow slides in on hover */
.footer .footer-links ul a {
  position: relative;
  padding-left: 0;
  transition: padding-left var(--transition-base), color var(--transition-base);
}

.footer .footer-links ul a::before {
  content: "\F285"; /* Bootstrap Icons chevron-right */
  font-family: "bootstrap-icons";
  position: absolute;
  left: -14px;
  opacity: 0;
  font-size: 10px;
  transition: opacity var(--transition-base), left var(--transition-base);
}

.footer .footer-links ul a:hover {
  padding-left: 16px;
}

.footer .footer-links ul a:hover::before {
  opacity: 1;
  left: 0;
}

/* Newsletter input styling (for future use) */
.footer .newsletter-form {
  display: flex;
  gap: 8px;
}

.footer .newsletter-form input[type="email"] {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 12px 20px;
  color: #fff;
  font-size: 0.9rem;
  transition: border-color var(--transition-base), background var(--transition-base);
}

.footer .newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.footer .newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.12);
}

.footer .newsletter-form button {
  background: var(--gradient-primary);
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.footer .newsletter-form button:hover {
  box-shadow: 0 4px 16px rgba(13, 131, 253, 0.4);
  transform: scale(1.04);
}

/* ==========================================================================
   12. RESPONSIVE REFINEMENTS
   ========================================================================== */

/* ---- Mobile: up to 767px ---- */
@media (max-width: 767.98px) {

  /* Reduce padding across sections */
  section {
    padding: 40px 0;
  }

  /* Make cards full-width */
  .features-cards .feature-box,
  .testimonials .testimonial-item,
  .process-step {
    margin-bottom: 20px;
  }

  /* Hero adjustments */
  .hero::after {
    width: 200px;
    height: 200px;
  }

  .hero .container::before {
    width: 180px;
    height: 180px;
  }

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

  .hero .stat-item {
    margin-bottom: 12px;
  }

  /* Process timeline: hide horizontal line on mobile */
  .process-section .row::before {
    display: none;
  }

  /* CTA banner */
  .cta-banner {
    padding: 50px 0;
    text-align: center;
  }

  .cta-banner h2 {
    font-size: 1.6rem;
  }

  /* Footer */
  .footer .footer-links {
    margin-bottom: 24px;
  }

  .footer .newsletter-form {
    flex-direction: column;
  }
}

/* ---- Tablet: 768px to 991px ---- */
@media (min-width: 768px) and (max-width: 991.98px) {

  /* 2-column grid for process steps */
  .process-section .row > [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
  }

  /* Process timeline becomes shorter */
  .process-section .row::before {
    left: 25%;
    right: 25%;
  }

  /* Reduce orb sizes slightly */
  .hero::after {
    width: 280px;
    height: 280px;
  }
}

/* ---- Large screens: 1200px+ ---- */
@media (min-width: 1200px) {

  .cta-banner h2 {
    font-size: 2.8rem;
  }

  .cta-banner {
    padding: 100px 0;
  }
}

/* ---- Glass-morphism graceful degradation ---- */
@supports not ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {

  .glass-card,
  .hero .stat-item,
  .features-cards .feature-box,
  .testimonials .testimonial-item {
    background: rgba(255, 255, 255, 0.92);
  }
}

/* ==========================================================================
   13. SVG / IMAGE FIT FIXES — zero whitespace, fill the block
   ========================================================================== */

/* All SVG images: fill their parent width, no padding */
img[src$=".svg"] {
  width: 100%;
  height: auto;
  display: block;
  object-fit: fill;
}

/* Service detail page images — fill the image block exactly */
#services .tab-pane img[src$=".svg"],
.service-content img[src$=".svg"],
.tab-pane img[src$=".svg"] {
  width: 100%;
  height: auto;
  display: block;
  object-fit: fill;
  border-radius: var(--radius-md);
  padding: 0;
  margin: 0;
}

/* Homepage features tab — image column fills space */
.zidtech-features .tab-pane .col-lg-6.text-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.zidtech-features .tab-pane .col-lg-6.text-center img {
  width: 100%;
  height: auto;
  object-fit: fill;
  margin: 0;
  padding: 0;
}

/* Hero illustration — fill its column */
.hero .hero-image img[src$=".svg"] {
  width: 100%;
  height: auto;
  object-fit: fill;
}

/* About section SVGs — fill their container */
.about .image-wrapper img[src$=".svg"] {
  width: 100%;
  height: auto;
  object-fit: fill;
}

/* Portfolio project images consistent */
.project-image img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Case study images */
.case-study-section img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   14. SCROLL REVEAL ANIMATIONS
   ========================================================================== */

/* Custom scroll-triggered reveal using AOS overrides for smoother feel */
[data-aos="fade-up"] {
  transform: translateY(40px);
  opacity: 0;
  transition-property: transform, opacity;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
  opacity: 1;
}

[data-aos="zoom-in"] {
  transform: scale(0.92);
  opacity: 0;
  transition-property: transform, opacity;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-aos="zoom-in"].aos-animate {
  transform: scale(1);
  opacity: 1;
}

[data-aos="fade-right"] {
  transform: translateX(-40px);
  opacity: 0;
  transition-property: transform, opacity;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-aos="fade-right"].aos-animate {
  transform: translateX(0);
  opacity: 1;
}

[data-aos="fade-left"] {
  transform: translateX(40px);
  opacity: 0;
  transition-property: transform, opacity;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-aos="fade-left"].aos-animate {
  transform: translateX(0);
  opacity: 1;
}

/* Stagger children for a cascading reveal effect */
.stagger-children > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.3s; }

/* ==========================================================================
   15. PERFORMANCE OPTIMIZATIONS
   ========================================================================== */

/* GPU-accelerate animated elements */
.hero::before,
.hero::after,
.cta-orb-1,
.cta-orb-2,
.experience-badge,
.customers-badge,
[data-aos] {
  will-change: transform, opacity;
}

/* Contain paint for sections with heavy effects */
.hero,
.cta-banner,
.footer {
  contain: layout style;
}

/* Optimize image rendering */
img {
  image-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

/* Reduce animation complexity on low-end devices */
@media (max-width: 768px) {
  .hero::before,
  .hero::after {
    animation: none;
    opacity: 0.3;
  }

  .cta-orb-1,
  .cta-orb-2 {
    animation: none;
  }
}

/* ---- Reduced motion preference ---- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
