/* Import Montserrat Font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

/* --- Design Tokens & Variables --- */
:root {
  --bg-black: #000000;
  --bg-darker: #050505;
  --bg-dark: #0a0a0a;
  --bg-card: rgba(255, 255, 255, 0.02);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.06);
  --border-glass-hover: rgba(255, 255, 255, 0.15);
  
  /* Brand Colors */
  --primary: #FDB913;        /* Golden Yellow */
  --primary-rgb: 253, 185, 19;
  --secondary: #FDB913;      /* Unified Brand Yellow */
  --secondary-rgb: 253, 185, 19;
  --accent: #FDB913;         /* Unified Brand Yellow */
  --accent-rgb: 253, 185, 19;
  
  /* Text Colors */
  --text-main: #ffffff;
  --text-neutral: #f5f5f5;
  --text-muted: #a3a3a3;
  --text-dark: #000000;
  
  /* Layout & Animation */
  --font-main: 'Montserrat', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  --max-width: 1300px;
}

/* --- Base Reset & Defaults --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  background-color: var(--bg-black);
  color: var(--text-main);
  font-family: var(--font-main);
  overflow-x: hidden;
}

body {
  background-color: var(--bg-black);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

::-webkit-scrollbar-thumb {
  background: #1f1f1f;
  border-radius: 10px;
  transition: var(--transition-smooth);
}

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

/* Selection */
::selection {
  background-color: var(--primary);
  color: var(--text-dark);
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* --- Background Glowing Orbs (Dynamic Ambient Lights) --- */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Top Right White Nebula */
.orb-green {
  position: absolute;
  top: -300px;
  right: -300px;
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 45%, rgba(0, 0, 0, 0) 70%);
  animation: sunCoreBreathe 16s infinite alternate ease-in-out;
}

/* Bottom Left White Nebula */
.orb-red {
  position: absolute;
  bottom: -400px;
  left: -200px;
  width: 1100px;
  height: 1100px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(0, 0, 0, 0) 75%);
  animation: groundGlow 20s infinite alternate ease-in-out;
}

/* Center Right White Nebula */
.orb-yellow {
  position: absolute;
  top: 25%;
  right: -300px;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 50%, rgba(0, 0, 0, 0) 70%);
  animation: sunCoreBreathe 18s infinite alternate ease-in-out;
}

@keyframes sunCoreBreathe {
  0% {
    transform: scale(0.93);
    opacity: 0.75;
  }
  100% {
    transform: scale(1.07);
    opacity: 1.25;
  }
}

@keyframes groundGlow {
  0% {
    transform: scale(0.93);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.07);
    opacity: 1.2;
  }
}

@keyframes beamDrift {
  0% {
    transform: rotate(32deg);
    opacity: 0.85;
  }
  100% {
    transform: rotate(38deg);
    opacity: 1.15;
  }
}

/* Subtle Film Grain Noise Overlap */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- Glassmorphism Core Styles --- */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0px rgba(255, 255, 255, 0.1),
    inset 0 0 12px rgba(255, 255, 255, 0.01);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--border-glass-hover);
  background: var(--bg-card-hover);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0px rgba(255, 255, 255, 0.15),
    inset 0 0 20px rgba(253, 185, 19, 0.02);
}

/* --- Layout Wrappers --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-title-wrapper {
  margin-bottom: 60px;
  text-align: center;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.section-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.section-title {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 30%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 16px auto 0 auto;
  line-height: 1.6;
}

/* --- Navigation Pill (Desktop & Responsive Mobile) --- */
.header-nav {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: calc(100% - 48px);
  max-width: 960px;
  height: 64px;
  z-index: 100;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: transparent;
  border: 1px solid var(--border-glass);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: var(--transition-smooth);
}

.header-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: inherit;
  z-index: -1;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.header-nav.scrolled {
  border-color: rgba(253, 185, 19, 0.15);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), 0 0 20px rgba(253, 185, 19, 0.03);
}

.header-nav.scrolled::before {
  background: rgba(5, 5, 5, 0.95);
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(253, 185, 19, 0.15));
}

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

.drawer-links {
  display: contents;
}

.mobile-drawer-header,
.mobile-drawer-footer {
  display: none;
}

.nav-link {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
  transition: var(--transition-fast);
}

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

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

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

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

.cta-nav-btn {
  padding: 10px 24px;
  border-radius: 100px;
  background: var(--text-main);
  color: var(--text-dark);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.05);
}

.cta-nav-btn:hover {
  background: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(253, 185, 19, 0.3);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  justify-content: space-between;
  flex-direction: column;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* --- Hero Section --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-top: 140px;
  padding-bottom: 40px;
  position: relative;
}

.hero-section .container {
  margin-top: auto;
  margin-bottom: auto;
}

.hero-content {
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-tag .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 20px var(--primary); }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.hero-tag span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-muted);
}

.hero-title {
  font-size: 64px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text-main);
  animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.hero-title span.highlight {
  background: linear-gradient(120deg, 
    #FDB913 0%, 
    #FDB913 38%, 
    #ffffff 48%, 
    #ffffff 52%, 
    #FDB913 62%, 
    #FDB913 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: shineSweep 5s linear infinite, glowBreathe 3s infinite alternate ease-in-out;
}

.hero-description {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 48px auto;
  font-weight: 400;
  animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

/* Animations for Hero and Shimmer Sweep */
@keyframes heroFadeIn {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shineSweep {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

@keyframes glowBreathe {
  0% {
    filter: drop-shadow(0 0 4px rgba(253, 185, 19, 0.1));
  }
  100% {
    filter: drop-shadow(0 0 15px rgba(253, 185, 19, 0.35));
  }
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--primary);
  color: var(--text-dark);
  box-shadow: 0 15px 30px rgba(var(--primary-rgb), 0.12);
}

.btn-primary:hover {
  background: #e0a20b; /* Mustard Gold */
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(var(--primary-rgb), 0.08); /* Translucent Yellow */
  border-color: var(--primary);
  color: var(--text-main);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.15);
}

.btn svg {
  transition: transform 0.3s ease;
}

.btn:hover svg {
  transform: translateX(4px);
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  animation: scrollIndicatorFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
  margin-top: 40px;
}

@keyframes scrollIndicatorFadeIn {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border-radius: 20px;
  border: 1.5px solid var(--border-glass-hover);
  position: relative;
  display: block;
  opacity: 0.6;
  transition: var(--transition-fast);
}

.hero-scroll-indicator:hover .scroll-mouse {
  opacity: 1;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.2);
}

.scroll-wheel {
  width: 3px;
  height: 7px;
  background-color: var(--text-main);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheelAnim 2s infinite ease-in-out;
}

@keyframes scrollWheelAnim {
  0% { transform: translate(-50%, 0); opacity: 0; }
  20% { opacity: 1; }
  60% { transform: translate(-50%, 8px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 0; }
}

/* --- Solutions / Services Section (Masonry Grid) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(190px, auto);
  gap: 24px;
  width: 100%;
}

.service-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  transition: var(--transition-smooth);
  cursor: pointer;
  height: 100%;
  
  /* Brand Unified Colors */
  --card-color: var(--primary);
  --card-color-rgb: var(--primary-rgb);
  --card-text-hover: var(--text-dark);
}

/* Featured Card (Double row height) */
@media (min-width: 1024px) {
  .service-card.featured {
    grid-column: 1;
    grid-row: 1 / 3;
    padding: 44px 36px;
    justify-content: center;
  }
  
  .service-card.featured .service-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    margin-bottom: 32px;
  }
  
  .service-card.featured .service-card-title {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .service-card.featured .service-card-desc {
    font-size: 14.5px;
    line-height: 1.7;
  }
  
  .service-card:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }
  .service-card:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
  }
  .service-card:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }
  .service-card:nth-child(5) {
    grid-column: 3;
    grid-row: 2;
  }
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(var(--card-color-rgb), 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(var(--card-color-rgb), 0.04);
}

/* Color shadows (Glows) on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--card-color-rgb), 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
}

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

.service-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--card-color);
  margin-bottom: 24px;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon-wrapper {
  background: var(--card-color);
  color: var(--card-text-hover);
  box-shadow: 0 0 20px rgba(var(--card-color-rgb), 0.4);
  transform: scale(1.05);
}

.service-card-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  line-height: 1.3;
  white-space: normal;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.service-card-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  opacity: 0.75;
  margin-top: 12px;
  width: 100%;
  transition: var(--transition-smooth);
}

.service-card:hover .service-card-desc {
  opacity: 1;
  color: var(--text-neutral);
}

/* --- Process Section (Timeline Layout) --- */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

/* Vertical Timeline Connecting Line segment for each step */
.process-step::after {
  content: '';
  position: absolute;
  left: 23px; /* Center aligned with center of step numbers */
  top: 50%; /* Start at vertical center of the current step */
  height: calc(100% + 40px); /* Span down to center of next step (card height + gap) */
  width: 2px;
  z-index: 1;
  opacity: 0.2;
  transition: var(--transition-smooth);
  background: linear-gradient(to bottom, var(--primary), rgba(var(--primary-rgb), 0.15));
}

.process-step:hover::after {
  opacity: 0.6;
}

.process-step:nth-child(5)::after {
  display: none !important;
}

.process-step {
  display: flex;
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

.process-step-node {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 3;
}

.process-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-darker); /* Solid background to mask line */
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: var(--primary);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  transition: var(--transition-smooth);
}

.process-step:hover .process-step-num {
  background: var(--primary);
  color: var(--text-dark);
  border-color: transparent;
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.5);
  transform: scale(1.08);
}

.process-step-card {
  flex: 1;
  padding: 32px;
  transition: var(--transition-smooth);
}

.process-step:hover .process-step-card {
  border-color: var(--border-glass-hover);
  background: var(--bg-card-hover);
  transform: translateX(6px); /* Micro-animation slide right */
}

.process-step-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  transition: var(--transition-fast);
}

.process-step:hover .process-step-title {
  color: var(--primary);
}

.process-step-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* --- Portfolio Section --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
  cursor: default;
}

.portfolio-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  z-index: 1;
  overflow: hidden;
  border-bottom: 1px solid var(--border-glass);
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.5);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.04);
  filter: grayscale(0%) brightness(1);
}

/* Color gradients behind cards */
.portfolio-gradient {
  display: none;
}

.portfolio-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, transparent 60%);
}

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

/* Custom border colors on hover for cards (all using yellow brand color) */
.portfolio-card:hover {
  border-color: rgba(var(--primary-rgb), 0.35) !important;
}

.portfolio-info {
  position: relative;
  width: 100%;
  padding: 24px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-grow: 1;
}

.portfolio-cat {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 6px;
}

.portfolio-name {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.portfolio-brief {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.4;
}

/* Removed portfolio-more rules since details modals are disabled */

/* Portfolio Details Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 100%;
  max-width: 900px;
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.9) translateY(30px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header-img {
  width: 100%;
  height: 240px;
  position: relative;
}

.modal-header-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-header-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #141414 10%, transparent 100%);
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  z-index: 10;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--primary);
  color: var(--text-dark);
  transform: scale(1.05);
}

.modal-body {
  padding: 48px;
  overflow-y: auto;
  flex: 1;
}

.modal-cat {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 12px;
}

.modal-share-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-share-btn:hover {
  background: rgba(var(--primary-rgb), 0.08);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.15);
}

.modal-share-btn.copied {
  background: rgba(46, 204, 113, 0.1);
  border-color: #2ecc71;
  color: #2ecc71;
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.15);
}

.modal-title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.modal-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.modal-article-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-neutral);
}

.modal-section {
  margin-bottom: 28px;
}

.modal-section h4 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 10px;
}

.modal-section p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* --- Philosophy / Closeness Section --- */
.philosophy-panel {
  padding: 60px;
  display: flex;
  gap: 60px;
  align-items: center;
}

.philosophy-content {
  flex: 1.2;
}

.philosophy-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.philosophy-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.philosophy-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.phil-feat-item {
  display: flex;
  gap: 20px;
  transition: var(--transition-smooth);
}

.phil-feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(var(--primary-rgb), 0.05);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.phil-feat-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  transition: var(--transition-fast);
}

.phil-feat-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Hover effects for features */
.phil-feat-item:hover .phil-feat-icon {
  background: var(--primary);
  color: var(--text-dark);
  border-color: transparent;
  box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.4);
  transform: scale(1.05);
}

.phil-feat-item:hover .phil-feat-title {
  color: var(--primary);
}

/* --- Resources / Blog Section --- */
.blog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  gap: 20px;
  flex-wrap: wrap;
}

.search-wrapper {
  position: relative;
  width: 320px;
}

.search-input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  font-size: 13px;
  transition: var(--transition-smooth);
}

.search-input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.1);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.filter-tabs {
  display: flex;
  gap: 12px;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.01);
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--border-glass-hover);
  color: var(--text-main);
}

.filter-btn.active {
  background: var(--primary);
  color: var(--text-dark);
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.2);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-card {
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.blog-cat {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
}

.blog-date {
  font-size: 11px;
  color: var(--text-muted);
}

.blog-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  transition: var(--transition-fast);
}

.blog-card:hover .blog-title {
  color: var(--primary);
}

.blog-summary {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex: 1;
}

.blog-readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.blog-card:hover .blog-readmore {
  color: var(--primary);
}

.blog-readmore svg {
  transition: transform 0.2s ease;
}

.blog-card:hover .blog-readmore svg {
  transform: translateX(3px);
}

/* --- Testimonials Section --- */
.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 20px 0;
}

.testimonials-slides-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  position: relative;
}

.testimonial-slide {
  grid-area: 1 / 1 / 2 / 2;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.testimonial-slide.active {
  opacity: 1;
  visibility: visible;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.testimonial-quote {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-neutral);
  margin-bottom: 32px;
  font-style: italic;
}

.testimonial-author-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.testimonial-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.testimonial-company {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
}

.testimonial-nav-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.testimonial-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-muted);
}

.testimonial-nav-btn:hover {
  background: var(--text-main);
  color: var(--text-dark);
  border-color: transparent;
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: stretch;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-info-title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.contact-info-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* --- Active Availability Badge --- */
.contact-availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(var(--primary-rgb), 0.06);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  padding: 8px 16px;
  border-radius: 100px;
  margin-top: 24px;
}

.availability-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--primary); /* Brand Golden Yellow #FDB913 */
  border-radius: 50%;
  position: relative;
  display: inline-block;
}

.availability-pulse::after {
  content: '';
  width: 100%;
  height: 100%;
  background-color: var(--primary);
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  transform: scale(1);
  animation: availability-ping 1.8s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes availability-ping {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.8); opacity: 0; }
}

.availability-text {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}

/* --- Contact Method Cards --- */
.contact-method-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: auto;
  padding-top: 40px;
}

.contact-method-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.contact-method-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.contact-method-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: var(--transition-smooth);
}

.contact-method-card:hover .contact-method-icon {
  background: var(--primary);
  color: var(--text-dark);
  border-color: transparent;
  box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.3);
}

.contact-method-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-method-value {
  font-size: 15px;
  font-weight: 700;
  transition: var(--transition-fast);
}

.contact-method-card:hover .contact-method-value {
  color: var(--primary);
}

.contact-form-panel {
  padding: 48px;
  position: relative;
  transition: var(--transition-smooth), min-height 0.4s ease;
}

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

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* --- Input wrappers with icons --- */
.input-wrapper {
  position: relative;
  width: 100%;
}

.input-wrapper .input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition-fast);
}

.input-wrapper .form-control {
  padding-left: 52px;
}

/* Handle Textarea icon alignment */
.text-area-wrapper .input-icon {
  top: 18px;
  transform: none;
}

.input-wrapper:focus-within .input-icon {
  color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  font-size: 14px;
  font-family: var(--font-main);
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 25px rgba(var(--primary-rgb), 0.1);
}

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

.submit-btn {
  width: 100%;
  padding: 18px;
  border-radius: 14px;
  background: var(--text-main);
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 15px 30px rgba(255, 255, 255, 0.05);
}

.submit-btn:hover:not(:disabled) {
  background: var(--primary);
  box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.35);
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Contact Success State --- */
.contact-success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0;
  animation: successFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes successFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.success-icon-container {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.08);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 24px;
}

.success-icon-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.4);
  animation: success-pulse 2s infinite;
}

@keyframes success-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0.8; }
  100% { transform: scale(1); opacity: 0.5; }
}

.success-check-icon {
  animation: check-draw 0.5s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes check-draw {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-title {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.success-message {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 400px;
  margin-bottom: 24px;
}

.success-info-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(253, 185, 19, 0.05);
  border: 1px solid rgba(253, 185, 19, 0.12);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-align: left;
  max-width: 100%;
  margin-bottom: 28px;
  line-height: 1.5;
}

.info-pulse {
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.info-pulse::after {
  content: '';
  width: 100%;
  height: 100%;
  background-color: var(--primary);
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  transform: scale(1);
  animation: availability-ping 1.5s ease-in-out infinite;
  opacity: 0.7;
}

.success-cta-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 360px;
}

.success-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 14px;
  background: var(--primary);
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: 0 15px 30px rgba(var(--primary-rgb), 0.25);
  width: 100%;
  max-width: 320px;
}

.success-wa-btn:hover {
  background: #e0a20b; /* Mustard Gold */
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.4), 0 0 20px rgba(255, 255, 255, 0.15);
}

/* --- Floating WhatsApp CTA --- */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  cursor: pointer;
  box-shadow: 0 15px 30px rgba(var(--primary-rgb), 0.4);
  transition: var(--transition-smooth);
}

.whatsapp-float:hover {
  background: #e0a20b;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.5), 0 0 25px rgba(255, 255, 255, 0.2);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* --- Footer --- */
.footer {
  padding: 80px 0 40px 0;
  border-top: 1px solid var(--border-glass);
  background: transparent;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-col-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.footer-logo {
  height: 48px;
  width: auto;
  opacity: 0.95;
  filter: drop-shadow(0 0 10px rgba(253, 185, 19, 0.1));
}

.footer-tagline {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 400px;
}

.footer-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-main);
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
  display: inline-block;
}

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

/* Social Rows layout */
.footer-social-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  transition: var(--transition-fast);
}

.footer-social-row:hover {
  color: var(--text-main);
}

.footer-social-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.footer-social-row:hover .footer-social-box {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-glass-hover);
  color: var(--primary);
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.1);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-copyright {
  font-size: 12px;
  color: var(--text-muted);
}

/* Operational capsule badge */
.footer-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 122, 51, 0.06);
  border: 1px solid rgba(0, 122, 51, 0.15);
  border-radius: 100px;
}

.status-dot-green {
  width: 6px;
  height: 6px;
  background-color: var(--secondary);
  border-radius: 50%;
  position: relative;
}

.status-dot-green::after {
  content: '';
  width: 100%;
  height: 100%;
  background-color: var(--secondary);
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  transform: scale(1);
  animation: availability-ping 1.8s ease-in-out infinite;
  opacity: 0.7;
}

.status-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--secondary);
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

.legal-link {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.legal-link:hover {
  color: var(--text-main);
}

/* Responsiveness for Footer */
@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  
  .footer-legal-links {
    justify-content: center;
    width: 100%;
  }
}

/* --- Responsive Media Queries --- */

@media (max-width: 1023px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .service-card.featured {
    grid-column: span 2 !important;
    grid-row: auto !important;
    padding: 32px !important;
    justify-content: flex-start !important;
  }
  
  .service-card {
    width: 100% !important;
    min-height: auto;
    padding: 32px !important;
  }
  
  .service-card-desc {
    opacity: 0.8 !important;
    margin-top: 12px;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .portfolio-card {
    height: auto;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .philosophy-panel {
    flex-direction: column;
    gap: 40px;
    padding: 40px;
  }
}

@media (max-width: 768px) {
  .header-nav {
    height: 56px;
    padding: 0 16px;
  }
  
  .cta-nav-btn {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  /* Mobile Drawer Menu (90% Width, 100% Height, Slide in from Right) */
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 90vw;
    height: 100vh;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 9999;
    padding: 110px 24px 40px 24px;
    justify-content: space-between;
    gap: 0;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -20px 0 45px rgba(0, 0, 0, 0.8);
  }
  
  .nav-links.mobile-active {
    transform: translateX(0);
    visibility: visible;
  }
  .mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: absolute;
    top: 24px;
    left: 0;
    padding: 0 24px;
  }

  .drawer-logo {
    height: 36px;
    object-fit: contain;
  }

  .drawer-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    padding: 8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
  }

  .drawer-close:hover {
    color: var(--text-main);
    border-color: var(--border-glass-hover);
    background: rgba(255, 255, 255, 0.06);
    transform: scale(1.05);
  }

  .drawer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin: auto 0;
    width: 100%;
  }
  
  .nav-links.mobile-active .nav-link {
    font-size: 24px;
    font-weight: 800;
  }

  .mobile-drawer-footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 24px;
    margin-top: auto;
  }

  .drawer-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
  }

  .drawer-info-label {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
  }

  .drawer-info-value {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-neutral);
    transition: var(--transition-fast);
  }

  a.drawer-info-value:hover {
    color: var(--primary);
  }
  
  .hero-tag {
    padding: 6px 14px;
    margin-bottom: 20px;
  }
  
  .hero-tag span {
    font-size: 9px;
    letter-spacing: 0.2em;
  }
  
  .hero-tag .pulse-dot {
    width: 6px;
    height: 6px;
  }
  
  .hero-title {
    font-size: 32px;
    line-height: 1.25;
  }
  
  .hero-title span.highlight {
    font-size: 24px;
  }
  
  .hero-description {
    font-size: 15px;
    margin-bottom: 32px;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  
  .btn {
    width: 100%;
  }
  
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  
  .service-card.featured {
    grid-column: span 1 !important;
    padding: 24px 20px !important;
  }

  .service-card {
    padding: 24px 20px !important;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contact-form-panel {
    padding: 24px 20px !important;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .process-step::after {
    display: none !important;
  }
  
  .process-step {
    flex-direction: column;
    gap: 12px;
  }
  
  .process-step-node {
    width: auto;
    height: auto;
  }

  .process-step:hover .process-step-card {
    transform: none !important;
  }
  
  .process-step-card {
    padding: 24px 20px !important;
  }
  
  .whatsapp-float {
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
  }
  
  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .portfolio-card {
    height: auto;
  }
  
  .portfolio-info {
    padding: 20px !important;
  }
  
  .portfolio-cat {
    font-size: 10px;
    margin-bottom: 6px;
  }
  
  .portfolio-name {
    font-size: 17px;
    margin-bottom: 6px;
  }
  
  .portfolio-brief {
    font-size: 13px;
    line-height: 1.5;
  }

  /* Modal responsive adjustments */
  .modal-overlay {
    padding: 16px !important;
  }

  .modal-content {
    max-height: 90vh !important;
    border-radius: 20px !important;
    position: relative !important;
  }

  .modal-header-img {
    height: 140px !important;
  }

  .modal-body {
    padding: 60px 52px 24px 20px !important;
  }

  .modal-title {
    font-size: 22px !important;
    margin-bottom: 12px !important;
  }

  .modal-close-btn {
    top: 16px !important;
    right: 16px !important;
    width: 36px !important;
    height: 36px !important;
  }

  .modal-article-content {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  .modal-section p {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  .modal-section h4 {
    font-size: 13px !important;
    margin-bottom: 8px !important;
  }

  /* General mobile adjustments for spacing and typography consistency */
  .section {
    padding: 60px 0 !important;
  }

  .section-title-wrapper {
    margin-bottom: 36px !important;
  }

  .section-tag {
    padding: 5px 12px !important;
    font-size: 9.5px !important;
    margin-bottom: 12px !important;
  }

  .section-subtitle {
    font-size: 14px !important;
    margin-top: 12px !important;
  }

  /* Glazed panels / Glassmorphism Consistency */
  .glass-panel {
    border-radius: 20px !important;
  }

  /* Services cards mobile consistency */
  .service-card .service-icon-wrapper,
  .service-card.featured .service-icon-wrapper {
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px !important;
    margin-bottom: 20px !important;
  }
  
  .service-card-title,
  .service-card.featured .service-card-title {
    font-size: 17px !important;
    margin-bottom: 8px !important;
  }
  
  .service-card-desc,
  .service-card.featured .service-card-desc {
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin-top: 8px !important;
  }

  /* Process steps mobile consistency */
  .process-step-num {
    width: 40px !important;
    height: 40px !important;
    font-size: 14px !important;
  }
  
  .process-step-title {
    font-size: 18px !important;
    margin-bottom: 8px !important;
  }
  
  .process-step-desc {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  /* Philosophy Section mobile adjustments */
  .philosophy-panel {
    padding: 32px 20px !important;
    gap: 32px !important;
  }

  .philosophy-title {
    font-size: 22px !important;
    margin-bottom: 16px !important;
  }

  .philosophy-text {
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-bottom: 16px !important;
  }

  .phil-feat-item {
    gap: 16px !important;
  }

  .phil-feat-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
  }

  .phil-feat-title {
    font-size: 15px !important;
    margin-bottom: 4px !important;
  }

  .phil-feat-desc {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  /* Blog / Resources Section mobile adjustments */
  .blog-controls {
    gap: 16px !important;
    margin-bottom: 32px !important;
  }

  .search-wrapper {
    width: 100% !important;
  }

  .filter-tabs {
    gap: 8px !important;
    width: 100% !important;
  }

  .filter-btn {
    padding: 8px 16px !important;
    font-size: 10px !important;
    flex-grow: 1 !important;
    text-align: center !important;
  }

  .blog-card {
    padding: 24px 20px !important;
  }

  .blog-meta {
    margin-bottom: 16px !important;
  }

  .blog-cat {
    font-size: 10px !important;
  }

  .blog-date {
    font-size: 10px !important;
  }

  .blog-title {
    font-size: 16px !important;
    margin-bottom: 12px !important;
  }

  .blog-summary {
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
  }

  .blog-readmore {
    font-size: 10px !important;
  }

  /* Testimonials Section mobile adjustments */
  .testimonial-quote {
    font-size: 17px !important;
    line-height: 1.6 !important;
    margin-bottom: 24px !important;
  }

  .testimonial-name {
    font-size: 14px !important;
  }

  .testimonial-company {
    font-size: 11px !important;
  }

  /* Contact / Charlemos Section mobile adjustments */
  .contact-info-title {
    font-size: 24px !important;
    margin-bottom: 12px !important;
  }

  .contact-info-text {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  .contact-availability {
    padding: 6px 12px !important;
    margin-top: 16px !important;
  }

  .availability-pulse {
    width: 6px !important;
    height: 6px !important;
  }

  .availability-text {
    font-size: 9.5px !important;
  }

  .contact-method-items {
    padding-top: 24px !important;
    margin-top: 24px !important;
    gap: 12px !important;
  }

  .contact-method-card {
    padding: 16px 20px !important;
    border-radius: 16px !important;
    gap: 16px !important;
  }

  .contact-method-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
  }

  .contact-method-label {
    font-size: 9.5px !important;
  }

  .contact-method-value {
    font-size: 14px !important;
  }
}

/* Animations for Mobile Menu Toggle Icon */
.mobile-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

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

.mobile-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* --- Scroll Progress Indicator & Entrance Animations --- */

/* Scroll Progress Bar at the top */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 9999;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, #ffffff 100%);
  box-shadow: 0 0 8px var(--primary);
  transition: width 0.1s ease-out;
}

/* Scroll Entrance Animations (Subtle Reveals) */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children transitions inside revealed sections */
.scroll-reveal .section-title-wrapper {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.1s;
}

.scroll-reveal .services-grid,
.scroll-reveal .process-steps,
.scroll-reveal .portfolio-grid,
.scroll-reveal .philosophy-content,
.scroll-reveal .philosophy-features,
.scroll-reveal .blog-controls,
.scroll-reveal .blog-grid,
.scroll-reveal .contact-grid {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.25s;
}

.scroll-reveal.revealed .section-title-wrapper,
.scroll-reveal.revealed .services-grid,
.scroll-reveal.revealed .process-steps,
.scroll-reveal.revealed .portfolio-grid,
.scroll-reveal.revealed .philosophy-content,
.scroll-reveal.revealed .philosophy-features,
.scroll-reveal.revealed .blog-controls,
.scroll-reveal.revealed .blog-grid,
.scroll-reveal.revealed .contact-grid {
  opacity: 1;
  transform: translateY(0);
}

/* --- Floating WhatsApp Widget --- */
.whatsapp-widget-container {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

/* Floating Trigger Button */
.whatsapp-float-trigger {
  display: flex;
  align-items: center;
  gap: 0px;
  padding: 10px;
  border-radius: 100px;
  background: var(--bg-darker);
  border: 1.5px solid var(--primary);
  color: var(--primary);
  cursor: pointer;
  box-shadow: 
    0 15px 35px rgba(0,0,0,0.6),
    0 0 15px rgba(253, 185, 19, 0.1),
    inset 0 1px 0px rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  height: 56px;
  min-width: 56px;
}

.wa-trigger-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.4s ease;
}

.wa-trigger-icon svg {
  width: 24px;
  height: 24px;
}

.wa-trigger-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-main);
  white-space: nowrap;
  opacity: 0;
  width: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover expansion */
.whatsapp-float-trigger:hover {
  padding: 10px 24px 10px 16px;
  color: var(--text-dark);
  background: var(--primary);
  box-shadow: 
    0 20px 40px rgba(var(--primary-rgb), 0.3),
    0 0 25px rgba(253, 185, 19, 0.2);
}

.whatsapp-float-trigger:hover .wa-trigger-icon {
  transform: rotate(15deg);
  color: var(--text-dark);
}

.whatsapp-float-trigger:hover .wa-trigger-label {
  opacity: 1;
  width: 100px;
  margin-left: 8px;
  color: var(--text-dark);
}

/* Active Open State of Button */
.whatsapp-float-trigger.active-open {
  background: var(--primary);
  color: var(--text-dark);
  border-color: var(--primary);
  transform: scale(0.95);
  box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2);
}

.whatsapp-float-trigger.active-open .wa-trigger-icon {
  transform: rotate(90deg);
  color: var(--text-dark);
}

/* Notification Badge */
.wa-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--primary);
  color: var(--text-dark);
  font-size: 9px;
  font-weight: 900;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.6);
  border: 1.5px solid var(--bg-black);
  z-index: 10;
  animation: badgePulse 2s infinite ease-in-out;
  transition: opacity 0.3s ease;
}

@keyframes badgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.8); }
  100% { transform: scale(1); }
}

/* Custom Chat Window */
.whatsapp-chat-window {
  width: 320px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.7),
    inset 0 1px 0px rgba(255, 255, 255, 0.1);
  z-index: 999;
}

.whatsapp-chat-window.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Header */
.wa-chat-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wa-chat-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-right: 12px;
}

.wa-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wa-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background-color: var(--primary);
  border-radius: 50%;
  border: 2px solid var(--bg-darker);
  box-shadow: 0 0 6px var(--primary);
}

.wa-chat-header-info {
  display: flex;
  flex-direction: column;
}

.wa-chat-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}

.wa-chat-status {
  font-size: 10px;
  font-weight: 500;
  color: var(--primary);
  opacity: 0.85;
}

.wa-chat-close {
  margin-left: auto;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.wa-chat-close:hover {
  color: var(--text-main);
  transform: scale(1.1);
}

/* Body */
.wa-chat-body {
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  min-height: 100px;
  display: flex;
  align-items: flex-start;
}

.wa-message {
  padding: 12px 16px;
  border-radius: 4px 18px 18px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-neutral);
  max-width: 90%;
  animation: waMsgIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes waMsgIn {
  from { opacity: 0; transform: scale(0.9) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Typing indicator */
.wa-message-typing {
  display: flex;
  gap: 5px;
  padding: 12px 18px;
  border-radius: 12px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

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

/* Footer CTA */
.wa-chat-footer {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.01);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.wa-chat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--text-dark);
  font-size: 11.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.15);
  border: none;
  cursor: pointer;
}

.wa-chat-btn:hover {
  background: #ffffff;
  color: var(--text-dark);
  box-shadow: 
    0 15px 30px rgba(255,255,255,0.15),
    0 0 20px rgba(var(--primary-rgb), 0.2);
  transform: translateY(-1px);
}

/* Button Connecting State */
.wa-chat-btn.connecting {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

/* CSS Spinner for Connecting */
.wa-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: waSpin 0.8s linear infinite;
  margin-right: 8px;
}

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

@media (max-width: 576px) {
  .whatsapp-widget-container {
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-chat-window {
    width: 280px;
  }
}
