/* ==========================================================================
   LinkUp Communications — Shared base (identical across every page):
   reset, fonts, loader, nav, mobile menu, buttons, footer, scroll-reveal.
   ========================================================================== */
:root {
  --black: #0a0a0a;
  --dark: #111111;
  --grey-dark: #1a1a1a;
  --grey: #6b6b6b;
  --grey-light: #a0a0a0;
  --white: #ffffff;
  --blue: #1159EB;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100vw;
}

/* Loader */
.loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo { width: 60px; animation: pulse 1.2s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

/* Nav */
nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, padding 0.3s ease;
}
nav.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  padding: 16px 5%;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.logo img { height: 36px; transition: transform 0.3s ease; }
.logo img:hover { transform: scale(1.05); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--grey-light); text-decoration: none; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); }
.nav-cta {
  padding: 12px 24px;
  background: var(--white);
  border: none;
  border-radius: 100px;
  color: var(--black);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}
.nav-cta:hover { transform: scale(1.05); box-shadow: 0 10px 30px rgba(255,255,255,0.1); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  z-index: 1001;
  transition: all 0.3s ease;
}
.menu-toggle span { width: 20px; height: 2px; background: var(--white); transition: all 0.3s ease; display: block; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  background: var(--black);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease, color 0.3s ease;
}
.mobile-menu.active a { opacity: 1; transform: translateY(0); }
.mobile-menu.active a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active a:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active a:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu a:hover { color: var(--grey-light); }
.mobile-menu a.active { color: var(--grey-light); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .menu-toggle { display: flex; }
}

/* Buttons */
.btn-primary {
  padding: 16px 32px;
  background: var(--white);
  border: none;
  border-radius: 100px;
  color: var(--black);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 15px 40px rgba(255,255,255,0.15); }

.btn-secondary {
  padding: 16px 32px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }

.btn-blue {
  padding: 16px 32px;
  background: var(--blue);
  border: none;
  border-radius: 100px;
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}
.btn-blue:hover { transform: translateY(-2px); box-shadow: 0 15px 40px rgba(17,89,235,0.3); }

/* Footer */
footer { padding: 60px 5% 40px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.footer-brand { max-width: 280px; }
.footer-logo { height: 32px; margin-bottom: 16px; }
.footer-description { font-size: 14px; color: var(--grey); line-height: 1.7; margin-bottom: 20px; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-socials a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-light);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s ease;
}
.footer-socials a:hover { background: var(--white); color: var(--black); border-color: var(--white); transform: translateY(-2px); }
/* SVG social icons (upgraded from plain-text glyphs) inherit the same circle button */
.footer-socials a svg { width: 16px; height: 16px; display: block; }
.footer-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--grey); margin-bottom: 20px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 14px; color: var(--grey-light); text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; }
.footer-copyright { font-size: 13px; color: var(--grey); }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s cubic-bezier(0.5, 0, 0, 1), transform 0.7s cubic-bezier(0.5, 0, 0, 1); }
.reveal.show { opacity: 1; transform: translateY(0); }
