:root {
  --color-primary: #000000;
  --color-secondary: #ffffff;
  --color-accent: #1a1a1a;
  --color-accent-light: #f5f5f5;
  --color-text: #0f172a;
  --shadow-card: 0 20px 45px rgba(0, 0, 0, 0.08);
}

[x-cloak] {
  display: none !important;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--color-text);
  background: var(--color-secondary);
}

h1, h2, h3, h4, .font-display {
  font-family: 'Poppins', sans-serif;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #000000;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.login-dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  pointer-events: none;
}

.login-dropdown-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.login-dropdown-item {
  position: relative;
  cursor: pointer;
}

.login-dropdown-item:hover,
.login-dropdown-item:focus-visible {
  background-color: #000000;
  color: #ffffff;
  padding-left: 1.5rem;
}

.login-dropdown-item + .login-dropdown-item {
  border-top: 1px solid #f1f5f9;
}

.marquee-track {
  width: max-content;
  animation: marquee 18s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.social-icon {
  position: relative;
  isolation: isolate;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.22,.9,.32,1.1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
}

.social-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand-gradient, linear-gradient(135deg,#ffffff,#e5e5e5));
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
}

.social-icon svg {
  transition: transform 0.35s ease;
}

.social-icon:hover {
  transform: translateY(-4px) scale(1.08);
  border-color: transparent;
  box-shadow: 0 10px 24px -6px var(--brand-glow, rgba(255,255,255,0.35)),
              0 0 0 1px rgba(255,255,255,0.08) inset;
}

.social-icon:hover::before {
  opacity: 1;
}

.social-icon:hover svg {
  transform: scale(1.12);
  color: #ffffff;
}

.social-icon.linkedin   { --brand-gradient: linear-gradient(135deg,#0A66C2,#0091D5); --brand-glow: rgba(10,102,194,0.55); }
.social-icon.facebook   { --brand-gradient: linear-gradient(135deg,#1877F2,#0B5FCC); --brand-glow: rgba(24,119,242,0.55); }
.social-icon.instagram  { --brand-gradient: linear-gradient(135deg,#f58529,#dd2a7b 45%,#8134af 75%,#515bd4); --brand-glow: rgba(221,42,123,0.55); }
.social-icon.youtube    { --brand-gradient: linear-gradient(135deg,#FF0000,#B50000); --brand-glow: rgba(255,0,0,0.5); }
.social-icon.whatsapp   { --brand-gradient: linear-gradient(135deg,#25D366,#128C7E); --brand-glow: rgba(37,211,102,0.55); }

.footer-link {
  position: relative;
  transition: padding-left 0.3s ease;
}

.footer-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width 0.3s ease;
}

.footer-link:hover {
  padding-left: 6px;
}

.footer-link:hover::after {
  width: 100%;
}

#footer-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s ease;
}

#footer-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top { opacity: 0; pointer-events: none; transform: translateY(20px); }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
/* Portal mobile menu — self-contained (not dependent on purged Tailwind utilities) */
.portal-menu-btn {
  display: inline-flex;
  height: 44px;
  width: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.portal-menu-btn:hover { background: #1a1a1a; }
.portal-menu-btn:active { transform: scale(0.94); }

@media (min-width: 1024px) {
  .portal-menu-btn { display: none; }
}

.portal-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portal-mobile-overlay.hidden {
  display: none;
}

.portal-mobile-overlay.is-open {
  opacity: 1;
}

.portal-mobile-panel {
  position: relative;
  height: 100%;
  width: 280px;
  max-width: 82vw;
  background: #000;
  color: #fff;
  padding: 28px 22px;
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.35);
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.portal-mobile-overlay.is-open .portal-mobile-panel {
  transform: translateX(0);
}

.portal-mobile-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4285f4, #ea4335, #fbbc05, #34a853);
}

.portal-menu-close {
  display: inline-flex;
  height: 38px;
  width: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.portal-menu-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.service-card-v2 {
  position: relative;
  border-radius: 1.75rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(.22,.9,.32,1.1),
              box-shadow 0.4s ease;
}

.service-card-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #2451FF, #7C5CFF 55%, #14C7B4);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -24px rgba(15, 23, 42, 0.22);
}

.service-card-v2:hover::before {
  opacity: 1;
}

.service-card-ghost-num {
  position: absolute;
  top: -0.5rem;
  right: 1.25rem;
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(15, 23, 42, 0.04);
  pointer-events: none;
  transition: color 0.4s ease;
}

.service-card-v2:hover .service-card-ghost-num {
  color: rgba(15, 23, 42, 0.07);
}

.service-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 1rem;
  background: linear-gradient(135deg, #2451FF, #7C5CFF 55%, #14C7B4);
  color: #ffffff;
  box-shadow: 0 12px 20px -10px rgba(36, 81, 255, 0.55);
}

.service-explore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  color: #0f172a;
  transition: all 0.35s ease;
}

.service-card-v2:hover .service-explore-btn {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
  transform: translateX(3px);
}

.services-grid-texture {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, black 25%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, black 25%, transparent 72%);
  pointer-events: none;
}