/* History Page Styles */
body {
  background: linear-gradient(to right, #000000, #1a1a1a);
  color: #ffffff;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #000000, #1a1a1a);
  color: #ffd700;
  padding: 6rem 4rem;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 500px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.1);
  border-bottom: 2px solid #ffd700;
}

.hero > div:first-child {
  max-width: 600px;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 4px 30px rgba(255, 215, 0, 0.1);
  border: 1px solid #ffd700;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ffd700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #ffffff;
}

.hero-art {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
}

/* Floating Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.2;
  background: linear-gradient(45deg, #ffd700, #ffeb3b);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.o1 {
  width: 200px;
  height: 200px;
  right: 20%;
  top: 20%;
  animation: float 8s ease-in-out infinite;
  border: 2px solid rgba(255, 215, 0, 0.3);
}

.o2 {
  width: 150px;
  height: 150px;
  right: 35%;
  bottom: 25%;
  animation: float 6s ease-in-out infinite;
  border: 2px solid rgba(255, 215, 0, 0.3);
}

.o3 {
  width: 100px;
  height: 100px;
  right: 15%;
  bottom: 40%;
  animation: float 10s ease-in-out infinite;
  border: 2px solid rgba(255, 215, 0, 0.3);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Tags/Chips */
.tags {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.chip {
  background: rgba(0, 0, 0, 0.7);
  padding: 0.7rem 1.2rem;
  border-radius: 20px;
  font-size: 0.9rem;
  backdrop-filter: blur(5px);
  border: 1px solid #ffd700;
  transition: all 0.3s ease;
  color: #ffd700;
}

.chip:hover {
  background: rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

/* Sticky Navigation */
.subnav {
  background: #000000;
  padding: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.1);
  border-bottom: 1px solid #ffd700;
}

.subnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Section Styling */
section {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #ffd700;
  position: relative;
  padding-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #ffd700, #ffeb3b);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.section-lead {
  font-size: 1.4rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 3rem;
  max-width: 800px;
}

/* Timeline Styling */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.event {
  background: #000000;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.1);
  margin-bottom: 2rem;
  transform: translateY(0);
  transition: all 0.3s ease;
  border: 1px solid #ffd700;
  color: #ffffff;
}

.event:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
  border-color: #ffeb3b;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 4rem 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-lead {
    font-size: 1.2rem;
  }
}

.subnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 5px;
}

.pill {
  padding: 0.5rem 1.5rem;
  border: 1px solid #ffd700;
  border-radius: 20px;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  color: #ffd700;
}

.pill:hover {
  background: rgba(255, 215, 0, 0.1);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.pill.active {
  background: #ffd700;
  color: black;
  border-color: #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* Timeline Sections */
section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* .section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #00264d;
} */

.section-lead {
  font-size: 1.3rem;
  color: #666;
  margin-bottom: 3rem;
  max-width: 800px;
}

/* Timeline Controls */
.controls {
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  border: 2px solid #ffd700;
  border-radius: 20px;
  background: none;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #ffd700;
}

.filter-btn:hover {
  background: rgba(255, 215, 0, 0.1);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.filter-btn.active {
  background: #ffd700;
  color: black;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* Timeline Events */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ddd;
}

.event {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 2rem;
}

.event::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  /* background: #00264d; */
  border: 3px solid white;
}

.eyebrow {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.event h3 {
  color: #ffd700;
  margin-bottom: 1rem;
}

/* Badges */
.badges {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.badge {
  background: rgba(255, 215, 0, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  color: #ffd700;
  border: 1px solid #ffd700;
}

/* Stats Section */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.stat {
  text-align: center;
}

.num {
  font-size: 3rem;
  font-weight: bold;
  color: #ffd700;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.label {
  color: #ffffff;
}

/* Founding Story Panel */
.founding {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 3rem 0;
}

.panel {
  padding: 2rem;
  background: #000000;
  border-radius: 10px;
  border: 1px solid #ffd700;
  color: #ffffff;
}

.panel h3 {
  color: #ffd700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.panel ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.panel li {
  margin-bottom: 0.5rem;
}

.img-box {
  background: linear-gradient(135deg, #004080, #00264d);
  min-height: 300px;
}

/* Quote */
.quote {
  font-style: italic;
  color: #666;
  border-left: 3px solid #00264d;
  padding-left: 1rem;
  margin: 2rem 0;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.active {
  display: flex;
}

.modal-card {
  background: #000000;
  padding: 2rem;
  border-radius: 10px;
  max-width: 600px;
  position: relative;
  margin: 2rem;
  border: 2px solid #ffd700;
  color: #ffffff;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
}

.close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Back to Top Button */
#toTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #000000;
  color: #ffd700;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid #ffd700;
  cursor: pointer;
  display: none;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

#toTop:hover {
  background: #ffd700;
  color: #000000;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

#toTop.visible {
  display: block;
}

/* Stripe Divider */
.stripe {
  height: 4px;
  background: linear-gradient(to right, #ffd700, #004080);
  margin: 4rem 0;
}

/* Accordion */
details {
  margin: 1rem 0;
  padding: 1rem;
  background: #f8f8f8;
  border-radius: 5px;
}

summary {
  cursor: pointer;
  color: #00264d;
  font-weight: bold;
}

details p {
  margin-top: 1rem;
  color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 3rem 1.5rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-art {
    opacity: 0.2;
  }
  
  .founding {
    grid-template-columns: 1fr;
  }
  
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  section {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .stats {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}
