@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom styles for text shadow */
.text-shadow {
    text-shadow: 2px 2px 20px rgba(0,0,0,0.3);
}

.text-shadow-light {
    text-shadow: 1px 1px 3px rgba(255,255,255,0.2);
}

/* Ensure images in carousels are hidden by default and only shown by JS */
.hero-slides img,
.building-slides img,
.amenities-slides img,
.floor55-slides img,
.location-slides img {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 2500ms ease-in-out; /* Hero section transition */
}

.building-slides img,
.amenities-slides img,
.floor55-slides img,
.location-slides img {
    transition: opacity 1200ms ease-in-out; /* Other sections transition */
}

.hero-slides img.active,
.building-slides img.active,
.amenities-slides img.active,
.floor55-slides img.active,
.location-slides img.active {
    opacity: 1;
}

/* Custom color definition for Tailwind JIT */
/* This is a workaround for custom colors in vanilla Tailwind without a build step */
/* In a real project, these would be in tailwind.config.js */
.border-\[\#6EE7B7C9D\]\/20 {
    border-color: rgba(110, 231, 183, 0.2);
}

.text-\[\#2c2c2c\] {
    color: #2c2c2c;
}

.hover\:text-\[\#6EE7B7C9D\]:hover {
    color: #6EE7B7C9D;
}

.after\:bg-gradient-to-r.after\:from-\[\#6EE7B7C9D\].after\:to-\[\#34D399\]::after {
    background-image: linear-gradient(to right, #6EE7B7C9D, #34D399);
}

.text-\[\#F5E6D3\] {
    color: #F5E6D3;
}

.hover\:bg-gradient-to-r.hover\:from-\[\#6EE7B7C9D\].hover\:to-\[\#34D399\]:hover {
    background-image: linear-gradient(to right, #6EE7B7C9D, #34D399);
}

.hover\:border-\[\#6EE7B7C9D\]:hover {
    border-color: #6EE7B7C9D;
}

.bg-\[\#F5F3EE\] {
    background-color: #F5F3EE;
}

.text-\[\#6EE7B7C9D\] {
    color: #6EE7B7C9D;
}

.border-t-\[3px\].border-\[\#6EE7B7C9D\] {
    border-top-width: 3px;
    border-color: #6EE7B7C9D;
}

.hover\:bg-\[\#34D399\]:hover {
    background-color: #34D399;
}

.bg-\[\#6EE7B7C9D\] {
    background-color: #6EE7B7C9D;
}

.focus\:ring-\[\#6EE7B7C9D\]:focus {
    --tw-ring-color: #6EE7B7C9D;
}

.bg-\[\#FAFAF8\] {
    background-color: #FAFAF8;
}

.bg-\[\#1A1A1A\] {
    background-color: #1A1A1A;
}

.text-\[\#E0E0E0\] {
    color: #E0E0E0;
}

.border-\[\#E0E0E0\] {
    border-color: #E0E0E0;
}

.via-\[\#E0C29F\] {
    --tw-gradient-via: #E0C29F;
}

.from-\[\#F5E6D3\] {
    --tw-gradient-from: #F5E6D3;
}

.to-\[\#F5E6D3\] {
    --tw-gradient-to: #F5E6D3;
}

.from-\[\#6EE7B7C9D\] {
    --tw-gradient-from: #6EE7B7C9D;
}

.to-\[\#34D399\] {
    --tw-gradient-to: #34D399;
}

.bg-white\/98 {
    background-color: rgba(255, 255, 255, 0.98);
}

.bg-white\/95 {
    background-color: rgba(255, 255, 255, 0.95);
}

.bg-black\/20 {
    background-color: rgba(0, 0, 0, 0.2);
}

.bg-black\/40 {
    background-color: rgba(0, 0, 0, 0.4);
}

.text-\[\#666\] {
    color: #666;
}

.text-\[\#555\] {
    color: #555;
}

.text-\[\#888\] {
    color: #888;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: #6b7280;
}

.text-white {
    color: #fff;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.tracking-\[0\.15em\] {
    letter-spacing: 0.15em;
}

.tracking-\[0\.2em\] {
    letter-spacing: 0.2em;
}

.tracking-\[0\.3em\] {
    letter-spacing: 0.3em;
}

.tracking-\[0\.5em\] {
    letter-spacing: 0.5em;
}

.text-\[82px\] {
    font-size: 82px;
}

.text-\[26px\] {
    font-size: 26px;
}

.text-\[34px\] {
    font-size: 34px;
}

.text-\[62px\] {
    font-size: 62px;
}

.text-\[38px\] {
    font-size: 38px;
}

.text-\[52px\] {
    font-size: 52px;
}

.h-14 {
    height: 3.5rem;
}

.h-16 {
    height: 4rem;
}

.h-64 {
    height: 16rem;
}

.h-screen {
    height: 100vh;
}

.w-full {
    width: 100%;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-10 {
    margin-top: 2.5rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mt-20 {
    margin-top: 5rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-5 {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.p-4 {
    padding: 1rem;
}

.p-8 {
    padding: 2rem;
}

.px-12 {
    padding-left: 3rem;
    padding-right: 3rem;
}

.px-16 {
    padding-left: 4rem;
    padding-right: 4rem;
}

.leading-loose {
    line-height: 2;
}

.list-disc {
    list-style-type: disc;
}

.list-inside {
    list-style-position: inside;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.top-0 {
    top: 0;
}

.left-1\/2 {
    left: 50%;
}

.-translate-x-1\/2 {
    --tw-translate-x: -50%;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.-translate-y-1 {
    --tw-translate-y: -0.25rem;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.flex-col {
    flex-direction: column;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.uppercase {
    text-transform: uppercase;
}

.font-light {
    font-weight: 300;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-normal {
    font-weight: 400;
}

.object-cover {
    object-fit: cover;
}

.overflow-hidden {
    overflow: hidden;
}

.opacity-0 {
    opacity: 0;
}

.transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-\[2500ms\] {
    transition-duration: 2500ms;
}

.duration-\[1200ms\] {
    transition-duration: 1200ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.shadow-md {
    --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-lg {
    --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.hover\:shadow-xl:hover {
    --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.hover\:shadow-2xl:hover {
    --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.z-50 {
    z-index: 50;
}

.backdrop-blur-xl {
    backdrop-filter: blur(16px);
}

.container {
    width: 100%;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1536px;
    }
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* --- Responsive adjustments for tablets --- */
@media (max-width: 1024px) {
  body { overflow-x: hidden; }
  section { padding: 60px 40px; }
  nav ul { gap: 20px; }
  h1, h2 { font-size: 3vw; }
  p { font-size: 1rem; }
}

/* --- Responsive adjustments for phones --- */
@media (max-width: 768px) {
  nav { flex-direction: column; gap: 15px; }
  nav ul { flex-wrap: wrap; justify-content: center; }
  h1 { font-size: 7vw; }
  h2 { font-size: 6vw; }
  p { font-size: 0.95rem; line-height: 1.5; }
  .carousel img { object-fit: cover; height: auto; width: 100%; }
  form { width: 90%; margin: 0 auto; }
  input, textarea { width: 100%; }
  footer { text-align: center; padding: 40px 20px; }
}

/* --- Ultra Responsive Fix for Mobile Phones --- */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  nav img {
    height: 50px;
  }

  nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  section {
    padding: 40px 20px !important;
  }

  h1 {
    font-size: 9vw !important;
    line-height: 1.1;
  }

  h2 {
    font-size: 7vw !important;
  }

  p, li {
    font-size: 4vw !important;
    line-height: 1.5 !important;
  }

  .carousel img,
  .hero-slides img,
  .building-slides img,
  .amenities-slides img,
  .floor55-slides img,
  .location-slides img {
    height: auto !important;
    min-height: 60vh !important;
  }

  footer {
    text-align: center;
    padding: 50px 25px !important;
  }

  form {
    width: 95%;
    margin: 0 auto;
  }

  input, textarea {
    font-size: 4vw !important;
  }

  button {
    font-size: 3.5vw !important;
    padding: 12px 24px !important;
  }
}

/* --- Fixed iPhone viewport bug for hero spacing --- */
@media (max-width: 768px) {
  html, body {
    height: 100%;
    overflow-x: hidden;
    background: #fff !important;
  }

  #hero {
    position: relative;
    height: 100vh !important;
    min-height: -webkit-fill-available !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
  }

  .hero-slides,
  .hero-slides img {
    height: 100vh !important;
    min-height: -webkit-fill-available !important;
    object-fit: cover !important;
  }

  #hero + section {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}
