/* ============================================================
   BASE.CSS — Reset, Custom Properties, Layout, Header, Footer
   WL Platform © Stacklabz
   ============================================================ */

/* ── Custom Properties (fallbacks — override via ThemeBuilder) ── */
:root {
  --color-primary:         #6366f1;
  --color-primary-light:   #818cf8;
  --color-secondary:       #8b5cf6;
  --color-accent:          #06b6d4;
  --color-bg:              #0a0a0f;
  --color-surface:         #13131a;
  --color-surface-alt:     #1a1a2e;
  --color-border:          rgba(255,255,255,0.08);
  --color-text:            #f1f5f9;
  --color-text-muted:      #94a3b8;
  --color-text-on-primary: #ffffff;
  --font-heading:          'Inter', sans-serif;
  --font-body:             'Inter', sans-serif;
  --font-size-base:        16px;
  --radius-btn:            12px;
  --radius-card:           16px;
  --header-height:         72px;
  --header-blur:           20px;
  --header-bg:             rgba(10,10,15,0.85);
  --footer-bg:             #07070d;
  --footer-text-color:     #94a3b8;
  --transition:            cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm:             0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:             0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:             0 24px 64px rgba(0,0,0,0.5);
  --shadow-glow:           0 0 40px rgba(99,102,241,0.25);
}

/* ── Modern Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--color-surface);
}
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 3px; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* ── Section Base ── */
.section {
  padding: clamp(4rem, 10vw, 8rem) 0;
  position: relative;
  overflow: hidden;
}
.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  background: rgba(99,102,241,0.12);
  padding: 0.35em 1em;
  border-radius: 100px;
  border: 1px solid rgba(99,102,241,0.25);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
}
.section-footer { text-align: center; margin-top: 3rem; }

/* ── Grid Helpers ── */
.grid-cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

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

/* ══════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: all 0.4s var(--transition);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Blur header */
.header-blur {
  background: var(--header-bg);
  backdrop-filter: blur(var(--header-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--header-blur)) saturate(180%);
  border-bottom: 1px solid var(--color-border);
}
.header-blur.scrolled {
  background: rgba(10,10,15,0.95);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

/* Solid header */
.header-solid {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

/* Transparent header */
.header-transparent {
  background: transparent;
}
.header-transparent.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

/* Liquid Glass header */
.header-liquid_glass {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(24px) saturate(200%) brightness(1.1);
  -webkit-backdrop-filter: blur(24px) saturate(200%) brightness(1.1);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.header-liquid_glass::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.06) 0%,
    rgba(255,255,255,0.01) 50%,
    rgba(255,255,255,0.04) 100%);
  pointer-events: none;
}
.liquid-glass-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.15;
  pointer-events: none;
  animation: lgFloat 8s ease-in-out infinite;
}
.lg-orb-1 {
  width: 200px; height: 200px;
  background: var(--color-primary);
  top: -100px; left: 10%;
}
.lg-orb-2 {
  width: 150px; height: 150px;
  background: var(--color-secondary);
  top: -80px; right: 15%;
  animation-delay: -4s;
}
@keyframes lgFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(10px) scale(1.05); }
}

/* Brand */
.header-brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header-logo    { height: 36px; width: auto; }
.header-logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav */
.header-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  padding: 0.5rem 0.875rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 16px; height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transition: transform 0.25s var(--transition);
}
.nav-link:hover, .nav-link--active {
  color: var(--color-text);
}
.nav-link:hover::after, .nav-link--active::after {
  transform: translateX(-50%) scaleX(1);
}
.nav-link--active { color: var(--color-primary); }

/* Header CTA */
.header-cta { margin-left: 0.5rem; flex-shrink: 0; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: all 0.3s var(--transition);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--header-height); left: 0; right: 0;
  background: var(--color-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transform: translateY(-110%);
  opacity: 0;
  transition: all 0.4s var(--transition);
  z-index: 999;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu-inner {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mobile-nav-list { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav-link {
  display: block;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: 10px;
  transition: all 0.2s ease;
}
.mobile-nav-link:hover, .mobile-nav-link--active {
  color: var(--color-text);
  background: rgba(255,255,255,0.05);
}
.mobile-nav-link--active { color: var(--color-primary); }
.mobile-cta { margin-top: 0.5rem; }
.btn-block { width: 100%; text-align: center; }
.mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-overlay.open { opacity: 1; pointer-events: all; }

@media (max-width: 768px) {
  .header-nav, .header-cta { display: none; }
  .hamburger { display: flex; }
}

/* ══════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  transition: all 0.25s var(--transition);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }

.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.8rem; }

/* Primary */
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  box-shadow: 0 4px 16px rgba(99,102,241,0.35);
}
.btn-primary:hover {
  background: var(--color-primary-light);
  box-shadow: 0 8px 24px rgba(99,102,241,0.5);
  transform: translateY(-2px);
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  background: rgba(99,102,241,0.08);
}

/* Gradient style */
.btn-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  box-shadow: 0 4px 16px rgba(99,102,241,0.4);
}
.btn-gradient:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 28px rgba(99,102,241,0.5);
  transform: translateY(-2px);
}

/* Glass style */
.btn-glass {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--color-text);
}
.btn-glass:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-2px);
}

/* Neon style */
.btn-neon {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  box-shadow: 0 0 12px rgba(99,102,241,0.3), inset 0 0 12px rgba(99,102,241,0.05);
}
.btn-neon:hover {
  background: rgba(99,102,241,0.1);
  box-shadow: 0 0 24px rgba(99,102,241,0.5), inset 0 0 24px rgba(99,102,241,0.1);
  transform: translateY(-2px);
}

/* Solid */
.btn-solid {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
}

.btn-arrow { transition: transform 0.2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ══════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════ */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  transition: all 0.3s var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover {
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 30px rgba(99,102,241,0.1);
}
.card:hover::before { opacity: 1; }

/* ══════════════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════════════ */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
}
.form-input {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--color-text);
  font-size: 0.9rem;
  transition: all 0.2s ease;
  width: 100%;
}
.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.form-input::placeholder { color: var(--color-text-muted); opacity: 0.7; }
.form-textarea { resize: vertical; min-height: 120px; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-alert {
  padding: 0.875rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
}
.form-alert--success {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  color: #34d399;
}
.form-alert--error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
}

/* ══════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding-top: 4rem;
}
.footer-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  padding-bottom: 3rem;
}
@media (max-width: 640px) {
  .footer-main { grid-template-columns: 1fr; }
}
.footer-logo     { height: 32px; width: auto; margin-bottom: 0.75rem; }
.footer-logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.75rem;
}
.footer-tagline {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  max-width: 280px;
}
.footer-social { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.social-link {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text-muted);
  transition: all 0.2s ease;
}
.social-link:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: rgba(99,102,241,0.1);
  transform: translateY(-2px);
}
.footer-nav { display: flex; gap: 3rem; }
.footer-nav-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.footer-nav-col ul { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-nav-col a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}
.footer-nav-col a:hover { color: var(--color-text); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.footer-dev-link {
  color: var(--color-primary);
  font-weight: 600;
  transition: opacity 0.2s;
}
.footer-dev-link:hover { opacity: 0.8; }

/* ══════════════════════════════════════════════════
   WHATSAPP FLOAT
   ══════════════════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: #25d366;
  color: white;
  padding: 0.875rem 1.25rem;
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s var(--transition);
  text-decoration: none;
}
.whatsapp-float:hover {
  background: #20b858;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 28px rgba(37,211,102,0.55);
}
.whatsapp-bottom_right { bottom: 1.5rem; right: 1.5rem; }
.whatsapp-bottom_left  { bottom: 1.5rem; left: 1.5rem; }
@media (max-width: 480px) {
  .whatsapp-label { display: none; }
  .whatsapp-float { padding: 0.875rem; border-radius: 50%; }
}

/* ══════════════════════════════════════════════════
   PAGE HERO (About / Gallery)
   ══════════════════════════════════════════════════ */
.page-hero {
  min-height: 360px;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 4rem) 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-content { position: relative; z-index: 1; }
.page-breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.page-breadcrumb a { color: var(--color-primary); }
.page-breadcrumb span { color: var(--color-text-muted); }
.page-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-text), var(--color-text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}
.page-hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 560px;
}

/* ── Add top padding to body to account for fixed header ── */
#main-content {
  padding-top: var(--header-height);
}
.page-home #main-content { padding-top: 0; }
