/* BSidesFrankfurt - Modernized Original Theme */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --color-bg: #011023;
  /* Dark Blue from original */
  --color-surface: #121314;
  /* Dark Grey from original */
  --color-primary: #9acd32;
  /* Yellowgreen from original */
  --color-secondary: #eb3812;
  /* Reddish Orange from original */
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.7);
  --color-border: rgba(255, 255, 255, 0.1);

  --font-main: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 32px;
  --spacing-xl: 64px;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-main);
  color: #fff;
  /* Original heads were white */
  font-weight: 700;
  text-transform: uppercase;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.35s ease;
}

a:hover {
  color: var(--color-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

section {
  padding: var(--spacing-xl) 0;
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--color-primary);
}

.mb-2 {
  margin-bottom: var(--spacing-md);
}

.mb-4 {
  margin-bottom: var(--spacing-lg);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 30px;
  font-family: var(--font-main);
  font-size: 1rem;
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  transition: 0.35s;
  text-transform: uppercase;
  border-radius: 300px;
  /* Rounded pill buttons from original */
  font-weight: 600;
}

.btn:hover {
  background: #32cd32;
  /* Limegreen */
  border-color: #32cd32;
  color: #fff;
  text-decoration: none;
}

.btn-large {
  font-size: 1.2rem;
  padding: 18px 36px;
}

.btn-secondary {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.btn-secondary:hover {
  background: #fff;
  color: #222;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  /* Original was white navbar */
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
  padding: 10px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo:hover {
  color: var(--color-secondary);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: var(--spacing-lg);
}

.nav-links li a {
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: #222;
  /* Dark links on white nav */
  font-weight: 500;
}

.nav-links li a:hover {
  color: var(--color-primary);
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: #222;
  cursor: pointer;
}


/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-image: url('../images/header-dark1.webp');
  /* Restored Background */
  background-position: center;
  background-size: cover;
  color: #fff;
  position: relative;
  padding-top: 60px;
  overflow: hidden;
  /* Ensure overlay doesn't spill */
}

/* Breathing Effect Overlay */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 1;
  opacity: 0.4;
  animation: breathe-black 6s ease-in-out infinite;
  pointer-events: none;
}

.hero>.container {
  position: relative;
  z-index: 2;
  /* Ensure text is above overlay */
}

@keyframes breathe-black {
  0% {
    opacity: 0.2;
    /* Mostly visible image */
  }

  50% {
    opacity: 0.85;
    /* Mostly black */
  }

  100% {
    opacity: 0.2;
  }
}

.hero-logo {
  max-width: 600px;
  width: 80%;
  margin-bottom: 2rem;
}

.hero-date {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 300;
}


/* Section Styles */
.section-title {
  font-size: 2.2rem;
  margin-bottom: var(--spacing-xl);
  text-align: center;
  position: relative;
  color: #fff;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  margin: 15px auto;
}

/* Cards (Generic) */
.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--spacing-md);
  transition: transform 0.3s;
}

/* Footer */
footer {
  background: #000;
  text-align: center;
  padding: var(--spacing-lg);
  color: #fff;
}

.social-links {
  margin: var(--spacing-md) 0;
  font-size: 1.8rem;
}

.social-links a {
  margin: 0 10px;
  color: #fff;
}

.social-links a:hover {
  color: var(--color-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: var(--spacing-md);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-date {
    font-size: 1.2rem;
  }
}
/* Nav Extras - Dropdowns */
.dropdown-menu {
  display: none;
  position: absolute;
  background: #fff;
  top: 100%;
  left: 0;
  min-width: 120px;
  list-style: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  padding: 10px 0;
  z-index: 1001;
  border-radius: 4px;
}

.dropdown-menu li {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 5px 20px;
  color: #000;
  text-decoration: none;
}

.dropdown-menu li a:hover {
  background: #eee;
  color: var(--color-primary);
}

.dropdown-trigger:hover .dropdown-menu {
  display: block;
}

.nav-btn-link {
  color: var(--color-secondary) !important;
  font-weight: 700 !important;
}

/* Fancy Date Animation */
.anim-char {
  display: inline-block;
  transform-origin: center;
  animation: char-flip 5s infinite ease-in-out;
  animation-delay: calc(0.05s * var(--i));
}

@keyframes char-flip {
  0%, 90% {
    transform: rotateY(0deg);
  }
  95% {
    transform: rotateY(180deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}
