@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Playfair+Display:wght@600;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-start: #020b1f;
  --bg-end: #0a1a34;
  --soft-bg: rgba(255, 255, 255, 0.04);
  --panel: rgba(6, 12, 29, 0.78);
  --panel-border: rgba(255, 255, 255, 0.20);
  --text-main: #eef1fb;
  --text-muted: #b9c2d8;
  --accent: #ffd662;
  --accent-soft: rgba(255, 214, 98, 0.24);
  --shadow: 0 14px 42px rgba(0, 0, 0, 0.38);
  --gold-glow: 0 0 25px rgba(255, 214, 98, 0.5);
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  /* font-family: 'Inter', sans-serif; */
  font-family: 'Cinzel', serif;
  background: radial-gradient(circle at top left, rgba(7, 14, 34, 0.9), rgba(4, 9, 24, 1) 55%),
    linear-gradient(135deg, var(--bg-start), var(--bg-end));
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  /* font-family: 'Playfair Display', serif; */
  font-family: 'Bebas Neue', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1140px, 90vw);
  margin: 0 auto;
}

.large-logo {
  width: 250px;
  height: auto;
  display: block;
  margin: 2rem auto;
  filter: drop-shadow(0 4px 8px rgba(255, 214, 98, 0.3));
}

.logo-section {
  text-align: center;
  padding: 2rem 0;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0.8rem;
  transition: background-color 0.35s ease, backdrop-filter 0.35s ease, border-bottom 0.35s ease;
  backdrop-filter: blur(7px);
  border-bottom: 1px solid transparent;
}

.topbar.scrolled {
  background-color: rgba(9, 17, 37, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #f7d272;
  text-shadow: 0 0 8px rgba(255, 214, 98, 0.45), 0 0 20px rgba(255, 214, 98, 0.15);
  background: linear-gradient(135deg, #ffd95a, #f1c24c, #f7e5b3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-logo {
  width: 80px;
  height: auto;
  object-fit: contain;
}

.hero-section-logo {
  width: 90px;
  height: auto;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.social-row {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.75rem;
}

.social-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.social-icon:hover img {
  transform: scale(1.08);
  filter: brightness(1.2);
}

.nav {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
}

.nav-link {
  position: relative;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.3;
  padding: 0.45rem 0.15rem;
  transition: color 0.22s ease, text-shadow 0.22s ease;
}

.nav-link:hover {
  color: var(--text-main);
  text-shadow: var(--gold-glow);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.22rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 214, 98, 0.95), rgba(255, 214, 98, 0.4));
  box-shadow: var(--gold-glow);
  transition: width 0.26s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-main);
  margin: 4px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.open .hamburger-line:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.open .hamburger-line:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.lang-switch {
  display: flex;
  gap: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 0.25rem;
  backdrop-filter: blur(8px);
}

.lang-btn {
  background: rgba(17, 32, 68, 0.8);
  border: 1px solid rgba(255, 214, 98, 0.5);
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lang-btn.active,
.lang-btn:hover {
  color: #ffffff;
  background-color: rgba(255, 214, 98, 0.2);
  border-color: rgba(255, 214, 98, 0.8);
}

.page-transition-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 14, 28, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  z-index: 1200;
}

.page-transition-overlay.transitioning {
  opacity: 1;
  pointer-events: all;
}

.splash-screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  mix-blend-mode: normal;
  z-index: 1300;
  background: linear-gradient(145deg, rgba(5, 14, 33, 0.92), rgba(7, 12, 30, 0.95));
  opacity: 1;
  transition: opacity 0.7s ease;
}

.splash-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.splash-content {
  text-align: center;
}

.logo-container {
  display: grid;
  place-items: center;
  animation: splashFade 2.4s ease-in-out forwards;
  opacity: 0;
  transform: scale(0.95);
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.logo-circle {
  display: none;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 2rem;
  letter-spacing: 0.16rem;
}

.logo-subtitle {
  font-family: 'Inter', sans-serif;
  margin-top: 0.8rem;
  color: rgba(226, 232, 246, 0.85);
}

@keyframes splashFade {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  25% {
    opacity: 1;
    transform: scale(1);
  }
  75% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.05);
  }
}

.page-content {
  padding-top: 84px;
}

.section {
  padding: clamp(3.5rem, 8vw, 8rem) 0;
  min-height: 60vh;
}

.hero {
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
}

.split .hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.hero-text,
.hero-details {
  text-align: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-text {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.hero-section-logo {
  width: min(260px, 45vw);
  max-width: 340px;
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 22px rgba(255,214,98,0.6));
}

.hero-text h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: var(--gold-glow);
}

.hero-text p {
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  max-width: 700px;
  color: #e5eafc;
  margin: 1rem 0 1.5rem;
}

.countdown-section {
  background: linear-gradient(135deg, rgba(30, 50, 90, 0.4), rgba(15, 25, 50, 0.5));
  border: 1px solid rgba(255, 214, 98, 0.25);
  border-radius: 20px;
}

.countdown-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffd662;
  text-shadow: 0 0 15px rgba(255, 214, 98, 0.6);
  text-align: center;
  margin-bottom: 2rem;
}

.countdown-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 700px;
  margin: 0 auto;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.countdown-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: #ffd662;
  text-shadow: 0 0 20px rgba(255, 214, 98, 0.7), 0 0 40px rgba(255, 214, 98, 0.3);
  line-height: 1;
  min-width: 80px;
  text-align: center;
}

.countdown-label {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  color: #b9c2d8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.countdown-separator {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: rgba(255, 214, 98, 0.5);
  margin: 0 0.5rem;
  line-height: 1;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 49%, 100% {
    opacity: 1;
  }
  50%, 99% {
    opacity: 0.4;
  }
}

@media (max-width: 768px) {
  .countdown-container {
    gap: 0.5rem;
  }

  .countdown-number {
    min-width: 60px;
  }

  .countdown-separator {
    margin: 0 0.25rem;
  }
}

.btn {
  display: inline-block;
  text-decoration: none;
  border: 2px solid rgba(255, 214, 98, 0.8);
  border-radius: 8px;
  padding: 1rem 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.22s ease, background-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-primary {
  background: linear-gradient(150deg, #ffd662, #f1c24c);
  color: #081226;
  border-color: #ffd662;
  box-shadow: 0 0 25px rgba(255, 214, 98, 0.5);
}

.btn-secondary {
  background: rgba(17, 32, 68, 0.95);
  color: #e8ebf7;
  border-color: rgba(255, 214, 98, 0.8);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), var(--gold-glow);
}

.btn-primary:hover {
  background: linear-gradient(150deg, #ffe082, #f4c842);
  color: #061722;
  border-color: #ffe082;
}

.btn-secondary:hover {
  background: rgba(22, 37, 73, 0.98);
  color: #ffffff;
  border-color: #ffd662;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4375rem;
  padding: 0.3rem;
  min-width: auto;
  min-height: auto;
  border: none;
  background: transparent;
  box-shadow: none;
  font-weight: 700;
}

.icon-btn img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.icon-btn .icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.glass-section {
  background: rgba(14, 24, 47, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.info-card,
.apply-card,
.lock-card,
.president-card,
.map-wrapper {
  background: rgba(8, 16, 33, 0.72);
  border: 1px solid rgba(255, 214, 98, 0.35);
  border-radius: 16px;
  padding: 1.6rem;
  box-shadow: var(--shadow), 0 0 15px rgba(255, 214, 98, 0.35);
}

.apply-card {
  text-align: center;
}

.apply-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .apply-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.apply-card--delegate {
  border-color: rgba(255, 214, 98, 0.6);
}

.apply-card--organizer {
  border-color: rgba(100, 200, 255, 0.5);
}

.info-card h3,
.apply-card h2,
.lock-card h2,
.president-card h2,
.map-wrapper h3 {
  font-family: 'Playfair Display', serif;
  margin-top: 0;
}

.cards-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 1rem;
}

@media (max-width: 980px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 680px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

.apply-action-wrap {
  text-align: center;
  margin-top: 1.2rem;
}

.apply-btn {
  min-width: 180px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.faq-item {
  background: rgba(14, 23, 45, 0.72);
  border: 1px solid rgba(255, 214, 98, 0.28);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.faq-item:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 214, 98, 0.6);
}

.faq-item h3 {
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
}

.faq-item p {
  margin: 0;
  color: #cfd8ef;
  line-height: 1.6;
}

.card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.1rem;
  background: rgba(9, 23, 45, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card h4 {
  font-weight: bold;
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
}

.keyword-highlight {
  font-weight: bold !important;
  color: var(--accent) !important;
  text-shadow: var(--gold-glow) !important;
  position: relative;
}

.keyword-highlight::before {
  content: '';
  position: absolute;
  bottom: -0.2rem;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.card p {
  margin: 0;
  color: #d3d9ef;
  font-size: 0.95rem;
}

.hover-raise:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.34);
}

.locked-page {
  display: grid;
  place-items: center;
  min-height: calc(80vh - 84px);
  text-align: center;
}

.lock-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

h1, h2, h3, h4, .info-card h3, .president-text h3 {
  font-family: 'Bebas Neue', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.info-card h3 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  color: #ffd662;
  text-shadow: 0 0 8px rgba(255, 214, 98, 0.85);
}

.president-card {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  align-items: center;
  gap: 1.5rem;
}

/* President page images (Umut + Aybars) */
.president-media img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
  min-height: 420px;
}

.president-text p {
  margin: 0.7rem 0;
  color: #d9e0f5;
  line-height: 1.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}

/* Contact page: social icons vertically on the left + email text next to them */
.contact-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.contact-social .social-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}

.contact-email-line {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  font-weight: 600;
  opacity: 0.95;
}

.contact-grid h2 {
  font-family: 'Playfair Display', serif;
}

.section.lead-up {
  background: linear-gradient(160deg, rgba(19, 43, 81, 0.6), rgba(12, 19, 39, 0.8));
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

footer {
  padding: 1.2rem 0 2rem;
  color: #c1c7db;
}

/* President page: primary + Aybars secondary blocks */
.president-card--stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.president-block {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr;
  align-items: center;
  gap: 1.5rem;
}

.president-media img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
}

.president-text {
  padding-right: 0.2rem;
}

.president-divider {
  height: 1px;
  width: 100%;
  background: rgba(255, 214, 98, 0.25);
  border-radius: 999px;
}

.president-block--secondary {
  border-top: 0;
}

.president-media--secondary {
  justify-self: start;
}

.president-text--secondary {
  padding-right: 0.2rem;
}

/* Responsive: stack horizontally aligned blocks -> vertical to avoid overflow */
@media (max-width: 900px) {
  .president-card--stack {
    gap: 1rem;
  }

  .president-block {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .president-media--secondary {
    justify-self: center;
    width: min(520px, 95%);
  }
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hamburger {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(9, 17, 37, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    z-index: 1000;
  }

  .nav.open {
    display: flex;
  }

  .lang-switch {
    order: 2;
  }

  .nav-wrap {
    justify-content: space-between;
  }

  .split .hero-inner,
  .president-card,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 0.84rem 0.8rem;
  }

  .hero-text h1 {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .hero-text p {
    font-size: 1rem;
  }

  .section {
    padding: clamp(2.5rem, 8vw, 6rem) 0;
  }
}

@media (max-width: 1200px) and (min-width: 1025px) {
  /* Large tablet styles */
  .cards-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }

  .topbar.scrolled {
    backdrop-filter: blur(12px);
  }

  .lang-switch {
    width: 100%;
    justify-content: flex-end;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .hero-details {
    display: none;
  }
}
