/* ============================================================
   Homepage Stylesheet — numphys.org
   Extends style.css; only homepage-specific rules here.
   ============================================================ */

/* ---- NAV logo as link ---- */
a.nav-logo {
  text-decoration: none;
  font-family: var(--heading-font);
  font-size: 1.1rem;
  color: #e8edf8;
  white-space: nowrap;
  margin-right: 2.5rem;
  flex-shrink: 0;
  transition: color 0.2s;
}
a.nav-logo:hover { color: var(--accent); }
a.nav-logo span { color: var(--accent); }

/* Back link in thesis.html nav */
.nav-link--back {
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0 1rem;
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link--back:hover {
  color: var(--accent);
  background: rgba(255,255,255,0.04);
}

/* Placeholder dropdown links — dim them slightly */
.placeholder-link {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

/* ============================================================
   HERO
   ============================================================ */
#home-hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero_bg.png');
  background-size: cover;
  background-position: center center;
  opacity: 0.92;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(79,142,247,0.05) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(10,15,30,0.30) 0%, rgba(10,15,30,0.10) 40%, rgba(10,15,30,0.88) 100%);
}

.home-hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: 0 2rem;
  text-align: center;
  margin: 0 auto;
}

.home-hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(79,142,247,0.3);
  padding: 0.3em 1.1em;
  border-radius: 100px;
  margin-bottom: 1.6rem;
}

.home-hero-name {
  font-family: var(--heading-font);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 400;
  color: #e8edf8;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 40px rgba(0,0,0,0.8);
  line-height: 1.1;
}

.home-hero-avatar {
  display: block;
  width: clamp(120px, 18vw, 180px);
  height: auto;
  margin-bottom: 1.2rem;
  border-radius: 50%;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.7));
}

.home-hero-logo {
  display: block;
  width: clamp(400px, 65vw, 720px);
  height: auto;
  margin: 0 auto 1.4rem;
  filter: drop-shadow(0 4px 32px rgba(79,142,247,0.35));
}

.home-hero-tagline {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: #8fa8cc;
  max-width: 680px;
  margin: 0 auto 2.8rem;
  line-height: 1.7;
}

.home-hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll hint */
.home-hero-scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-dim);
  opacity: 1;
  transition: opacity 0.4s;
  animation: bounce-down 2s ease-in-out infinite;
  z-index: 2;
}

@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   SECTION CARDS GRID
   ============================================================ */
.home-sections {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem 6rem;
}

/* Featured card spans full width on wider screens */
@media (min-width: 900px) {
  .home-card--featured {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: flex-start;
  }
  .home-card--featured .home-card-icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    margin-right: 0;
    margin-bottom: 0;
  }
  .home-card--featured .home-card-arrow {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding-left: 2rem;
    font-size: 1.8rem;
    color: var(--accent);
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    transform: translateX(-8px);
    flex-shrink: 0;
  }
  .home-card--featured:hover .home-card-arrow {
    opacity: 1;
    transform: translateX(0);
  }
}

.home-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

a.home-card { cursor: pointer; }

.home-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.home-card--featured {
  border-color: rgba(79,142,247,0.35);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(18,30,53,0.95) 100%);
}
.home-card--featured:hover {
  border-color: rgba(79,142,247,0.65);
  box-shadow: 0 0 0 1px rgba(79,142,247,0.2), var(--shadow-lg);
}

.home-card--placeholder {
  opacity: 0.62;
  cursor: default;
}
.home-card--placeholder:hover {
  transform: none;
  box-shadow: none;
  background: var(--bg-card);
  border-color: var(--border);
}

/* Card icon */
.home-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border: 1px solid rgba(79,142,247,0.25);
  border-radius: var(--radius);
  color: var(--accent);
  margin-bottom: 1.4rem;
  flex-shrink: 0;
}
.home-card-icon svg { width: 24px; height: 24px; }

/* Card body */
.home-card-body { flex: 1; }

.home-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-glow);
  border: 1px solid rgba(232,184,75,0.3);
  padding: 0.2em 0.75em;
  border-radius: 100px;
  margin-bottom: 0.8rem;
}
.home-card-tag--soon {
  color: var(--text-dim);
  background: transparent;
  border-color: var(--border);
}

.home-card-title {
  font-family: var(--heading-font);
  font-size: 1.45rem;
  font-weight: 400;
  color: #e8edf8;
  margin-bottom: 0.65rem;
  line-height: 1.25;
}

.home-card-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

/* Project bullets inside the featured research card */
.home-card-projects {
  list-style: none;
  padding: 0;
  margin: 0 0 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.home-card-projects li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.home-card-projects li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}
.home-card-projects strong {
  color: var(--text);
  font-weight: 600;
  margin-right: 0.25rem;
}

/* Topic pill tags */
.home-card-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}
.home-card-topics span {
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(79,142,247,0.2);
  padding: 0.2em 0.7em;
  border-radius: 100px;
  white-space: nowrap;
}

/* Inline arrow — hidden by default on non-featured cards */
.home-card-arrow { display: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.home-footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.83rem;
}
.home-footer a { color: var(--text-muted); text-decoration: none; }
.home-footer a:hover { color: var(--text); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .home-sections { padding: 3rem 1rem 4rem; }
  .home-hero-avatar { width: clamp(90px, 22vw, 140px); }
  .home-hero-logo   { width: clamp(260px, 82vw, 480px); }

  /* Mobile nav */
  .nav-items {
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: rgba(10,15,30,0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav-items.open { max-height: 80vh; overflow-y: auto; }

  .nav-link { height: auto; padding: 0.9rem 1.4rem; }
  .dropdown-menu {
    position: static;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    border: none;
    border-radius: 0;
    background: rgba(255,255,255,0.03);
    display: none;
  }
  .nav-item.open .dropdown-menu { display: block; }

  .hamburger { display: flex; }
}

/* ============================================================
   IMPRESSUM
   ============================================================ */
.impressum-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

@media (max-width: 640px) {
  .impressum-grid { grid-template-columns: 1fr; }
}

.impressum-block h3 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.8rem;
}

.impressum-block p, .impressum-block address {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-style: normal;
}

.impressum-legal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.impressum-disclaimer {
  font-size: 0.78rem !important;
  color: var(--text-dim) !important;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
