/* ==========================================================================
   DESIGN SYSTEM - Abdul-Karim Electrical Engineering
   ========================================================================== */

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

:root {
  /* Brand Colors */
  --color-primary: #1F3F70;
  --color-primary-dark: #102A55;
  --color-accent: #FF5A00;
  --color-accent-hover: #E65100;
  --color-white: #FFFFFF;
  --color-light-gray: #F7F8FA;
  --color-text-dark: #2D3748;
  --color-text-muted: #64748b;
  
  /* Backgrounds */
  --bg-body: var(--color-white);
  --bg-section-alt: var(--color-light-gray);
  
  /* Typography */
  --font-heading: 'Open Sans', sans-serif; /* Open Sans ExtraBold (800) used for Headings */
  --font-body: 'Montserrat', sans-serif;
  
  /* Spacing (Whitespace Focus) */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-xxl: 8rem;
  
  /* Radii (Rounded Corners) */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  
  /* Shadows (Soft & Premium) */
  --shadow-sm: 0 4px 6px -1px rgba(31, 63, 112, 0.05), 0 2px 4px -1px rgba(31, 63, 112, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(31, 63, 112, 0.08), 0 4px 6px -2px rgba(31, 63, 112, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(31, 63, 112, 0.1), 0 10px 10px -5px rgba(31, 63, 112, 0.04);
  --shadow-hover: 0 25px 50px -12px rgba(31, 63, 112, 0.15);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--bg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

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

button, input, select, textarea {
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

p {
  margin-bottom: var(--space-sm);
  color: var(--color-text-dark);
}

.text-lead {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-white { color: var(--color-white); }

/* ==========================================================================
   LAYOUT & GRID
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-xl) 0;
}

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

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

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

.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-cols-2 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(1, 1fr); }

@media (min-width: 768px) {
  .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600; /* Montserrat SemiBold */
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-base);
  text-align: center;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(255, 90, 0, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 90, 0, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-white {
  background-color: var(--color-white);
  color: var(--color-primary);
}

.btn-white:hover {
  background-color: var(--color-light-gray);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
}

.header.scrolled {
  padding: 0.75rem 0;
  box-shadow: var(--shadow-md);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.nav-links a {
  font-weight: 500;
  color: var(--color-primary-dark);
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition-base);
}

.nav-links a:not(.btn):hover::after,
.nav-links a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-primary-dark);
  margin-bottom: 5px;
  transition: var(--transition-base);
}

/* Hero Section */
.hero {
  padding-top: calc(80px + var(--space-xl));
  padding-bottom: var(--space-xl);
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.hero-image-wrapper {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: 1;
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--bg-body) 0%, rgba(255,255,255,0) 100%);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-primary);
}

.badge svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}

/* Cards (Elegant & Corporate) */
.card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card-image-wrapper {
  margin: calc(var(--space-md) * -1) calc(var(--space-md) * -1) var(--space-md);
  height: 240px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--color-light-gray);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

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

/* Process Section */
.process-step {
  text-align: center;
  position: relative;
}

.process-number {
  width: 64px;
  height: 64px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 0 10px rgba(31, 63, 112, 0.1);
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Footer */
.footer {
  background-color: var(--color-primary-dark);
  color: rgba(255,255,255,0.7);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer h4 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255,255,255,0.7) !important;
}

.footer-bottom a {
  color: rgba(255,255,255,0.7) !important;
  transition: var(--transition-base);
}

.footer-bottom a:hover {
  color: var(--color-accent) !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
html, body {
  overflow-x: hidden;
}

@media (max-width: 1024px) {
  .hero-image-wrapper {
    width: 40%;
  }
}

@media (max-width: 768px) {
  :root {
    --space-md: 1.25rem;
    --space-lg: 2.5rem;
    --space-xl: 3.5rem;
    --space-xxl: 4.5rem;
  }

  .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    flex-direction: column;
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
    gap: 0;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity var(--transition-base), transform var(--transition-base);
  }
  
  .nav-links.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 1rem 0; /* Ensure 44px min touch target */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-fast);
  }

  .nav-links a:not(.btn)::after {
    display: none;
  }

  .nav-links a.active {
    color: var(--color-accent);
    font-weight: 700;
  }

  .nav-links a.btn {
    border-bottom: none;
    margin-top: 1rem;
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    padding-top: 120px;
    min-height: auto;
  }

  .hero-image-wrapper {
    display: none; /* Hide on mobile for clean focus on text/CTA */
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  
  .trust-badges {
    justify-content: center;
    gap: 1.25rem;
  }

  .badge {
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   FORMS
   ========================================================================== */

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

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-primary-dark);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-base);
  background: var(--color-white);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 90, 0, 0.1);
}

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

/* ==========================================================================
   ACCORDION / FAQ
   ========================================================================== */

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-item details {
  width: 100%;
}

.faq-item summary {
  padding: 1.25rem 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-primary-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-base);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

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

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  transition: transform var(--transition-base);
}

.faq-item details[open] summary .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  padding-bottom: 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   PROJECTS MASONRY & FILTERS
   ========================================================================== */

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(31, 63, 112, 0.2);
  background: transparent;
  color: var(--color-primary-dark);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.masonry-grid {
  column-count: 1;
  column-gap: 1.5rem;
}

@media (min-width: 768px) {
  .masonry-grid { column-count: 2; }
}

@media (min-width: 1024px) {
  .masonry-grid { column-count: 3; }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.masonry-item.hidden {
  display: none;
}

.project-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.project-card-image {
  position: relative;
  overflow: hidden;
  line-height: 0;
}

.project-card-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-card-image img {
  transform: scale(1.05);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(31,63,112,0.95) 0%, rgba(31,63,112,0.4) 50%, rgba(31,63,112,0) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

@media (max-width: 768px) {
  .project-card-overlay {
    opacity: 1; /* Always show overlay on mobile for readability */
    background: linear-gradient(to top, rgba(31,63,112,0.9) 0%, rgba(31,63,112,0) 100%);
  }
}

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

.project-card-content {
  color: var(--color-white);
  width: 100%;
  transform: translateY(10px);
  transition: transform var(--transition-base);
}

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

.project-category-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-card-content h3 {
  color: var(--color-white);
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
}

.project-card-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ==========================================================================
   PROJECT MODAL
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 42, 85, 0.85);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

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

.modal-content {
  background: var(--color-white);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform var(--transition-base);
  display: flex;
  flex-direction: column;
}

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  color: var(--color-text-dark);
  transition: var(--transition-base);
}

.modal-close:hover {
  background: var(--color-light-gray);
  color: var(--color-accent);
}

.modal-header {
  padding: var(--space-md);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.modal-header h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.modal-body {
  padding: var(--space-md);
}

.before-after-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 600px) {
  .before-after-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ba-image-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.ba-image-container img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.ba-label {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
}

.project-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  background: var(--color-light-gray);
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.detail-item p {
  margin-bottom: 0;
}

.detail-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.detail-value {
  font-weight: 600;
  color: var(--color-primary-dark);
}

/* ==========================================================================
   WHATSAPP FLOATING ACTION BUTTON (FAB)
   ========================================================================== */
.whatsapp-fab-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none; /* Let container be click-through, but sub-elements clickable */
}

.whatsapp-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: var(--color-white);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s ease, box-shadow 0.25s ease;
  cursor: pointer;
  position: relative;
  pointer-events: auto; /* Re-enable pointer events for the button */
}

.whatsapp-fab svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.whatsapp-fab:hover {
  transform: scale(1.08);
  background-color: #20ba5a;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5), 0 12px 32px rgba(0, 0, 0, 0.2);
}

.whatsapp-fab:active {
  transform: scale(0.95);
}

/* Pulse animation around the FAB */
.whatsapp-fab::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #25D366;
  top: 0;
  left: 0;
  animation: whatsapp-pulse 2s infinite;
  pointer-events: none;
  box-sizing: border-box;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Beautiful dynamic tooltip */
.whatsapp-tooltip {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  position: relative;
}

/* Arrow for tooltip */
.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent var(--color-primary-dark);
}

.whatsapp-fab-container:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* On mobile screens, slightly smaller FAB and hide tooltip default */
@media (max-width: 768px) {
  .whatsapp-fab-container {
    bottom: 1.5rem;
    right: 1.5rem;
  }
  
  .whatsapp-fab {
    width: 52px;
    height: 52px;
  }
  
  .whatsapp-fab svg {
    width: 28px;
    height: 28px;
  }
  
  .whatsapp-tooltip {
    display: none; /* Hide tooltip on small touch screens to save space */
  }

  /* Target Section 7 and its buttons on mobile screen to prevent overflow */
  section:nth-of-type(7) {
    padding: var(--space-lg) 0 !important;
  }
  section:nth-of-type(7) > div:nth-of-type(1) > div:nth-of-type(1) {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: var(--space-sm) !important;
  }
  section:nth-of-type(7) > div:nth-of-type(1) > div:nth-of-type(1) .btn {
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

