/* INTERACTIVE ENHANCEMENTS FOR STOKED WEBSITE */

/* ========== SUBTLE PARTICLE SYSTEM ========== */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

.particle {
  position: absolute;
  background: rgba(255, 215, 0, 0.4);
  border-radius: 50%;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

.particle:nth-child(odd) {
  background: rgba(255, 255, 255, 0.2);
  animation-duration: 10s;
  animation-delay: -2s;
}

.particle:nth-child(3n) {
  background: rgba(255, 215, 0, 0.3);
  animation-duration: 12s;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); opacity: 0; }
  20% { opacity: 0.6; }
  50% { transform: translateY(-80px) translateX(30px) rotate(180deg); opacity: 0.4; }
  80% { opacity: 0.6; }
}

/* ========== ENHANCED HERO SECTION ========== */
.hero-section {
  overflow: hidden;
}

.hero-content {
  transform: translateZ(0);
  will-change: transform;
}

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

.hero-title-word:nth-child(1) { animation-delay: 0.2s; }
.hero-title-word:nth-child(2) { animation-delay: 0.4s; }
.hero-title-word:nth-child(3) { animation-delay: 0.6s; }

@keyframes revealWord {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  opacity: 0;
  animation: slideInLeft 1s ease-out 0.1s forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========== PARALLAX LAYERS ========== */
.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.parallax-layer-1 { z-index: -3; opacity: 0.3; }
.parallax-layer-2 { z-index: -2; opacity: 0.5; }
.parallax-layer-3 { z-index: -1; opacity: 0.7; }

/* ========== SCROLL PROGRESS INDICATOR ========== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #FFD700, #FFA500);
  z-index: 10000;
  transition: width 0.1s ease-out;
}

/* ========== ENHANCED NAVIGATION ========== */
.navbar {
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.nav-center a {
  position: relative;
  overflow: hidden;
}

.nav-center a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #FFD700, transparent);
  transition: left 0.5s ease;
}

.nav-center a:hover::before {
  left: 100%;
}

.nav-item-indicator {
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 2px;
  background: #FFD700;
  transition: all 0.3s ease;
  transform: scaleX(0);
}

.nav-center a:hover .nav-item-indicator {
  transform: scaleX(1);
}

/* ========== ENHANCED SCROLL ANIMATIONS ========== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

.slide-in-left.animated {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease;
}

.slide-in-right.animated {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s ease;
}

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

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s ease;
}

.scale-in.animated {
  opacity: 1;
  transform: scale(1);
}

/* ========== ENHANCED PORTFOLIO EFFECTS ========== */
.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateZ(0);
}

.portfolio-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
  transition: left 0.6s ease;
  z-index: 2;
}

.portfolio-item:hover::before {
  left: 100%;
}

.portfolio-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.portfolio-item:hover .portfolio-thumb-img {
  transform: scale(1.1);
  filter: brightness(1.2) saturate(1.3);
}

.portfolio-thumb-img {
  transition: all 0.5s ease;
  transform: scale(1);
}

.portfolio-overlay-effect {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.95), rgba(0,0,0,0.3));
  color: white;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.portfolio-overlay-effect h3 {
  margin: 0 0 10px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFD700;
  text-shadow: 2px 2px 6px rgba(0,0,0,1), 0 0 12px rgba(0,0,0,0.9), -1px -1px 2px rgba(0,0,0,0.8);
}

.portfolio-overlay-effect p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #ccc;
}

.portfolio-item:hover .portfolio-overlay-effect {
  transform: translateY(0);
}


/* ========== ENHANCED FORM ANIMATIONS ========== */
.form-group {
  position: relative;
  margin-bottom: 35px;
}

.form-input {
  width: 100%;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
}

.form-input::placeholder {
  color: transparent;
}

.form-input:focus {
  border-color: #FFD700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
  outline: none;
}

.form-label {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0 5px;
  color: #666;
  transition: all 0.3s ease;
  pointer-events: none;
  border-radius: 4px;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  top: -10px;
  font-size: 12px;
  color: #FFD700;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.8);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* ========== HOME PAGE FORM FIXES ========== */
/* Override .schedule-right styles for floating labels */
.schedule-right .form-group .form-label {
  position: absolute !important;
  top: 15px !important;
  left: 15px !important;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.9) !important;
  padding: 0 5px !important;
  color: #666 !important;
  transition: all 0.3s ease !important;
  pointer-events: none !important;
  border-radius: 4px !important;
  font-weight: 500 !important;
}

.schedule-right .form-input:focus + .form-label,
.schedule-right .form-input:not(:placeholder-shown) + .form-label {
  top: -10px !important;
  left: 10px !important;
  font-size: 12px !important;
  color: #FFD700 !important;
  font-weight: 700 !important;
  background: rgba(0, 0, 0, 0.8) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
}

.form-validation {
  position: absolute;
  bottom: -22px;
  left: 0;
  font-size: 12px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.form-validation.error {
  color: #ff6b6b;
  opacity: 1;
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 6px;
  border-radius: 4px;
  text-shadow: none;
  color: #d63031;
}

.form-validation.success {
  color: #00b894;
  opacity: 1;
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 6px;
  border-radius: 4px;
  text-shadow: none;
  color: #00b894;
}


/* ========== BUTTON ENHANCEMENTS ========== */
.btn-enhanced {
  position: relative;
  overflow: hidden;
  border: none;
  background: linear-gradient(45deg, #FFD700, #FFA500);
  color: #000;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: translateZ(0);
}

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

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

.btn-enhanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

.btn-enhanced:active {
  transform: translateY(0);
}

/* ========== MICRO-INTERACTIONS ========== */
.clickable {
  cursor: pointer;
  transition: transform 0.1s ease;
}

.clickable:active {
  transform: scale(0.98);
}

.hover-lift {
  transition: transform 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
}

.icon-spin {
  transition: transform 0.3s ease;
}

.icon-spin:hover {
  transform: rotate(360deg);
}

/* ========== WORKSHOP CALENDAR - IMPROVED LAYOUT ========== */
.workshop-calendar-section {
  background: var(--color-black);
  color: var(--color-white);
  padding: var(--section-padding, 60px 20px);
}

.calendar-container {
  max-width: 1200px;
  margin: 0 auto;
}

.calendar-header-section {
  text-align: center;
  margin-bottom: 40px;
}

.calendar-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.calendar-header-section h2 {
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 900;
  color: var(--color-white);
}

.calendar-header-section p {
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
  font-weight: 400;
  color: var(--color-white);
}

.interactive-calendar {
  background: var(--color-dark-gray);
  border-radius: 15px;
  padding: 30px;
  width: 100%;
  border: 2px solid rgba(255, 215, 0, 0.2);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.calendar-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}

.calendar-nav {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 700;
  font-size: 1rem;
}

.calendar-nav:hover {
  background: var(--color-primary);
  color: var(--color-black);
  transform: translateY(-2px);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 20px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--color-white);
  position: relative;
  font-size: 0.9rem;
  font-weight: 400;
  min-height: 35px;
  background: rgba(255, 255, 255, 0.05);
}

.calendar-day.inactive {
  color: rgba(255, 255, 255, 0.3);
  background: transparent;
}

.calendar-day:hover {
  background: rgba(255, 215, 0, 0.2);
  transform: scale(1.05);
}

.calendar-day.has-event {
  background: var(--color-primary);
  color: var(--color-black);
  font-weight: 700;
}

.calendar-day.has-event::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 4px;
  height: 4px;
  background: #e74c3c;
  border-radius: 50%;
  transform: translateX(-50%);
}

.calendar-left {
  padding-right: 30px;
}

.calendar-right {
  padding-left: 30px;
}

.upcoming-events {
  background: var(--color-dark-gray, #111);
  border-radius: 15px;
  padding: 30px;
  border: 2px solid rgba(255, 215, 0, 0.2);
  height: 100%;
  text-align: left;
}

.upcoming-events h4 {
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.event-list {
  max-height: 300px;
  overflow-y: auto;
}

.event-item {
  padding: 12px 16px !important;
  margin-bottom: 12px !important;
  background: rgba(255, 215, 0, 0.1) !important;
  border-radius: 8px !important;
  font-size: 0.95rem !important;
  border-left: 4px solid var(--color-primary);
  transition: all 0.3s ease;
  cursor: pointer;
}

.event-item:hover {
  background: rgba(255, 215, 0, 0.2) !important;
  transform: translateX(5px);
}

/* Mobile Responsiveness for Calendar */
@media (max-width: 768px) {
  .workshop-calendar-section {
    padding: 40px 15px;
  }
  
  .calendar-content-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .calendar-left,
  .calendar-right {
    padding: 0;
  }
  
  .calendar-header-section h2 {
    font-size: 1.6rem;
  }
  
  .interactive-calendar,
  .upcoming-events {
    padding: 20px;
  }
  
  .event-list {
    max-height: 200px;
  }
}

/* ========== TESTIMONIAL CAROUSEL ========== */
.testimonial-carousel {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.5s ease;
}

.testimonial-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.testimonial-slide.prev {
  transform: translateX(-100%);
}


/* ========== MOBILE OPTIMIZATIONS ========== */
@media (max-width: 768px) {
  .particle {
    display: none;
  }
  
  .portfolio-filters {
    gap: 10px;
  }
  
  .filter-btn {
    padding: 8px 16px;
    font-size: 14px;
  }
  
  .calendar-grid {
    gap: 5px;
  }
  
}

/* ========== HIGH CONTRAST MODE ========== */
@media (prefers-contrast: high) {
  .particle {
    background: #FFD700;
    opacity: 1;
  }
  
  .btn-enhanced {
    border: 2px solid #FFD700;
  }
}

/* ========== FORM ANIMATIONS ========== */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.enhanced-form {
  position: relative;
}

.enhanced-form .form-group {
  margin-bottom: 25px;
}


/* ========== WORKSPACE PREVIEW - CONSISTENT LAYOUT ========== */
.workspace-section {
  background: var(--color-black);
  color: var(--color-white);
  padding: var(--section-padding, 60px 20px);
  text-align: center;
}

.workspace-container {
  max-width: 1200px;
  margin: 0 auto;
}

.workspace-section h2 {
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 900;
  color: var(--color-white);
}

.workspace-section p {
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--color-white);
}

.workspace-preview {
  width: 100%;
  margin: 0 auto;
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.workspace-item {
  background: var(--color-dark-gray);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.workspace-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.workspace-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.workspace-item:hover img {
  transform: scale(1.05);
}

.workspace-info {
  padding: 20px;
  text-align: left;
}

.workspace-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.workspace-info p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0;
}

/* ========== LIVE COMMUNITY STATS ========== */
.community-stats-section {
  background: var(--color-white);
  color: var(--color-black);
  padding: 60px 20px;
  text-align: center;
}

.community-stats-section h2 {
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 900;
  color: var(--color-black);
}

.community-stats-section p {
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--color-black);
}

.live-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px 0;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.stat-card {
  background: var(--color-dark-gray);
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  flex: 1;
  min-width: 200px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.stat-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-primary);
  display: block;
  margin-bottom: 10px;
  line-height: 1;
}

.stat-label {
  color: var(--color-white);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}


/* ========== PROGRESS WEB APP ========== */
.pwa-install {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: linear-gradient(45deg, #FFD700, #FFA500);
  color: #000;
  border: none;
  padding: 15px 20px;
  border-radius: 25px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

.pwa-install.show {
  transform: translateY(0);
  opacity: 1;
}

.pwa-install:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  .particle,
  .hero-title-word,
  .animate-on-scroll,
  .portfolio-item,
  .btn-enhanced,
  .calendar-day {
    animation: none !important;
    transition: none !important;
  }
}