/* ==========================================================================
   Milan Thomas Portfolio & Digital Visiting Card - Styling Stylesheet
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Color Palette - Premium Red & Black Combination */
  --bg-deep: hsl(0, 0%, 3%);
  --bg-dark: hsl(0, 0%, 6%);
  --bg-card: hsla(0, 0%, 11%, 0.7);
  --bg-card-hover: hsla(0, 0%, 15%, 0.85);
  --bg-glass: rgba(10, 10, 10, 0.6);
  
  --border-light: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(239, 68, 68, 0.25); /* Glowing red borders on hover */
  
  --primary: hsl(354, 90%, 50%);       /* Vibrant Crimson Red */
  --primary-glow: hsla(354, 90%, 50%, 0.2);
  --secondary: hsl(15, 95%, 55%);      /* Scarlet Orange-Red */
  --secondary-glow: hsla(15, 95%, 55%, 0.15);
  --accent: hsl(354, 75%, 40%);        /* Dark Crimson */
  
  --text-primary: hsl(0, 0%, 98%);
  --text-secondary: hsl(0, 0%, 82%);
  --text-muted: hsl(0, 0%, 60%);
  
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
  --gradient-secondary: linear-gradient(135deg, var(--accent), var(--primary));
  --gradient-dark: linear-gradient(180deg, hsl(0, 0%, 4%), hsl(0, 0%, 9%));
  --gradient-glow: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  --gradient-glow-sec: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
  
  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1); /* Elegant fluid curve */
  --transition-elastic: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Base Resets & Global Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  /* Dark Red subtle ambient background glows */
  background-image: 
    radial-gradient(at 0% 0%, hsla(354, 90%, 50%, 0.04) 0px, transparent 40%),
    radial-gradient(at 100% 100%, hsla(15, 95%, 55%, 0.03) 0px, transparent 40%);
}

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

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

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

/* --- Top Scroll Progress Bar --- */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  background: var(--gradient-primary);
  z-index: 2001;
  width: 0%;
  box-shadow: 0 1px 10px rgba(225, 29, 72, 0.4);
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 6rem 0;
  position: relative;
}

section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 5%;
  width: 90%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-light), transparent);
}

/* --- Typography Utilities --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

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

.accent-color {
  color: var(--primary);
}

.section-header {
  margin-bottom: 4rem;
  max-width: 700px;
}

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

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  background-color: var(--primary-glow);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}

/* --- Button System --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(225, 29, 72, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(225, 29, 72, 0.55);
}

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

.btn-secondary:hover {
  background-color: rgba(225, 29, 72, 0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 0 0 0 var(--primary-glow);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(225, 29, 72, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
  }
}

/* --- Navigation Header --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all var(--transition-normal);
  background-color: transparent;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 0.85rem 0;
  background-color: rgba(6, 6, 6, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
}

.logo-icon {
  flex-shrink: 0;
}

.logo-text {
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-cta {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.menu-toggle {
  display: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Hero Section & Visiting Card --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero-bg-glows {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
}

.glow-1 {
  width: 400px;
  height: 400px;
  background-color: var(--primary);
  top: 10%;
  left: -100px;
}

.glow-2 {
  width: 450px;
  height: 450px;
  background-color: var(--secondary);
  bottom: 10%;
  right: -100px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 855;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-subheading {
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  min-height: 2.7rem;
}

.typing-wrap {
  display: inline-block;
}

.typed-text {
  color: var(--primary);
  font-weight: 700;
}

.cursor {
  display: inline-block;
  width: 3px;
  background-color: var(--primary);
  margin-left: 4px;
  animation: blink 0.8s infinite;
}

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

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Digital Visiting Card Mockup */
.hero-card-area {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.business-card {
  width: 100%;
  max-width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-normal), transform var(--transition-elastic), box-shadow var(--transition-normal);
  transform-style: preserve-3d;
}

.business-card:hover {
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(225, 29, 72, 0.15);
}

.card-glass-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  transition: transform 0.5s ease;
}

.business-card:hover .card-glass-glow {
  transform: translate(10%, 10%);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.card-profile-pic {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  padding: 3px;
  background: var(--gradient-primary);
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.3);
}

.card-profile-pic img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.card-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.brand-tag {
  font-size: 0.55rem;
  color: var(--text-muted);
}

.card-body {
  position: relative;
  z-index: 1;
}

.card-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.card-title {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.card-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, var(--border-light), transparent);
  margin-bottom: 1.25rem;
}

.card-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-item a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.btn-card-primary {
  flex-grow: 1;
  background: var(--gradient-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.2);
  transition: all var(--transition-fast);
}

.btn-card-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.35);
}

.card-action-circle-group {
  display: flex;
  gap: 0.5rem;
}

.btn-card-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--border-light);
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-card-circle svg {
  width: 18px;
  height: 18px;
  display: block;
}

.btn-card-circle:hover {
  transform: scale(1.1);
  background-color: var(--border-hover);
}

.circle-whatsapp:hover {
  background-color: #25d366;
  border-color: #25d366;
  color: #fff;
}

.circle-phone:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.circle-instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: #e6683c;
  color: #fff;
}

.circle-linkedin:hover {
  background-color: #0077b5;
  border-color: #0077b5;
  color: #fff;
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.about-text-content h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about-text-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: border-color var(--transition-normal);
}

.stat-card:hover {
  border-color: var(--primary-glow);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-suffix {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* About Image and Certifications Slider */
.about-image-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

.about-media-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
}

.profile-glow-ring {
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  z-index: 0;
  opacity: 0.2;
  filter: blur(10px);
  animation: spinGlow 15s linear infinite;
}

@keyframes spinGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.about-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  position: relative;
  z-index: 1;
  border: 2px solid var(--border-light);
}

.certificates-slider-container {
  width: 100%;
  max-width: 380px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.certificates-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 600;
}

.carousel-viewport {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform var(--transition-normal);
}

.carousel-slide {
  min-width: 100%;
  opacity: 0;
  transition: opacity var(--transition-normal);
  display: none;
}

.carousel-slide.active {
  opacity: 1;
  display: block;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
}

.cert-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--primary-glow);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cert-icon svg {
  width: 20px;
  height: 20px;
}

.cert-details h5 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

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

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
}

.carousel-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--border-light);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.carousel-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.carousel-btn svg {
  width: 14px;
  height: 14px;
}

.carousel-dots {
  display: flex;
  gap: 0.4rem;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--border-hover);
  cursor: pointer;
  transition: var(--transition-fast);
}

.dot.active {
  background-color: var(--primary);
  width: 14px;
  border-radius: 10px;
}

/* --- Services Section --- */
.services-columns {
  display: flex;
  gap: 2rem;
  margin-bottom: 4rem;
}

.services-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Apply scroll parallax offset variable strictly on desktop */
@media (min-width: 769px) {
  .services-col-right {
    transform: translateY(var(--col-parallax, 0px));
    will-change: transform;
  }
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(239, 68, 68, 0.15), 0 0 1px var(--primary);
  transform: translateY(-2px);
}

/* Dynamic cursor spotlight glow using --x and --y variables fed from JS */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    600px circle at var(--x, 0px) var(--y, 0px),
    rgba(239, 68, 68, 0.08),
    transparent 40%
  );
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-glow {
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0 !important;
  transition: opacity var(--transition-normal);
  opacity: 0;
}

.service-card:hover .service-glow {
  opacity: 1;
}

.service-icon-container {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background-color: var(--border-light);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  transition: var(--transition-normal);
}

.service-icon-container svg {
  color: var(--primary);
  width: 24px;
  height: 24px;
  transition: transform var(--transition-normal);
}

.service-card:hover .service-icon-container {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.3);
}

.service-card:hover .service-icon-container svg {
  color: #fff;
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-list svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

.services-cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.services-cta-box:hover {
  border-color: var(--primary-glow);
}

.cta-box-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.cta-box-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Custom 3D Reveal animations specifically for the Services Grid cards on scroll */
.services-col .reveal-fade-up {
  opacity: 0;
  transform: perspective(1000px) rotate3d(1, -1, 0, 15deg) translate3d(0, 50px, 0);
  will-change: transform, opacity;
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.services-col .reveal-fade-up.reveal-active {
  opacity: 1;
  transform: perspective(1000px) rotate3d(0, 0, 0, 0deg) translate3d(0, 0, 0);
}

/* Staggered delay for each service card based on index */
.services-col-left .reveal-fade-up:nth-child(1) { transition-delay: 0ms; }
.services-col-right .reveal-fade-up:nth-child(1) { transition-delay: 150ms; }
.services-col-left .reveal-fade-up:nth-child(2) { transition-delay: 300ms; }
.services-col-right .reveal-fade-up:nth-child(2) { transition-delay: 450ms; }

/* --- Sticky Card Stacking Portfolio --- */
.sticky-portfolio-container {
  display: flex;
  flex-direction: column;
  gap: 0; /* Stack on top of each other via position: sticky */
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.sticky-project-card {
  position: sticky;
  /* Top offset: navbar is ~80px. Add var card index offset for visual header layer */
  top: calc(85px + (var(--card-index) * 25px));
  z-index: var(--card-index);
  padding-bottom: 5rem; /* Allow space to scroll the next card over */
}

.project-card-inner {
  background-color: hsl(0, 0%, 5%);
  border: 1px solid var(--border-light);
  border-radius: 28px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.sticky-project-card:hover .project-card-inner {
  border-color: var(--primary);
}

.project-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-info .project-tag {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.project-info h3 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.project-features span {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.project-features svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

/* Browser Mockup Visuals */
.project-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  overflow: hidden;
  height: 320px;
  position: relative;
  border: 1px solid var(--border-light);
}

/* Custom Gradients for Website Visuals */
.mountrade-visual { background: linear-gradient(135deg, #111 0%, #222 100%); }
.renue-visual { background: linear-gradient(135deg, hsl(354, 75%, 15%) 0%, hsl(0, 0%, 5%) 100%); }
.milmith-visual { background: linear-gradient(135deg, hsl(210, 50%, 15%) 0%, hsl(0, 0%, 5%) 100%); }
.aubree-visual { background: linear-gradient(135deg, hsl(35, 75%, 12%) 0%, hsl(0, 0%, 5%) 100%); }
.cashew-visual { background: linear-gradient(135deg, hsl(45, 60%, 12%) 0%, hsl(0, 0%, 5%) 100%); }
.johntee-visual { background: linear-gradient(135deg, hsl(140, 50%, 10%) 0%, hsl(0, 0%, 5%) 100%); }

.browser-mockup {
  width: 90%;
  height: 85%;
  background-color: hsl(0, 0%, 6%);
  border: 1.5px solid var(--border-light);
  border-radius: 12px 12px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  transform: translateY(15px);
}

.browser-header {
  height: 28px;
  background-color: hsl(0, 0%, 8%);
  border-bottom: 1.5px solid var(--border-light);
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  gap: 0.4rem;
}

.b-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.b-dot.red { background-color: var(--primary); }
.b-dot.yellow { background-color: #fbbc05; }
.b-dot.green { background-color: #24b04b; }

.browser-url {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--text-muted);
  background-color: hsl(0, 0%, 11%);
  padding: 0.1rem 2.5rem;
  border-radius: 4px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--border-light);
}

.browser-body {
  flex-grow: 1;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* Internal Mockup Content styling */
.store-hero {
  text-align: center;
  width: 100%;
}

.store-nav {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.store-headline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.store-grid {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.store-item {
  font-size: 0.65rem;
  padding: 0.25rem 0.6rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 4px;
}

/* Specific inner mockups */
.sarees-hero .store-headline { color: #fbbc05; }
.pets-hero .store-headline { color: #ff9800; }
.cashew-hero .store-headline { color: #ffeb3b; }
.johntee-hero .store-headline { color: #4caf50; }

/* Analytics Dashboard Mockup for Milmith */
.ads-dashboard {
  width: 100%;
}

.ads-headline {
  font-size: 0.75rem;
  font-weight: 600;
  color: #24b04b;
  margin-bottom: 0.75rem;
}

.ads-stats-row {
  display: flex;
  gap: 0.75rem;
}

.ads-stat {
  flex-grow: 1;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 0.5rem;
  text-align: center;
}

.ads-stat .val {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
}

.ads-stat .lbl {
  font-size: 0.55rem;
  color: var(--text-muted);
}

/* --- Process Section --- */
.process-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  margin-top: 5rem;
}

.timeline-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: var(--border-light);
  z-index: 0;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%; /* Populated in JS via observer */
  background: var(--gradient-primary);
  transition: height 0.5s ease;
}

.process-step {
  display: flex;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
  justify-content: flex-start;
  width: 100%;
}

.process-step.step-reverse {
  justify-content: flex-end;
}

.step-marker {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-dark);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: 0 0 0 4px var(--bg-deep);
  transition: all var(--transition-normal);
}

.process-step.active .step-marker {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow), 0 0 0 4px var(--bg-deep);
}

.step-content {
  width: 45%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2rem;
  transition: all var(--transition-normal);
}

.process-step:hover .step-content {
  border-color: var(--primary-glow);
  transform: translateY(-2px);
}

.step-content h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* --- Testimonials Section --- */
.testimonials-slider-container {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  position: relative;
}

.testimonials-track {
  position: relative;
  min-height: 280px;
}

.testimonial-slide {
  display: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.testimonial-slide.active {
  display: block;
  opacity: 1;
}

.testimonial-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 3rem;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.testimonial-card:hover {
  border-color: var(--border-hover);
}

.quote-icon {
  color: var(--primary);
  opacity: 0.15;
  position: absolute;
  top: 1.5rem;
  left: 2rem;
}

.quote-icon svg {
  width: 48px;
  height: 48px;
}

.testimonial-text {
  font-size: 1.15rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar-name {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary-glow);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  border: 1px solid var(--primary);
  flex-shrink: 0;
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
}

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

.testimonials-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--border-light);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.testimonial-btn:hover {
  background-color: var(--primary);
  color: #fff;
}

.testimonial-btn svg {
  width: 18px;
  height: 18px;
}

.testimonial-dots {
  display: flex;
  gap: 0.5rem;
}

.tdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border-hover);
  cursor: pointer;
  transition: var(--transition-fast);
}

.tdot.active {
  background-color: var(--primary);
  width: 20px;
  border-radius: 10px;
}

/* --- Star Ratings Styling --- */
.rating-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}

.rating-stars svg.star-filled {
  width: 16px;
  height: 16px;
  fill: #fbbc05;
  color: #fbbc05;
}

/* --- Google Reviews Badge --- */
.google-reviews-badge {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.google-reviews-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.google-reviews-link:hover {
  border-color: var(--primary);
  background-color: var(--bg-card-hover);
  transform: translateY(-2px);
}

.google-g {
  background: linear-gradient(135deg, #4285f4, #ea4335, #fbbc05, #34a853);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  font-size: 1.2rem;
}

.google-reviews-link svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

/* --- FAQ Section --- */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  transition: border-color 0.4s ease, transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.45s ease, box-shadow 0.4s ease;
}

.faq-item:hover {
  border-color: var(--border-hover);
}

/* Spotlight Focus: scale up the active item, add custom shadow and red border */
.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 15px 35px rgba(239, 68, 68, 0.12), 0 0 1px var(--primary);
  transform: scale(1.025);
  z-index: 2;
}

/* Dim all unselected items when there is an active item */
.faq-accordion.has-active .faq-item:not(.active) {
  opacity: 0.5;
  transform: scale(0.985);
}

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

.faq-icon {
  width: 18px;
  height: 18px;
  color: var(--primary);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.4s ease;
}

/* Rotate icon 135 degrees from plus to cross on open */
.faq-item.active .faq-icon {
  transform: rotate(135deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.25, 1, 0.5, 1.15), opacity 0.4s ease;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Consultation Form Section --- */
.consultation-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.consultation-info h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

.consultation-info p {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.info-item {
  display: flex;
  gap: 1rem;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--primary-glow);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon svg {
  width: 20px;
  height: 20px;
}

.info-text h5 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.info-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.alternative-contact {
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
}

.alternative-contact p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.direct-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.direct-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background-color: var(--border-light);
  border: 1px solid var(--border-hover);
}

.direct-link:hover {
  background-color: var(--border-hover);
  border-color: var(--primary);
}

.direct-link.link-whatsapp {
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.2);
  background-color: rgba(37, 211, 102, 0.03);
}

.direct-link.link-whatsapp:hover {
  background-color: rgba(37, 211, 102, 0.1);
  color: #25d366;
}

/* Consultation Form Box */
.consultation-form-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.consultation-form-box:hover {
  border-color: var(--border-hover);
}

.form-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.booking-form {
  position: relative;
  z-index: 1;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.required {
  color: var(--primary);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.booking-form input, .booking-form select {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.booking-form select {
  appearance: none;
  cursor: pointer;
}

.booking-form input:focus, .booking-form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.15);
}

/* Custom styling to simulate select dropdown caret */
.input-wrapper::after {
  content: '';
  position: absolute;
  right: 1.25rem;
  width: 6px;
  height: 6px;
  border-bottom: 2px solid var(--text-muted);
  border-right: 2px solid var(--text-muted);
  transform: rotate(45deg);
  pointer-events: none;
}

.input-wrapper:has(input)::after {
  display: none;
}

/* Form Success State styling */
.form-success-state {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 0;
  position: relative;
  z-index: 1;
}

.success-icon-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(225, 29, 72, 0.1);
  border: 2px solid var(--primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  animation: scaleUp 0.5s var(--transition-elastic);
}

@keyframes scaleUp {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.success-icon-ring svg {
  width: 28px;
  height: 28px;
}

.form-success-state h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.form-success-state p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  max-width: 320px;
}

/* --- Footer --- */
.footer {
  background-color: var(--bg-dark);
  border-top: 1px solid var(--border-light);
  padding: 5rem 0 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-wrap h3 {
  font-size: 1.35rem;
  line-height: 1;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-links h4, .footer-contact h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-contact p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding: 1.5rem 0;
}

.footer-bottom-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-socials a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--border-light);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-socials a:hover {
  background-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.footer-socials a svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* --- Scroll-to-Top Button --- */
.btn-scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
}

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

.btn-scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.6);
}

.btn-scroll-top svg {
  width: 20px;
  height: 20px;
}

/* --- QR Modal Window --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(6, 6, 6, 0.85);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  z-index: 1;
  background-color: var(--bg-dark);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 2.5rem;
  width: 90%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

.modal.show .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--border-light);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background-color: var(--primary);
  color: #fff;
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

.modal-content h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.modal-content p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.qr-code-placeholder {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background-color: #fff;
  padding: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.qr-svg {
  width: 100%;
  height: 100%;
}

.qr-link {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
}

.qr-link a:hover {
  text-decoration: underline;
}

/* --- Premium Floating CTA (WhatsApp & Call) --- */
.floating-cta {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.cta-trigger-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
  padding: 0.8rem 1.4rem;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 10px var(--primary-glow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--transition-normal);
  position: relative;
}

.cta-trigger-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 12px 35px rgba(225, 29, 72, 0.25);
}

.cta-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #25d366;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  animation: ctaPulse 1.8s infinite;
}

@keyframes ctaPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.8);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.cta-trigger-btn svg {
  width: 20px;
  height: 20px;
  color: var(--text-primary);
  transition: transform var(--transition-normal);
}

.cta-trigger-btn .icon-close {
  display: none;
}

.cta-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* CTA Dropdown Menu */
.cta-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.95);
  transform-origin: bottom left;
  transition: all var(--transition-normal);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 0.6rem;
  min-width: 175px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.cta-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.95rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.cta-menu-item svg {
  width: 16px;
  height: 16px;
}

.cta-menu-item.whatsapp {
  color: #25d366;
  background-color: rgba(37, 211, 102, 0.03);
  border: 1px solid rgba(37, 211, 102, 0.1);
}

.cta-menu-item.whatsapp:hover {
  background-color: rgba(37, 211, 102, 0.1);
  transform: translateX(3px);
}

.cta-menu-item.phone {
  color: var(--primary);
  background-color: rgba(225, 29, 72, 0.03);
  border: 1px solid rgba(225, 29, 72, 0.1);
}

.cta-menu-item.phone:hover {
  background-color: rgba(225, 29, 72, 0.1);
  transform: translateX(3px);
}

/* Active states when toggled open in JS */
.floating-cta.open .cta-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.floating-cta.open .cta-trigger-btn {
  border-color: var(--primary);
  background-color: var(--bg-card-hover);
}

.floating-cta.open .cta-trigger-btn .icon-chat {
  display: none;
}

.floating-cta.open .cta-trigger-btn .icon-close {
  display: block;
  transform: rotate(90deg);
}

/* --- Floating Toast Notification --- */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translate3d(-50%, 100px, 0); /* Offscreen initially */
  z-index: 2005;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--primary);
  color: var(--text-primary);
  padding: 0.8rem 1.6rem;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease, visibility 0.4s ease;
}

.toast-notification.show {
  transform: translate3d(-50%, 0, 0);
  opacity: 1;
  visibility: visible;
}

.toast-notification svg {
  width: 20px;
  height: 20px;
  color: #25d366; /* Green checkmark */
}

/* ==========================================================================
   Mobile-Optimized GPU-Accelerated 3D Snap reveals
   ========================================================================== */
.reveal-fade-up {
  opacity: 0;
  transform: translate3d(0, 30px, 0) rotate3d(1, 0, 0, 8deg); /* Snaps up and straightens in 3D perspective */
  will-change: transform, opacity;
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-fade-left {
  opacity: 0;
  transform: translate3d(-35px, 0, 0) rotate3d(0, 1, 0, -8deg);
  will-change: transform, opacity;
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-fade-right {
  opacity: 0;
  transform: translate3d(35px, 0, 0) rotate3d(0, 1, 0, 8deg);
  will-change: transform, opacity;
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-scale-in {
  opacity: 0;
  transform: scale3d(0.93, 0.93, 1) rotate3d(1, 1, 0, -3deg);
  will-change: transform, opacity;
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotate3d(0, 0, 0, 0);
}

/* Stagger delay classes for children cards */
.reveal-delay-100 { transition-delay: 100ms; }
.reveal-delay-200 { transition-delay: 200ms; }
.reveal-delay-300 { transition-delay: 300ms; }
.reveal-delay-400 { transition-delay: 400ms; }

/* --- Mobile Responsiveness Media Queries --- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-cta-group {
    justify-content: center;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .about-image-content {
    order: -1;
  }
  
  .consultation-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }
  
  .hero-content h1 {
    font-size: 2.75rem;
  }
  
  .hero-subheading {
    font-size: 1.5rem;
    min-height: 2.3rem;
  }
  
  /* Mobile Menu navigation toggling */
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 5rem;
    left: 0;
    width: 100%;
    height: calc(100vh - 5rem);
    background-color: var(--bg-dark);
    flex-direction: column;
    padding: 3rem 1.5rem;
    gap: 2rem;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    border-top: 1px solid var(--border-light);
  }
  
  .nav-menu.open {
    transform: translateX(0);
  }
  
  .nav-link {
    font-size: 1.2rem;
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
  }
  
  .nav-cta {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    margin-top: 1rem;
  }
  
  .services-columns {
    flex-direction: column;
    gap: 2rem;
  }
  
  .services-cta-box {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }
  
  .services-cta-box .btn {
    width: 100%;
  }
  
  /* Timeline adaptation for mobile */
  .timeline-line {
    left: 1.5rem;
  }
  
  .timeline-progress {
    width: 100%;
  }
  
  .step-marker {
    left: 1.5rem;
  }
  
  .process-step, .process-step.step-reverse {
    justify-content: flex-end;
    margin-bottom: 3rem;
  }
  
  .step-content {
    width: calc(100% - 3.5rem);
    padding: 1.5rem;
  }
  
  .testimonial-card {
    padding: 2rem;
  }
  
  .testimonial-text {
    font-size: 1rem;
  }
  
  .consultation-form-box {
    padding: 2rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  
  .footer-brand p {
    margin: 0 auto;
  }
  
  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
  }
  
  /* Relocate floating CTA on mobile to avoid overlapping content */
  .floating-cta {
    bottom: 1.5rem;
    left: 1.5rem;
  }
  
  .cta-trigger-btn {
    padding: 0.7rem 1.2rem;
  }

  /* Stacking portfolio responsiveness for mobile */
  .project-card-inner {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .project-info h3 {
    font-size: 1.75rem;
  }

  .project-visual {
    height: 220px;
  }

  .browser-mockup {
    width: 100%;
    height: 95%;
  }

  .sticky-project-card {
    /* Slightly less overlap room on tiny mobile displays */
    top: calc(75px + (var(--card-index) * 15px));
    padding-bottom: 3rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  .hero-subheading {
    font-size: 1.35rem;
    min-height: 4rem;
    line-height: 1.4;
  }
  
  .typing-wrap {
    display: block;
    white-space: nowrap;
    margin-top: 0.25rem;
  }
  
  .about-stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
  }
  
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  
  .business-card {
    padding: 1.5rem;
  }
  
  .card-profile-pic {
    width: 70px;
    height: 70px;
  }
  
  .card-name {
    font-size: 1.35rem;
  }
  
  .card-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-card-primary {
    width: 100%;
  }
  
  .card-action-circle-group {
    justify-content: center;
  }
  
  .direct-links .btn {
    width: 100%;
  }
}

/* --- Blog Directory & Article Layout Styles --- */
.blog-hero-section {
  padding: 6rem 0 3rem 0;
  position: relative;
  background: radial-gradient(circle at top, rgba(220, 38, 38, 0.08) 0%, transparent 60%);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 5rem;
}

@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.blog-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition-medium), border-color var(--transition-fast), box-shadow var(--transition-medium);
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.15);
}

.blog-card-media {
  position: relative;
  height: 200px;
  width: 100%;
  overflow: hidden;
}

.blog-media-gradient {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.blog-media-gradient svg {
  width: 48px;
  height: 48px;
  opacity: 0.85;
}

.meta-ads-bg { background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%); }
.tracking-bg { background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%); }
.shopify-bg { background: linear-gradient(135deg, #10b981 0%, #047857 100%); }
.leadgen-bg { background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%); }
.whatsapp-bg { background: linear-gradient(135deg, #22c55e 0%, #15803d 100%); }

.blog-card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.blog-card-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-card-body h3 a {
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.blog-card-body h3 a:hover {
  color: var(--primary);
}

.blog-card-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.blog-read-more {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: gap var(--transition-fast);
}

.blog-read-more:hover {
  gap: 0.75rem;
}

.blog-read-more svg {
  width: 16px;
  height: 16px;
}

/* --- Article Detail View Page --- */
.article-header {
  padding: 6rem 0 3rem 0;
  position: relative;
  border-bottom: 1px solid var(--border-light);
  background: radial-gradient(circle at bottom, rgba(220, 38, 38, 0.05) 0%, transparent 75%);
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.article-meta svg {
  width: 14px;
  height: 14px;
}

.article-content-container {
  padding: 4rem 0;
}

.article-body-wrapper {
  max-width: 780px;
  margin: 0 auto;
}

.article-rich-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #d1d5db;
}

.article-rich-text h2 {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin: 2.5rem 0 1.25rem 0;
  font-weight: 700;
}

.article-rich-text h3 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin: 2rem 0 1rem 0;
  font-weight: 600;
}

.article-rich-text p {
  margin-bottom: 1.5rem;
}

.article-rich-text ul, .article-rich-text ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.article-rich-text li {
  margin-bottom: 0.75rem;
}

.article-rich-text blockquote {
  border-left: 4px solid var(--primary);
  background-color: var(--card-bg);
  padding: 1.25rem 1.75rem;
  border-radius: 0 12px 12px 0;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-primary);
}

.article-rich-text strong {
  color: var(--text-primary);
}

.article-rich-text pre {
  background-color: #0f172a;
  border: 1px solid var(--border-light);
  padding: 1.25rem;
  border-radius: 12px;
  overflow-x: auto;
  margin: 2rem 0;
}

.article-rich-text code {
  font-family: monospace;
  font-size: 0.95rem;
  color: #f43f5e;
}

.article-sidebar-cta {
  background-color: var(--card-bg);
  border: 1px solid var(--border-hover);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.article-sidebar-cta h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-sidebar-cta p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

