/* ==========================================================================
   DIGITECHZO CORPORATE WEBSITE - GLOBAL STYLESHEET
   Design System: Bootstrap 5.3 + Custom CSS Tokens & Micro-Animations
   Color Scheme: Growth Green (#57B71B), Dark Charcoal (#1a1d20), Clean White (#ffffff)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Google Fonts & CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand Colors */
  --primary-green: #57B71B;
  --primary-green-hover: #469815;
  --primary-green-light: rgba(87, 183, 27, 0.1);
  --primary-green-glow: rgba(87, 183, 27, 0.3);
  
  /* Dark Theme Palette */
  --dark-bg: #16181b;
  --dark-surface: #202428;
  --dark-border: #2d3238;
  
  /* Neutral Palette */
  --text-dark: #1e242b;
  --text-body: #4a5568;
  --text-muted: #718096;
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 50px;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.12);
  --shadow-accent: 0 8px 20px rgba(87, 183, 27, 0.25);

  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Core Reset & Global Typography
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

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

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

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

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

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

/* --------------------------------------------------------------------------
   3. Utility Classes & Text Accents
   -------------------------------------------------------------------------- */
.text-accent {
  color: var(--primary-green) !important;
}

.bg-accent {
  background-color: var(--primary-green) !important;
}

.bg-accent-light {
  background-color: var(--primary-green-light) !important;
}

.section-padding {
  padding: 80px 0;
}

.hero-section {
  background: #f7fbf5 url('../images/hero-bg.png') no-repeat center bottom;
  background-size: cover;
  padding: 90px 0 110px 0;
  position: relative;
}

@media (max-width: 991px) {
  .hero-section {
    background-size: cover;
    padding: 60px 0 80px 0;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 50px 0;
  }
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2.5rem auto;
}

/* Width Utilities & Growth Form Bar Container */
.max-w-700 { max-width: 700px; }
.max-w-800 { max-width: 800px; }
.max-w-850 { max-width: 850px; }
.max-w-900 { max-width: 900px; }

.growth-form-bar {
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  padding: 6px 6px 6px 18px;
  transition: var(--transition-normal);
}

.growth-form-bar .form-select-custom {
  border: none;
  background-color: transparent;
  box-shadow: none;
  font-size: 0.95rem;
  color: var(--text-body);
  padding: 0.75rem 0.5rem;
}

.growth-form-bar .form-select-custom:focus {
  background-color: transparent;
  border: none;
  box-shadow: none;
}

.growth-form-bar .btn-accent {
  border-radius: 10px;
  padding: 0.85rem 1.85rem;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
}

@media (max-width: 768px) {
  .growth-form-bar {
    padding: 10px;
    border-radius: 14px;
  }
}

/* --------------------------------------------------------------------------
   4. Buttons & Interactive Elements
   -------------------------------------------------------------------------- */
.btn-accent {
  background-color: var(--primary-green);
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-accent);
  transition: var(--transition-normal);
}

.btn-accent:hover, .btn-accent:focus {
  background-color: var(--primary-green-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(87, 183, 27, 0.35);
}

.btn-outline-accent {
  background-color: transparent;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-pill);
  transition: var(--transition-normal);
}

.btn-outline-accent:hover {
  background-color: var(--primary-green);
  color: #ffffff;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   5. Card Components & Glassmorphism
   -------------------------------------------------------------------------- */
.custom-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 2rem;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.custom-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-green-light);
}

.custom-card-accent-top {
  border-top: 4px solid var(--primary-green);
}

/* --------------------------------------------------------------------------
   6. Navigation Bar & Glassmorphism Header
   -------------------------------------------------------------------------- */
.top-header-bar {
  background-color: var(--primary-green);
  padding: 6px 0;
}

.social-icon-top {
  width: 28px;
  height: 28px;
  background-color: #ffffff;
  color: var(--primary-green);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: var(--transition-fast);
}

.social-icon-top:hover {
  transform: translateY(-2px);
  background-color: #ffffff;
  color: var(--primary-green-hover);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.brand-divider {
  width: 1.5px;
  height: 24px;
  background-color: #cbd5e1;
  margin: 0 12px;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cursor-blink {
  animation: cursorBlink 0.8s infinite;
  display: inline-block;
  margin-left: 2px;
}

.brand-tag-wrapper {
  min-width: 195px;
  width: 195px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
}

.navbar-custom {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 0.35rem 0;
  transition: var(--transition-normal);
}

.navbar-custom .nav-link {
  font-weight: 700;
  color: var(--text-dark);
  padding: 0.35rem 0.95rem !important;
  font-size: 0.92rem;
  transition: var(--transition-fast);
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--primary-green) !important;
}

/* --------------------------------------------------------------------------
   7. Form Controls & Custom Input Styling
   -------------------------------------------------------------------------- */
.form-control-custom, .form-select-custom {
  background-color: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.15rem;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition-fast);
}

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

/* --------------------------------------------------------------------------
   8. Keyframe Animations & Micro-Interactions
   -------------------------------------------------------------------------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(87, 183, 27, 0.4); }
  50% { box-shadow: 0 0 0 14px rgba(87, 183, 27, 0); }
}

.pulse-glow {
  animation: pulseGlow 2.5s infinite;
}

/* Ticker Animation for Services Banner */
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-container {
  overflow: hidden;
  white-space: nowrap;
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 0;
}

.ticker-track {
  display: inline-flex;
  animation: ticker 30s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   9. Floating Action Buttons (WhatsApp / Telegram)
   -------------------------------------------------------------------------- */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1050;
}

.fab-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.4rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.fab-whatsapp {
  background-color: #25d366;
}

.fab-telegram {
  background-color: #0088cc;
}

.fab-btn:hover {
  transform: scale(1.1);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   10. Scrollbar Customization
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-green);
}

/* --------------------------------------------------------------------------
   11. FAQ Accordion Custom Styling
   -------------------------------------------------------------------------- */
.custom-faq-accordion .accordion-item {
  background-color: var(--light-bg);
  border: none;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
}

.custom-faq-accordion .accordion-button {
  background-color: #f1f3f5;
  color: var(--text-dark);
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: none;
  border: none;
}

.custom-faq-accordion .accordion-button:not(.collapsed) {
  background-color: var(--primary-green);
  color: #ffffff;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: none;
}

/* Customizing the accordion arrow color */
.custom-faq-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231e242b'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.custom-faq-accordion .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.custom-faq-accordion .accordion-body {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: none;
  border-bottom-left-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
}

.faq-quote {
  border-left: 4px solid var(--primary-green);
  color: var(--text-muted);
  font-style: italic;
  padding-left: 1rem;
}

/* --------------------------------------------------------------------------
   Platform Partners & Client Reel Cards
   -------------------------------------------------------------------------- */
.partner-badge-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 18px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  transition: var(--transition-normal);
}

.partner-badge-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  border-color: #cbd5e1;
}

.partner-logo-img {
  width: auto;
  max-width: 88%;
  object-fit: contain;
}

/* Client Stories Vertical Reel Cards (9:16 Aspect Ratio) */
.client-reel-card {
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: var(--transition-normal);
  background-color: #000000;
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.client-reel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
}

.client-reel-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Testimonial Card Slider Transitions & Keyframe Animations */
.testimonial-card {
  opacity: 0;
  transform: translateX(25px) scale(0.97);
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.testimonial-card.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  animation: testimonialSlideIn 0.55s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes testimonialSlideIn {
  0% {
    opacity: 0;
    transform: translateX(35px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.testimonial-card.active .fa-quote-left {
  animation: quotePulse 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.15s both;
}

@keyframes quotePulse {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Testimonial Navigation Arrow Button Green Hover State */
.testimonial-nav-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #cbd5e1;
  color: #475569;
  background-color: #ffffff;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.testimonial-nav-btn:hover,
.testimonial-nav-btn:focus {
  background-color: var(--primary-green) !important;
  border-color: var(--primary-green) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(101, 179, 46, 0.35);
}

/* --------------------------------------------------------------------------
   Staircase Strategy Process Layout
   -------------------------------------------------------------------------- */
.staircase-wrapper {
  position: relative;
  padding-bottom: 4rem;
}

.staircase-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-green);
  line-height: 1;
  margin-bottom: 0.6rem;
  letter-spacing: -0.5px;
}

.staircase-icon-box {
  width: 68px;
  height: 68px;
  background-color: var(--primary-green);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 8px 20px rgba(101, 179, 46, 0.3);
}

.staircase-card {
  background: transparent;
  border: none;
}

.step-green-bar {
  height: 6px;
  background-color: var(--primary-green);
  border-radius: 3px;
  width: 100%;
}

/* Stepped Elevation & Dotted Connector Lines for Desktop (>= 768px) */
@media (min-width: 768px) {
  .step-1-col {
    margin-top: 240px;
  }

  .step-2-col {
    margin-top: 120px;
  }

  .step-3-col {
    margin-top: 0px;
  }
}

/* --------------------------------------------------------------------------
   Featured Case Studies Looping Carousel Styling (Matching Reference Image)
   -------------------------------------------------------------------------- */
.case-studies-track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.case-study-slide {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (min-width: 768px) {
  .case-study-slide {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

.case-study-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
}

.case-study-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08) !important;
}

.case-study-logo-img {
  max-height: 38px;
  max-width: 80px;
  object-fit: contain;
  border-radius: 4px;
}

.case-study-nav-btn {
  background: transparent;
  border: none;
  color: var(--primary-green);
  font-size: 1.1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.case-study-nav-btn:hover {
  background-color: var(--primary-green);
  color: #ffffff;
  transform: scale(1.1);
}

.case-study-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #65b32e;
  opacity: 0.85;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.case-study-dot.active {
  background-color: #334155;
  width: 12px;
  height: 12px;
  opacity: 1;
}

.case-study-dot:hover {
  transform: scale(1.2);
}

@keyframes caseStudySlideIn {
  from {
    opacity: 0.2;
    transform: translateX(35px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* --------------------------------------------------------------------------
   Key Metrics (Stats Bar) Styling (Matching Reference Image)
   -------------------------------------------------------------------------- */
.stats-icon-badge {
  width: 62px;
  height: 62px;
  background-color: var(--primary-green);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 16px rgba(101, 179, 46, 0.25);
}

@media (min-width: 992px) {
  .stats-divider {
    border-right: 1px solid #e2e8f0;
  }
}
