/* Complete redesign with Avalanche-style minimalist aesthetics */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #000000;
  background: #ffffff;
}

html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
  background: #000000;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #333333;
}

/* Corner decorations - triangular cutouts like Avalanche site */
.corner-decoration {
  position: relative;
}

.corner-decoration-tl::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 60px 60px 0 0;
  border-color: #ffffff transparent transparent transparent;
  z-index: 1;
}

.corner-decoration-tr::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 60px 60px 0;
  border-color: transparent #ffffff transparent transparent;
  z-index: 1;
}

.corner-decoration-bl::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 60px 60px;
  border-color: transparent transparent #ffffff transparent;
  z-index: 1;
}

.corner-decoration-br::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 60px 0 0 60px;
  border-color: transparent transparent transparent #ffffff;
  z-index: 1;
}

/* Flip card animation */
.flip-card {
  perspective: 1000px;
  height: 100%;
  min-height: 400px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-card-back {
  transform: rotateY(180deg);
}

/* Expand content animation */
.expand-content {
  max-height: 3rem;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* Service card hover */
.service-card {
  transition: all 0.3s ease;
}

/* Team card image transition */
.team-card img {
  transition: transform 0.3s ease;
}

/* Blog card transition */
.blog-card {
  transition: all 0.3s ease;
}

/* Concept icon card */
.concept-icon-card {
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

/* Form validation error */
input.border-red-500,
textarea.border-red-500 {
  border-color: #ef4444 !important;
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Cookie popup slide */
#cookiePopup {
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Focus states */
input:focus,
textarea:focus,
button:focus,
a:focus {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

/* Mobile menu transition */
#mobileMenu {
  transition: all 0.3s ease-in-out;
}

/* Button transitions */
button,
a {
  transition: all 0.3s ease;
}

/* Image loading */
img {
  background: #f5f5f5;
}

/* Print styles */
@media print {
  header,
  footer,
  #cookiePopup {
    display: none;
  }
}

/* Responsive typography */
@media (max-width: 768px) {
  .corner-decoration-tl::before,
  .corner-decoration-tr::before,
  .corner-decoration-bl::after,
  .corner-decoration-br::after {
    border-width: 30px;
  }
}

/* Arrow icon transitions */
a svg {
  transition: transform 0.3s ease;
}

a:hover svg {
  transform: translateX(4px);
}

/* Gradient backgrounds for concept cards */
.concept-icon-card {
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Smooth transitions for all interactive elements */
* {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Remove default focus outline and add custom one */
*:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background-color: #000000;
  color: #ffffff;
}
