@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500;600;700&family=Manrope:wght@300;400;500;600;700;800;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', sans-serif;
  color: #ffffff;
  overflow-x: hidden;
}

/* Elegant 3-Color Gradient Background */
#bg {
  position: fixed; 
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background: linear-gradient(135deg, 
    #1a0b2e 0%, 
    #2d1b4e 25%, 
    #4a2c6b 50%, 
    #1e3a5f 75%,
    #2d1b4e 100%);
  z-index: -1;
}

/* Enhanced Navbar */
.navbar {
  position: fixed; 
  top: 0; 
  left: 0;
  width: 100%;
  padding: 20px 0;
  background: rgba(26, 11, 46, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 15px 0;
  background: rgba(26, 11, 46, 0.95);
}

.navbar ul { 
  display: flex; 
  justify-content: center;
  align-items: center;
  gap: 40px; 
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.navbar ul li a { 
  text-decoration: none; 
  color: #ffffff; 
  font-weight: 600; 
  font-size: 16px;
  position: relative;
  transition: all 0.3s ease;
  padding: 10px 0;
}

.navbar ul li a:hover { 
  color: #c084fc; 
}

.navbar ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #c084fc, #a855f7);
  transition: width 0.3s ease;
}

.navbar ul li a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  padding: 0 40px;
}

.hero-quote {
  opacity: 0;
  transform: translateY(50px);
  animation: fadeUpHero 2s ease forwards;
  animation-delay: 0.5s;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #ffffff 0%, #fbbf24 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
}

.hero-author {
  font-family: 'EB Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #e0e7ff;
  font-style: italic;
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
  animation-delay: 1.5s;
}

/* Main Content Structure */
.main-content {
  position: relative;
  z-index: 1;
}

/* Section Containers */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
}

.title-underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #c084fc);
  margin: 0 auto 20px;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #c9c7e8;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Constitution Section */
.constitution-section {
  padding: 120px 0;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
}

.amendment-card {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(30px);
  opacity: 0;
  animation: slideUp 1s ease forwards;
  animation-delay: 0.3s;
}

.amendment-header {
  text-align: center;
  margin-bottom: 30px;
}

.amendment-header h3 {
  font-family: 'EB Garamond', serif;
  font-size: 2.2rem;
  font-weight: 600;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.amendment-date {
  font-size: 0.95rem;
  color: #a1a1aa;
  font-style: italic;
}

.amendment-text {
  font-family: 'EB Garamond', serif;
  font-size: 1.3rem;
  line-height: 1.8;
  color: #f1f5f9;
  text-align: center;
  letter-spacing: 0.3px;
}

/* Icons Section */
.icons-section {
  padding: 120px 0;
  position: relative;
}

.carousel-container {
  max-width: 500px;
  margin: 0 auto;
}

.carousel-wrapper { 
  position: relative; 
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.carousel { 
  position: relative; 
  width: 100%; 
  height: 550px; 
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced Card Styles */
.card {
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px);
  border-radius: 24px;
  padding: 30px; 
  text-align: center; 
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.15);
  
  /* Initially hidden */
  opacity: 0; 
  transform: translateX(50px) scale(0.95); 
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.card.active { 
  opacity: 1; 
  transform: translateX(0) scale(1); 
  pointer-events: auto;
  z-index: 2;
}

.card img { 
  width: 100%; 
  height: 300px; 
  object-fit: cover; 
  border-radius: 16px; 
  margin-bottom: 25px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card h3 { 
  font-family: 'EB Garamond', serif; 
  font-size: 1.8rem; 
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.card-tags {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.tag {
  background: rgba(192, 132, 252, 0.2);
  color: #c084fc;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(192, 132, 252, 0.3);
}

/* Elegant 3-color tag system */
.card:nth-child(1) .tag:first-child {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.3);
}

.card:nth-child(1) .tag:last-child {
  background: rgba(99, 102, 241, 0.2);
  color: #6366f1;
  border-color: rgba(99, 102, 241, 0.3);
}

.card:nth-child(2) .tag:first-child {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
}

.card:nth-child(2) .tag:last-child {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
}

.card:nth-child(3) .tag:first-child {
  background: rgba(192, 132, 252, 0.2);
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.3);
}

.card:nth-child(3) .tag:last-child {
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
  border-color: rgba(168, 85, 247, 0.3);
}

.card p { 
  font-size: 1rem; 
  line-height: 1.6; 
  color: #e2e8f0;
}

/* Enhanced Navigation Buttons */
.carousel-btn {
  position: absolute; 
  top: 50%; 
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1); 
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2); 
  color: white; 
  font-size: 20px; 
  padding: 15px;
  cursor: pointer; 
  border-radius: 50%; 
  transition: all 0.3s ease; 
  z-index: 10;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.carousel-btn:hover { 
  background: rgba(192, 132, 252, 0.3);
  border-color: rgba(192, 132, 252, 0.5);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 30px rgba(192, 132, 252, 0.4);
}

.carousel-btn.prev { 
  left: -80px; 
}

.carousel-btn.next { 
  right: -80px; 
}

/* Enhanced Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #c084fc;
  border-color: #c084fc;
  box-shadow: 0 0 20px rgba(192, 132, 252, 0.6);
}

.indicator:hover:not(.active) {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.8);
}

/* Call to Action Section - Clean White Theme */
.cta-section {
  padding: 120px 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 250, 252, 0.95) 50%,
    rgba(241, 245, 249, 0.95) 100%);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 60%),
              radial-gradient(circle at 70% 80%, rgba(251, 191, 36, 0.1) 0%, transparent 60%),
              radial-gradient(circle at 50% 50%, rgba(192, 132, 252, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-family: 'EB Garamond', serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 25px;
  background: linear-gradient(135deg, #3b82f6 0%, #fbbf24 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(59, 130, 246, 0.2);
}

.cta-content p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 40px;
  text-shadow: none;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #fbbf24);
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(59, 130, 246, 0.6);
  animation-play-state: paused;
}

.btn-secondary {
  background: transparent;
  color: #c084fc;
  border: 2px solid #c084fc;
  position: relative;
  overflow: hidden;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #c084fc, #a855f7);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-secondary:hover {
  color: #ffffff;
  transform: translateY(-3px);
}

.btn-secondary:hover::before {
  left: 0;
}

/* Animations */
@keyframes fadeUpHero {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .carousel-btn.prev { left: -60px; }
  .carousel-btn.next { right: -60px; }
}

@media (max-width: 768px) {
  .section-container {
    padding: 0 30px;
  }
  
  .navbar ul {
    padding: 0 30px;
    gap: 25px;
  }
  
  .hero-content {
    padding: 0 30px;
  }
  
  .constitution-section,
  .icons-section,
  .cta-section {
    padding: 80px 0;
  }
  
  .amendment-card {
    padding: 30px;
  }
  
  .carousel {
    height: 480px;
  }
  
  .carousel-btn.prev { left: -50px; }
  .carousel-btn.next { right: -50px; }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary, .btn-secondary {
    width: 200px;
  }
}

@media (max-width: 600px) {
  .carousel-container {
    max-width: 350px;
  }
  
  .carousel {
    height: 450px;
  }
  
  .carousel-btn.prev { left: 10px; }
  .carousel-btn.next { right: 10px; }
  
  .card {
    padding: 20px;
  }
  
  .card img {
    height: 250px;
  }
  
  .amendment-card {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .section-container {
    padding: 0 20px;
  }
  
  .navbar ul {
    padding: 0 20px;
    gap: 15px;
  }
  
  .hero-content {
    padding: 0 20px;
  }
  
  .carousel-container {
    max-width: 300px;
  }
  
  .carousel {
    height: 420px;
  }
  
  .carousel-btn {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }
}