/* ========================================================
   UCCIFY — Shared Stylesheet
   ======================================================== */

/* ===== ROOT VARS ===== */
:root {
  --violet: #8f00ff;
  --blue: #3a00ff;
  --gradient: linear-gradient(135deg, var(--blue), var(--violet));
  --text-dark: #111;
  --text-light: #666;
  --bg: #fff;
  --glass: rgba(255, 255, 255, 0.82);
}

/* ===== RESET ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ===== WAVE CANVAS BACKGROUND ===== */
#waveCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  background: #fff;
}

.gradient-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(138, 43, 226, 0.06), transparent),
              radial-gradient(circle at 70% 70%, rgba(0, 0, 255, 0.06), transparent);
  z-index: -1;
  pointer-events: none;
}

/* ===== NAVBAR ===== */
nav.uccify-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.6rem 0.7rem 0.6rem 1.6rem;
  /* layered glass: faint violet-tinted white + noise shimmer */
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.78) 0%,
      rgba(245, 240, 255, 0.72) 50%,
      rgba(255, 255, 255, 0.78) 100%
    );
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-radius: 999px;
  /* top bright edge + subtle violet bottom glow */
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-bottom-color: rgba(200, 180, 255, 0.35);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.9) inset,        /* top shine */
    0 -1px 0 rgba(143, 0, 255, 0.08) inset,         /* bottom tint */
    0 8px 32px rgba(100, 60, 200, 0.12),             /* violet ambient */
    0 2px 10px rgba(0, 0, 0, 0.07);                  /* base shadow */
  transition: all 0.35s ease;
  width: min(94vw, 1060px);
}

nav.uccify-nav.scrolled {
  top: 10px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(248, 243, 255, 0.88) 50%,
      rgba(255, 255, 255, 0.9) 100%
    );
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.95) inset,
    0 8px 40px rgba(100, 60, 200, 0.16),
    0 3px 14px rgba(0, 0, 0, 0.09);
  width: min(94vw, 1060px);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 72px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 0.93rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  position: relative;
  transition: color 0.25s, background 0.25s;
}

.nav-links a::after { display: none; }

.nav-links a:hover {
  color: var(--violet);
  background: rgba(143, 0, 255, 0.07);
}

.nav-links a.active {
  color: var(--violet);
  background: rgba(143, 0, 255, 0.09);
  font-weight: 600;
}

.nav-cta {
  background: var(--gradient) !important;
  color: #fff !important;
  padding: 0.5rem 1.3rem !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  margin-left: 0.4rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s !important;
  box-shadow: 0 2px 14px rgba(143, 0, 255, 0.35);
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  opacity: 0.88;
  transform: scale(1.04);
  color: #fff !important;
  box-shadow: 0 4px 22px rgba(143, 0, 255, 0.5);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }

  nav.uccify-nav {
    border-radius: 20px;
    top: 10px;
    padding: 0.7rem 1.2rem;
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 0.2rem;
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; text-align: center; }

  .nav-links a { display: block; padding: 0.7rem 1rem; border-radius: 12px; }

  .nav-cta { margin: 0.4rem auto 0.2rem; display: inline-block; }
}

/* ===== FOOTER ===== */
footer.uccify-footer {
  background: #0a0a0a;
  color: #aaa;
  text-align: center;
  padding: 3rem 2rem;
  position: relative;
  z-index: 2;
}

footer.uccify-footer .footer-logo-link {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

footer.uccify-footer .footer-logo-img {
  height: 80px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.3s ease;
}

footer.uccify-footer .footer-logo-link:hover .footer-logo-img {
  transform: scale(1.08);
}

footer.uccify-footer .footer-logo {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  display: block;
}

footer.uccify-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

footer.uccify-footer .footer-links a {
  text-decoration: none;
  color: #aaa;
  font-size: 0.9rem;
  transition: color 0.3s;
}

footer.uccify-footer .footer-links a:hover { color: #fff; }

footer.uccify-footer .footer-copy {
  font-size: 0.82rem;
  color: #555;
  margin-top: 1rem;
}

/* ===== SHARED SECTION UTILITIES ===== */
section {
  position: relative;
  z-index: 2;
}

/* ===== CARD (shared across pages) ===== */
.card {
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  text-align: left;
  max-width: 340px;
  border-top: 4px solid transparent;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

.card:hover {
  transform: translateY(-8px);
  border-top: 4px solid var(--violet);
  box-shadow: 0 12px 25px rgba(143, 0, 255, 0.15);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  justify-items: center;
}

/* ===== GRADIENT TEXT HELPER ===== */
.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
