/* ------------------------------------------- */
/* Home Page Specific Styles */
/* ------------------------------------------- */

/* Hero Section Enhancements */
.hero-parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-image: url("../../imgs/hero_image.jpg");
  background-size: cover;
  background-position: center;
  z-index: -2;
  will-change: transform;
}

.hero-title {
  overflow: hidden;
}

.hero-title-line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeInUp 0.8s ease-out forwards;
}

.hero-title-line-1 {
  animation-delay: 0.3s;
}

.hero-title-line-2 {
  animation-delay: 0.6s;
}

.hero-subtitle {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeInUp 0.8s ease-out forwards;
  animation-delay: 0.9s;
}

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

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
  animation-delay: 1.5s;
}

.scroll-indicator-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-soft);
  transition: color 0.3s ease;
}

.scroll-indicator-link:hover {
  color: var(--flag-red);
}

.scroll-indicator-text {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.scroll-indicator i {
  font-size: 1.5rem;
  animation: scrollBounce 2s ease-in-out infinite;
}

/* Stock Ticker */
.ticker-container {
  overflow: hidden;
  background-color: var(--bg-elevated);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.75rem 0;
}

.ticker-track {
  display: flex;
  animation: tickerScroll 30s linear infinite;
  width: fit-content;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: flex;
  align-items: center;
  padding: 0 2rem;
  white-space: nowrap;
  cursor: default;
}

.ticker-name {
  font-weight: 600;
  margin-right: 0.5rem;
  color: var(--text-main);
}

.ticker-change {
  font-weight: 500;
  font-size: 0.9rem;
}

.ticker-change.positive {
  color: var(--bull-green);
}

.ticker-change.negative {
  color: var(--bear-red);
}

/* Navigation Cards */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.nav-card {
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  color: var(--text-main);
}

.nav-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--flag-red);
}

.nav-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.nav-card-desc {
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator i {
  font-size: 2rem;
  color: var(--text-soft);
}

/* Counters Section */
.counter-section {
  background: var(--bg-elevated);
}

.counter-item {
  text-align: center;
  padding: 2rem 1rem;
}

.counter-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--flag-red);
  display: block;
}

.counter-label {
  font-size: 1rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Ambient Effects */
.ambient-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background: 
    radial-gradient(
      ellipse at 20% 30%,
      rgba(30, 58, 138, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 70%,
      rgba(194, 51, 51, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 50% 100%,
      rgba(30, 58, 138, 0.08) 0%,
      transparent 40%
    );
  animation: ambientPulse 15s ease-in-out infinite alternate;
}

@keyframes ambientPulse {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
  100% {
    opacity: 0.8;
    transform: scale(1);
  }
}

/* Parallax sections */
.parallax-element {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Floating animation for decorative elements */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

/* Glow effect on hover for interactive elements */
.glow-on-hover {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.glow-on-hover:hover {
  box-shadow: 0 0 30px rgba(194, 51, 51, 0.3);
  transform: translateY(-2px);
}


/* ------------------------------------------- */
/* Hypothesis Section Styles */
/* ------------------------------------------- */

.hypothesis-section {
  background: linear-gradient(180deg, var(--bg-main) 0%, rgba(30, 58, 138, 0.06) 50%, var(--bg-main) 100%);
  position: relative;
}

.hypothesis-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(238, 119, 51, 0.04) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 80%, rgba(0, 119, 187, 0.04) 0%, transparent 40%);
  pointer-events: none;
}

.hypothesis-grid {
  display: flex;
  flex-wrap: wrap;
}

.hypothesis-card {
  background: rgba(15, 23, 42, 0.7);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(20px);
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Gradient accent at top of card */
.hypothesis-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 1;
  transition: all 0.4s ease;
}

/* Ambient glow effect */
.hypothesis-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.hypothesis-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 32px 64px rgba(0, 0, 0, 0.35),
    0 16px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.hypothesis-card:hover::before {
  height: 5px;
  filter: brightness(1.2);
}

.hypothesis-card:hover::after {
  opacity: 1;
}

/* Hypothesis-specific accent colors with enhanced glow */
.hypothesis-card[data-hypothesis="energy"]::before {
  background: linear-gradient(90deg, #EE7733, #DDCC77);
  box-shadow: 0 0 20px rgba(238, 119, 51, 0.4);
}
.hypothesis-card[data-hypothesis="energy"]:hover {
  box-shadow: 
    0 32px 64px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(238, 119, 51, 0.15);
}
.hypothesis-card[data-hypothesis="energy"] .hypothesis-icon-wrapper {
  background: linear-gradient(135deg, rgba(238, 119, 51, 0.25) 0%, rgba(221, 204, 119, 0.15) 100%);
  border-color: rgba(238, 119, 51, 0.4);
  box-shadow: 0 0 20px rgba(238, 119, 51, 0.2);
}
.hypothesis-card[data-hypothesis="energy"] .hypothesis-icon-wrapper i {
  color: #EE7733;
  filter: drop-shadow(0 0 8px rgba(238, 119, 51, 0.5));
}
.hypothesis-card[data-hypothesis="energy"] .hypothesis-number {
  background: rgba(238, 119, 51, 0.2);
  color: #EE7733;
  box-shadow: 0 0 12px rgba(238, 119, 51, 0.3);
}

.hypothesis-card[data-hypothesis="intensity"]::before {
  background: linear-gradient(90deg, #CC3311, #EE3377);
  box-shadow: 0 0 20px rgba(204, 51, 17, 0.4);
}
.hypothesis-card[data-hypothesis="intensity"]:hover {
  box-shadow: 
    0 32px 64px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(204, 51, 17, 0.15);
}
.hypothesis-card[data-hypothesis="intensity"] .hypothesis-icon-wrapper {
  background: linear-gradient(135deg, rgba(204, 51, 17, 0.25) 0%, rgba(238, 51, 119, 0.15) 100%);
  border-color: rgba(204, 51, 17, 0.4);
  box-shadow: 0 0 20px rgba(204, 51, 17, 0.2);
}
.hypothesis-card[data-hypothesis="intensity"] .hypothesis-icon-wrapper i {
  color: #CC3311;
  filter: drop-shadow(0 0 8px rgba(204, 51, 17, 0.5));
}
.hypothesis-card[data-hypothesis="intensity"] .hypothesis-number {
  background: rgba(204, 51, 17, 0.2);
  color: #CC3311;
  box-shadow: 0 0 12px rgba(204, 51, 17, 0.3);
}

.hypothesis-card[data-hypothesis="middleeast"]::before {
  background: linear-gradient(90deg, #0077BB, #33BBEE);
  box-shadow: 0 0 20px rgba(0, 119, 187, 0.4);
}
.hypothesis-card[data-hypothesis="middleeast"]:hover {
  box-shadow: 
    0 32px 64px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(0, 119, 187, 0.15);
}
.hypothesis-card[data-hypothesis="middleeast"] .hypothesis-icon-wrapper {
  background: linear-gradient(135deg, rgba(0, 119, 187, 0.25) 0%, rgba(51, 187, 238, 0.15) 100%);
  border-color: rgba(0, 119, 187, 0.4);
  box-shadow: 0 0 20px rgba(0, 119, 187, 0.2);
}
.hypothesis-card[data-hypothesis="middleeast"] .hypothesis-icon-wrapper i {
  color: #0077BB;
  filter: drop-shadow(0 0 8px rgba(0, 119, 187, 0.5));
}
.hypothesis-card[data-hypothesis="middleeast"] .hypothesis-number {
  background: rgba(0, 119, 187, 0.2);
  color: #0077BB;
  box-shadow: 0 0 12px rgba(0, 119, 187, 0.3);
}

.hypothesis-card[data-hypothesis="defense"]::before {
  background: linear-gradient(90deg, #009988, #44AA99);
  box-shadow: 0 0 20px rgba(0, 153, 136, 0.4);
}
.hypothesis-card[data-hypothesis="defense"]:hover {
  box-shadow: 
    0 32px 64px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(0, 153, 136, 0.15);
}
.hypothesis-card[data-hypothesis="defense"] .hypothesis-icon-wrapper {
  background: linear-gradient(135deg, rgba(0, 153, 136, 0.25) 0%, rgba(68, 170, 153, 0.15) 100%);
  border-color: rgba(0, 153, 136, 0.4);
  box-shadow: 0 0 20px rgba(0, 153, 136, 0.2);
}
.hypothesis-card[data-hypothesis="defense"] .hypothesis-icon-wrapper i {
  color: #009988;
  filter: drop-shadow(0 0 8px rgba(0, 153, 136, 0.5));
}
.hypothesis-card[data-hypothesis="defense"] .hypothesis-number {
  background: rgba(0, 153, 136, 0.2);
  color: #009988;
  box-shadow: 0 0 12px rgba(0, 153, 136, 0.3);
}

.hypothesis-card[data-hypothesis="panic"]::before {
  background: linear-gradient(90deg, #EE3377, #CC3311);
  box-shadow: 0 0 20px rgba(238, 51, 119, 0.4);
}
.hypothesis-card[data-hypothesis="panic"]:hover {
  box-shadow: 
    0 32px 64px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(238, 51, 119, 0.15);
}
.hypothesis-card[data-hypothesis="panic"] .hypothesis-icon-wrapper {
  background: linear-gradient(135deg, rgba(238, 51, 119, 0.25) 0%, rgba(204, 51, 17, 0.15) 100%);
  border-color: rgba(238, 51, 119, 0.4);
  box-shadow: 0 0 20px rgba(238, 51, 119, 0.2);
}
.hypothesis-card[data-hypothesis="panic"] .hypothesis-icon-wrapper i {
  color: #EE3377;
  filter: drop-shadow(0 0 8px rgba(238, 51, 119, 0.5));
}
.hypothesis-card[data-hypothesis="panic"] .hypothesis-number {
  background: rgba(238, 51, 119, 0.2);
  color: #EE3377;
  box-shadow: 0 0 12px rgba(238, 51, 119, 0.3);
}

.hypothesis-card[data-hypothesis="duration"]::before {
  background: linear-gradient(90deg, #AA4499, #882255);
  box-shadow: 0 0 20px rgba(170, 68, 153, 0.4);
}
.hypothesis-card[data-hypothesis="duration"]:hover {
  box-shadow: 
    0 32px 64px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(170, 68, 153, 0.15);
}
.hypothesis-card[data-hypothesis="duration"] .hypothesis-icon-wrapper {
  background: linear-gradient(135deg, rgba(170, 68, 153, 0.25) 0%, rgba(136, 34, 85, 0.15) 100%);
  border-color: rgba(170, 68, 153, 0.4);
  box-shadow: 0 0 20px rgba(170, 68, 153, 0.2);
}
.hypothesis-card[data-hypothesis="duration"] .hypothesis-icon-wrapper i {
  color: #AA4499;
  filter: drop-shadow(0 0 8px rgba(170, 68, 153, 0.5));
}
.hypothesis-card[data-hypothesis="duration"] .hypothesis-number {
  background: rgba(170, 68, 153, 0.2);
  color: #AA4499;
  box-shadow: 0 0 12px rgba(170, 68, 153, 0.3);
}

.hypothesis-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  transition: all 0.4s ease;
}

.hypothesis-card:hover .hypothesis-icon-wrapper {
  transform: scale(1.1) rotate(3deg);
}

.hypothesis-icon-wrapper i {
  font-size: 2rem;
  transition: all 0.4s ease;
}

.hypothesis-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hypothesis-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.01em;
}

.hypothesis-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.hypothesis-statement {
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  font-style: italic;
  line-height: 1.7;
  opacity: 0.95;
  position: relative;
  padding-left: 1rem;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.hypothesis-rationale {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.6;
  position: relative;
}

.hypothesis-rationale::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 100%);
  border-radius: 12px;
  pointer-events: none;
}

.hypothesis-rationale i {
  color: #FBBF24;
  margin-right: 0.35rem;
  filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.4));
}

.hypothesis-link {
  margin-top: auto;
  padding-top: 1rem;
}

.hypothesis-link .btn {
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.hypothesis-link .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.hypothesis-link .btn:hover::before {
  left: 100%;
}

.hypothesis-link .btn:hover {
  transform: translateX(6px);
}

.hypothesis-card[data-hypothesis="energy"] .hypothesis-link .btn:hover {
  background: linear-gradient(135deg, #EE7733, #DDCC77);
  border-color: #EE7733;
  color: #fff;
  box-shadow: 0 4px 20px rgba(238, 119, 51, 0.4);
}

.hypothesis-card[data-hypothesis="intensity"] .hypothesis-link .btn:hover {
  background: linear-gradient(135deg, #CC3311, #EE3377);
  border-color: #CC3311;
  color: #fff;
  box-shadow: 0 4px 20px rgba(204, 51, 17, 0.4);
}

.hypothesis-card[data-hypothesis="middleeast"] .hypothesis-link .btn:hover {
  background: linear-gradient(135deg, #0077BB, #33BBEE);
  border-color: #0077BB;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 119, 187, 0.4);
}

.hypothesis-card[data-hypothesis="defense"] .hypothesis-link .btn:hover {
  background: linear-gradient(135deg, #009988, #44AA99);
  border-color: #009988;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 153, 136, 0.4);
}

.hypothesis-card[data-hypothesis="panic"] .hypothesis-link .btn:hover {
  background: linear-gradient(135deg, #EE3377, #CC3311);
  border-color: #EE3377;
  color: #fff;
  box-shadow: 0 4px 20px rgba(238, 51, 119, 0.4);
}

.hypothesis-card[data-hypothesis="duration"] .hypothesis-link .btn:hover {
  background: linear-gradient(135deg, #AA4499, #882255);
  border-color: #AA4499;
  color: #fff;
  box-shadow: 0 4px 20px rgba(170, 68, 153, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hypothesis-card {
    padding: 1.5rem;
  }
  
  .hypothesis-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }
  
  .hypothesis-icon-wrapper i {
    font-size: 1.5rem;
  }
  
  .hypothesis-title {
    font-size: 1.1rem;
  }
  
  .hypothesis-number {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }
  
  .hypothesis-statement {
    font-size: 0.95rem;
    padding-left: 0.75rem;
  }
  
  .hypothesis-rationale {
    padding: 0.875rem 1rem;
    font-size: 0.85rem;
  }
}

/* Staggered animation on scroll */
@keyframes hypothesisCardIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hypothesis-card {
  animation: hypothesisCardIn 0.6s ease-out backwards;
}

.hypothesis-grid .col-md-6:nth-child(1) .hypothesis-card { animation-delay: 0.1s; }
.hypothesis-grid .col-md-6:nth-child(2) .hypothesis-card { animation-delay: 0.2s; }
.hypothesis-grid .col-md-6:nth-child(3) .hypothesis-card { animation-delay: 0.3s; }
.hypothesis-grid .col-md-6:nth-child(4) .hypothesis-card { animation-delay: 0.4s; }
.hypothesis-grid .col-md-6:nth-child(5) .hypothesis-card { animation-delay: 0.5s; }
.hypothesis-grid .col-md-6:nth-child(6) .hypothesis-card { animation-delay: 0.6s; }
