/* static/css/layout.css */

/* =========================
   Base / Page Layout
   ========================= */

html {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #0f1020;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #e8e8ff;
  overflow-x: hidden;
}
:root {
  --nav-offset: 96px; /* desktop fixed navbar height */
}
/* Content below fixed navbar */
.page {
  width: 100%;
  padding-top: var(--nav-offset);
  padding-bottom: 56px;
  box-sizing: border-box;
}

/* One consistent width for all content */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;

  padding-left: 12px;
  padding-right: 12px;

  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* =========================
   Navbar
   ========================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background-color: #0f1220;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  border-bottom: 1px solid #2b2834;

  /* Helps reduce “jump” on scroll on some GPUs */
  transform: translateZ(0);
  will-change: transform;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  box-sizing: border-box;
}

/* Logo looks like a mini-card */
.nav-logo {
  display: inline-flex;
  align-items: center;

  padding: 8px 12px;
  border-radius: 14px;

  background: linear-gradient(
    180deg,
    rgba(15, 18, 32, 0.85),
    rgba(15, 18, 32, 0.65)
  );

  border: 1px solid rgba(176, 176, 215, 0.22);

  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 8px 24px rgba(0, 0, 0, 0.35);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  transition: border-color 180ms ease, box-shadow 180ms ease,
    transform 180ms ease;
  text-decoration: none;
}

.nav-logo:hover {
  border-color: rgba(184, 184, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.nav-logo-img {
  height: 42px;
  width: auto;
  display: block;
  opacity: 0.95;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
/* Base link styling */
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;

  /* ✅ keep sizing stable always */
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;

  text-decoration: none;
  opacity: 0.9;

  /* ✅ smooth pill animation */
  background: transparent;
  transition: color 150ms ease, opacity 150ms ease, transform 150ms ease,
    border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

/* ❌ Remove underline completely */
.nav-links a::after {
  content: none;
}

/* Hover + keyboard focus = show the pill */
.nav-links a:hover,
.nav-links a:focus-visible {
  color: #e8e8ff;
  opacity: 1;
  transform: translateY(-1px);

  border-color: rgba(184, 184, 255, 0.35);
  background: rgba(15, 18, 32, 0.55);

  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Active nav link (persistent) */
.nav-links a.active {
  color: #e8e8ff;
  opacity: 1;

  border-color: rgba(210, 210, 255, 0.55);
  background: rgba(15, 18, 32, 0.55);

  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Optional: active stays slightly “stronger” even on hover */
.nav-links a.active:hover,
.nav-links a.active:focus-visible {
  transform: translateY(-1px);
}

/* Individual colors */
.nav-links li:nth-child(1) a {
  color: #8b8cc7;
}
.nav-links li:nth-child(2) a {
  color: #9e9ec6;
}
.nav-links li:nth-child(3) a {
  color: #b0b0d7;
}

/* Footer Styles */
.site-footer {
  background-color: #0b0f1a;
  color: #9ca3af;
  padding: 4rem 2rem 3rem;
  margin-top: auto;
  border-top: 1px solid #1a1f2e;
}

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

.footer-content {
  margin-bottom: 3rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-heading {
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 1rem 0;
}

/* Social Links - Icons Only */
.social-links {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon {
  width: 24px;
  height: 24px;
  color: #6b7280;
  opacity: 0.5;
  transition: all 0.3s ease;
}

/* Hover effect - brighten icon */
.social-link:hover .social-icon {
  opacity: 1;
  color: #60a5fa;
  transform: scale(1.1);
}

/* Advanced :has() effect - dim non-hovered icons */
.social-links:has(.social-link:hover) .social-link:not(:hover) .social-icon {
  opacity: 0.3;
}

/* Copyright Section */
.footer-bottom {
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-top: 1px solid #1a1f2e;
}

.copyright {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
  text-align: left;
}

/* Make footer stick to bottom */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background-color: #0b0f1a;
}

main {
  flex: 1;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 700px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
    gap: 2rem;
  }
}
/* =========================
   Mobile only
   ========================= */

@media (max-width: 480px) {
  :root {
    --nav-offset: 260px; /* stacked navbar height */
  }

  .nav-inner {
    padding: 16px;
    flex-direction: column;
    gap: 14px;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .site-footer {
    padding: 3rem 1.5rem 2rem;
  }

  .footer-bottom {
    padding-bottom: 1.5rem;
  }

  .social-links {
    gap: 1.25rem;
  }

  .social-icon {
    width: 22px;
    height: 22px;
  }
}
