/* Custom styles to complement Tailwind */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans",
    "Droid Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 3D Image Frame Effects (HotelHub style) */
.image-3d-frame {
  position: relative;
  display: inline-block;
  width: 100%;
}

.image-3d-frame::before {
  content: "";
  position: absolute;
  top: -12px;
  left: -12px;
  right: 12px;
  bottom: 12px;
  border-radius: 1.5rem;
  z-index: -1;
}

.image-3d-frame.cyan::before {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  box-shadow: 0 20px 60px rgba(6, 182, 212, 0.4);
}

.image-3d-frame.lime::before {
  background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%);
  box-shadow: 0 20px 60px rgba(132, 204, 22, 0.4);
}

.image-3d-frame.small::before {
  top: -8px;
  left: -8px;
  right: 8px;
  bottom: 8px;
  border-radius: 1rem;
}

.image-3d-frame img {
  position: relative;
  z-index: 1;
}

/* Timeline vertical line and dots */
.timeline-item {
  position: relative;
  padding-left: 60px;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s ease-out;
}

.timeline-item.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: -80px;
  width: 3px;
  background: linear-gradient(180deg, #84cc16 0%, #06b6d4 100%);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 20px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #06b6d4 0%, #84cc16 100%);
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.5);
  z-index: 10;
}

@media (max-width: 1024px) {
  .timeline-item {
    padding-left: 0;
  }
  .timeline-item::before,
  .timeline-dot {
    display: none;
  }
}

/* Flip Card Effect for Values Section */
.flip-card {
  perspective: 1000px;
  height: 420px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  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;
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.flip-card-front {
  background: white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(229, 231, 235, 0.8);
}

.flip-card-back {
  background: linear-gradient(135deg, #0e7490 0%, #06b6d4 100%);
  transform: rotateY(180deg);
  box-shadow: 0 20px 60px rgba(6, 182, 212, 0.4);
}

/* Service and Case Cards with hover effects */
.service-card,
.case-card,
.team-card {
  background: white;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(229, 231, 235, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover,
.case-card:hover,
.team-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  border-color: rgba(6, 182, 212, 0.3);
}

/* Custom scrollbar with theme colors */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f9fafb;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #06b6d4 0%, #84cc16 100%);
  border-radius: 6px;
  border: 2px solid #f9fafb;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0891b2 0%, #65a30d 100%);
}

/* Form input focus states */
input:focus,
textarea:focus,
select:focus {
  outline: none;
}

/* Checkbox custom styling */
input[type="checkbox"] {
  cursor: pointer;
}

/* Button hover effects */
button,
a {
  transition: all 0.3s ease;
}

/* Image optimization */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive utilities */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .flip-card {
    height: auto;
    min-height: 360px;
  }
}

/* Cookie popup animation */
@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#cookiePopup:not(.hidden) {
  animation: slideInUp 0.5s ease-out;
}

/* Loading state for form */
.form-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid #06b6d4;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  header,
  footer,
  #cookiePopup {
    display: none;
  }
}
