/* Why PMRC Matters - Custom Styles */

/* Tailwind Configuration */
@import url('https://fonts.googleapis.com/css2?family=Jura:wght@300;400;500;600;700&family=Quicksand:wght@300;400;500;600;700&display=swap');

/* Custom Font Families */
.font-primary {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Jura', 'Quicksand', system-ui, sans-serif;
}

.font-jura {
  font-family: 'Jura', system-ui, sans-serif;
}

.font-quicksand {
  font-family: 'Quicksand', system-ui, sans-serif;
}

/* Custom Color Palette */
:root {
  --lapis-lazuli: #22577a;
  --lapis-lazuli-50: #f0f7fa;
  --lapis-lazuli-100: #d9ecf2;
  --lapis-lazuli-200: #b3d9e5;
  --lapis-lazuli-300: #8cc6d8;
  --lapis-lazuli-400: #66b3cb;
  --lapis-lazuli-500: #22577a;
  --lapis-lazuli-600: #1e4d6b;
  --lapis-lazuli-700: #1a435c;
  --lapis-lazuli-800: #16394d;
  --lapis-lazuli-900: #122f3e;
  
  --verdigris: #38a3a5;
  --verdigris-50: #f0fafa;
  --verdigris-100: #d9f2f2;
  --verdigris-200: #b3e5e5;
  --verdigris-300: #8cd8d8;
  --verdigris-400: #66cbcb;
  --verdigris-500: #38a3a5;
  --verdigris-600: #329294;
  --verdigris-700: #2c8183;
  --verdigris-800: #267072;
  --verdigris-900: #205f61;
  
  --emerald: #57cc99;
  --emerald-50: #f0fdf4;
  --emerald-100: #dcfce7;
  --emerald-200: #bbf7d0;
  --emerald-300: #86efac;
  --emerald-400: #4ade80;
  --emerald-500: #57cc99;
  --emerald-600: #4fb889;
  --emerald-700: #47a479;
  --emerald-800: #3f9069;
  --emerald-900: #377c59;
  
  --light-green: #80ed99;
  --light-green-50: #f0fdf4;
  --light-green-100: #dcfce7;
  --light-green-200: #bbf7d0;
  --light-green-300: #86efac;
  --light-green-400: #4ade80;
  --light-green-500: #80ed99;
  --light-green-600: #72d68a;
  --light-green-700: #64c07b;
  --light-green-800: #56aa6c;
  --light-green-900: #48945d;
  
  --tea-green: #c7f9cc;
  --tea-green-50: #f0fdf4;
  --tea-green-100: #dcfce7;
  --tea-green-200: #bbf7d0;
  --tea-green-300: #86efac;
  --tea-green-400: #4ade80;
  --tea-green-500: #c7f9cc;
  --tea-green-600: #b3e0b8;
  --tea-green-700: #9fc7a4;
  --tea-green-800: #8bae90;
  --tea-green-900: #77957c;
}

/* Custom Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@keyframes scaleIn {
  from { 
    opacity: 0; 
    transform: scale(0.96); 
  }
  to { 
    opacity: 1; 
    transform: scale(1); 
  }
}

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

@keyframes float {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
  }
  33% { 
    transform: translateY(-20px) rotate(1deg); 
  }
  66% { 
    transform: translateY(-10px) rotate(-1deg); 
  }
}

@keyframes breath {
  0%, 100% { 
    transform: scale(1); 
    opacity: 0.4; 
  }
  50% { 
    transform: scale(1.08); 
    opacity: 0.6; 
  }
}

@keyframes glow {
  0% { 
    box-shadow: 0 0 30px rgba(87, 204, 153, 0.08); 
  }
  100% { 
    box-shadow: 0 0 60px rgba(87, 204, 153, 0.15); 
  }
}

@keyframes gentleBounce {
  0%, 100% { 
    transform: translateY(0); 
  }
  50% { 
    transform: translateY(-8px); 
  }
}

/* Animation Classes */
.animate-fade-in {
  animation: fadeIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-fade-up {
  animation: fadeUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-slide-up {
  animation: slideUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-scale-in {
  animation: scaleIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-stagger-fade {
  animation: staggerFade 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-float {
  animation: float 20s ease-in-out infinite;
}

.animate-breath {
  animation: breath 12s ease-in-out infinite;
}

.animate-glow {
  animation: glow 4s ease-in-out infinite alternate;
}

.animate-gentle-bounce {
  animation: gentleBounce 2s ease-in-out infinite;
}

/* Custom Spacing */
.spacing-18 { margin: 4.5rem; }
.spacing-88 { margin: 22rem; }
.spacing-128 { margin: 32rem; }
.spacing-144 { margin: 36rem; }

/* Backdrop Blur */
.backdrop-blur-xs {
  backdrop-filter: blur(2px);
}

/* Video Control Button Styles */
.video-control-btn {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 20;
  padding: 0.75rem;
  border-radius: 9999px;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.video-control-btn:hover {
  background-color: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.video-control-btn:focus {
  outline: none;
  ring: 2px;
  ring-color: rgba(255, 255, 255, 0.3);
}

/* Hero Section Styles */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero-section {
    padding: 0 2rem;
  }
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 72rem;
  margin: 0 auto;
  text-align: center;
}

/* Section Styles */
.content-section {
  padding: 10rem 0;
}

@media (min-width: 1024px) {
  .content-section {
    padding: 12rem 0;
  }
}

.section-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .section-container {
    padding: 0 2rem;
  }
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .section-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
  }
}

/* Image Styles */
.section-image {
  position: relative;
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (min-width: 1024px) {
  .section-image {
    height: 700px;
  }
}

.section-image:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  transform: scale(1.02);
}

.section-image-overlay {
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.7s ease;
}

.section-image:hover .section-image-overlay {
  opacity: 1;
}

/* Typography Styles */
.hero-title {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: clamp(64px, 10vw, 140px);
  color: #111827;
  margin-bottom: 4rem;
  letter-spacing: -0.025em;
  line-height: 0.8;
}

.section-title {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 56px);
  color: #111827;
  margin-bottom: 2.5rem;
  line-height: 1.1;
}

.section-subtitle {
  font-family: var(--font-quicksand);
  font-size: clamp(22px, 3vw, 32px);
  color: #4b5563;
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 2rem;
}

.section-text {
  font-family: var(--font-quicksand);
  font-size: 1.25rem;
  color: #4b5563;
  line-height: 1.6;
  font-weight: 300;
}

/* Badge Styles */
.section-badge {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  background-color: rgba(87, 204, 153, 0.1);
  color: #059669;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  margin-bottom: 2rem;
  font-family: var(--font-quicksand);
  backdrop-filter: blur(4px);
}

.badge-emerald {
  background-color: rgba(87, 204, 153, 0.1);
  color: #059669;
}

.badge-verdigris {
  background-color: rgba(56, 163, 165, 0.1);
  color: #0d9488;
}

.badge-lapis {
  background-color: rgba(34, 87, 122, 0.1);
  color: #0c4a6e;
}

.badge-light-green {
  background-color: rgba(128, 237, 153, 0.1);
  color: #16a34a;
}

/* Button Styles */
.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background-color: #57cc99;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 9999px;
  transition: all 0.3s ease;
  font-family: var(--font-jura);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  text-decoration: none;
}

.cta-button:hover {
  background-color: #4ade80;
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.cta-button:focus {
  outline: none;
  ring: 2px;
  ring-color: rgba(87, 204, 153, 0.5);
}

.cta-button svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.75rem;
  transition: transform 0.3s ease;
}

.cta-button:hover svg {
  transform: translateX(0.25rem);
}

/* Divider Styles */
.section-divider {
  width: 6rem;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(87, 204, 153, 0.5), transparent);
  margin: 0 auto;
}

.hero-divider {
  width: 10rem;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(87, 204, 153, 0.5), transparent);
  margin: 0 auto;
}

/* Background Elements */
.background-elements {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  pointer-events: none;
}

.bg-element-1 {
  position: absolute;
  top: 33.333333%;
  left: 33.333333%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background-color: rgba(87, 204, 153, 0.03);
  filter: blur(64px);
  animation: float 20s ease-in-out infinite;
}

.bg-element-2 {
  position: absolute;
  bottom: 33.333333%;
  right: 33.333333%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background-color: rgba(56, 163, 165, 0.03);
  filter: blur(64px);
  animation: float 20s ease-in-out infinite;
  animation-delay: 4s;
}

.bg-element-3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background-color: rgba(34, 87, 122, 0.02);
  filter: blur(64px);
  animation: breath 12s ease-in-out infinite;
  animation-delay: 8s;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(48px, 12vw, 80px);
  }
  
  .section-title {
    font-size: clamp(28px, 6vw, 40px);
  }
  
  .section-subtitle {
    font-size: clamp(18px, 4vw, 24px);
  }
  
  .section-text {
    font-size: 1.125rem;
  }
  
  .content-section {
    padding: 6rem 0;
  }
  
  .section-grid {
    gap: 4rem;
  }
}


/* Timeline Styles */
.timeline-container {
  position: relative;
  width: min(92rem, 96vw);
  max-width: 1600px;
  margin: 2rem auto;
}


.timeline-items {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  gap: 0.5rem;
  padding: 0 1rem;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 240px;
  justify-content: flex-start;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.25rem;
  height: 72px;
  justify-content: center;
}

.timeline-icon {
  width: 3rem;
  height: 3rem;
  background: transparent;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
  transition: all 0.2s ease;
}

.timeline-caption {
  font-size: 0.9rem;
  font-weight: 500;
  color: #9ca3af;
  text-align: center;
  margin-top: 0.5rem;
  font-family: 'Jura', sans-serif;
  transition: all 0.2s ease;
  height: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-label {
  font-size: 1.05rem;
  font-weight: 400;
  color: #6b7280;
  text-align: center;
  font-family: 'Quicksand', sans-serif;
  transition: all 0.2s ease;
  margin-bottom: 0.25rem;
  height: 3.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.alignment-percentage {
  font-size: 0.9rem;
  font-weight: 300;
  color: #9ca3af;
  margin-top: 0.1rem;
}

.timeline-description {
  max-width: 216px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.2s ease;
  height: 4.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #9ca3af;
}

/* Hover States */
.timeline-item:hover .timeline-icon {
  color: #57cc99;
  transform: scale(1.02);
}

.timeline-item:hover .timeline-caption {
  color: #57cc99;
}

.timeline-item:hover .timeline-label {
  color: #57cc99;
}

.timeline-item:hover .alignment-percentage {
  color: #57cc99;
}

.timeline-item:hover .timeline-description {
  opacity: 1;
  transform: translateY(0);
}

/* Focus States */
.timeline-item:focus {
  outline: none;
}

.timeline-item:focus .timeline-icon {
  color: #57cc99;
}

/* Highlighted PMRC Item */
.timeline-highlight .timeline-icon {
  color: #57cc99;
}

.timeline-highlight .timeline-caption {
  color: #57cc99;
  font-weight: 500;
}

.timeline-highlight .timeline-label {
  color: #57cc99;
  font-weight: 500;
}

.timeline-highlight .alignment-percentage {
  color: #57cc99;
  font-weight: 400;
}

.timeline-highlight .timeline-description {
  opacity: 1;
  transform: translateY(0);
  color: #57cc99;
}

.timeline-highlight:hover .timeline-icon {
  transform: scale(1.02);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  /* Hero section mobile reordering */
  .hero-grid-mobile {
    display: flex;
    flex-direction: column;
  }
  
  .hero-text-mobile {
    order: 1;
  }
  
  .hero-video-mobile {
    order: 2;
  }
  
  .timeline-items {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 0 1rem;
  }
  
  .timeline-item {
    width: 100%;
    max-width: 400px;
    height: auto;
    min-height: 120px;
  }
  
  .timeline-marker {
    height: auto;
    margin-bottom: 1rem;
  }
  
  .timeline-icon {
    width: 3rem;
    height: 3rem;
  }
  
  .timeline-caption {
    font-size: 0.95rem;
    height: auto;
    margin-top: 0.75rem;
  }
  
  .timeline-label {
    font-size: 1.1rem;
    height: auto;
    margin-bottom: 0.75rem;
  }
  
  .timeline-description {
    height: auto;
    opacity: 1;
    transform: translateY(0);
    max-width: 100%;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .timeline-container {
    margin: 2rem 0;
  }
  
  .timeline-items {
    gap: 1.5rem;
    padding: 0 0.5rem;
  }
  
  .timeline-item {
    max-width: 100%;
    min-height: 100px;
  }
  
  .timeline-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .timeline-caption {
    font-size: 0.9rem;
  }
  
  .timeline-label {
    font-size: 1.05rem;
  }
  
  .timeline-description {
    font-size: 0.9rem;
  }
}

/* Glow Animation for PMRC */
@keyframes gentle-glow {
  0% {
    box-shadow: 0 8px 25px -5px rgba(87, 204, 153, 0.4);
  }
  100% {
    box-shadow: 0 12px 35px -5px rgba(87, 204, 153, 0.6);
  }
}


/* Accessibility */
.keyboard-navigation *:focus {
  outline: 2px solid #57cc99;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .background-elements,
  .video-control-btn,
  .hero-video {
    display: none;
  }
  
  .hero-overlay {
    background-color: white;
  }
}
