* {
  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;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

.container {
  max-width: 1280px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Tilted Image Frames - HotelHub Style */
.tilted-image-frame {
  position: relative;
  padding: 20px;
}

.tilted-image-frame img {
  border: 12px solid #06b6d4;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}

.tilted-image-frame:hover img {
  transform: rotate(0deg) scale(1.02);
}

.tilted-image-frame-small {
  position: relative;
  padding: 15px;
}

.tilted-image-frame-small img {
  border: 10px solid #06b6d4;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.2);
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}

.tilted-image-frame-small:hover img {
  transform: rotate(0deg);
}

.tilted-image-frame-small-right {
  position: relative;
  padding: 15px;
}

.tilted-image-frame-small-right img {
  border: 10px solid #06b6d4;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.2);
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}

.tilted-image-frame-small-right:hover img {
  transform: rotate(0deg);
}

.tilted-image-frame-large {
  position: relative;
  padding: 20px;
}

.tilted-image-frame-large img {
  border: 14px solid #06b6d4;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
  transform: rotate(-1.5deg);
  transition: transform 0.3s ease;
}

.tilted-image-frame-large:hover img {
  transform: rotate(0deg);
}

/* Timeline Styles */
.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #a3e635;
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 0 0 0 6px rgba(163, 230, 53, 0.2);
}

.timeline-item-left .timeline-dot {
  top: 50%;
}

.timeline-item-right .timeline-dot {
  top: 50%;
}

.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  width: 3px;
  height: calc(100% + 20px);
  background: linear-gradient(to bottom, #a3e635, #06b6d4);
  left: 50%;
  transform: translateX(-50%);
  top: 50%;
}

/* Service Cards with Flip Effect */
.service-card {
  perspective: 1000px;
  height: 400px;
}

.service-card-front,
.service-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  transition: transform 0.6s;
  border-radius: 1.5rem;
  padding: 2rem;
}

.service-card-front {
  background: white;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card-back {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-card:hover .service-card-front {
  transform: rotateY(180deg);
}

.service-card:hover .service-card-back {
  transform: rotateY(360deg);
}

/* Value Cards */
.value-card {
  background: white;
  padding: 2.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.value-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

/* Case Cards */
.case-card {
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Team Cards with Flip Effect */
.team-card {
  perspective: 1000px;
  height: 500px;
}

.team-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.team-card:hover .team-card-inner {
  transform: rotateY(180deg);
}

.team-card-front,
.team-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.team-card-front {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.team-card-back {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

/* Cookie Popup Animation */
#cookiePopup {
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Form Validation Styles */
input.border-red-500,
textarea.border-red-500,
input[type="checkbox"].border-red-500 {
  border-color: #ef4444 !important;
}

#mobileMenu {
  transition: all 0.3s ease;
}

button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
}

a {
  text-decoration: none;
}

form input:invalid:not(:placeholder-shown),
form textarea:invalid:not(:placeholder-shown) {
  border-color: inherit;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .timeline-dot {
    left: 20px;
    transform: translateX(0);
  }

  .timeline-item::before {
    left: 20px;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .service-card,
  .team-card {
    height: auto;
  }

  .service-card-front,
  .service-card-back,
  .team-card-front,
  .team-card-back {
    position: relative;
    transform: none !important;
  }

  .service-card-back,
  .team-card-back {
    display: none;
  }

  .tilted-image-frame img,
  .tilted-image-frame-small img,
  .tilted-image-frame-small-right img,
  .tilted-image-frame-large img {
    transform: rotate(0deg);
    border-width: 8px;
  }
}
