/* ============================================================
   TEDx PCTE — Global Stylesheet
   Theme: Black & Red | Bebas Neue + Barlow
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:ital,wght@0,300;0,400;0,600;0,700;1,300&family=Barlow+Condensed:wght@300;400;700;900&display=swap');

/* ── VARIABLES ── */
:root {
  --red:       #e92215;
  --red-dark:  #a01c12;
  --red-deep:  #6b1009;
  --red-glow:  rgba(230,43,30,0.35);
  --black:     #070707;
  --black2:    #101010;
  --black3:    #181818;
  --black4:    #222222;
  --white:     #f4f4f2;
  --white2:    #cccccc;
  --grey:      white;
  --grey2:     white;
  --grey3:     white;
  --font-display: 'Arial', sans-serif;
  --font-cond:    'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  cursor: none;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── NOISE TEXTURE ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9000;
}

/* ── CUSTOM CURSOR ── */
#cursor {
  position: fixed; width: 10px; height: 10px;
  background: var(--red); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform 0.08s, opacity 0.2s;
}
#cursor-ring {
  position: fixed; width: 34px; height: 34px;
  border: 1.5px solid rgba(230,43,30,0.7);
  border-radius: 50%; pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: transform 0.18s ease, width 0.25s ease, height 0.25s ease, opacity 0.2s;
}
#cursor-ring.hover { width: 56px; height: 56px; opacity: 0.4; }

/* ── NAVBAR ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 64px;
  background: linear-gradient(to bottom, rgba(7,7,7,0.98) 0%, transparent 100%);
  transition: background 0.4s, border-color 0.4s, padding 0.4s;
}
#navbar.scrolled {
  background: rgba(7,7,7,0.97);
  border-bottom: 1px solid var(--grey3);
  padding: 14px 64px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.9rem; letter-spacing: 0.06em;
  color: var(--white); text-decoration: none;
  display: flex; align-items: center; gap: 2px;
}
.nav-logo .x { color: var(--red); }
.nav-logo .org {
  font-family: var(--font-cond); font-size: 0.65rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--grey); margin-left: 10px; margin-top: 4px;
}
.nav-links { display: flex; list-style: none; gap: 36px; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--grey);
  font-family: var(--font-cond); font-size: 0.9rem;
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  position: relative; transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -5px; left: 0;
  width: 0; height: 2px; background: var(--red);
  transition: width 0.35s var(--ease-out);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-cta {
  padding: 10px 28px;
  background: var(--red);
  color: var(--white) !important;
  font-family: var(--font-cond) !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: background 0.3s !important;
}
.nav-cta:hover { background: var(--red-dark) !important; }
.nav-cta::after { display: none !important; }

/* HAMBURGER */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--white); transition: all 0.35s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile NAV drawer */
.nav-drawer {
  display: none; position: fixed;
  top: 0; right: 0; bottom: 0; width: 280px;
  background: var(--black2); z-index: 4999;
  flex-direction: column; gap: 0;
  padding: 90px 40px 40px;
  transform: translateX(100%); transition: transform 0.4s var(--ease-out);
  border-left: 1px solid var(--grey3);
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer a {
  display: block; padding: 16px 0;
  border-bottom: 1px solid var(--grey3);
  text-decoration: none; color: var(--white2);
  font-family: var(--font-cond); font-size: 1.2rem;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  transition: color 0.3s, padding-left 0.3s;
}
.nav-drawer a:hover { color: var(--red); padding-left: 8px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; cursor: pointer;
  font-family: var(--font-cond); font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  border: none; transition: all 0.3s;
  position: relative; overflow: hidden;
}
.btn-red {
  padding: 15px 40px; background: var(--red); color: var(--white);
  font-size: 0.95rem;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
}
.btn-red::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-110%) skewX(-20deg);
  transition: transform 0.45s;
}
.btn-red:hover::before { transform: translateX(110%) skewX(-20deg); }
.btn-red:hover { background: var(--red-dark); }

.btn-outline {
  padding: 14px 38px; background: transparent;
  color: var(--white); font-size: 0.95rem;
  border: 1px solid var(--grey2);
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }

.btn-ghost {
  padding: 0; background: transparent; color: var(--red);
  font-size: 0.85rem; border: none;
}
.btn-ghost .arrow {
  display: inline-block;
  transition: transform 0.3s;
}
.btn-ghost:hover .arrow { transform: translateX(6px); }

/* ── SECTION BASE ── */
.section { padding: 110px 64px; position: relative; }
.section-alt { background: var(--black2); }
.section-label {
  font-family: var(--font-cond); font-size: 0.78rem;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--red); margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before {
  content: ''; display: block;
  width: 30px; height: 1px; background: var(--red);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 5.5rem);
  line-height: 0.93; letter-spacing: 0.01em;
}
.section-title .accent { color: var(--red); }
.section-subtitle {
  font-size: 1.05rem; font-weight: 300;
  color: var(--grey); line-height: 1.75;
  max-width: 560px; margin-top: 20px;
}
.section-header-row {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 64px; gap: 24px;
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0; transform: translateY(48px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0; transform: translateX(-48px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0; transform: translateX(48px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale {
  opacity: 0; transform: scale(0.88);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* ── MARQUEE BAND ── */
.marquee-band {
  overflow: hidden; background: var(--red);
  padding: 18px 0; border-top: 1px solid var(--red-dark);
  border-bottom: 1px solid var(--red-dark);
}
.marquee-track {
  display: flex; gap: 60px; animation: marquee 22s linear infinite;
  white-space: nowrap;
}
.marquee-track.reverse { animation-direction: reverse; }
.marquee-item {
  font-family: var(--font-display); font-size: 1.5rem; font-weight:500;
  letter-spacing: 0.1em; color: white;
  display: flex; align-items: center; gap: 28px; flex-shrink: 0;
}
.marquee-dot { width: 5px; height: 5px; background: rgba(7,7,7,0.5); border-radius: 50%; }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── FOOTER ── */
footer {
  background: var(--black); border-top: 1px solid var(--grey3);
  padding: 70px 64px 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 60px;
}
.footer-brand .logo {
  font-family: var(--font-display); font-size: 2.2rem;
  letter-spacing: 0.06em; color: var(--white);
}
.footer-brand .logo .x { color: var(--red); }
.footer-brand p {
  font-size: 0.9rem; font-weight: 300; color: var(--grey);
  line-height: 1.7; margin-top: 16px; max-width: 240px;
}
.footer-col h4 {
  font-family: var(--font-cond); font-size: 0.8rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--red); margin-bottom: 22px;
}
.footer-col a {
  display: block; text-decoration: none; color: var(--grey);
  font-size: 0.92rem; font-weight: 300;
  margin-bottom: 12px; transition: color 0.3s, padding-left 0.3s;
}
.footer-col a:hover { color: var(--white); padding-left: 6px; }
.footer-bottom {
  border-top: 1px solid var(--grey3); padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy {
  font-size: 0.8rem; color: var(--grey); letter-spacing: 0.05em;
}
.footer-socials { display: flex; gap: 12px; }
.social-icon {
  width: 38px; height: 38px; border: 1px solid var(--grey3);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: var(--grey);
  font-family: var(--font-cond); font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.08em;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.social-icon:hover { border-color: var(--red); color: var(--white); background: var(--red); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  #navbar { padding: 18px 28px; }
  #navbar.scrolled { padding: 13px 28px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-drawer { display: flex; }
  .section { padding: 80px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .section-header-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  footer { padding: 56px 28px 28px; }
  .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}
