/* Custom overrides & animations */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background: #ff5733;
  color: #fff;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid #ff5733;
  outline-offset: 2px;
}

/* Mobile menu animations */
.menu-line {
  display: block;
}

#mobile-toggle.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#mobile-toggle.active .menu-line:nth-child(2) {
  opacity: 0;
}
#mobile-toggle.active .menu-line:nth-child(3) {
  width: 20px;
  transform: rotate(-45deg) translate(3px, -3px);
  margin-left: 0;
}

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(15, 17, 22, 0.95) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 87, 51, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Geometric accent lines */
.geo-accent {
  position: relative;
}
.geo-accent::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 60px;
  height: 60px;
  border: 2px solid rgba(255, 87, 51, 0.2);
  border-radius: 4px;
  transform: rotate(45deg);
  z-index: -1;
}

/* Coral gradient text */
.coral-gradient-text {
  background: linear-gradient(135deg, #ff7a63 0%, #ff5733 50%, #e8431a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card shimmer on hover */
.card-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 87, 51, 0.05), transparent);
  transition: left 0.6s;
  z-index: 1;
  pointer-events: none;
}
.card-hover:hover::before {
  left: 100%;
}

/* Button ripple */
.btn-primary, .btn-outline {
  position: relative;
  overflow: hidden;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  .card-hover:hover {
    transform: none;
  }
  .card-hover::before {
    display: none;
  }
  img {
    transition: none;
  }
}
