* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

/* Global Transitions */
a, button, input, textarea, select {
  transition: all 0.3s ease;
}

/* SCROLL ANIMATIONS - Slide Up Effects */
.scroll-animate,
section,
.about-block,
.card,
.feature-item,
.module,
.content-block {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-slide-up {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Stagger effect for multiple elements */
.scroll-animate:nth-child(1) { transition-delay: 0s; }
.scroll-animate:nth-child(2) { transition-delay: 0.1s; }
.scroll-animate:nth-child(3) { transition-delay: 0.2s; }
.scroll-animate:nth-child(4) { transition-delay: 0.3s; }
.scroll-animate:nth-child(5) { transition-delay: 0.4s; }
.scroll-animate:nth-child(n+6) { transition-delay: 0.5s; }

/* Background Theme */
body {
  background: linear-gradient(135deg, #071a40, #0a2348, #122b57);
  min-height: 100vh;
  color: #f0f5ff;
  display: flex;
  flex-direction: column;
}

/* NAV */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: rgba(2, 9, 71, 0.902)!important;
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
}

.logo {
  font-size: 20px;
  font-weight: bold;
  color: white !important;
}

.nav a {
  margin-left: 15px;
  text-decoration: none;
  color: black;
  font-weight: 500;
  transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.nav a.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: inset 0 0 0 rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.nav a.nav-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.15), 0 5px 15px rgba(0, 0, 0, 0.2);
}

.nav a:hover {
  color: #286fc6;
  text-shadow: 0 0 12px rgba(4, 1, 69, 0.8), 0 0 20px rgba(198, 40, 40, 0.4);
  transform: translateY(-2px);
}

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 5rem 0;
  animation: fadeInHero 0.8s ease-out;
}

@keyframes fadeInHero {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(10, 10, 10, 0.575) 45%,
    rgb(0, 12, 44) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1.5rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: #FFFFFF;
  margin-bottom: 1rem;
  animation: slideInDown 0.8s ease-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content p {
  font-size: 1.125rem;
  color: #A3A3A3;
  line-height: 1.625;
  margin-bottom: 2rem;
  animation: slideInUp 0.8s ease-out 0.2s both;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .btn {
  background: #0d254d;
  color: #FFFFFF;
  padding: 0.95rem 2rem;
  border-radius: 5rem;
  border: 1px solid rgba(173, 216, 230, 0.6);
  box-shadow: 0 0 25px rgba(1, 14, 185, 0.45), inset 0 0 12px rgba(173, 216, 230, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.hero .btn:hover {
  background: #0a1c45;
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 21, 112, 0.76), inset 0 0 16px rgba(173, 216, 230, 0.35);
}

/* Floating animation for prominent hero button */
@keyframes ussm-float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.hero .btn.btn-floating {
  animation: ussm-float 3.6s ease-in-out infinite;
  will-change: transform;
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 4rem;
  }
}

.greeting-section {
  max-width: 700px;
  margin: 4rem auto 0;
  padding: 0 1.5rem;
  text-align: center;
}

.greeting-time {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #CCF655;
  display: block;
  margin-bottom: 0.75rem;
}

.greeting-name {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.05em;
  color: #FFFFFF;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .greeting-name {
    font-size: 2.5rem;
  }
}

.about-block {
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.about-img {
  width: 420px;
  min-width: 420px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.about-img img {
  width: 280px;
  height: 320px;
  object-fit: cover;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-text {
  flex: 1;
}

.about-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #CCF655;
  display: block;
  margin-bottom: 0.75rem;
}

.about-title {
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.05em;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.about-desc {
  font-size: 0.95rem;
  color: #A3A3A3;
  line-height: 1.625;
  margin-bottom: 1.5rem;
}

.about-points {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-point {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.point-icon {
  font-size: 1rem;
  min-width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(204, 246, 85, 0.08);
  border: 1px solid rgba(204, 246, 85, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-point strong {
  font-size: 0.9rem;
  font-weight: 500;
  color: #FFFFFF;
  display: block;
  margin-bottom: 0.1rem;
}

.about-point p {
  font-size: 0.8rem;
  color: #737373;
  line-height: 1.5;
}
.scripture-rotator {
  max-width: 700px;
  margin: 4rem auto 0;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.scripture-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #CCF655;
  display: block;
  margin-bottom: 0.75rem;
}

.scripture-slides {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #CCF655;
  border-radius: 0 1rem 1rem 0;
  padding: 1.5rem 2rem;
  min-height: 120px;
}

.scripture-slide {
  position: absolute;
  inset: 0;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.6s ease;
}

.scripture-slide.active {
  opacity: 1;
  transform: translateY(0);
}

.scripture-slide p {
  font-size: 1.125rem;
  font-style: italic;
  color: #E5E5E5;
  line-height: 1.625;
  margin-bottom: 0.75rem;
}

.scripture-slide span {
  font-size: 0.875rem;
  color: #737373;
  font-weight: 500;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  padding: 30px;
  margin-top: 60px;
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
}

/* Login Pad */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(1, 7, 28, 0.452);
}

.auth-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 360px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 2rem;
  background-clip: padding-box;
  padding: 2rem;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
  z-index: 0;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: -8px;
  background: conic-gradient(from 0deg, #160246, #540bff);
  filter: blur(30px);
  opacity: 0.7;
  z-index: -2;
  animation: pulse-beep 2.2s ease-in-out infinite;
}

.auth-card::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: inherit;
  z-index: -1;
}

@keyframes pulse-beep {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
    filter: blur(18px);
  }
  35% {
    transform: scale(1.04);
    opacity: 1;
    filter: blur(14px);
  }
  70% {
    transform: scale(1);
    opacity: 0.88;
    filter: blur(18px);
  }
}

@keyframes rotate-dynamic {
  to {
    transform: rotate(360deg);
  }
}

.auth-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-card input {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  color: #FFFFFF;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 150ms;
}

.auth-card input::placeholder {
  color: #FFFFFF;
  opacity: 0.8;
}

.auth-card input:focus {
  border-color: #A855F7;
}

.auth-footer {
  text-align: center;
  font-size: 0.8rem;
  color: #030b2c;
  margin-top: 1.25rem;
}

.auth-footer a {
  color: #FFFFFF;
  transition: color 150ms;
}

.auth-footer a:hover {
  color: #050546;
}

.auth-card button {
  width: 100%;
  padding: 0.75rem;
  background: #A855F7;
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 300ms;
  margin-top: 0.25rem;
}

.auth-card button:hover {
  background: #9333EA;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.auth-footer {
  text-align: center;
  font-size: 0.8rem;
  color: #737373;
  margin-top: 1.25rem;
}

.auth-footer a {
  color: #CCF655;
  transition: color 150ms;
}

.auth-footer a:hover {
  color: #bce34d;
}

.msg {
  text-align: center;
  font-size: 0.8rem;
  margin-top: 0.75rem;
  min-height: 1.2rem;
}

.msg.success {
  color: #4ADE80;
}

.msg.error {
  color: #F87171;
}

/* CARDS */
@keyframes cardBeep {
  0%, 100% {
    box-shadow: 0 10px 25px rgba(83, 75, 60, 0.788);
  }
  50% {
    box-shadow: 0 15px 35px rgb(252, 252, 251);
  }
}

.card {
  background: rgba(182, 1, 1, 0.651);
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(4, 0, 61, 0.596);
  cursor: pointer;
  transition: 0.3s;
  text-align: center;
}

.card:hover {
  transform: translateY(-4px) scale(1.09);
  animation: cardBeep 1.2s ease-in-out infinite;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* PANEL */
.panel {
  margin: 0;
  padding: 40px 20px;
  background: rgba(138, 116, 51, 0.95);
  border-radius: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
}

.panel.fade-out {
  opacity: 0;
}

.panel.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

.panel h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #CCF655;
}

.panel p {
  font-size: 0.95rem;
  color: #E5E5E5;
  margin: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-motivation {
    max-width: 700px;
    margin: 0 auto;
    height: 80px; /* enough for one item */
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1rem;
    background: rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
}
.scroll-motivation-track {
    width: 100%;
    position: absolute;
    /* JS will handle positioning, or we can just use transform */
}
.scroll-motivation-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    position: absolute;
    width: 100%;
    /* Start off-screen below, active is on-screen, leaving goes above */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}
.scroll-motivation-item.active {
    opacity: 1;
    transform: translateY(0);
}
.scroll-motivation-item.leaving {
    opacity: 0;
    transform: translateY(-30px);
}/* ── WRAPPER ── */
.media-row {
  display: flex;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .media-row {
    flex-direction: column;
  }
}

/* ── MOTIVATION (Updated) ── */
.scroll-motivation {
  flex: 1;
  min-width: 0;
  height: 80px;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
}

.scroll-motivation-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.scroll-motivation-item {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease;
}

.scroll-motivation-item.active {
  opacity: 1;
  transform: translateY(0);
}

.scroll-motivation-item.leaving {
  opacity: 0;
  transform: translateY(-30px);
}

.scroll-motivation-item span {
  font-size: 1.25rem;
  min-width: 30px;
  text-align: center;
}

.scroll-motivation-item p {
  font-size: 1rem;
  font-weight: 500;
  color: #E5E5E5;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ── VIDEO BOX ── */
.video-box {
  flex: 1;
  min-width: 0;
  background: #0A0A0A;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.video-box iframe, .video-box video {
  width: 100%;
  height: 100%;
  display: block;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 20px;
  margin-top: auto;
  background: rgba(23, 21, 78, 0.772);
}

/* --- MOBILE INTERFACE SCALING --- */
@media screen and (max-width: 768px) {
    /* 1. Prevent text /content from spilling off the screen sides */
    html, body {
        width: 100% !important;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }

    /* 2. Force major containers and columns to stack vertically instend of sitting side-by-side */
    .row, .container, .main-content, section, aside {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        padding: 10px !important;
    }
    
    /* 3. Keep images, videos, and icons from bursting out of their boxes */
    img, video, iframe, picture {
        max-width: 100% !important;
        height: auto !important;
    }

@media screen and (max-width: 768px) {

    /* 1. NAVBAR FIXED: Prevents tabs from breaking layout or dropping out of the top bar */
    nav, .navbar, header, .nav-container {
        display: flex !important;
        flex-direction: row !important; /* Keep logo and links inline if possible */
        flex-wrap: wrap !important;     /* Drop down to next line cleanly if text is long */
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
        height: auto !important; /* Allow the red header to stretch downward to fit links */
        padding: 10px 15px !important;
    }
    
    /* Make the individual tabs/links shrink so they can fit side by side */
    nav a, .nav-links a, .tabs {
        font-size: 14px !important; /* Shrink text slightly for phone view */
        padding: 6px 12px !important; 
        margin: 0 4px !important;
    }

    /* 2. IMAGE SIZE FIXED: Tames your large hero image section so it fits gracefully */
    .hero-section, .hero, div[style*="background-image"] {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 350px !important; /* Prevents text from overflowing the image container */
        background-size: cover !important;
        background-position: center center !important;
    }
    
    /* If the image is a standard <img> HTML tag instead of a CSS background */
    .hero img, img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: scale-down !important;
    }

    /* 3. BUTTON SPACING FIXED: Frees up your stiff buttons (like 'Your Struggles') */
    button, .btn, .button, a[class*="btn"], #your-struggles-btn {
        display: inline-block !important;
        width: auto !important; /* Stop absolute stretching if unnecessary */
        min-width: 160px !important;
        margin: 15px auto !important; /* Generates automatic margins to push elements apart */
        padding: 12px 24px !important; /* Comfortable mobile tap area */
        position: relative !important; /* Destroys rigid absolute positions */
        left: 0 !important;
        top: 0 !important;
        text-align: center !important;
    }
  }
}