/* =====================================================
   LAYOUT.CSS
   Navbar • Hamburger • Footer • Shared UI
   ===================================================== */

/* ---------------- GLOBAL HELPERS ---------------- */
html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}

/* ---------------- NAVBAR ---------------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 14px 24px;
  background: #ffffff;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);

  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 120px);
  max-width: 1200px;
  z-index: 1200;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo {
  width: 20px;
}

.logo-text {
  font-size: 20px;
  font-weight: 600;
}

/* ---------------- NAV ITEMS ---------------- */
.nav-items {
  display: flex;
  gap: 2rem;
}

.nav-items a {
  color: #000;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-items a:hover {
  color: #0078ff;
}

.nav-items a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #0078ff;
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.3s ease;
}

.nav-items a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* ---------------- HAMBURGER ---------------- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  cursor: pointer;
  z-index: 1300;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background: #000;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------------- NAVBAR MOBILE ---------------- */
@media (max-width: 1024px) {

  .hamburger {
    display: flex;
  }

  .nav-items {
    position: absolute;
    top: 72px;
    right: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);

    flex-direction: column;
    gap: 18px;
    padding: 18px 0;
    width: 220px;
    text-align: center;

    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .nav-items.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
  position: relative;
  background: linear-gradient(135deg, #f6a3ad, #f57a89);
  color: #fff;
  text-align: center;
  padding: 32px 16px 26px;
  border-top-left-radius: 90px;
  border-top-right-radius: 90px;
  margin-top: -45px;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.06);
}

.footer-container {
  max-width: 900px;
  margin: 0 auto;
}

.footer p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  font-weight: 500;
}

/* ---------------- FOOTER SOCIAL ICONS ---------------- */
/* Reuse hero style WITHOUT 3D + tooltip */

.footer .social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer .social-icons a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: #fff;
  background: rgba(255,255,255,0.18);

  /* hard overrides */
  animation: none !important;
  transform: none !important;
  backdrop-filter: none !important;
  perspective: none !important;
  box-shadow: none;

  transition: transform 0.25s ease,
              background 0.25s ease,
              color 0.25s ease;
}

.footer .social-icons a:hover {
  transform: translateY(-4px) scale(1.05);
  background: #fff;
}

/* platform colors */
.footer .social.linkedin:hover { color: #0077b5; }
.footer .social.github:hover   { color: #24292e; }
.footer .social.email:hover    { color: #d93025; }
.footer .social.twitter:hover  { color: #1da1f2; }

/* disable tooltip */
.footer .social-icons a::after {
  display: none !important;
}

/* ---------------- FOOTER RESPONSIVE ---------------- */
@media (max-width: 768px) {
  .footer {
    padding: 28px 14px 22px;
    border-top-left-radius: 70px;
    border-top-right-radius: 70px;
    margin-top: -35px;
  }

  .footer p {
    font-size: 0.88rem;
  }

  .footer .social-icons a {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 24px 10px 20px;
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    margin-top: -25px;
  }

  .footer p {
    font-size: 0.82rem;
  }

  .footer .social-icons a {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }
}

/* ================= HERO SOCIAL HOVER FIX ================= */

/* Force gradient background to win on hover */
.hero-socials .social.email:hover {
  background: linear-gradient(135deg, #ff416c, #ff4b2b) !important;
  color: #fff;
}

.hero-socials .social.linktree:hover {
  background: linear-gradient(135deg, #39e09b, #00c67c) !important;
  color: #fff;
}
