/**
* Custom CSS for Skill Sorter Website
* Contains all custom animations and enhancements
*/

/*--------------------------------------------------------------
# Blackboard to Smartboard Animation Styles
--------------------------------------------------------------*/

/* Blackboard Background - Darker and more realistic */
.blackboard-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 25%, #2d2d2d 50%, #1a1a1a 75%, #0a0a0a 100%);
  z-index: 1;
  transition: opacity 2s ease-in-out;
}

.blackboard-texture {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04) 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.015) 50%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.2) 100%);
  background-size: 50px 50px, 30px 30px, 40px 40px, 100% 100%, 100% 100%;
  animation: textureFloat 8s ease-in-out infinite;
  box-shadow: inset 0 0 150px rgba(0,0,0,0.7);
}

@keyframes textureFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Smartboard Background - Blended colors */
.smartboard-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 25%, #667eea 50%, #764ba2 75%, #f093fb 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.smartboard-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%),
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.25) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(255,255,255,0.2) 0%, transparent 50%);
  animation: smartboardGlow 4s ease-in-out infinite;
}

@keyframes smartboardGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* Transition Section */
.transition-section {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 60px 0;
  opacity: 0;
  animation: fadeInUp 1s ease-in-out 4s forwards;
}

.transition-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  max-width: 200px;
}

.transition-text {
  color: rgba(255,255,255,0.7);
  font-size: 1.2rem;
  font-weight: 300;
  margin: 0 30px;
  text-transform: uppercase;
  letter-spacing: 3px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Blackboard Content */
.blackboard-content {
  position: relative;
  z-index: 3;
  opacity: 1;
  transition: opacity 1s ease-in-out;
  padding-bottom: 40px;
}

.chalk-writing-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  width: 100%;
  max-width: 800px;
}

.chalk-text {
  font-family: 'Caveat', 'Bradley Hand', 'Brush Script MT', cursive;
  font-size: 4.5rem;
  font-weight: 600;
  color: #f0f0f0;
  text-shadow: 
    2px 2px 0px rgba(0,0,0,0.9),
    4px 4px 0px rgba(0,0,0,0.7),
    6px 6px 0px rgba(0,0,0,0.5),
    0 0 25px rgba(240,240,240,0.4);
  margin: 0;
  position: relative;
  overflow: visible;
  letter-spacing: 1px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  white-space: nowrap;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: center;
}

.chalk-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 30px 30px, 20px 20px;
  pointer-events: none;
  animation: chalkDust 3s ease-in-out infinite;
}

@keyframes chalkDust {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.chalk-dust-container {
  position: absolute;
  bottom: -15px;
  left: 10%;
  transform: translateX(-50%);
  width: 80%;
  height: 40px;
  background: transparent;
  animation: chalkDustFall 4s ease-in-out infinite;
  filter: blur(1px);
}

@keyframes chalkDustFall {
  0%, 100% { transform: translateX(-50%) translateY(0px); opacity: 0.4; }
  50% { transform: translateX(-50%) translateY(12px); opacity: 0.8; }
}

.chalk-subtitle {
  font-family: 'Caveat', 'Bradley Hand', 'Brush Script MT', cursive;
  font-size: 1.8rem;
  color: rgba(240,240,240,0.8);
  text-shadow: 1px 1px 0px rgba(0,0,0,0.8);
  margin: 20px 0 40px 0;
  opacity: 0;
  animation: fadeInUp 1s ease-in-out 2s forwards;
  letter-spacing: 1px;
}

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

/* Smartboard Content */
.smartboard-content {
  position: relative;
  z-index: 3;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  padding-top: 40px;
}

.smartboard-text-container {
  margin-bottom: 30px;
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.smartboard-text {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, #fff, #e0e0e0, #fff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 
    0 0 30px rgba(255,255,255,0.5),
    0 0 60px rgba(255,255,255,0.3);
  margin: 0;
  position: relative;
  overflow: visible;
  letter-spacing: 2px;
  line-height: 1.2;
  animation: textShimmer 3s ease-in-out infinite;
  white-space: normal;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: center;
}

.smartboard-text::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: textShimmer 3s ease-in-out infinite;
}

@keyframes textShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.smartboard-subtitle {
  font-family: 'Orbitron', 'Arial', sans-serif;
  font-size: 1.4rem;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 0 20px rgba(255,255,255,0.3);
  margin: 20px 0 40px 0;
  opacity: 0;
  animation: fadeInUp 1s ease-in-out 5s forwards;
  letter-spacing: 1px;
  font-weight: 300;
}

.chalk-text.writing {
  animation: chalkWriting 0.1s ease-in-out;
}

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

.smartboard-text.typing {
  border-right: 3px solid #fff;
  animation: smartboardTyping 0.1s ease-in-out, smartboardBlink 0.75s step-end infinite;
}

@keyframes smartboardTyping {
  0% { transform: scale(1); }
  50% { transform: scale(1.01); }
  100% { transform: scale(1); }
}

@keyframes smartboardBlink {
  0%, 50% { border-color: #fff; }
  51%, 100% { border-color: transparent; }
}

.demo-button, .demo-video, .demo-collaboration, .demo-analytics {
  background: linear-gradient(45deg, #4CAF50, #45a049);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.demo-button::before, .demo-video::before, .demo-collaboration::before, .demo-analytics::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.demo-button:hover::before, .demo-video:hover::before, .demo-collaboration:hover::before, .demo-analytics:hover::before {
  left: 100%;
}

.demo-button:hover, .demo-video:hover, .demo-collaboration:hover, .demo-analytics:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.demo-button:active, .demo-video:active, .demo-collaboration:active, .demo-analytics:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

/* Interactive Element Enhancements */
.interactive-element {
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 15px;
  padding: 20px;
  margin: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  min-width: 200px;
  text-align: center;
}

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

.interactive-element:hover::before {
  left: 100%;
}

.interactive-element:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}

.interactive-element:active {
  transform: translateY(-2px) scale(1.02);
}

.interactive-element span {
  font-family: 'Orbitron', 'Arial', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
  display: block;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.interactive-element.active {
  animation: elementPulse 0.8s ease-in-out;
}

@keyframes elementPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Drawing Canvas for Demo */
.drawing-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 10000;
  display: none;
  overflow: hidden;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.drawing-canvas canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  border-radius: 10px;
  background: #fff;
  cursor: crosshair;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  max-width: 90vw;
  max-height: 80vh;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
  .drawing-canvas canvas {
    max-width: 95vw;
    max-height: 70vh;
    border-width: 1px;
  }
  
  .drawing-canvas h3 {
    font-size: 1.2rem;
  }
  
  .drawing-canvas p {
    font-size: 0.9rem;
  }
  
  .drawing-canvas button {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* Video Modal for Demo */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.video-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  max-width: 80%;
  max-height: 80%;
  overflow: auto;
}

/* Analytics Demo */
.analytics-demo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #667eea, #764ba2);
  padding: 30px;
  border-radius: 20px;
  color: #fff;
  z-index: 10000;
  display: none;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.analytics-chart {
  /* width: 300px; */
  height: 200px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}

.analytics-bar {
  position: absolute;
  bottom: 0;
  width: 40px;
  background: var(--accent-color);
  border-radius: 5px 5px 0 0;
  animation: barGrow 2s ease-out;
}

@keyframes barGrow {
  from { height: 0; }
  to { height: var(--bar-height); }
}

/* Animation States */
.hero.transitioning .blackboard-bg {
  opacity: 0;
}

.hero.transitioning .smartboard-bg {
  opacity: 1;
}

.hero.transitioning .blackboard-content {
  opacity: 0;
}

.hero.transitioning .smartboard-content {
  opacity: 1;
}

/* Enhanced Smartboard Icons */
.smartboard-icon {
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  margin-bottom: 30px;
}

.smartboard-icon::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-in-out;
}

.smartboard-icon:hover::before {
  left: 100%;
}

.smartboard-icon:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}

.smartboard-icon i {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.smartboard-icon:hover i {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.smartboard-icon h3 a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.smartboard-icon:hover h3 a {
  color: #fff;
  text-shadow: 0 0 15px rgba(255,255,255,0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
  .chalk-text {
    font-size: clamp(2rem, 5vw, 3rem);
    min-height: 70px;
    max-width: 95%;
    white-space: normal;
    text-align: center;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  
  .chalk-subtitle {
    font-size: 1.4rem;
    max-width: 95%;
  }
  
  .smartboard-text {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    max-width: 95%;
    letter-spacing: 1px;
    white-space: normal;
    text-align: center;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  
  .smartboard-subtitle {
    font-size: 1.2rem;
    max-width: 95%;
  }
}

@media (max-width: 576px) {
  .chalk-text {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    min-height: 60px;
    max-width: 98%;
    letter-spacing: 0.5px;
    white-space: normal;
    text-align: center;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  
  .chalk-subtitle {
    font-size: 1.2rem;
    max-width: 98%;
  }
  
  .smartboard-text {
    font-size: clamp(1.2rem, 3.5vw, 2rem);
    max-width: 98%;
    letter-spacing: 0.5px;
    white-space: normal;
    text-align: center;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  
  .smartboard-subtitle {
    font-size: 1rem;
    max-width: 98%;
  }
}

/* Typewriter Effect for Chalk Text */
.chalk-text.typing {
  border-right: 3px solid #f0f0f0;
  animation: chalkBlink 0.75s step-end infinite;
}

@keyframes chalkBlink {
  0%, 50% { border-color: #f0f0f0; }
  51%, 100% { border-color: transparent; }
}

/*--------------------------------------------------------------
# Traditional Learning Problems
--------------------------------------------------------------*/
.traditional-problems {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
  opacity: 0;
  animation: fadeInUp 1s ease-in-out 3s forwards;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.problem-item {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,0,0,0.3);
  border-radius: 15px;
  padding: 20px;
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
}

.problem-item.aos-animate {
  opacity: 1;
  transform: translateY(0);
}

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

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

.problem-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255,0,0,0.2);
  border-color: rgba(255,0,0,0.5);
}

.problem-icon {
  font-size: 2rem;
  margin-right: 15px;
  text-shadow: 0 0 10px rgba(255,0,0,0.5);
}

.problem-text h4 {
  color: #fff;
  margin: 0 0 5px 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.problem-text p {
  color: rgba(255,255,255,0.8);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

/*--------------------------------------------------------------
# Smartboard Features Comparison
--------------------------------------------------------------*/
.smartboard-comparison {
  margin-top: 50px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.comparison-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.comparison-item.aos-animate {
  opacity: 1;
  transform: translateY(0);
}

.comparison-item::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;
}

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

.comparison-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}

.comparison-item h3 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.comparison-item p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.feature-demo {
  margin-top: 20px;
}

.demo-button:hover, .demo-video:hover, .demo-collaboration:hover, .demo-analytics:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.5);
}

/*--------------------------------------------------------------
# Live Smartboard Demo
--------------------------------------------------------------*/
.live-demo-section {
  margin-top: 60px;
  text-align: center;
}

.live-demo-section h3 {
  color: #fff;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 30px;
  text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.demo-board {
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(10px);
  width: 100%;
}

.board-screen {
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 15px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.board-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
  animation: screenGlow 4s ease-in-out infinite;
}

@keyframes screenGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.screen-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  position: relative;
  z-index: 2;
}

.interactive-element {
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 15px;
  padding: 20px;
  margin: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  min-width: 200px;
  text-align: center;
}

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

.interactive-element:hover::before {
  left: 100%;
}

.interactive-element:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}

.interactive-element span {
  font-family: 'Orbitron', 'Arial', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
  display: block;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

/* Interactive Element Animations */
.interactive-element.active {
  animation: elementPulse 0.8s ease-in-out;
}

@keyframes elementPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Responsive Design for New Elements */
@media (max-width: 768px) {
  .traditional-problems {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 100%;
  }
  
  .problem-item {
    padding: 15px;
  }
  
  .problem-icon {
    font-size: 1.5rem;
  }
  
  .problem-text h4 {
    font-size: 1.1rem;
  }
  
  .problem-text p {
    font-size: 0.85rem;
  }
  
  .comparison-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 100%;
  }
  
  .comparison-item {
    padding: 25px;
  }
  
  .feature-icon {
    font-size: 2rem;
  }
  
  .comparison-item h3 {
    font-size: 1.3rem;
  }
  
  .comparison-item p {
    font-size: 0.9rem;
  }
  
  .screen-content {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .interactive-element {
    min-width: auto;
  }
  
  .interactive-element span {
    font-size: 0.9rem;
  }
  
  .live-demo-section h3 {
    font-size: 1.6rem;
  }
  
  .board-screen {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .traditional-problems {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .problem-item {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  
  .problem-icon {
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .comparison-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 100%;
  }
  
  .comparison-item {
    padding: 20px;
  }
  
  .feature-icon {
    font-size: 1.8rem;
  }
  
  .comparison-item h3 {
    font-size: 1.2rem;
  }
  
  .comparison-item p {
    font-size: 0.85rem;
  }
  
  .demo-button, .demo-video, .demo-collaboration, .demo-analytics {
    padding: 10px 20px;
    font-size: 0.8rem;
  }
  
  .interactive-element {
    padding: 15px;
  }
  
  .interactive-element span {
    font-size: 0.85rem;
  }
  
  .live-demo-section h3 {
    font-size: 1.4rem;
  }
  
  .board-screen {
    padding: 15px;
  }
}

/* Enhanced Form Confirmation Messages */
.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: linear-gradient(135deg, #059652, #0abf69);
  text-align: center;
  padding: 20px;
  margin-bottom: 24px;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(5, 150, 82, 0.3);
  border-left: 4px solid #ffffff;
  position: relative;
  overflow: hidden;
}

.php-email-form .sent-message::before {
  content: '✓';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
}

.php-email-form .error-message {
  display: none;
  color: #ffffff;
  background: linear-gradient(135deg, #dc3545, #e74c3c);
  text-align: center;
  padding: 20px;
  margin-bottom: 24px;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
  border-left: 4px solid #ffffff;
  position: relative;
  overflow: hidden;
}

.php-email-form .error-message::before {
  content: '⚠';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
}

/* Enhanced Submit Button States */
.php-email-form button[type="submit"] {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.php-email-form button[type="submit"]:disabled {
  opacity: 0.8;
  cursor: not-allowed;
  transform: scale(0.98);
}

.php-email-form button[type="submit"]:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

/* Loading Spinner Animation */
.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: button-spin 1s ease-in-out infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Loading State Button */
.php-email-form button[type="submit"].loading-state {
  background: #007bff !important;
  border-color: #007bff !important;
  cursor: not-allowed;
}

/* Hide the separate loading message box */
.php-email-form .loading {
  display: none !important;
}

/* Success Button State */
.php-email-form button[type="submit"].success {
  background: #059652 !important;
  border-color: #059652 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .php-email-form .sent-message,
  .php-email-form .error-message,
  .php-email-form .loading {
    padding: 15px;
    font-size: 14px;
  }
  
  .php-email-form .sent-message::before,
  .php-email-form .error-message::before {
    left: 10px;
    font-size: 16px;
  }
}

/* Custom Chalk & Duster Preloader */
#custom-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease-out;
}

#custom-preloader.fade-out {
  opacity: 0;
}

.preloader-container {
  position: relative;
  width: 400px;
  height: 300px;
  background: #0a0a0a;
  border-radius: 15px;
  box-shadow: 
    0 0 50px rgba(0,0,0,0.8),
    inset 0 0 100px rgba(255,255,255,0.05);
  border: 3px solid #333;
  overflow: hidden;
}

/* Blackboard texture */
.preloader-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 50px 50px, 30px 30px, 40px 40px;
  pointer-events: none;
}

/* Writing text */
.writing-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Caveat', cursive;
  font-size: 2.5rem;
  font-weight: 600;
  color: #f0f0f0;
  text-shadow: 
    2px 2px 0px rgba(0,0,0,0.9),
    4px 4px 0px rgba(0,0,0,0.7);
  white-space: nowrap;
  opacity: 0;
  animation: textAppear 0.5s ease-in forwards;
}

@keyframes textAppear {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Moving duster animation */
.moving-duster {
  animation: dusterBounce 0.5s ease-in-out infinite alternate;
}

@keyframes dusterBounce {
  0% { transform: translateY(-50%) scale(1); }
  100% { transform: translateY(-50%) scale(1.1); }
}

/* Chalk dust particles */
.chalk-dust {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(240,240,240,0.6);
  border-radius: 50%;
  animation: dustFall 2s linear infinite;
}

.chalk-dust:nth-child(1) { left: 30%; animation-delay: 0s; }
.chalk-dust:nth-child(2) { left: 35%; animation-delay: 0.3s; }
.chalk-dust:nth-child(3) { left: 40%; animation-delay: 0.6s; }
.chalk-dust:nth-child(4) { left: 45%; animation-delay: 0.9s; }
.chalk-dust:nth-child(5) { left: 50%; animation-delay: 1.2s; }
.chalk-dust:nth-child(6) { left: 55%; animation-delay: 1.5s; }
.chalk-dust:nth-child(7) { left: 60%; animation-delay: 1.8s; }
.chalk-dust:nth-child(8) { left: 65%; animation-delay: 2.1s; }

@keyframes dustFall {
  0% {
    top: 40%;
    opacity: 0;
    transform: translateY(0) scale(0);
  }
  20% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    top: 80%;
    opacity: 0;
    transform: translateY(20px) scale(0.5);
  }
}

/* Loading text */
.loading-text {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #f0f0f0;
  font-family: 'Orbitron', monospace;
  font-size: 1rem;
  text-align: center;
  animation: loadingPulse 2s ease-in-out infinite;
}

@keyframes loadingPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Responsive design */
@media (max-width: 768px) {
  .preloader-container {
    width: 300px;
    height: 250px;
  }
  
  .writing-text {
    font-size: 2rem;
  }
  
  .duster {
    width: 50px;
    height: 35px;
  }
}

@media (max-width: 480px) {
  .preloader-container {
    width: 250px;
    height: 200px;
  }
  
  .writing-text {
    font-size: 1.5rem;
  }
  
  .duster {
    width: 40px;
    height: 30px;
  }
}


/* Services page Help Box tweaks */
.service-details-page .help-box {
  cursor: pointer;
}
.service-details-page .help-box a {
  color: #ffffff;
  text-decoration: underline;
}
.service-details-page .help-box a:hover {
  opacity: 0.9;
}