/* CSS Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --lavender-400: #a78bfa;
  --lavender-500: #8b5cf6;
  --lavender-600: #7c3aed;
  --lavender-700: #6d28d9;
  --lavender-100: #ede9fe;
  --lavender-50: #f5f3ff;
  --navy-900: #1e1b4b;
  --navy-800: #2e2872;
  --red-600: #dc2626;
  --white: #ffffff;
  --gray-100: #f3f4f6;
}

body {
  font-family: "Montserrat", sans-serif;
  /* min-height: 0vh; */
  color: #111827;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Container */
.container {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Mobile-specific adjustments */
@media (max-width: 480px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .hero-section {
    min-height: 100svh; /* Use small viewport height for mobile */
  }
}

/* Typography */
h1,
h2,
h3 {
  line-height: 1.2;
}

.uppercase {
  text-transform: uppercase;
}

/* Hero Section */
.hero-section {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(
      ellipse at top right,
      var(--lavender-400),
      transparent 40%
    ),
    radial-gradient(
      ellipse at bottom left,
      var(--lavender-400),
      transparent 40%
    );
  position: relative;
  overflow: hidden;
}
.headline-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0rem 1rem 2rem 1rem;
  color: #111827;
}

@supports (min-height: 100svh) {
  .hero-section {
    min-height: 100svh; /* Use small viewport height when supported */
  }
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, var(--lavender-300) 0%, transparent 70%);
  opacity: 0.1;
  z-index: -1;
  border-radius: 50%;
}

.hero-section::after {
  content: "";
  position: absolute;
  bottom: -5%;
  left: -5%;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, var(--lavender-300) 0%, transparent 70%);
  opacity: 0.1;
  z-index: -1;
  border-radius: 50%;
}
header.container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  width: auto;
  margin-top: 8px;
  height: 120px;
}
a {
  text-decoration: none;
  color: inherit;
}
/* Main Content */
main {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: radial-gradient(
    circle at 70% 20%,
    var(--lavender-400) 0%,
    transparent 60%
  ); */
  opacity: 0.7;
  z-index: -1;
  pointer-events: none;
}

.headline {
  font-size: 5rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.subheadline {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  color: #0b1050;
  text-transform: uppercase;
  margin-bottom: 0;
}

/* Carousel */
.carousel-container {
  margin-bottom: 0.5rem;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  width: 100%;
}

/* Fix overflow issues */
.carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.carousel-inner {
  width: 100%;
  display: flex;
  transition: transform 0.7s ease;
}

.carousel-item {
  flex: 1 0 100%;
  padding: 0 0.5rem;
}

@media (min-width: 768px) {
  .carousel-item {
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .carousel-item {
    flex: 0 0 33.333333%;
  }
}

/* Card Styles */
.card {
  background-color: var(--navy-900);
  border-radius: 0.5rem;
  overflow: hidden;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

/* Only apply hover effects on devices that support hover */
@media (hover: hover) {
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(124, 58, 237, 0.2);
  }

  .card:hover .card-image {
    transform: scale(1.08);
  }

  .card:hover .purple-overlay {
    background-color: rgba(168, 85, 247, 0.15);
  }

  .card:hover .location-tag {
    transform: scale(1.05);
    background-color: #ef4444;
  }
}

.card-image-container {
  position: relative;
  height: 22rem;
  width: 100%;
}

.purple-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(168, 85, 247, 0.3);
  z-index: 10;
  transition: background-color 0.3s ease;
}

.location-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--red-600);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 20;
  transition: transform 0.3s, background-color 0.3s;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-content {
  padding: 1rem;
  color: var(--white);
}

.card-title {
  font-weight: 500;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.card-detail {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.card-detail:last-child {
  margin-bottom: 0;
}

.icon {
  margin-right: 0.5rem;
  width: 1.25rem;
  height: 1.25rem;
}

.detail-text {
  font-size: 0.875rem;
}
i {
  font-size: 1.25rem;
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.carousel-button {
  background-color: var(--white);
  border: 1px solid var(--gray-100);
  color: #111827;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
}

@media (hover: hover) {
  .carousel-button:hover {
    background-color: var(--lavender-400);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(124, 58, 237, 0.3);
  }
}

/* Mobile tap state for buttons */
@media (hover: none) {
  .carousel-button:active {
    background-color: var(--lavender-400);
    color: var(--white);
  }
}

/* CTA Button */
.cta-container {
  display: flex;
  justify-content: center;
  margin-bottom: 5px;
}

.cta-button {
  background-color: var(--lavender-500);
  color: var(--white);
  font-weight: 500;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-size: 1.125rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.7s ease;
  z-index: -1;
}

@media (hover: hover) {
  .cta-button:hover {
    background-color: var(--lavender-600);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(124, 58, 237, 0.4);
  }

  .cta-button:hover::before {
    left: 100%;
  }
}

/* Active state for mobile */
@media (hover: none) {
  .cta-button:active {
    background-color: var(--lavender-600);
    transform: scale(0.98);
  }
}

/* Footer */
footer {
  padding: 1rem;
  border-top: 1px solid rgba(167, 139, 250, 0.3);
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

@media (hover: hover) {
  .contact-item:hover {
    transform: translateY(-2px);
    color: var(--lavender-500);
  }

  .contact-item:hover svg {
    stroke: var(--lavender-500);
  }
}

.contact-text {
  font-size: 1.125rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
  }

  .headline {
    font-size: 5rem;
  }

  .subheadline {
    font-size: 4rem;
  }
}

@media (max-height: 800px) {
  .headline {
    font-size: 1.5rem;
  }

  .subheadline {
    font-size: 3rem;
    margin-bottom: 0.5rem;
  }

  .carousel-container {
    margin-bottom: 0.5rem;
  }

  .card-image-container {
    height: 22rem;
  }

  .cta-container {
    margin-top: 0.5rem;
  }
}

/* Mobile specific styles */
@media (max-width: 600px) {
  .headline {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  .carousel-controls {
    margin-top: 1rem;
  }
  .logo {
    margin-top: 0rem;
    height: 70px;
  }
  i {
    font-size: 1.1rem;
  }
  .cta-container {
    margin-top: 1rem;
  }
  .subheadline {
    font-size: 3rem;
    margin-bottom: 0.5rem;
  }
  .headline-container {
    padding: 0rem 0 1rem 0;
  }

  /* Make cards fit better on small screens */
  .carousel-item {
    padding: 0 0.25rem;
  }

  /* Adjust card image container height */
  .card-image-container {
    height: 18rem !important;
  }

  /* Make card content more compact */
  .card-content {
    padding: 0.75rem;
  }

  .card-title {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
  }

  .card-detail {
    margin-bottom: 0.25rem;
  }

  .detail-text {
    font-size: 0.75rem;
  }

  .icon {
    width: 0.875rem;
    height: 0.875rem;
  }

  .contact-item {
    font-size: 1rem;
  }

  .contact-text {
    font-size: 0.875rem;
  }

  .footer-content {
    gap: 1.25rem;
  }

  .cta-button {
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
  }

  .carousel-container {
    width: 100% !important;
  }

  header {
    padding-top: 1rem;
  }

  main {
    padding: 0.5rem 0;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.logo {
  animation: slideInLeft 0.8s ease forwards;
}

.headline {
  animation: slideInLeft 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.subheadline {
  animation: slideInRight 0.8s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.carousel-container {
  animation: fadeIn 0.8s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.cta-container {
  animation: scaleIn 0.8s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.footer-content {
  animation: fadeIn 0.8s ease forwards;
  animation-delay: 1s;
  opacity: 0;
  animation-fill-mode: forwards;
}

/* Background Gradient Animation */
.gradient-background {
  background-size: 200% 200%;
  background-image: linear-gradient(
    135deg,
    var(--lavender-50) 0%,
    var(--lavender-100) 25%,
    #f9f7ff 50%,
    var(--lavender-100) 75%,
    var(--lavender-50) 100%
  );
  animation: gradient-animation 15s ease infinite;
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}
