/* 
  CryptoCrafters Academy - Main Stylesheet
  Theme: Retro-80s
  Created: 2025
*/

/* ---------- Base Styles ---------- */
:root {
  /* Color Palette */
  --primary: #FF2D55;       /* Neon Pink */
  --secondary: #4DEEEA;     /* Cyber Teal */
  --accent1: #FFD400;       /* Retro Yellow */
  --accent2: #8A2BE2;       /* Purple */
  --bg-dark: #0D0221;       /* Deep Space */
  --bg-dark-alt: #1A1A2E;   /* Midnight Blue */
  --text-light: #F0F0F0;    /* Off White */
  --text-dark: #121212;     /* Near Black */
  --success: #00FF9D;       /* Neon Green */
  --error: #FF0055;         /* Hot Pink */
  
  /* Typography */
  --font-main: 'DM Sans', sans-serif;
  
  /* Effects */
  --glow-primary: 0 0 10px rgba(255, 45, 85, 0.7);
  --glow-secondary: 0 0 10px rgba(77, 238, 234, 0.7);
  --glow-accent1: 0 0 10px rgba(255, 212, 0, 0.7);
  --grid-color: rgba(77, 238, 234, 0.2);
  
  /* Dimensions */
  --header-height: 80px;
  --section-spacing: 100px;
  --container-padding: 20px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.8s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-light);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary);
  text-shadow: var(--glow-primary);
}

img {
  max-width: 100%;
  height: auto;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}

.text-center {
  text-align: center;
}

.container {
  width: 100%;
  padding-right: var(--container-padding);
  padding-left: var(--container-padding);
  margin-right: auto;
  margin-left: auto;
}

/* Grid overlay for retro effect */
.hero-grid, .footer-grid, .thank-you-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 0;
  pointer-events: none;
  perspective: 1000px;
  transform-style: preserve-3d;
  animation: gridPulse 20s infinite linear;
}

@keyframes gridPulse {
  0% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 0.2;
  }
}

/* ---------- Button Styles ---------- */
.btn {
  display: inline-block;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-medium);
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn:after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all var(--transition-fast);
  z-index: 1;
}

.btn:hover:after {
  left: 100%;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--glow-primary);
}

.btn-outline-light {
  background-color: transparent;
  border-color: var(--text-light);
  color: var(--text-light);
}

.btn-outline-light:hover {
  background-color: var(--text-light);
  color: var(--bg-dark);
}

.btn-success {
  background-color: var(--success);
  color: var(--text-dark);
}

.btn-success:hover {
  background-color: transparent;
  border-color: var(--success);
  color: var(--success);
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.7);
}

.btn-glow {
  box-shadow: var(--glow-primary);
}

.btn-submit {
  width: 100%;
  margin-top: 1rem;
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

/* ---------- Header & Navigation ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color var(--transition-medium);
  padding: 10px 0;
}

.site-header.scrolled {
  background-color: rgba(13, 2, 33, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar {
  padding: 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 60px;
  transition: transform var(--transition-fast);
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--text-light);
  padding: 0.5rem 1rem;
  font-weight: 500;
  position: relative;
  transition: all var(--transition-fast);
}

.navbar-dark .navbar-nav .nav-link:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: var(--secondary);
}

.navbar-dark .navbar-nav .nav-link:hover:before {
  width: 60%;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.navbar-toggler-icon {
  width: 1.5em;
  height: 1.5em;
}

/* Mobile navigation styles */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(13, 2, 33, 0.95);
    padding: 20px;
    border-radius: 0 0 10px 10px;
    margin-top: 10px;
    backdrop-filter: blur(10px);
  }

  .navbar-dark .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar-dark .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }

  .navbar-dark .navbar-nav .nav-link:before {
    display: none;
  }
}

/* ---------- Hero Section ---------- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--bg-dark);
  padding-top: var(--header-height);
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-text {
  padding: 2rem 0;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.glitch-text {
  position: relative;
  display: inline-block;
  color: var(--text-light);
}

.glitch-text:before, .glitch-text:after {
  content: 'Digital Assets Learning Center';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.glitch-text:before {
  color: var(--secondary);
  z-index: -1;
  animation: glitch-anim-1 5s infinite linear alternate-reverse;
}

.glitch-text:after {
  color: var(--primary);
  z-index: -2;
  animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-3px, 3px); }
  40% { transform: translate(-3px, -3px); }
  60% { transform: translate(3px, 3px); }
  80% { transform: translate(3px, -3px); }
}

@keyframes glitch-anim-2 {
  0%, 100% { transform: translate(0); }
  25% { transform: translate(3px, 0); }
  50% { transform: translate(-3px, 0); }
  75% { transform: translate(0, 3px); }
}

.hero-cta {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

.hero-visual {
  position: relative;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.retro-cube {
  width: 200px;
  height: 200px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotate 20s infinite linear;
}

.cube-face {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(77, 238, 234, 0.1);
  border: 2px solid var(--secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  color: var(--primary);
  box-shadow: 0 0 20px rgba(77, 238, 234, 0.3);
}

.cube-face.front {
  transform: translateZ(100px);
}

.cube-face.back {
  transform: rotateY(180deg) translateZ(100px);
}

.cube-face.right {
  transform: rotateY(90deg) translateZ(100px);
}

.cube-face.left {
  transform: rotateY(-90deg) translateZ(100px);
}

.cube-face.top {
  transform: rotateX(90deg) translateZ(100px);
}

.cube-face.bottom {
  transform: rotateX(-90deg) translateZ(100px);
}

@keyframes rotate {
  0% {
    transform: rotateX(0) rotateY(0) rotateZ(0);
  }
  100% {
    transform: rotateX(360deg) rotateY(720deg) rotateZ(360deg);
  }
}

/* Mobile hero styles */
@media (max-width: 767.98px) {
  .hero-section {
    text-align: center;
    height: auto;
    padding: 120px 0 60px;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 250px;
  }

  .retro-cube {
    margin: 50px auto;
  }
}

/* ---------- Content Sections ---------- */
.content-section {
  position: relative;
  padding: var(--section-spacing) 0;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-title {
  position: relative;
  display: inline-block;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary);
}

.section-divider {
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--secondary), transparent);
  margin: 1rem auto;
}

.section-subtitle {
  color: var(--secondary);
  font-size: 1.2rem;
  margin-bottom: 0;
  font-weight: 300;
}

.section-footer {
  margin-top: 4rem;
}

.info-box {
  background: rgba(26, 26, 46, 0.7);
  border-left: 4px solid var(--secondary);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-box h4 {
  color: var(--accent1);
  margin-bottom: 0.5rem;
}

.info-box p {
  margin-bottom: 0;
}

/* ---------- History Section ---------- */
.history-section {
  background-color: var(--bg-dark-alt);
  position: relative;
}

.history-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/history-timeline.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 3rem auto;
  z-index: 1;
}

.timeline:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(to bottom, 
    rgba(77, 238, 234, 0.2), 
    rgba(77, 238, 234, 0.5), 
    rgba(77, 238, 234, 0.8), 
    rgba(77, 238, 234, 0.5), 
    rgba(77, 238, 234, 0.2));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  width: 100%;
}

.timeline-item:nth-child(odd) {
  padding-right: calc(50% + 30px);
  text-align: right;
}

.timeline-item:nth-child(even) {
  padding-left: calc(50% + 30px);
  text-align: left;
}

.timeline-content {
  padding: 1.5rem;
  background: rgba(13, 2, 33, 0.8);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  transition: transform var(--transition-medium);
  border: 1px solid rgba(77, 238, 234, 0.3);
}

.timeline-item:hover .timeline-content {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.timeline-content h3 {
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.timeline-item:after {
  content: attr(data-year);
  position: absolute;
  top: 20px;
  width: 60px;
  height: 30px;
  background: var(--primary);
  color: var(--text-light);
  text-align: center;
  line-height: 30px;
  border-radius: 4px;
  font-weight: 600;
  box-shadow: var(--glow-primary);
}

.timeline-item:nth-child(odd):after {
  right: calc(50% - 30px - 60px);
}

.timeline-item:nth-child(even):after {
  left: calc(50% - 30px);
}

.timeline-item:before {
  content: '';
  position: absolute;
  top: 25px;
  width: 16px;
  height: 16px;
  background: var(--accent1);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent1);
  z-index: 1;
}

.timeline-item:nth-child(odd):before {
  right: calc(50% - 8px);
}

.timeline-item:nth-child(even):before {
  left: calc(50% - 8px);
}

/* Mobile timeline styles */
@media (max-width: 767.98px) {
  .timeline:before {
    left: 30px;
  }

  .timeline-item {
    padding-left: 80px !important;
    padding-right: 0 !important;
    text-align: left !important;
  }

  .timeline-item:after {
    left: 0 !important;
    right: auto !important;
  }

  .timeline-item:before {
    left: 22px !important;
    right: auto !important;
  }
}

/* ---------- Technology Section ---------- */
.technology-section {
  background-color: var(--bg-dark);
  position: relative;
}

.technology-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/blockchain-tech.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  position: relative;
  z-index: 1;
}

.tech-card {
  background: rgba(13, 2, 33, 0.8);
  border-radius: 8px;
  padding: 2rem;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  height: 100%;
  border: 1px solid rgba(77, 238, 234, 0.3);
}

.tech-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.tech-card:before {
  content: attr(data-tech);
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 3rem;
  opacity: 0.05;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--text-light);
}

.tech-icon {
  font-size: 2.5rem;
  color: var(--accent1);
  margin-bottom: 1.5rem;
  transition: all var(--transition-medium);
}

.tech-card:hover .tech-icon {
  color: var(--primary);
  transform: scale(1.1);
}

.tech-card h3 {
  color: var(--secondary);
  margin-bottom: 1rem;
}

.tech-details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(77, 238, 234, 0.3);
}

/* Mobile tech grid styles */
@media (max-width: 767.98px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Regulation Section ---------- */
.regulation-section {
  background-color: var(--bg-dark-alt);
  position: relative;
}

.regulation-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/regulatory-landscape.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
}

.regulatory-map {
  position: relative;
  z-index: 1;
  margin: 3rem 0;
}

.region-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.region-tab {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1px solid var(--secondary);
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 500;
}

.region-tab:hover, .region-tab.active {
  background: var(--secondary);
  color: var(--bg-dark);
}

.region-content {
  background: rgba(13, 2, 33, 0.8);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(77, 238, 234, 0.3);
}

.region-panel {
  display: none;
}

.region-panel.active {
  display: block;
  animation: fadeIn 0.5s ease forwards;
}

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

.region-panel h3 {
  color: var(--accent1);
  margin-bottom: 1.5rem;
}

.regulatory-timeline {
  margin: 2rem 0;
}

.reg-event {
  display: flex;
  margin-bottom: 2rem;
}

.reg-date {
  flex: 0 0 80px;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.2rem;
}

.reg-description {
  flex: 1;
  padding-left: 1.5rem;
  border-left: 2px solid rgba(77, 238, 234, 0.5);
}

.reg-description h4 {
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.regulatory-grid, .regulatory-comparison, .regulatory-aspects, .regulatory-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.reg-country, .reg-approach, .reg-aspect, .reg-highlight {
  background: rgba(26, 26, 46, 0.5);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 3px solid var(--accent1);
}

.reg-country h4, .reg-approach h4, .reg-aspect h4, .reg-highlight h4 {
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.regulatory-note, .regulatory-disclaimer {
  background: rgba(255, 45, 85, 0.1);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 2rem;
  border-left: 3px solid var(--primary);
}

/* Mobile regulation styles */
@media (max-width: 767.98px) {
  .region-tabs {
    flex-direction: column;
  }
  
  .region-tab {
    width: 100%;
    text-align: center;
  }
  
  .reg-event {
    flex-direction: column;
  }
  
  .reg-date {
    margin-bottom: 0.5rem;
  }
  
  .reg-description {
    padding-left: 0;
    border-left: none;
    padding-top: 0.5rem;
    border-top: 2px solid rgba(77, 238, 234, 0.5);
  }
}

/* ---------- Analysis Section ---------- */
.analysis-section {
  background-color: var(--bg-dark);
  position: relative;
}

.analysis-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/analysis-tools.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
}

.tools-categories {
  position: relative;
  z-index: 1;
  margin: 3rem 0;
}

.category-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.category-tab {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1px solid var(--secondary);
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 500;
}

.category-tab:hover, .category-tab.active {
  background: var(--secondary);
  color: var(--bg-dark);
}

.tools-content {
  background: rgba(13, 2, 33, 0.8);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(77, 238, 234, 0.3);
}

.tools-panel {
  display: none;
}

.tools-panel.active {
  display: block;
  animation: fadeIn 0.5s ease forwards;
}

.tools-panel h3 {
  color: var(--accent1);
  margin-bottom: 0.5rem;
}

.tools-panel > p {
  margin-bottom: 2rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background: rgba(26, 26, 46, 0.5);
  padding: 1.5rem;
  border-radius: 8px;
  height: 100%;
  transition: all var(--transition-medium);
  border-top: 3px solid var(--primary);
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.tool-icon {
  font-size: 2rem;
  color: var(--accent1);
  margin-bottom: 1rem;
}

.tool-card h4 {
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.tool-features {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(77, 238, 234, 0.3);
}

.tool-features ul {
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.tool-features li {
  margin-bottom: 0.5rem;
}

.tool-features li:last-child {
  margin-bottom: 0;
}

.analysis-note {
  border-color: var(--accent1);
}

/* Mobile analysis styles */
@media (max-width: 767.98px) {
  .category-tabs {
    flex-direction: column;
  }
  
  .category-tab {
    width: 100%;
    text-align: center;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Psychology Section ---------- */
.psychology-section {
  background-color: var(--bg-dark-alt);
  position: relative;
}

.psychology-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/market-psychology.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
}

.psychology-content {
  position: relative;
  z-index: 1;
}

.psychology-intro {
  background: rgba(13, 2, 33, 0.8);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid rgba(77, 238, 234, 0.3);
}

.psychology-intro h3 {
  color: var(--accent1);
  margin-bottom: 1rem;
}

.psychology-image img {
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.psychology-categories {
  margin-top: 3rem;
}

.psych-category {
  margin-bottom: 3rem;
}

.psych-category h3 {
  color: var(--secondary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.psych-category h3 i {
  margin-right: 0.75rem;
  color: var(--accent1);
}

.bias-grid, .emotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.bias-card, .emotion-card, .strategy-card {
  background: rgba(13, 2, 33, 0.8);
  padding: 1.5rem;
  border-radius: 8px;
  height: 100%;
  transition: all var(--transition-medium);
  border-left: 3px solid var(--primary);
}

.bias-card:hover, .emotion-card:hover, .strategy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.bias-card h4, .emotion-card h4, .strategy-card h4 {
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.bias-example, .emotion-insight, .strategy-approach {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(77, 238, 234, 0.3);
  font-style: italic;
}

.risk-strategies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.psychology-insight {
  border-color: var(--accent2);
}

/* Mobile psychology styles */
@media (max-width: 767.98px) {
  .bias-grid, .emotion-grid, .risk-strategies {
    grid-template-columns: 1fr;
  }
  
  .psychology-image {
    margin-bottom: 2rem;
  }
}

/* ---------- Community Section ---------- */
.community-section {
  background-color: var(--bg-dark);
  position: relative;
}

.community-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/community.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
}

.community-content {
  position: relative;
  z-index: 1;
}

.community-intro {
  background: rgba(13, 2, 33, 0.8);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(77, 238, 234, 0.3);
}

.community-intro h3 {
  color: var(--accent1);
  margin-bottom: 1rem;
}

.community-image img {
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.community-resources {
  margin-top: 4rem;
}

.resources-title {
  color: var(--secondary);
  margin-bottom: 2rem;
  text-align: center;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.resource-card {
  background: rgba(13, 2, 33, 0.8);
  padding: 2rem;
  border-radius: 8px;
  height: 100%;
  transition: all var(--transition-medium);
  position: relative;
  border: 1px solid rgba(77, 238, 234, 0.3);
}

.resource-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.resource-icon {
  font-size: 2.5rem;
  color: var(--accent1);
  margin-bottom: 1.5rem;
  transition: all var(--transition-medium);
}

.resource-card:hover .resource-icon {
  color: var(--primary);
  transform: scale(1.1);
}

.resource-card h4 {
  color: var(--secondary);
  margin-bottom: 1rem;
}

.resource-value {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(77, 238, 234, 0.3);
  font-style: italic;
}

.participation-guide {
  margin-top: 4rem;
}

.participation-guide h3 {
  color: var(--accent1);
  margin-bottom: 2rem;
  text-align: center;
}

.participation-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.step-card {
  background: rgba(13, 2, 33, 0.8);
  padding: 2rem;
  border-radius: 8px;
  height: 100%;
  position: relative;
  border: 1px solid rgba(77, 238, 234, 0.3);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 20px;
  background: var(--primary);
  color: var(--text-light);
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-weight: 700;
  box-shadow: var(--glow-primary);
}

.step-card h4 {
  color: var(--secondary);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.community-note {
  border-color: var(--accent1);
}

/* Mobile community styles */
@media (max-width: 767.98px) {
  .resources-grid, .participation-steps {
    grid-template-columns: 1fr;
  }
  
  .community-image {
    margin-bottom: 2rem;
  }
}

/* ---------- Contact Section ---------- */
.contact-section {
  background-color: var(--bg-dark-alt);
  position: relative;
}

.contact-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/tech-pattern.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
}

.contact-content {
  position: relative;
  z-index: 1;
}

.contact-info {
  padding: 2rem;
  background: rgba(13, 2, 33, 0.8);
  border-radius: 8px;
  height: 100%;
  border: 1px solid rgba(77, 238, 234, 0.3);
}

.contact-card {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--accent1);
  margin-right: 1rem;
  margin-top: 0.25rem;
}

.contact-details h4 {
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

.contact-message {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px dashed rgba(77, 238, 234, 0.3);
}

.contact-message h3 {
  color: var(--accent1);
  margin-bottom: 1rem;
}

.contact-form-wrapper {
  background: rgba(13, 2, 33, 0.8);
  padding: 2rem;
  border-radius: 8px;
  height: 100%;
  border: 1px solid rgba(77, 238, 234, 0.3);
}

.contact-form-wrapper h3 {
  color: var(--accent1);
  margin-bottom: 1rem;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.contact-form .form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background: rgba(26, 26, 46, 0.5);
  border: 1px solid rgba(77, 238, 234, 0.3);
  color: var(--text-light);
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.contact-form .form-control:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(77, 238, 234, 0.5);
  border-color: var(--secondary);
}

.form-check {
  display: flex;
  align-items: flex-start;
}

.form-check-input {
  margin-top: 0.3rem;
  margin-right: 0.75rem;
}

.form-check-label {
  font-size: 0.9rem;
}

/* Mobile contact styles */
@media (max-width: 767.98px) {
  .contact-info {
    margin-bottom: 2rem;
  }
}

/* International Telephone Input styles */
.iti {
  width: 100%;
}

.iti__flag-container {
  z-index: 2;
}

/* ---------- Thank You Page ---------- */
.thank-you-section {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: var(--bg-dark);
  padding: 2rem 0;
}

.thank-you-content {
  background: rgba(13, 2, 33, 0.8);
  padding: 3rem;
  border-radius: 8px;
  text-align: center;
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid rgba(77, 238, 234, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.thank-you-icon {
  font-size: 4rem;
  color: var(--success);
  margin-bottom: 2rem;
}

.thank-you-content h1 {
  color: var(--accent1);
  margin-bottom: 1.5rem;
}

.thank-you-content .lead {
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.next-steps {
  margin: 2rem 0;
  text-align: left;
}

.next-steps h3 {
  color: var(--accent1);
  margin-bottom: 1rem;
  text-align: center;
}

.next-steps ul {
  list-style: none;
  padding: 0;
}

.next-steps li {
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
}

.next-steps li i {
  position: absolute;
  left: 0;
  top: 0.25rem;
  color: var(--secondary);
}

.thank-you-cta {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Mobile thank you styles */
@media (max-width: 767.98px) {
  .thank-you-content {
    padding: 2rem;
  }
  
  .thank-you-content h1 {
    font-size: 2rem;
  }
  
  .thank-you-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .thank-you-cta .btn {
    width: 100%;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--bg-dark);
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer-content {
  position: relative;
  z-index: 10;
  margin-bottom: 3rem;
}

.footer-brand {
  margin-bottom: 2rem;
}

.footer-logo {
  height: 60px;
  margin-bottom: 1rem;
}

.footer-links h4, .footer-contact h4 {
  color: var(--secondary);
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
}

.footer-links h4:after, .footer-contact h4:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.footer-links ul, .footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-light);
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-contact li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
}

.footer-contact i {
  color: var(--accent1);
  margin-right: 0.75rem;
  margin-top: 0.25rem;
}

.footer-bottom {
  position: relative;
  z-index: 10;
  padding-top: 2rem;
  border-top: 1px solid rgba(77, 238, 234, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.copyright, .disclaimer {
  margin-bottom: 1rem;
}

.disclaimer {
  font-style: italic;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Mobile footer styles */
@media (max-width: 767.98px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links, .footer-contact {
    margin-bottom: 2rem;
  }
}

/* ---------- Policy Pages ---------- */
.policy-section {
  padding: 120px 0 60px;
  background-color: var(--bg-dark);
}

.policy-header {
  text-align: center;
  margin-bottom: 3rem;
}

.policy-date {
  color: var(--secondary);
  font-style: italic;
}

.policy-content {
  background: rgba(13, 2, 33, 0.8);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid rgba(77, 238, 234, 0.3);
}

.policy-intro {
  margin-bottom: 2rem;
}

.policy-section h2 {
  color: var(--accent1);
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.policy-section h3 {
  color: var(--secondary);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.policy-section ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.policy-section li {
  margin-bottom: 0.5rem;
}

.contact-list {
  list-style: none;
  padding-left: 0;
}

.contact-list li {
  margin-bottom: 0.75rem;
}

.cookie-table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.cookie-table th {
  background-color: rgba(77, 238, 234, 0.2);
  color: var(--secondary);
  padding: 0.75rem;
  text-align: left;
  border: 1px solid rgba(77, 238, 234, 0.3);
}

.cookie-table td {
  padding: 0.75rem;
  border: 1px solid rgba(77, 238, 234, 0.3);
}

.cookie-table tr:nth-child(even) {
  background-color: rgba(26, 26, 46, 0.3);
}

/* ---------- Cookie Consent ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(13, 2, 33, 0.95);
  backdrop-filter: blur(10px);
  z-index: 9999;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform var(--transition-medium);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-container {
  padding: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  margin-right: 2rem;
  margin-bottom: 1rem;
}

.cookie-text h3 {
  color: var(--accent1);
  margin-bottom: 0.5rem;
}

.cookie-text p {
  margin-bottom: 0;
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 2rem 1rem;
}

.cookie-modal.show {
  display: flex;
}

.cookie-modal-content {
  background: var(--bg-dark-alt);
  border-radius: 8px;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  position: relative;
}

.cookie-modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(77, 238, 234, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-modal-header h3 {
  color: var(--accent1);
  margin-bottom: 0;
}

.cookie-close {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.cookie-close:hover {
  color: var(--primary);
}

.cookie-modal-body {
  padding: 1.5rem;
}

.cookie-category {
  margin-bottom: 2rem;
}

.cookie-category:last-child {
  margin-bottom: 0;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.cookie-category-header h4 {
  color: var(--secondary);
  margin-bottom: 0;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(77, 238, 234, 0.2);
  transition: var(--transition-fast);
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: var(--transition-fast);
}

input:checked + .slider {
  background-color: var(--success);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--success);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 24px;
}

.slider.round:before {
  border-radius: 50%;
}

.cookie-modal-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(77, 238, 234, 0.2);
  text-align: right;
}

/* Mobile cookie styles */
@media (max-width: 767.98px) {
  .cookie-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-text {
    margin-right: 0;
    margin-bottom: 1.5rem;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
  
  .cookie-buttons .btn {
    width: 100%;
  }
}

/* ---------- Animation & Effects ---------- */
/* Glow effect for headers on hover */
h1:hover, h2:hover, h3:hover {
  text-shadow: 0 0 8px rgba(77, 238, 234, 0.5);
}

/* Scroll indicator for mobile */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
  color: var(--text-light);
  z-index: 10;
}

.scroll-indicator:hover {
  opacity: 1;
}

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

.scroll-indicator span {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes scrollBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Retro scanline effect */
.retro-scanline {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(0, 0, 0, 0.05) 50%
  );
  background-size: 100% 4px;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.15;
}

/* Scroll-triggered animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in-up.active {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in-left.active {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive Media Queries */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  
  h1 {
    font-size: 4rem;
  }
  
  h2 {
    font-size: 3rem;
  }
  
  h3 {
    font-size: 2rem;
  }
  
  .hero-text h1 {
    font-size: 4rem;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}