/* =============================================
   NRCC BERLIN – Shared Stylesheet
   nrccberlin.thegermanguy.org
   ============================================= */

:root {
  --red: #cc1117;
  --red-dark: #8b0a0f;
  --red-bright: #e8171e;
  --cyan: #00d4c8;
  --cyan-dark: #00a89e;
  --black: #0a0a0a;
  --dark: #100303;
  --dark2: #1a0505;
  --white: #ffffff;
  --cream: #f5f0ee;
  --grey: rgba(245, 240, 238, 0.65);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--black);
  color: var(--cream);
  overflow-x: hidden;
}

/* ---- NAV ---- */
nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(10,10,10,0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,212,200,0.18);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 72px; transition: all 0.3s;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-img {
  width: 50px; height: 50px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(0,212,200,0.45);
  box-shadow: 0 0 18px rgba(0,212,200,0.3);
  animation: pulse-logo 3s ease-in-out infinite;
}
@keyframes pulse-logo {
  0%,100% { box-shadow: 0 0 18px rgba(0,212,200,0.3); }
  50%      { box-shadow: 0 0 38px rgba(0,212,200,0.65); }
}
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-main {
  font-family: 'Playfair Display', serif; font-size: 1.05rem;
  font-weight: 900; color: var(--cyan); letter-spacing: 0.04em; line-height: 1.1;
}
.nav-logo-sub {
  font-size: 0.62rem; text-transform: uppercase;
  letter-spacing: 0.14em; color: rgba(245,240,238,0.4); font-weight: 500;
}
.nav-links { display: flex; gap: 26px; list-style: none; }
.nav-links a {
  color: rgba(245,240,238,0.8); text-decoration: none;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; position: relative; padding-bottom: 4px;
  transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--cyan); transition: width 0.3s;
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--cyan); }
.nav-links a.active::after { width: 100%; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--cyan); transition: all 0.3s; }

/* ---- SECTION UTILITIES ---- */
section { padding: 88px 5%; }
.section-label {
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--cyan); font-weight: 700; margin-bottom: 10px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 900; color: var(--white); margin-bottom: 14px;
}
.section-sub {
  color: var(--grey); font-size: 0.97rem; line-height: 1.75;
  max-width: 560px; margin-bottom: 46px;
}
.divider {
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--cyan), transparent);
  margin: 14px 0 22px; border-radius: 2px;
}
.reveal { opacity: 0; transform: translateY(28px); transition: all 0.7s cubic-bezier(0.4,0,0.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- BUTTONS ---- */
.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white); padding: 14px 32px; border-radius: 6px;
  font-weight: 700; font-size: 0.9rem; text-decoration: none;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 24px rgba(204,17,23,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none; cursor: pointer; font-family: 'DM Sans', sans-serif;
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(204,17,23,0.65); }
.btn-secondary {
  background: transparent; color: var(--cyan); padding: 13px 32px;
  border-radius: 6px; font-weight: 600; font-size: 0.9rem;
  text-decoration: none; letter-spacing: 0.05em;
  border: 1.5px solid rgba(0,212,200,0.45);
  transition: all 0.2s; cursor: pointer;
  font-family: 'DM Sans', sans-serif; display: inline-block;
}
.btn-secondary:hover { background: rgba(0,212,200,0.1); border-color: var(--cyan); }

/* ---- MODAL ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.82); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: linear-gradient(160deg, #1a0505, #0a0a0a);
  border: 1px solid rgba(0,212,200,0.3);
  border-radius: 20px; padding: 40px; max-width: 500px; width: 100%;
  position: relative;
  animation: modalIn 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,0.07); border: none; color: var(--cream);
  cursor: pointer; width: 30px; height: 30px; border-radius: 50%;
  font-size: 0.95rem; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { background: rgba(204,17,23,0.35); }
.modal-title { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--white); margin-bottom: 8px; }
.modal-body { color: var(--grey); line-height: 1.75; }

/* ---- DROPDOWN ---- */
.dropdown { position: relative; display: inline-block; }
.dropdown-toggle {
  background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.14);
  color: var(--cream); padding: 9px 17px; border-radius: 8px; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 0.85rem; font-weight: 600;
  display: flex; align-items: center; gap: 8px; transition: all 0.2s;
}
.dropdown-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: #1a0505; border: 1px solid rgba(0,212,200,0.2);
  border-radius: 10px; min-width: 175px; z-index: 500; overflow: hidden;
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.dropdown-menu.open { opacity: 1; transform: translateY(0); pointer-events: all; }
.dropdown-menu a {
  display: flex; align-items: center; gap: 10px; padding: 10px 17px;
  color: var(--cream); text-decoration: none; font-size: 0.86rem; transition: background 0.15s;
}
.dropdown-menu a:hover { background: rgba(0,212,200,0.1); color: var(--cyan); }

/* ---- FOOTER ---- */
footer {
  background: #060606; border-top: 1px solid rgba(204,17,23,0.15);
  padding: 36px 5%; display: flex; flex-wrap: wrap; gap: 18px;
  align-items: center; justify-content: space-between;
}
.footer-logo-wrap { display: flex; align-items: center; gap: 12px; }
.footer-logo-img {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; border: 1.5px solid rgba(0,212,200,0.3);
}
.footer-logo-text { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--cyan); }
.footer-copy { font-size: 0.75rem; color: rgba(245,240,238,0.35); }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: rgba(245,240,238,0.45); text-decoration: none; font-size: 0.8rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--cyan); }

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- RESPONSIVE ---- */
@media(max-width: 900px) {
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(10,10,10,0.98); padding: 20px 5%; gap: 16px;
    border-bottom: 1px solid rgba(0,212,200,0.15);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
}
