/* ==========================================================================
   EXEN CONSULTORES - STYLESHEET (PREMIUM CORPORATE DESIGN SYSTEM)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #15559A;
  --primary-dark: #0E335C;
  --primary-light: #1D6FB8;
  --accent: #8FB6DE;
  --accent-light: #DCE7F3;
  --accent-dark: #6D9AC4;
  --bg-light: #F8F9FA;
  --bg-white: #FFFFFF;
  --bg-dark: #091D34;
  --text-main: #2D3748;
  --text-muted: #718096;
  --text-light: #F7FAFC;
  --border-color: #E2E8F0;
  
  --font-title: 'Cinzel', serif;
  --font-body: 'Montserrat', sans-serif;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(21, 85, 154, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(21, 85, 154, 0.1), 0 4px 6px -2px rgba(21, 85, 154, 0.05);
  --shadow-premium: 0 20px 40px rgba(9, 29, 52, 0.08);
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Base resets & scrollbar */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

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

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

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border: 2px solid var(--bg-light);
  border-radius: 5px;
}

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

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--primary-dark);
  font-weight: 600;
  letter-spacing: 0.02em;
}

p {
  font-family: var(--font-body);
  font-weight: 400;
}

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

/* Glassmorphism & Surface Tokens */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-premium);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(21, 85, 154, 0.1);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: var(--bg-white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1.1rem 2.2rem;
  border: none;
  border-radius: 0;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: var(--transition-smooth);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--accent);
  transition: var(--transition-smooth);
  z-index: -1;
}

.btn-primary:hover {
  color: var(--primary-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-primary:hover::before {
  width: 100%;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 1.8rem;
  border: 1.5px solid var(--primary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--bg-white);
  transform: translateY(-2px);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 85px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8%;
  transition: var(--transition-smooth);
}

.header-nav.scrolled {
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(9, 29, 52, 0.05);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-image {
  height: 56px;
  width: auto;
  transition: var(--transition-smooth);
}

.header-nav.scrolled .logo-image {
  height: 46px;
}

.logo-text {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.1em;
  transition: var(--transition-smooth);
}

.logo-text span {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--accent-dark);
  display: block;
  letter-spacing: 0.15em;
  margin-top: -4px;
  transition: var(--transition-smooth);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-main);
  padding: 8px 0;
  position: relative;
  transition: var(--transition-smooth);
}

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

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

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

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

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

/* Transparent Header / Not Scrolled State overrides for dark hero background */
.header-nav:not(.scrolled) .logo-text {
  color: var(--bg-white);
}

.header-nav:not(.scrolled) .logo-text span {
  color: rgba(255, 255, 255, 0.7);
}

.header-nav:not(.scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.header-nav:not(.scrolled) .nav-link::after {
  background-color: var(--bg-white);
}

.header-nav:not(.scrolled) .nav-link:hover {
  color: var(--bg-white);
}

.header-nav:not(.scrolled) .nav-link.active {
  color: var(--bg-white);
}

.header-nav:not(.scrolled) .menu-toggle span {
  background-color: var(--bg-white);
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--primary-dark);
  transition: var(--transition-smooth);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 8%;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.hero-vanta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2; /* Positioned above the gradient to be visible, but below content */
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1) translate(0, 0);
  transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out; /* Smooth crossfade transition */
}

.hero-slide.active {
  opacity: 0.45; /* Clean opacity value for visible, high-contrast details */
  mix-blend-mode: screen; /* Light values blend onto the waves and gradient */
  animation: kenBurns 12s ease-out forwards;
}

@keyframes kenBurns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.08) translate(-1%, -0.5%);
  }
}

.hero-dots-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  background-position: center;
  opacity: 0.8;
  z-index: 2; /* Positioned on top of the slide images */
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(9, 29, 52, 0.85) 0%, /* Slightly adjusted to let the background image and waves shine through more */
    rgba(21, 85, 154, 0.75) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  z-index: 1; /* Moved below the image overlay so the image isn't masked by the solid color */
  pointer-events: none; /* Allows mouse/touch events to pass through to Vanta.js waves */
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  color: var(--bg-white);
  padding-top: 60px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 3.5rem;
  line-height: 1.15;
  color: var(--bg-white);
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-desc {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--accent-light);
  margin-bottom: 2.5rem;
  max-width: 600px;
  letter-spacing: 0.02em;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.scroll-indicator:hover {
  color: var(--accent);
}

.scroll-indicator span {
  display: block;
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 15px;
  background-color: var(--accent);
  animation: scroll-anim 2s infinite ease-in-out;
}

@keyframes scroll-anim {
  0% { transform: translateY(-100%); }
  80% { transform: translateY(260%); }
  100% { transform: translateY(260%); }
}

/* ==========================================================================
   ABOUT US SECTION
   ========================================================================== */
.section {
  padding: 8% 8%;
  position: relative;
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.section-dark h2, .section-dark h3 {
  color: var(--bg-white);
}

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

.section-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.25rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-p {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.8;
  text-align: justify;
}

.about-highlight {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--primary);
  line-height: 1.5;
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
  font-weight: 500;
  margin: 1rem 0;
}

.about-image-wrapper {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  aspect-ratio: 4/3;
  border: 1px solid rgba(21, 85, 154, 0.1);
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-image-wrapper:hover .about-image {
  transform: scale(1.05);
}

.image-frame-decoration {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent);
  z-index: -1;
  pointer-events: none;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.2rem;
  perspective: 1200px;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid rgba(21, 85, 154, 0.05);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: transform 0.15s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  will-change: transform;
}

.service-image-container {
  height: 200px;
  overflow: hidden;
  position: relative;
  transform-style: preserve-3d;
}

.service-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
  transform: translateZ(0px);
}

.service-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(9, 29, 52, 0.7) 0%, transparent 100%);
  z-index: 1;
}

.service-card-content {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  transform: translateZ(30px); /* Internal 3D depth for text elements */
  transform-style: preserve-3d;
}

.service-card-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.3;
  transition: var(--transition-fast);
  transform: translateZ(10px);
}

.service-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  transform: translateZ(5px);
}

.service-list-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.75rem;
  transform: translateZ(5px);
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
  transform: translateZ(5px);
}

.service-item {
  font-size: 0.88rem;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.service-item::before {
  content: '•';
  color: var(--accent-dark);
  font-weight: bold;
}

.service-card-action {
  margin-top: 1.8rem;
  transform: translateZ(15px);
  display: block;
}

.btn-service-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #25D366;
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
  width: 100%;
}

.btn-service-cta:hover {
  background-color: #20ba56;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

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

.btn-service-cta:hover svg {
  transform: scale(1.1);
}


/* Card Hovers */
.service-card:hover {
  box-shadow: var(--shadow-premium);
  border-color: rgba(21, 85, 154, 0.2);
}

.service-card:hover .service-card-image {
  transform: scale(1.06) translateZ(15px);
}

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

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-intro {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.7;
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--bg-white);
  padding: 1.5rem;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
}

.info-icon {
  width: 48px;
  height: 48px;
  background-color: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
}

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

.info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

.info-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.info-value a:hover {
  color: var(--accent-dark);
}

/* Form Styling */
.contact-form-wrapper {
  background: var(--bg-white);
  padding: 3rem;
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(21, 85, 154, 0.05);
}

.form-title {
  font-family: var(--font-title);
  font-size: 1.6rem;
  margin-bottom: 2rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.5rem;
}

.form-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-main);
  background-color: var(--bg-light);
  border: 1.5px solid var(--border-color);
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--accent);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(143, 182, 222, 0.25);
}

.form-input.valid {
  border-color: #48BB78;
}

.form-input.invalid {
  border-color: #F56565;
}

.error-message {
  font-size: 0.75rem;
  color: #F56565;
  margin-top: 0.35rem;
  display: block;
}

/* Success Alert Component */
.success-alert {
  background-color: #F0FFF4;
  border: 1px solid #C6F6D5;
  color: #2F855A;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.success-alert h4 {
  color: #2F855A;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
}

.success-alert p {
  font-size: 0.88rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 5% 8% 2% 8%;
  border-top: 3px solid var(--primary);
}

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

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

.footer-logo-text {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bg-white);
  letter-spacing: 0.1em;
}

.footer-logo-text span {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--accent);
  display: block;
  letter-spacing: 0.15em;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--accent-light);
  line-height: 1.7;
}

.footer-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--bg-white);
  margin-bottom: 1.8rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-link {
  font-size: 0.88rem;
  color: var(--accent-light);
}

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

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--accent-light);
}

.footer-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .header-nav {
    padding: 0 6%;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    box-shadow: -10px 0 30px rgba(9, 29, 52, 0.15);
    transition: var(--transition-smooth);
    z-index: 100;
  }
  
  .nav-menu.open {
    right: 0;
  }
  
  .menu-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  /* Mobile menu link overrides when header is transparent */
  .header-nav:not(.scrolled) .nav-menu .nav-link {
    color: var(--text-main);
  }
  
  .header-nav:not(.scrolled) .nav-menu .nav-link::after {
    background-color: var(--primary);
  }
  
  .header-nav:not(.scrolled) .nav-menu .nav-link:hover {
    color: var(--primary);
  }
  
  .header-nav:not(.scrolled) .nav-menu .nav-link.active {
    color: var(--primary);
  }
  
  /* Ensure menu close button (X) is visible on the white slide-out panel */
  .header-nav:not(.scrolled) .menu-toggle.open span {
    background-color: var(--primary-dark);
  }
  
  .hero-section {
    padding: 0 6%;
    height: 100vh;
    height: 100dvh;
  }
  
  .hero-title {
    font-size: 2.2rem;
    line-height: 1.25;
  }
  
  .hero-desc {
    font-size: 0.95rem;
  }
  
  .section {
    padding: 15% 6%;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .contact-form-wrapper {
    padding: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem;
    line-height: 1.2;
  }
  
  .hero-desc {
    font-size: 0.88rem;
  }
  
  .section {
    padding: 12% 4%;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-card-content {
    padding: 1.5rem;
  }
  
  .contact-form-wrapper {
    padding: 1.5rem;
  }
  
  .nav-menu {
    width: 85%;
  }
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: whatsapp-pulse 2.5s infinite;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35), 0 0 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.15));
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* Floating LinkedIn Button */
.linkedin-float {
  position: fixed;
  bottom: 105px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #0A66C2;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(10, 102, 194, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.linkedin-float:hover {
  background-color: #0077b5;
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35), 0 0 30px rgba(10, 102, 194, 0.6);
}

.linkedin-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.15));
}

@media (max-width: 768px) {
  .linkedin-float {
    bottom: 82px;
    right: 20px;
    width: 52px;
    height: 52px;
  }
  .linkedin-float svg {
    width: 24px;
    height: 24px;
  }
}


