/* Volcano Ember Theme - Custom styles for InnovateHub KZ */

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #ffffff;
  scroll-behavior: smooth;
  background-color: #0a0a0a;
}

/* Volcanic Theme Classes */
.lava-edge {
  border: 1px solid #ff3d00;
  box-shadow: 0 0 20px rgba(255, 61, 0, 0.3);
}

.ember-glow {
  box-shadow: 0 0 30px rgba(255, 160, 0, 0.4);
}

.ember-shadow {
  box-shadow: 0 8px 25px rgba(255, 160, 0, 0.3);
}

.charcoal-card {
  background: #1c1b1a;
  transition: all 0.3s ease;
}

.charcoal-card:hover {
  transform: translateY(-5px);
}

.magma-badge {
  position: relative;
  overflow: hidden;
}

.magma-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff3d00, transparent);
  animation: magmaFlow 3s infinite;
}

@keyframes magmaFlow {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.plaque-stat {
  position: relative;
}

.plaque-stat::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff3d00, #ffa000);
  border-radius: 0 0 8px 8px;
}

.ash-texture {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 2px,
    rgba(255, 61, 0, 0.03) 2px,
    rgba(255, 61, 0, 0.03) 4px
  );
}

.ash-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 160, 0, 0.5), transparent);
  margin: 80px 0;
}

/* Diagonal cuts between sections */
.diagonal-cut--top {
  width: 100%;
  height: 60px;
  background: #0a0a0a;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.diagonal-cut--bottom {
  width: 100%;
  height: 60px;
  background: #1c1b1a;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  margin-bottom: -60px;
  position: relative;
  z-index: 10;
}

/* Image masks and effects */
.skew-mask {
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
  filter: contrast(1.05);
}

.polaroid-frame {
  border: 8px solid #1c1b1a;
  border-bottom: 20px solid #1c1b1a;
  position: relative;
}

.polaroid-frame::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 3px;
  background: #ffa000;
}

/* Header styles */
.header-shadow {
  box-shadow: 0 2px 20px rgba(255, 61, 0, 0.2);
}

/* Hero section animations */
.hero-fade-in {
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button styles */
.btn-primary {
  background: linear-gradient(135deg, #ff3d00 0%, #e53e00 100%);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e53e00 0%, #cc3700 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 61, 0, 0.4);
}

/* Form styles */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #1c1b1a;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #1c1b1a;
  color: white;
}

.form-input:focus {
  outline: none;
  border-color: #ff3d00;
  box-shadow: 0 0 0 3px rgba(255, 61, 0, 0.2);
}

.form-input:invalid {
  border-color: #ef4444;
}

.form-input:invalid:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* Team member cards */
.team-member {
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
}

.team-avatar {
  transition: all 0.3s ease;
}

.team-member:hover .team-avatar {
  transform: scale(1.1);
}

/* Map container */
.map-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(255, 61, 0, 0.2);
}

.map-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 61, 0, 0.1), rgba(255, 160, 0, 0.1));
  pointer-events: none;
  z-index: 1;
}

/* Cookie notice styles */
#cookieNotice {
  backdrop-filter: blur(10px);
  background: rgba(28, 27, 26, 0.95);
  border-top: 1px solid rgba(255, 160, 0, 0.3);
}

#cookieNotice.show {
  transform: translateY(0);
}

/* Mobile menu styles */
#mobileMenu {
  background: rgba(28, 27, 26, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 61, 0, 0.3);
}

/* FAQ Accordion */
.faq-item .faq-question[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.faq-item .faq-answer.show {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 200px;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .section-padding {
    padding: 60px 0;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .diagonal-cut--top,
  .diagonal-cut--bottom {
    height: 30px;
    margin-top: -30px;
    margin-bottom: -30px;
  }
}

/* Loading animation */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 61, 0, 0.4), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Scroll animations */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1c1b1a;
}

::-webkit-scrollbar-thumb {
  background: #ff3d00;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e53e00;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #ff3d00 0%, #ffa000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Image hover effects */
.image-hover {
  transition: all 0.3s ease;
  overflow: hidden;
  border-radius: 12px;
}

.image-hover:hover {
  transform: scale(1.05);
}

.image-hover img {
  transition: all 0.3s ease;
}

.image-hover:hover img {
  transform: scale(1.1);
}

/* Stats counter animation */
.stat-number {
  font-weight: 700;
  font-size: 2.5rem;
  display: block;
}

/* Footer styles */
footer {
  background: linear-gradient(135deg, #0a0a0a 0%, #1c1b1a 100%);
}

/* Contact form validation styles */
.form-group {
  position: relative;
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #ffffff;
}

.form-error {
  color: #ef4444;
  font-size: 14px;
  margin-top: 4px;
  display: none;
}

.form-input.error {
  border-color: #ef4444;
  background-color: #2d1b1b;
}

.form-input.error + .form-error {
  display: block;
}

.form-success {
  border-color: #10b981;
  background-color: #1b2d1b;
}

/* Loading spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 8px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #ff3d00;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
    background: white;
    color: black;
  }

  h1,
  h2,
  h3 {
    page-break-after: avoid;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .btn-primary {
    background: #ff3d00;
    border: 2px solid #ffffff;
  }

  .form-input {
    border-width: 2px;
    border-color: #ff3d00;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Ember highlight effect for cards */
.ember-highlight {
  position: relative;
  overflow: hidden;
}

.ember-highlight::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ff3d00, #ffa000, #ff3d00);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ember-highlight:hover::before {
  opacity: 1;
}

/* Volcanic particle effect */
@keyframes volcanoParticles {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(0);
    opacity: 0;
  }
}

.volcano-particles {
  position: relative;
}

.volcano-particles::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  background: #ffa000;
  border-radius: 50%;
  animation: volcanoParticles 2s infinite;
  top: 100%;
  left: 50%;
}
