/* ==========================================================================
   BEARD CLICK DESIGN - REDISEÑO MODERNO (CHIRIQUÍ, PANAMÁ)
   Light & Dark Mode Support con Switcher
   ========================================================================== */

:root {
  /* Brand Accent Colors */
  --primary: #2872fa;
  --primary-hover: #1559ed;
  --primary-dark: #0f4bcc;
  --primary-light: rgba(40, 114, 250, 0.1);
  --primary-glow: rgba(40, 114, 250, 0.25);
  
  --secondary: #00d084;
  --whatsapp: #25d366;
  --whatsapp-hover: #20ba5a;

  /* LIGHT THEME (Default) */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-muted: #f1f5f9;
  --bg-input: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.9);
  --bg-header-scrolled: rgba(255, 255, 255, 0.98);
  --bg-drawer: #ffffff;
  --bg-modal: #ffffff;
  --bg-modal-inner: #f1f5f9;

  --text-main: #334155;
  --text-heading: #0f172a;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --border-color: #e2e8f0;
  --border-light: rgba(226, 232, 240, 0.8);
  --border-focus: #2872fa;

  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(40, 114, 250, 0.15), 0 10px 15px -5px rgba(15, 23, 42, 0.05);
  --shadow-card-hover: 0 20px 35px -10px rgba(40, 114, 250, 0.18);

  --hero-glow: radial-gradient(circle, rgba(40, 114, 250, 0.14) 0%, rgba(40, 114, 250, 0) 70%);
  --grad-hero: linear-gradient(180deg, rgba(40, 114, 250, 0.05) 0%, rgba(248, 250, 252, 0) 100%);
  --grad-primary: linear-gradient(135deg, #2872fa 0%, #1559ed 100%);
  --grad-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Typography */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* DARK THEME */
[data-theme="dark"] {
  --bg-body: #0b1120;
  --bg-surface: #111a2e;
  --bg-card: #131d33;
  --bg-card-hover: #17233d;
  --bg-muted: #19253d;
  --bg-input: #0e1626;
  --bg-header: rgba(11, 17, 32, 0.9);
  --bg-header-scrolled: rgba(11, 17, 32, 0.98);
  --bg-drawer: #0f172a;
  --bg-modal: #131d33;
  --bg-modal-inner: #0b1120;

  --text-main: #cbd5e1;
  --text-heading: #f8fafc;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;

  --border-color: #1e2d4a;
  --border-light: rgba(30, 45, 74, 0.8);
  --border-focus: #3b82f6;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.6);
  --shadow-card-hover: 0 20px 35px -10px rgba(40, 114, 250, 0.35);

  --hero-glow: radial-gradient(circle, rgba(40, 114, 250, 0.25) 0%, rgba(40, 114, 250, 0) 70%);
  --grad-hero: linear-gradient(180deg, rgba(40, 114, 250, 0.12) 0%, rgba(11, 17, 32, 0) 100%);
  --primary-light: rgba(40, 114, 250, 0.2);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

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

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
  position: relative;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.25;
  font-weight: 700;
  transition: color 0.3s ease;
}

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

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(40, 114, 250, 0.2);
}

[data-theme="dark"] .section-badge {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.3);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.625rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(40, 114, 250, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1559ed 0%, #0b4bd8 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 114, 250, 0.45);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-heading);
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--primary-light);
  border-color: rgba(40, 114, 250, 0.3);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn-icon-only {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 50%;
}

/* ==========================================================================
   THEME SWITCHER BUTTON
   ========================================================================== */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--text-heading);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: rgba(40, 114, 250, 0.3);
  transform: translateY(-2px);
}

.theme-icon-sun, .theme-icon-moon {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* In light mode (default or [data-theme="light"]): show moon, hide sun */
.theme-icon-sun {
  display: none;
}
.theme-icon-moon {
  display: block;
}

[data-theme="light"] .theme-icon-sun {
  display: none;
}
[data-theme="light"] .theme-icon-moon {
  display: block;
}

/* In dark mode: show sun, hide moon */
[data-theme="dark"] .theme-icon-sun {
  display: block !important;
}
[data-theme="dark"] .theme-icon-moon {
  display: none !important;
}

/* LOGO SWITCHING (Color for Light, White for Dark) */
.brand-logo {
  display: flex;
  align-items: center;
}

.brand-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.logo-dark-version {
  display: none !important;
}
.logo-color-version {
  display: block !important;
}

[data-theme="dark"] .logo-color-version {
  display: none !important;
}
[data-theme="dark"] .logo-dark-version {
  display: block !important;
}

/* ==========================================================================
   NAVBAR & HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition-smooth);
  padding: 1.125rem 0;
  background: var(--bg-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
}

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

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.desktop-nav {
  display: none;
}

@media (min-width: 992px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

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

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

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.social-links-header {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 1200px) {
  .social-links-header {
    display: flex;
  }
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.social-icon-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: rgba(40, 114, 250, 0.3);
  transform: translateY(-2px);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

@media (min-width: 992px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--text-heading);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: var(--bg-drawer);
  z-index: 1001;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: -10px 0 30px rgba(0,0,0,0.25);
  transition: var(--transition-smooth);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 17, 32, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.mobile-nav-links a {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-heading);
  display: block;
}

.mobile-nav-links a.active, .mobile-nav-links a:hover {
  color: var(--primary);
}

.mobile-drawer-footer {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: 8.5rem;
  padding-bottom: 5rem;
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--hero-glow);
  top: 10%;
  right: -100px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-tagline-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tech-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  background: var(--bg-surface);
  color: var(--primary);
  border: 1px solid rgba(40, 114, 250, 0.25);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .tech-chip {
  color: #60a5fa;
}

.hero-title {
  font-size: clamp(2.35rem, 5vw, 3.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-weight: 400;
  max-width: 540px;
}

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

.hero-stats-row {
  display: flex;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  width: 100%;
}

.hero-stat-item h4 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
}

[data-theme="dark"] .hero-stat-item h4 {
  color: #60a5fa;
}

.hero-stat-item p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
}

.hero-main-avatar {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  background: var(--bg-surface);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.hero-main-avatar:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.floating-badge {
  position: absolute;
  background: var(--bg-surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-heading);
  animation: float 4s ease-in-out infinite;
}

.floating-badge.badge-top {
  top: -15px;
  right: -15px;
}

.floating-badge.badge-bottom {
  bottom: -15px;
  left: -15px;
  animation-delay: 2s;
}

.floating-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
}

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

/* ==========================================================================
   STEPS SECTION
   ========================================================================== */
.steps-section {
  background: var(--bg-surface);
  transition: background-color 0.3s ease;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.step-card {
  background: var(--bg-body);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  position: relative;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.step-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  border-color: rgba(40, 114, 250, 0.4);
  box-shadow: var(--shadow-card-hover);
}

.step-number-badge {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .step-number-badge {
  color: #60a5fa;
}

.step-visual {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  padding: 6px;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.step-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.step-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   PORTFOLIO SECTION & GALLERY BOXES
   ========================================================================== */
.portfolio-section {
  background: var(--bg-body);
  transition: background-color 0.3s ease;
}

.portfolio-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.portfolio-search-bar {
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

.portfolio-search-input {
  width: 100%;
  padding: 0.875rem 1.25rem 0.875rem 3rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-heading);
  font-size: 0.9375rem;
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: var(--transition);
}

.portfolio-search-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

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

.portfolio-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.filter-chip {
  padding: 0.5rem 1.125rem;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.filter-chip:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: rgba(40, 114, 250, 0.3);
}

.filter-chip.active {
  background: var(--grad-primary);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(40, 114, 250, 0.35);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Portfolio Card / Box Component */
.portfolio-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(40, 114, 250, 0.4);
}

.portfolio-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

.portfolio-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-card-media img {
  transform: scale(1.06);
}

.portfolio-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

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

.portfolio-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.portfolio-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
  line-height: 1.5;
}

.portfolio-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.btn-card-view {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(40, 114, 250, 0.25);
  padding: 0.625rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  cursor: pointer;
  transition: var(--transition);
}

[data-theme="dark"] .btn-card-view {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.3);
}

.btn-card-view:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.btn-card-link {
  background: var(--text-heading);
  color: var(--text-inverse);
  border: 1px solid transparent;
  padding: 0.625rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  text-decoration: none;
  transition: var(--transition);
}

.btn-card-link:hover {
  background: var(--primary-hover);
  color: #ffffff;
}

.portfolio-empty-state {
  text-align: center;
  padding: 4rem 1rem;
  grid-column: 1 / -1;
  display: none;
}

.portfolio-empty-state.visible {
  display: block;
}

/* ==========================================================================
   LIGHTBOX / IMAGE-ONLY PREVIEW
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2002;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.lightbox-close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  transform: scale(1.1);
}

.lightbox-content {
  position: relative;
  z-index: 2001;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 95vw;
  max-height: 90vh;
  transform: scale(0.95);
  transition: var(--transition-smooth);
}

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

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
  background: var(--bg-surface);
  transition: background-color 0.3s ease;
}

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

@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.about-visual {
  position: relative;
}

.about-img-box {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--grad-dark);
  padding: 2.5rem;
  color: #ffffff;
  text-align: center;
  border: 1px solid var(--border-color);
}

.about-img-box img {
  width: 180px;
  height: 180px;
  margin: 0 auto 1.5rem auto;
  object-fit: contain;
}

.about-exp-badge {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-paragraph {
  font-size: 1.0625rem;
  color: var(--text-main);
  line-height: 1.7;
}

.about-highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .about-highlights-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.highlight-box {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  transition: var(--transition);
}

.highlight-box:hover {
  border-color: rgba(40, 114, 250, 0.4);
}

.highlight-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .highlight-icon {
  color: #60a5fa;
}

.highlight-text h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.highlight-text p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-section {
  background: var(--bg-body);
  transition: background-color 0.3s ease;
}

.faq-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.faq-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  gap: 1rem;
}

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

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

[data-theme="dark"] .faq-icon {
  color: #60a5fa;
}

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

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-body-inner {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
  background: var(--bg-surface);
  position: relative;
  transition: background-color 0.3s ease;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

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

.contact-cards-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.contact-info-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

[data-theme="dark"] .contact-card-icon {
  color: #60a5fa;
}

.contact-card-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.contact-card-text a, .contact-card-text p {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-heading);
}

.contact-card-text a:hover {
  color: var(--primary);
}

.contact-form-panel {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

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

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.375rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--text-heading);
  background: var(--bg-input);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

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

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

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #0b1120;
  color: #94a3b8;
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid #1e293b;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid #1e293b;
}

@media (min-width: 768px) {
  .footer-top-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

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

.footer-logo img {
  height: 48px;
  width: auto;
}

.footer-about-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 360px;
}

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

.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.footer-social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.footer-heading {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

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

.footer-links-list a {
  color: #94a3b8;
  font-size: 0.9375rem;
  transition: var(--transition);
}

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

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: center;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

/* ==========================================================================
   FLOATING WHATSAPP & BACK TO TOP
   ========================================================================== */
.floating-whatsapp-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.whatsapp-bubble {
  background: var(--bg-surface);
  color: var(--text-heading);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  display: none;
  animation: pulse 3s infinite;
}

@media (min-width: 640px) {
  .whatsapp-bubble {
    display: block;
  }
}

.whatsapp-float-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  transition: var(--transition-smooth);
}

.whatsapp-float-btn:hover {
  background: var(--whatsapp-hover);
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-heading);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-3px);
}
