/* =============================================
   PANDA MEA — GLOBAL DESIGN SYSTEM
   ============================================= */

:root {
  --dark: #080D18;
  --dark-2: #0C1220;
  --dark-3: #111829;
  --dark-4: #182033;
  --light: #F5F7FA;
  --accent: #1B3D7A;
  --accent-dark: #122D60;
  --accent-light: rgba(91, 155, 213, 0.12);
  --text: #FFFFFF;
  --text-body: #C0CAD8;
  --muted: #7A8BA0;
  --border: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(255, 255, 255, 0.04);
  --shadow: 0 20px 60px rgba(0,0,0,0.5);
  --shadow-accent: 0 8px 32px rgba(27,61,122,0.45);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --section-pad: 120px;
  --block-gap: 32px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Open Sans', sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { color: var(--text-body); font-size: 1.0625rem; }

.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: var(--section-pad) 0; }

.section-label {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header .section-title { margin-bottom: 16px; }
.section-header .section-desc { color: var(--text-body); max-width: 560px; margin: 0 auto; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.1);
  transition: left 0.3s ease;
}
.btn:hover::before { left: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #0A4FCC 100%);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #2B7BFF 0%, var(--accent) 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(30,107,255,0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover {
  border-color: #5B9BD5;
  color: #5B9BD5;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-xl { padding: 20px 48px; font-size: 1.1rem; }

/* === HEADER === */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}
.site-header.scrolled {
  background: rgba(8, 13, 24, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-body);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 12px; right: 12px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  border-radius: 1px;
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: var(--transition);
}

/* === ANIMATIONS (simple AOS-like) === */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="fade-right"].aos-animate { transform: translateX(0); }
[data-aos="fade-left"] { transform: translateX(30px); }
[data-aos="fade-left"].aos-animate { transform: translateX(0); }
[data-aos="fade-in"] { transform: none; }
[data-aos="fade-down"] { transform: translateY(-20px); }

/* === WHATSAPP === */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 30px rgba(37,211,102,0.4);
  transition: var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 16px 40px rgba(37,211,102,0.5);
}
.wa-tooltip {
  position: absolute;
  right: 72px;
  background: var(--dark-3);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  border: 1px solid var(--border);
}
.whatsapp-float:hover .wa-tooltip { opacity: 1; }

/* === FOOTER === */
.site-footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer-logo { height: 40px; margin-bottom: 12px; }
.footer-tagline {
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #5B9BD5;
  margin-bottom: 16px;
}
.footer-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.8; }
.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: var(--transition);
}
.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(30,107,255,0.4);
}
.footer-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 20px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-links a:hover { color: #5B9BD5; }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-contact-item a:hover { color: #5B9BD5; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: 0.85rem; color: var(--muted); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-pad: 80px; }

  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--dark-2);
    border-left: 1px solid var(--border);
    padding: 100px 32px 32px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }
  .main-nav.open { right: 0; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav-link { font-size: 1rem; padding: 12px 0; }
  .main-nav .btn-primary { display: none; }
  .hamburger { display: flex; z-index: 1001; position: relative; }
  .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .btn-xl { padding: 16px 28px; font-size: 0.95rem; }
  .logo-img { height: 36px; }
}

/* ===== CHROMA ANIMATED FRAME ===== */
.chroma-frame {
  position: relative;
  z-index: 1;
}

.chroma-frame::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  width: 100%;
  height: 100%;
  border-radius: inherit; /* Inherit border-radius from parent element */
  border: 3px solid transparent; 
  /* High chroma gradient: Navy -> Purple -> Light Blue -> Grey */
  background: linear-gradient(135deg, #0A192F, #7000ff, #5B9BD5, #8E929E) border-box; 
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  z-index: -1;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none; 
}

.chroma-frame:hover::after {
  top: -12px;
  left: -12px;
}
