/* ================================================================
   LAYOUT.CSS — Navigation, Sections, Cards, Buttons, Footer
   Synapse · Product of Synaptix Technologies · Built by Gurnoor Singh
   ================================================================ */

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 16px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(2, 4, 8, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.3s var(--ease-smooth), padding 0.3s var(--ease-smooth);
}

nav.nav-scrolled {
  padding: 12px 48px;
  background: rgba(2, 4, 8, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
  transition: color 0.3s;
}

.nav-logo:hover {
  color: var(--blue);
}

.nav-by {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  opacity: 0.75;
  margin-top: 3px;
  transition: display 0.3s;
}

/* Hide navigation sub-credits on medium screens to prevent nav crowding */
@media (max-width: 1200px) {
  .nav-by {
    display: none;
  }
}

.nav-links {
  display: flex;
  gap: clamp(6px, 1.1vw, 16px);
  align-items: center;
}

.nav-link {
  font-family: var(--font-body);
  font-size: clamp(11.5px, 0.9vw, 13px);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  padding: 5px clamp(6px, 0.7vw, 10px);
  border-radius: var(--radius-sm);
  transition: all 0.25s var(--ease-smooth);
  position: relative;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

/* Hamburger Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 600;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease-smooth);
}

.nav-toggle:hover span {
  background: var(--blue);
}

/* ── Sections ── */
section {
  position: relative;
  overflow: hidden;
  padding: 110px 60px;
  width: 100%;
}

section canvas.bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sec-wrap {
  max-width: 1500px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.sec-tag {
  font-family: var(--fw);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--purple);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sec-tag::before {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--purple);
}

.sec-title {
  font-family: var(--fd);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
}

.sec-sub {
  color: var(--dim);
  font-size: 16px;
  line-height: 1.8;
  max-width: 700px;
  margin-bottom: 60px;
}

.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  border-radius: 2px;
  margin: 0 auto 60px;
}

/* ── Glass Card ── */
.card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 28px;
  transition: all 0.35s var(--ease-smooth);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.03), 0 8px 30px rgba(0, 0, 0, 0.4);
}

.card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

/* ── Buttons ── */
.btn {
  padding: 12px 28px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.5px;
  font-weight: 600;
  transition: all 0.25s var(--ease-smooth);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-p {
  background: #ffffff;
  color: #020408;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-p:hover {
  transform: translateY(-2px);
  background: #f3f4f6;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.btn-s {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.btn-s:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 12px;
  letter-spacing: 0;
}

/* ── Footer ── */
#footer {
  background: rgba(2, 4, 8, 0.99);
  border-top: 1px solid rgba(139, 92, 246, 0.12);
  padding: 72px 60px 44px;
  position: relative;
}

#footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--blue), var(--purple), transparent);
}

.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 48px;
}

.footer-logo {
  font-family: var(--fw);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 4px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.footer-creator {
  font-family: var(--fw);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--purple);
  margin-bottom: 18px;
  opacity: 0.8;
}

.footer-desc {
  color: var(--dim);
  font-size: 13px;
  line-height: 1.8;
  max-width: 330px;
  margin-bottom: 24px;
}

.footer-sig {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(139, 92, 246, 0.07);
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: var(--radius-full);
  padding: 9px 18px;
  transition: border-color 0.3s;
}

.footer-sig:hover {
  border-color: rgba(139, 92, 246, 0.45);
}

.footer-sig-name {
  font-family: var(--fd);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-sig-role {
  font-family: var(--fd);
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--dim);
  margin-top: 1px;
}

.footer-col-title {
  font-family: var(--fd);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--purple);
  margin-bottom: 18px;
}

.footer-link {
  display: block;
  color: var(--dim);
  font-size: 12px;
  margin-bottom: 9px;
  cursor: pointer;
  transition: color 0.3s var(--ease-smooth);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--blue);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copy {
  font-family: var(--fd);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--dim);
}

.footer-copy strong {
  color: var(--purple);
}

.footer-rights {
  font-family: var(--fd);
  font-size: 8px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.15);
}

/* ── Watermark ── */
.watermark {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 999;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.15);
  pointer-events: none;
  user-select: none;
}


