@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ==========================================================================
   DESIGN VARIABLES & CUSTOM PROPERTIES
   ========================================================================== */
:root {
  /* Color Palette - Premium Modern Light Theme */
  --primary-base: 244;
  --primary-color: hsl(var(--primary-base), 75%, 58%); /* Deep Royal Indigo */
  --secondary-color: hsl(272, 72%, 55%); /* Vibrant Purple */
  --accent-color: hsl(199, 89%, 48%); /* Electric Cyan */
  
  /* Neutral Palette */
  --bg-main: hsl(0, 0%, 100%); /* True White */
  --bg-subtle: hsl(210, 40%, 98%); /* Soft Warm Gray */
  --bg-card: rgba(255, 255, 255, 0.75); /* Glassmorphic card fill */
  --text-heading: hsl(222, 47%, 11%); /* Deep Midnight Slate */
  --text-body: hsl(215, 16%, 37%); /* Refined Slate Gray */
  --text-light: hsl(215, 16%, 57%); /* Light Gray Text */
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --gradient-accent: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
  --gradient-light: linear-gradient(135deg, rgba(108, 99, 255, 0.05) 0%, rgba(200, 80, 192, 0.05) 100%);
  --gradient-text: linear-gradient(135deg, var(--text-heading) 30%, var(--primary-color) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.4) 100%);
  
  /* Borders & Shadows */
  --border-color: rgba(244, 75%, 58%, 0.08);
  --border-glass: rgba(255, 255, 255, 0.6);
  --border-light: rgba(0, 0, 0, 0.06);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px -1px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 20px -3px rgba(108, 99, 255, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 20px 40px -10px rgba(108, 99, 255, 0.1), 0 8px 16px -4px rgba(0, 0, 0, 0.03);
  --shadow-glow: 0 0 25px 0 rgba(108, 99, 255, 0.15);
  
  /* Fonts */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Layout */
  --container-width: 1240px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & SYSTEM BASIS
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

p {
  color: var(--text-body);
  font-size: 1.05rem;
}

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

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

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

ul {
  list-style: none;
}

/* ==========================================================================
   ACCESSIBILITY & UTILITIES
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 4px;
}

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

.text-gradient-alt {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 2;
}

.section {
  padding: 7.5rem 0;
  position: relative;
  overflow: hidden; /* Clip background particle drifts */
}

.section-bg-subtle {
  background-color: var(--bg-subtle);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 5rem auto;
}

.section-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background-color: rgba(108, 99, 255, 0.08);
  color: var(--primary-color);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  border: 1px solid rgba(108, 99, 255, 0.15);
}

.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-body);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast) ease-in-out;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--bg-main);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -6px rgba(108, 99, 255, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--bg-main);
  color: var(--text-heading);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: rgba(108, 99, 255, 0.2);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25D366;
  color: var(--bg-main);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
  background-color: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

/* ==========================================================================
   DECORATIVE BACKGROUND SHAPES
   ========================================================================== */
.bg-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.bg-shape {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(120px);
  opacity: 0.45;
}

.bg-shape-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.25) 0%, rgba(200, 80, 192, 0.05) 100%);
  top: -10%;
  right: -5%;
}

.bg-shape-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.25) 0%, rgba(108, 99, 255, 0.05) 100%);
  bottom: 10%;
  left: -5%;
}

/* ==========================================================================
   3D NEURAL CANVAS BACKGROUND
   ========================================================================== */
.neural-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

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

.header-scrolled {
  padding: 0.85rem 0;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-heading);
}

.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

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

.nav-link {
  font-family: var(--font-headings);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-heading);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-fast);
}

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

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hamburger mobile button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--text-heading);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding-top: 10.5rem;
  padding-bottom: 7.5rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-main);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(108, 99, 255, 0.06);
  border: 1px solid rgba(108, 99, 255, 0.15);
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

.hero-badge-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
  border-radius: var(--radius-full);
  box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.7);
  animation: pulse 1.8s infinite;
}

.hero-badge-text {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-body);
  margin-bottom: 2.5rem;
  max-width: 580px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
}

.hero-stat-item h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.hero-stat-item p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.hero-visual-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-container {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.hero-image-box {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background-color: var(--bg-main);
  border: 1px solid var(--border-glass);
  animation: float 6s ease-in-out infinite;
}

.hero-image-box img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: var(--transition-slow);
}

/* Floating Elements around Hero Image */
.floating-element {
  position: absolute;
  padding: 0.85rem 1.25rem;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
}

.floating-el-1 {
  top: 10%;
  left: -15%;
  animation: float-horizontal 7s ease-in-out infinite;
}

.floating-el-2 {
  bottom: 15%;
  right: -10%;
  animation: float 5s ease-in-out infinite;
  animation-delay: 1.5s;
}

.floating-el-3 {
  top: 60%;
  left: -8%;
  animation: float 8s ease-in-out infinite;
  animation-delay: 0.8s;
}

.icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  color: var(--bg-main);
}

.icon-wrapper-alt {
  background: var(--gradient-accent);
}

.floating-text {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-heading);
}

.floating-text span {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
}

.service-card {
  background-color: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition-fast);
}

.service-card-popular {
  border-color: rgba(108, 99, 255, 0.25);
  box-shadow: var(--shadow-md);
}

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

.service-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(108, 99, 255, 0.08);
  color: var(--primary-color);
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: rgba(108, 99, 255, 0.06);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 2rem;
  transition: var(--transition-fast);
}

.service-card:hover .service-icon {
  background: var(--gradient-primary);
  color: var(--bg-main);
  transform: scale(1.05);
}

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

.service-card:hover h3 {
  color: var(--primary-color);
}

.service-description {
  color: var(--text-body);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
}

.service-feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-body);
}

.service-feature-item svg {
  color: #10B981;
  flex-shrink: 0;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(108, 99, 255, 0.15);
}

/* ==========================================================================
   WHY CHOOSE US SECTION
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.why-card {
  background-color: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.why-icon-container {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-full);
  background: rgba(108, 99, 255, 0.05);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem auto;
  position: relative;
}

.why-icon-container::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  border: 2px dashed rgba(108, 99, 255, 0.15);
  opacity: 0;
  transition: var(--transition-fast);
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(108, 99, 255, 0.1);
}

.why-card:hover .why-icon-container {
  background: var(--gradient-primary);
  color: var(--bg-main);
}

.why-card:hover .why-icon-container::after {
  opacity: 1;
  animation: rotate 15s linear infinite;
}

.why-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

.why-card p {
  font-size: 0.95rem;
  color: var(--text-body);
}

/* ==========================================================================
   OUR PROCESS SECTION
   ========================================================================== */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  position: relative;
  margin-top: 3rem;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 45px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: var(--border-light);
  z-index: 1;
}

.process-step {
  position: relative;
  z-index: 2;
  text-align: center;
}

.process-node {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-full);
  background-color: var(--bg-main);
  border: 4px solid var(--border-light);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headings);
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 auto 2rem auto;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.process-node-pulse {
  position: absolute;
  inset: -10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(108, 99, 255, 0.25);
  opacity: 0;
  transform: scale(0.9);
  transition: all var(--transition-normal);
}

.process-step:hover .process-node {
  border-color: var(--primary-color);
  color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: scale(1.05);
}

.process-step:hover .process-node-pulse {
  opacity: 1;
  transform: scale(1);
  animation: pulse-border 2s infinite;
}

.process-content {
  padding: 0 1rem;
}

.process-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.process-content p {
  font-size: 0.95rem;
  color: var(--text-body);
}

/* Highlight current active connection lines visually (CSS Gradient fallback) */
.process-timeline::after {
  content: '';
  position: absolute;
  top: 45px;
  left: 10%;
  width: 35%;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 1;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   PORTFOLIO SECTION
   ========================================================================== */
.portfolio-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-body);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background-color: rgba(108, 99, 255, 0.05);
  border-color: rgba(108, 99, 255, 0.2);
  color: var(--primary-color);
}

.filter-btn.active {
  background: var(--gradient-primary);
  color: var(--bg-main);
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
}

.portfolio-card {
  background-color: var(--bg-main);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.portfolio-img-box {
  width: 100%;
  height: 240px;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-subtle);
}

.portfolio-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow) ease;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(34, 30, 80, 0.85) 0%, rgba(34, 30, 80, 0.2) 100%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.portfolio-overlay-content {
  transform: translateY(20px);
  transition: transform var(--transition-normal) ease;
  color: var(--bg-main);
}

.portfolio-overlay-content .portfolio-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border-radius: var(--radius-full);
  font-family: var(--font-headings);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.portfolio-overlay-content h4 {
  color: var(--bg-main);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.portfolio-overlay-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(108, 99, 255, 0.12);
}

.portfolio-card:hover .portfolio-img-box img {
  transform: scale(1.08);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-card:hover .portfolio-overlay-content {
  transform: translateY(0);
}

.portfolio-info {
  padding: 1.75rem;
}

.portfolio-info-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

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

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

/* ==========================================================================
   TESTIMONIAL SECTION
   ========================================================================== */
.testimonial-carousel-container {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.testimonial-track-wrapper {
  overflow: hidden;
  width: 100%;
}

.testimonial-track {
  display: flex;
  transition: transform var(--transition-slow);
}

.testimonial-slide {
  flex-shrink: 0;
  width: 100%;
  padding: 1rem;
}

.testimonial-inner-card {
  background-color: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 4rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.testimonial-inner-card::after {
  content: '"';
  position: absolute;
  top: 1.5rem;
  right: 3rem;
  font-family: var(--font-headings);
  font-size: 8rem;
  line-height: 1;
  color: rgba(108, 99, 255, 0.05);
  font-weight: 800;
  pointer-events: none;
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  color: #FFB800;
  font-size: 1.15rem;
  margin-bottom: 1.75rem;
}

.testimonial-quote {
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--text-heading);
  margin-bottom: 2.25rem;
}

.testimonial-profile {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headings);
  color: var(--bg-main);
  font-weight: 700;
  font-size: 1.25rem;
}

.testimonial-client-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}

.testimonial-client-info p {
  font-size: 0.85rem;
  color: var(--text-light);
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background-color: var(--bg-main);
  border: 1px solid var(--border-light);
  color: var(--text-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  z-index: 10;
}

.carousel-nav-btn:hover {
  background-color: var(--primary-color);
  color: var(--bg-main);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.carousel-nav-btn.prev-btn {
  left: -80px;
}

.carousel-nav-btn.next-btn {
  right: -80px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 2.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: var(--border-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-dot.active {
  width: 28px;
  background-color: var(--primary-color);
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background-color: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.faq-header {
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  background: none;
}

.faq-question {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text-heading);
  transition: var(--transition-fast);
}

.faq-icon-box {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  color: var(--text-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition-normal);
  flex-shrink: 0;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-in-out;
}

.faq-content-inner {
  padding: 0 2rem 1.75rem 2rem;
  font-size: 1rem;
  color: var(--text-body);
  border-top: 1px solid transparent;
}

/* Open FAQ states */
.faq-item.active {
  border-color: rgba(108, 99, 255, 0.2);
  box-shadow: var(--shadow-md);
}

.faq-item.active .faq-question {
  color: var(--primary-color);
}

.faq-item.active .faq-icon-box {
  background-color: var(--primary-color);
  color: var(--bg-main);
  transform: rotate(180deg);
}

.faq-item.active .faq-content-inner {
  border-top-color: var(--border-light);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: stretch;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-headline {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-subtitle {
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 4rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: rgba(108, 99, 255, 0.06);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.contact-detail-content h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
}

.contact-detail-content p, .contact-detail-content a {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-heading);
}

.contact-detail-content a:hover {
  color: var(--primary-color);
}

.contact-socials h4 {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-heading);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.social-icons-row {
  display: flex;
  gap: 0.85rem;
}

.social-circle-link {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.social-circle-link:hover {
  background: var(--gradient-primary);
  color: var(--bg-main);
  border-color: transparent;
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form-card {
  background-color: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.contact-form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-group.full-width {
  grid-column: span 2;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-heading);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background-color: var(--bg-subtle);
  color: var(--text-heading);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-color);
  background-color: var(--bg-main);
  box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
}

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

.form-submit-btn {
  width: 100%;
  border: none;
}

/* Success & Error State Visual indicators */
.form-message {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  display: none;
}

.form-message-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-message-error {
  background-color: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  padding: 5.5rem 0 2.5rem 0;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--text-body);
}

.footer-title {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-heading);
  margin-bottom: 1.5rem;
  position: relative;
}

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

.footer-link a {
  font-size: 0.95rem;
  color: var(--text-body);
}

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

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.footer-info-item svg {
  color: var(--primary-color);
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

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

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

/* ==========================================================================
   SCROLL FADE-IN INTERSECTION OBSERVER ANIMATIONS
   ========================================================================== */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow) ease-out, transform var(--transition-slow) ease-out;
  will-change: opacity, transform;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

@keyframes float-horizontal {
  0% { transform: translate(0px, 0px); }
  50% { transform: translate(12px, -8px); }
  100% { transform: translate(0px, 0px); }
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.4);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(108, 99, 255, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(108, 99, 255, 0);
  }
}

@keyframes pulse-border {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.1);
    opacity: 0;
  }
}

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

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (MOBILE-FIRST)
   ========================================================================== */

/* Up to 1100px - Small Desktop and Tablet Lands */
@media (max-width: 1100px) {
  :root {
    --container-width: 960px;
  }
  
  .hero-title {
    font-size: 3.25rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-timeline::before {
    display: none;
  }
  
  .process-timeline::after {
    display: none;
  }
  
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .footer-top {
    grid-template-columns: 1.5fr 1fr 1.5fr;
  }
  
  .footer-top > :nth-child(2) {
    grid-column: span 1;
  }
}

/* Up to 768px - Tablet and Large Mobile Drawer */
@media (max-width: 768px) {
  .section {
    padding: 5.5rem 0;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 290px;
    height: 100vh;
    background-color: var(--bg-main);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    flex-direction: column;
    align-items: flex-start;
    padding: 7.5rem 2.5rem;
    gap: 2rem;
    transition: right var(--transition-normal) ease;
    z-index: 1000;
  }
  
  .nav-menu.open {
    right: 0;
  }
  
  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
  }
  
  .nav-cta {
    display: none; /* Relocate to menu in HTML */
  }
  
  .hero {
    padding-top: 8rem;
    padding-bottom: 5.5rem;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-badge {
    justify-content: center;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .hero-visual-wrapper {
    order: -1; /* Place image on top on mobile */
  }
  
  .floating-el-1 {
    left: -5%;
  }
  
  .floating-el-2 {
    right: -5%;
  }
  
  .carousel-nav-btn.prev-btn {
    left: 0;
  }
  
  .carousel-nav-btn.next-btn {
    right: 0;
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  
  .footer-top > :first-child {
    grid-column: span 2;
  }
}

/* Up to 576px - Mobile Portrait */
@media (max-width: 576px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    border-top: none;
    padding-top: 0;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .why-grid {
    grid-template-columns: 1fr;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .process-timeline {
    grid-template-columns: 1fr;
  }
  
  .testimonial-inner-card {
    padding: 2.25rem;
  }
  
  .testimonial-quote {
    font-size: 1.15rem;
  }
  
  .carousel-nav-btn {
    display: none; /* Hide arrow buttons on mobile screen */
  }
  
  .contact-form-card {
    padding: 2rem 1.5rem;
  }
  
  .contact-form-row {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .footer-top > :first-child {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column-reverse;
    text-align: center;
  }
  
  .footer-bottom-links {
    justify-content: center;
  }
}
