/* ================================================
   3ROCKS THRIVE - MAIN STYLESHEET
   ================================================ */

/* ========== RESET & BASE STYLES ========== */
* {
  scroll-behavior: smooth;
  box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background-color: #FAFBF7;
  color: #333;
  line-height: 1.6;
  font-family: 'Segoe UI', 'Roboto', system-ui, sans-serif;
}

/* ========== ANIMATIONS ========== */

/* Fade In */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Slide Up */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide Down */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide Left */
@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide Right */
@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Bounce In */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Float */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Pulse */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Glow */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(253, 185, 19, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(253, 185, 19, 0.6);
  }
}

/* Shimmer */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Scale Hover */
@keyframes scaleUp {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

/* ========== REVEAL ELEMENTS ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.reveal.active {
  animation: slideUp 0.8s ease-out forwards;
}

.reveal.active:nth-child(1) { animation-delay: 0s; }
.reveal.active:nth-child(2) { animation-delay: 0.1s; }
.reveal.active:nth-child(3) { animation-delay: 0.2s; }
.reveal.active:nth-child(4) { animation-delay: 0.3s; }
.reveal.active:nth-child(5) { animation-delay: 0.4s; }
.reveal.active:nth-child(6) { animation-delay: 0.5s; }

/* ========== NAVIGATION ========== */
nav {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 3px rgba(145, 77, 77, 0.05);
  animation: slideDown 0.6s ease-out;
}

nav .max-w-6xl {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  padding: 0 1rem;
  margin: 0 auto;
  max-width: 1200px;
}

nav a {
  color: #333;
  text-decoration: none;
}

nav .text-2xl {
  font-size: 1.5rem;
  font-weight: 700;
  color: #8B6F47;
  transition: all 0.3s ease;
}

nav .text-2xl:hover {
  color: #FDB913;
  animation: float 2s ease-in-out infinite;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #FDB913, #17A2B8);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #FDB913;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: #FDB913;
  font-weight: 600;
}

.nav-link.active::after {
  width: 100%;
}

/* ========== HERO SECTIONS ========== */
.hero-section {
  background: linear-gradient(135deg, #FAFBF7 0%, #f0f4f8 100%);
  padding: 4rem 1rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(253, 185, 19, 0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
  z-index: 0;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(23, 162, 184, 0.1) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite 1s;
  z-index: 0;
}

.hero-section > div {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1F2937;
  margin-bottom: 1.5rem;
  animation: slideUp 0.8s ease-out;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 1.5rem;
  animation: slideUp 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

/* ========== CTA BUTTONS ========== */
.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: #8B6F47;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  border: none;
  margin-right: 1rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  animation: slideUp 0.8s ease-out;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover {
  background-color: #6B5536;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(139, 111, 71, 0.3);
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button-secondary {
  background: transparent;
  border: 2px solid #8B6F47;
  color: #8B6F47;
}

.cta-button-secondary:hover {
  background-color: #8B6F47;
  color: white;
}

/* ========== SECTIONS ========== */
.content-section {
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
  animation: slideUp 0.8s ease-out;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #FDB913, #17A2B8);
  border-radius: 2px;
  animation: slideRight 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

.section-description {
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 2rem;
  animation: slideUp 0.8s ease-out 0.15s forwards;
  opacity: 0;
}

.section-light {
  background: white;
}

.section-dark {
  background: linear-gradient(135deg, #f0f4f8 0%, #FAFBF7 100%);
}

/* ========== CARDS ========== */
.card,
.month-card,
.step {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid #FDB913;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: slideUp 0.6s ease-out;
}

.card:hover,
.month-card:hover,
.step:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  border-left-color: #17A2B8;
}

.card-title,
.month-title,
.step-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 1rem;
}

.card-text,
.month-text,
.step-text {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* ========== HERO IMAGE ========== */
.hero-image {
  width: 100%;
  max-width: 500px;
  height: 400px;
  background: linear-gradient(135deg, #FDB913/20 0%, #17A2B8/20 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
  color: #999;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  animation: slideLeft 0.8s ease-out;
}

.hero-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  animation: shimmer 3s infinite;
}

.hero-image > div {
  position: relative;
  z-index: 1;
}

/* ========== CHECKLISTS ========== */
.checklist-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 4px;
  border-left: 4px solid #FDB913;
  animation: slideUp 0.6s ease-out;
  transition: all 0.3s ease;
}

.checklist-item:nth-child(1) { animation-delay: 0.1s; }
.checklist-item:nth-child(2) { animation-delay: 0.2s; }
.checklist-item:nth-child(3) { animation-delay: 0.3s; }
.checklist-item:nth-child(4) { animation-delay: 0.4s; }

.checklist-item:hover {
  background: #f9fafb;
  transform: translateX(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.checklist-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #8B6F47;
  color: white;
  border-radius: 50%;
  font-weight: 700;
  margin-right: 1rem;
  flex-shrink: 0;
  animation: bounceIn 0.6s ease-out;
}

/* ========== MONTH NUMBER ========== */
.month-number {
  display: inline-block;
  background: #FDB913;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  animation: bounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========== STEP NUMBER ========== */
.step-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: #FDB913;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-weight: 700;
  margin-bottom: 1rem;
  animation: bounceIn 0.6s ease-out;
}

/* ========== FOOTER ========== */
footer {
  background: #1F2937;
  color: white;
  padding: 3rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  animation: slideUp 0.6s ease-out;
}

footer a {
  color: #FDB913;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #17A2B8;
  transition: width 0.3s ease;
}

footer a:hover {
  color: #17A2B8;
}

footer a:hover::after {
  width: 100%;
}

footer .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer ul li {
  margin-bottom: 0.5rem;
}

/* ========== MODAL ========== */
.modal {
  display: none;
  position: fixed;
  z-index: 50;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 1rem;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1F2937;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  transition: all 0.3s ease;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #1F2937;
  transform: rotate(90deg);
}

/* ========== MOBILE MENU ========== */
#mobileMenu {
  display: none;
  border-top: 1px solid #e5e7eb;
  animation: slideDown 0.3s ease-out;
}

#mobileMenu.hidden {
  display: none !important;
}

#mobileMenuBtn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

#mobileMenuBtn:hover {
  background: #f3f4f6;
  border-radius: 0.5rem;
}

@media (max-width: 768px) {
  #mobileMenuBtn {
    display: block;
  }

  #mobileMenu {
    background: white;
  }

  #mobileMenu:not(.hidden) {
    display: block;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .cta-button {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== UTILITY CLASSES ========== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mt-12 {
  margin-top: 3rem;
}

.mt-8 {
  margin-top: 2rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-6 {
  gap: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-8px {
  border-radius: 8px;
}

.shadow-lg {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* ========== GRID LAYOUTS ========== */
.grid {
  display: grid;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.max-w-6xl {
  max-width: 1200px;
}

.max-w-4xl {
  max-width: 896px;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
/* ========== LESSON CARDS ========== */
.lesson-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  animation: fadeIn 0.8s ease-in forwards;
}

.lesson-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.lesson-filter-btn {
  transition: all 0.3s ease;
}

.lesson-filter-btn:hover {
  transform: translateY(-2px);
}