/* TEDxKomotini 2025 — Minimal, high-end aesthetic */

:root{
  --font-size-base: 1.08rem;  /* slightly bigger text */
  --line-height-base: 1.7;    /* comfortable line spacing */
  --letter-spacing-base: -0.01em;
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  letter-spacing: var(--letter-spacing-base);
}

/* Layout helpers */
.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

/* Global link color — TED red */
a {
  color: #e62b1e;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* Header/Nav — now 100% black */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;          /* was 50 */
  background: rgba(0,0,0,0.72); /* slight transparency so blur is visible */
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-size: 1.15rem;
}
.logo img { height: 40px; display: block; }
.menu { display: flex; gap: 24px; align-items: center; }
.menu a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  opacity: 0.9;
}
.menu a:hover { opacity: 1; }
.menu .btn-cta {
  background: var(--ted-red);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
}

/* Mobile nav */
/* Mobile nav */
.hamburger { display: none; background: none; border: 0; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; }

.mobile-drawer{
  position: fixed;
  inset: 0;
  z-index: 1000;                /* ensures it sits on top of everything */
  background: rgba(0,0,0,0.6);  /* allow blur to show the page underneath */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(-100%);
  transition: transform .35s ease;
  padding: 96px 24px 24px;
  pointer-events: none;         /* off when closed */
  will-change: transform;
}
.mobile-drawer[data-open="true"]{
  transform: translateY(0);
  pointer-events: auto;         /* clickable when open */
}
.mobile-drawer nav{ display:grid; gap:16px; }
.drawer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: #fff;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
}
.drawer-close:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.05);
}

.mobile-drawer a{
  color: var(--white);
  text-decoration: none;
  font-size: 1.25rem;
}


/* Hero (unchanged gradient background) */
.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  padding: 120px 0 56px;
  background: radial-gradient(circle at 60% 20%, var(--accent-1) 0%, var(--accent-2) 40%, var(--accent-5) 100%), #000;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url('/assets/hero-3.png');
  background-size: cover; background-position: center;
  opacity: 0.05; pointer-events: none;
  mix-blend-mode: screen;
}
.hero .eyebrow {
  color: var(--ted-red);
  text-transform: uppercase;
  letter-spacing: .25em;
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.02;
  margin: 8px 0 16px;
}
.hero .meta { display: flex; flex-wrap: wrap; gap: 16px; opacity: .9; }
.hero .cta-row { display: flex; gap: 16px; margin-top: 24px; }
.btn, .btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 999px; text-decoration: none;
  font-weight: 600;
}
.btn { background: var(--ted-red); color: var(--white); }
.btn-outline { border: 1px solid var(--white); color: var(--white); }

/* Accent headings */
h1, h2 { color: var(--white); }
.section h2::after {
  content: ""; display: block; width: 48px; height: 2px; margin-top: 8px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  opacity: .9;
}

/* Section */
.section { padding: 72px 0; }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.section p.lead { opacity: 0.84; max-width: 72ch; }
.section.alt { background: linear-gradient(180deg, rgba(124,102,217,0.08), rgba(61,44,84,0.08)); }

/* Cards grid (Speakers/Team) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.card {
  border-radius: 18px;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.08);
}
.card .thumb {
  aspect-ratio: 1080 / 1350;
  background: #111;
  display: block;
  width: 100%;
  object-fit: cover;
}
.card .content { padding: 14px 14px 18px; }
.card h3 { margin: 6px 0 4px; font-size: 1.1rem; }
.card .role { font-size: .95rem; opacity: .8; }

/* === Partner categories in a single row (title + logos per category) === */
.partners-row{
  display:flex;
  gap:64px;
  align-items:flex-start;
  flex-wrap:wrap;            /* wrap on small screens */
  margin-top:28px;
}
.partner-cat{
  flex:1 1 420px;            /* grow evenly, not below ~420px */
  min-width:320px;
}
.partner-cat h2{
  margin:0 0 16px;
}
.partner-cat .grid{
  margin-top:0;              /* no extra gap */
  display:grid;
 /* grid-template-columns:1fr !important; */ /* force one card per row per category */
  gap:24px;
}

/* Partner cards — white background with original-color logos */
.partner-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  padding: 24px;
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.partner-card img {
  width: auto;
  max-width: calc(80% * var(--scale, 1));
  max-height: calc(60px * var(--scale, 1));
  object-fit: contain;
  display: block;
  filter: none !important; /* keep original colors */
  transition: transform 0.2s ease;
}
.partner-card:hover img { transform: scale(1.05); }

/* Venue */
.venue {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}
.venue img { width: 100%; border-radius: 16px; }

/* Footer */
.site-footer {
  margin-top: 72px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 40px 0 64px;
  position: relative;
  color: #fff;
  background: linear-gradient(
    to bottom,
    #0a0a0f 0%,        /* dark navy top */
    #0d0d11 40%,       /* smooth mid tone */
    #000000 85%,       /* deep black bottom */
    #0b0000 100%       /* faint red tint */
  );
  overflow: hidden;
}

/* Subtle red glow behind content */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top center,
    rgba(230, 43, 30, 0.12),
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}

.footer-logo {
  height: 32px;
  margin-bottom: 10px;
}

.site-footer h4 {
  margin: 0 0 10px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: var(--white);
  opacity: 0.9;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.site-footer a:hover {
  opacity: 1;
}


/* Newsletter modal */
.modal { position: fixed; inset: 0; display: none; }
.modal[aria-hidden="false"] { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.75); }
.modal-dialog {
  position: relative; margin: 8vh auto 0; width: min(520px, 92vw);
  background: #0b0b0b; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px; padding: 24px 20px;
}
.modal-close { position: absolute; top: 8px; right: 12px; font-size: 28px; line-height: 1; background: none; color: var(--white); border: 0; }
.newsletter-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 6px; }
.newsletter-form input[type="email"] { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.15); background: #111; color: var(--white); }
.newsletter-form button { padding: 12px 18px; border-radius: 12px; background: var(--ted-red); border: 0; color: var(--white); font-weight: 700; }
.form-note { opacity: .7; font-size: .85rem; margin: 6px 0 0; }

/* Speaker CV Modal — fully responsive */
.modal-image {
  position: fixed; inset: 0; display: none; z-index: 60;
}
.modal-image[aria-hidden="false"] { display: grid; place-items: center; }
.modal-image .backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.88); }
.modal-image .dialog {
  position: relative;
  width: min(96vw, 1080px);
  max-height: 96vh;            /* never exceed viewport height */
  padding: 0;
  display: grid;
}
.modal-image img {
  width: 100%;
  height: auto;
  max-height: 70vh;            /* scale down for smaller screens */
  object-fit: contain;         /* keep the whole CV visible */
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: #0b0b0b;
}
.modal-image .close {
  position: absolute;
  top: 6px; right: 6px;
  background: rgba(0,0,0,.7);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  width: 36px; height: 36px;
  cursor: pointer;
  display: grid; place-items: center;
  backdrop-filter: blur(2px);
}

/* Team "post" card (single image per team) */
.team-post { display: grid; gap: 12px; }
.team-post .thumb { aspect-ratio: 1080 / 1350; object-fit: cover; border-radius: 16px; border: 1px solid rgba(255,255,255,0.08); }
.team-post .meta { opacity: .85; }

/* Gradient helpers */
.bg-gradient-hero {
  background: radial-gradient(circle at 60% 20%, var(--accent-1) 0%, var(--accent-2) 40%, var(--accent-5) 100%), #000;
}
.bg-gradient-section {
  background: linear-gradient(180deg, var(--accent-3) 0%, var(--accent-5) 100%);
}

/* Button hovers */
.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.btn-outline:hover {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  color: var(--white);
  border-color: transparent;
}

/* Responsive */
@media (max-width: 960px) {
  .menu{ display:none; }
  .hamburger{ display:inline-block; }
  .venue { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px){
  .partners-row{ gap:48px; }
}
@media (max-width: 560px) {
  .modal-image .dialog { width: 94vw; max-height: 90vh; }
  .modal-image img { max-height: 90vh; border-radius: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
}
