/* ============================================
   TRAFET 2025 - MODERN UI/UX STYLESHEET
   ============================================ */

/* CSS Variables */
:root {
  --primary: #c00000;
  --primary-dark: #900000;
  --primary-light: #e63946;
  --primary-lighter: rgba(192, 0, 0, 0.08);
  
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.2);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-out;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: #fff;
  color: var(--gray-900);
  line-height: 1.6;
  letter-spacing: -0.3px;
  overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -1px;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 30px;
  color: var(--primary);
  text-align: center;
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.4;
}

p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   NAVIGATION
   ============================================ */

nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0;
  box-shadow: var(--shadow-md);
  z-index: 999;
  animation: slideDown 1s ease-out;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.nav-logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: var(--gray-900);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 8px 0;
  transition: var(--transition);
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--primary);
}

nav a:hover::after {
  width: 100%;
}

nav a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   HEADER
   ============================================ */

header {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, rgba(192, 0, 0, 0.9) 0%, rgba(144, 0, 0, 0.95) 100%), 
              url('images/background.png') center/cover no-repeat;
  background-attachment: fixed;
  text-align: center;
  padding: 20px;
  animation: fadeIn 1.5s ease-out;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.header-logo {
  max-width: 225px;
  height: auto;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  animation: slideInDown 1s ease-out 0.1s both;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
}

header h1 {
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
  animation: slideInLeft 1s ease-out 0.2s both;
}

header p {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

header p:first-of-type {
  font-size: 1.6rem;
  margin-top: 15px;
  font-weight: 500;
  animation: slideInLeft 1s ease-out 0.4s both;
}

header p:last-of-type {
  font-size: 1.3rem;
  margin-top: 8px;
  animation: slideInLeft 1s ease-out 0.6s both;
}

.countdown {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  position: relative;
  z-index: 2;
  animation: slideInUp 1s ease-out 0.8s both;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  padding: 20px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 80px;
  transition: var(--transition);
}

.countdown-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.countdown-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.countdown-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.countdown.hidden {
  display: none;
}

/* ============================================
   SECTIONS
   ============================================ */

section {
  padding: 80px 20px;
  max-width: 1100px;
  margin: 0 auto;
  animation: fadeIn 1s ease-out;
}

/* ============================================
   PROGRAM SECTION
   ============================================ */

.program-day {
  margin-bottom: 20px;
}

.program-day details {
  cursor: pointer;
  transition: var(--transition);
  border-radius: 12px;
  overflow: hidden;
}

.program-day details:hover {
  background: var(--primary-lighter);
  box-shadow: var(--shadow-md);
}

.program-day summary {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  padding: 18px 20px;
  user-select: none;
  display: flex;
  align-items: center;
  min-height: 44px;
  transition: var(--transition);
  cursor: pointer;
}

.program-day summary:hover {
  color: var(--primary-dark);
  padding-left: 24px;
}

.program-day summary:focus {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

/* Chevron Icon */
.program-day summary::before {
  content: "▼";
  display: inline-block;
  margin-right: 12px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.8rem;
}

.program-day details[open] summary::before {
  transform: rotate(180deg);
}

.program-item {
  margin-bottom: 12px;
  padding: 16px 20px;
  border-left: 4px solid var(--primary);
  background: var(--gray-50);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.5s ease-out;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: var(--transition);
}

.program-item:hover {
  background: var(--gray-100);
  box-shadow: var(--shadow-md);
  border-left-color: var(--primary-dark);
  transform: translateX(4px);
}

.program-item .time {
  font-weight: 800;
  color: var(--primary);
  font-size: 0.98rem;
  letter-spacing: 0.5px;
}

.program-session {
  margin-bottom: 12px;
  padding: 16px 20px;
  border-left: 4px solid var(--primary);
  background: var(--gray-50);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.5s ease-out;
  transition: var(--transition);
}

.program-session:hover {
  background: var(--gray-100);
  box-shadow: var(--shadow-md);
  border-left-color: var(--primary-dark);
  transform: translateX(4px);
}

.program-time {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.program-time .time {
  font-weight: 800;
  color: var(--primary);
}

.program-moderator {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--primary-dark);
  font-weight: 600;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 8px;
}

.program-speaker {
  padding: 6px 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--gray-800);
}

/* ============================================
   SPEAKERS SECTION
   ============================================ */

.accordion-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.speaker-accordion {
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.speaker-accordion:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  background: var(--primary-lighter);
}

.speaker-accordion summary {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  padding: 18px 20px;
  user-select: none;
  display: flex;
  align-items: center;
  min-height: 44px;
  background: var(--gray-50);
  transition: var(--transition);
}

.speaker-accordion:hover summary {
  background: var(--primary-lighter);
  color: var(--primary-dark);
  padding-left: 24px;
}

.speaker-accordion summary:focus {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

/* Chevron Icon for Speakers */
.speaker-accordion summary::before {
  content: "▼";
  display: inline-block;
  margin-right: 12px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.8rem;
}

.speaker-accordion[open] summary::before {
  transform: rotate(180deg);
}

.speaker-block {
  padding: 14px 20px;
  border-top: 1px solid var(--gray-200);
  background: #fff;
  font-size: 0.95rem;
  line-height: 1.6;
  animation: fadeInUp 0.3s ease-out;
  transition: var(--transition);
}

.speaker-block:hover {
  background: var(--gray-50);
  padding-left: 24px;
}

.speaker-block:first-of-type {
  border-top: none;
}

.moderator-info {
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--primary-lighter) 0%, rgba(192, 0, 0, 0.05) 100%);
  border-top: 1px solid var(--gray-200);
  border-bottom: 2px solid var(--primary);
  font-size: 0.95rem;
  color: var(--primary-dark);
  font-weight: 600;
  animation: fadeInUp 0.3s ease-out;
}

.moderator-info strong {
  color: var(--primary);
  font-weight: 800;
}

.session-group {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--gray-50);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  transition: var(--transition);
}

.session-group:hover {
  background: var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.session-header {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

/* ============================================
   SUPPORTERS SECTION
   ============================================ */

#supporters {
  padding: 0;
}

#supporters h2 {
  padding: 60px 20px 20px;
}

.logo-slider {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  padding: 40px 0;
  box-shadow: var(--shadow-md);
}

.slide-track {
  display: flex;
  gap: 50px;
  animation: scroll 60s linear infinite;
  padding: 0 50px;
  width: fit-content;
}

.slide-track img {
  height: 80px;
  width: auto;
  object-fit: contain;
  opacity: 0.6;
  transition: var(--transition);
  flex-shrink: 0;
  filter: grayscale(100%);
}

.slide-track img:hover {
  opacity: 1;
  transform: scale(1.15);
  filter: grayscale(0%);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50%));
  }
}

/* ============================================
   CONTACT SECTION
   ============================================ */

#contact p {
  text-align: center;
  font-size: 1.1rem;
  color: var(--gray-700);
  line-height: 1.8;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  margin-top: 80px;
  padding: 40px 20px;
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
  color: #fff;
  text-align: center;
  font-size: 0.95rem;
  box-shadow: var(--shadow-lg);
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  z-index: 100;
  min-width: 50px;
  min-height: 50px;
}

.scroll-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.scroll-to-top:active {
  transform: translateY(0);
}

.scroll-to-top.show {
  display: flex;
}

/* ============================================
   POPUP MODAL
   ============================================ */

#popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeIn 0.5s ease-out;
  backdrop-filter: blur(4px);
}

#popup > div {
  position: relative;
  max-width: 900px;
  width: 90%;
  animation: slideInLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#popup img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  display: block;
}

#popup button {
  position: absolute;
  top: -15px;
  right: -15px;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 14px;
  font-size: 18px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  min-width: 44px;
}

#popup button:hover {
  background: var(--primary-dark);
  transform: scale(1.1) rotate(90deg);
  box-shadow: var(--shadow-xl);
}

#popup button:active {
  transform: scale(0.95);
}

#popup button:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Poster Popup */
#posterPopup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeIn 0.5s ease-out;
  backdrop-filter: blur(4px);
}

#posterPopup > div {
  position: relative;
  max-width: 900px;
  width: 90%;
  animation: slideInLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  justify-content: center;
  align-items: center;
}

#posterPopup img {
  width: auto;
  max-width: 90%;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  display: block;
  object-fit: contain;
}

#posterPopup button {
  position: absolute;
  top: -15px;
  right: -15px;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 14px;
  font-size: 18px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  min-width: 44px;
}

#posterPopup button:hover {
  background: var(--primary-dark);
  transform: scale(1.1) rotate(90deg);
  box-shadow: var(--shadow-xl);
}

#posterPopup button:active {
  transform: scale(0.95);
}

#posterPopup button:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  section {
    padding: 60px 20px;
  }
  
  h1 {
    font-size: 2.8rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 0;
    padding: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    box-shadow: var(--shadow-md);
  }
  
  .nav-menu.active {
    max-height: 300px;
  }
  
  .nav-menu a {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.9rem;
  }
  
  .nav-menu a:last-child {
    border-bottom: none;
  }
  
  nav a {
    font-size: 0.85rem;
    padding: 6px 0;
  }
  
  .header-logo {
    max-width: 180px;
  }
  
  header {
    margin-top: 50px;
    padding: 20px 15px;
    min-height: 80vh;
  }
  
  header h1 {
    font-size: 2.4rem;
  }
  
  header p:first-of-type {
    font-size: 1.3rem;
  }
  
  header p:last-of-type {
    font-size: 1.1rem;
  }
  
  .countdown {
    gap: 15px;
    margin-top: 25px;
  }
  
  .countdown-item {
    min-width: 70px;
    padding: 15px;
  }
  
  .countdown-value {
    font-size: 2rem;
  }
  
  .countdown-label {
    font-size: 0.75rem;
  }
  
  section {
    padding: 50px 20px;
  }
  
  h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }
  
  .program-day summary,
  .speaker-accordion summary {
    font-size: 1.1rem;
    padding: 16px 15px;
  }
  
  .program-item,
  .speaker-block {
    padding: 14px 15px;
    font-size: 0.95rem;
  }
  
  .session-group {
    margin-bottom: 20px;
    padding: 16px;
  }
  
  #supporters h2 {
    padding: 50px 20px 15px;
  }
  
  .logo-slider {
    padding: 30px 0;
  }
  
  .slide-track {
    gap: 30px;
    padding: 0 20px;
  }
  
  .slide-track img {
    height: 60px;
  }
  
  footer {
    padding: 40px 20px;
    font-size: 0.95rem;
  }
  
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
  
  #popup > div {
    width: 95%;
  }
}

@media (max-width: 640px) {
  .nav-container {
    padding: 12px 15px;
  }
  
  .nav-logo {
    font-size: 1rem;
  }
  
  .nav-menu {
    top: 55px;
    padding: 15px;
  }
  
  .nav-menu.active {
    max-height: 250px;
  }
  
  .nav-menu a {
    padding: 10px 0;
    font-size: 0.85rem;
  }
  
  nav a {
    font-size: 0.8rem;
    padding: 8px 10px;
    text-align: center;
  }
  
  .header-logo {
    max-width: 140px;
  }
  
  header {
    margin-top: 45px;
    min-height: 75vh;
    padding: 20px 15px;
  }
  
  header h1 {
    font-size: 1.3rem;
    letter-spacing: -0.5px;
  }
  
  header p:first-of-type {
    font-size: 0.85rem;
  }
  
  header p:last-of-type {
    font-size: 0.75rem;
  }
  
  .countdown {
    gap: 10px;
    margin-top: 20px;
  }
  
  .countdown-item {
    min-width: 60px;
    padding: 12px;
  }
  
  .countdown-value {
    font-size: 1.5rem;
  }
  
  .countdown-label {
    font-size: 0.65rem;
  }
  
  section {
    padding: 30px 12px;
  }
  
  h2 {
    font-size: 1.3rem;
    margin-bottom: 18px;
  }
  
  .program-day summary,
  .speaker-accordion summary {
    font-size: 0.95rem;
    padding: 12px 10px;
  }
  
  .program-item,
  .speaker-block {
    padding: 10px 10px;
    font-size: 0.85rem;
    margin-bottom: 8px;
  }
  
  .session-group {
    margin-bottom: 16px;
    padding: 12px;
  }
  
  .session-header {
    font-size: 0.85rem;
  }
  
  .moderator-info {
    font-size: 0.85rem;
    padding: 10px 15px;
  }
  
  .program-speaker {
    font-size: 0.85rem;
  }
  
  .program-moderator {
    font-size: 0.85rem;
  }
  
  #supporters h2 {
    padding: 40px 15px 12px;
  }
  
  .logo-slider {
    padding: 25px 0;
  }
  
  .slide-track {
    gap: 20px;
    padding: 0 15px;
  }
  
  .slide-track img {
    height: 50px;
  }
  
  footer {
    padding: 25px 12px;
    font-size: 0.85rem;
  }
  
  #popup button {
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    font-size: 16px;
  }
}

/* ============================================
   ACCESSIBILITY & FOCUS STATES
   ============================================ */

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

