@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Playfair+Display:wght@600;700&display=swap');

:root {
    --primary: #1e40af;
    --secondary: #3b82f6;
    --light-bg: #eff6ff;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

h1, h2, h3, h4, h5, h6, .logo {
    font-family: 'Playfair Display', serif;
    margin-top: 0;
}

/* Header Override */
.navbar {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-links a:hover {
    color: var(--secondary);
}
.btn-primary, .btn-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  overflow: hidden;
  border: none;
  background-color: transparent;
  color: #ffffff;
  font-size: 1rem;
  font-weight: bold;
  border-top-left-radius: 20px;
  border-bottom-right-radius: 20px;
  cursor: pointer;
  box-shadow: 0 0 10px rgb(104, 134, 218);
  text-decoration: none;
  z-index: 1;
  box-sizing: border-box;
  text-align: center;
  transition: opacity 0.3s ease;
}

.btn-primary:hover, .btn-secondary:hover {
  opacity: 0.9;
}

.btn-primary::before, .btn-secondary::before {
  content: "";
  position: absolute;
  width: 40px;
  height: 500px;
  top: 50%;
  left: 50%;
  background: linear-gradient(#00ccff, #d400d4);
  animation: amm 4s linear infinite;
  z-index: -2;
}

.btn-primary::after, .btn-secondary::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-top-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: -1;
}
.btn-primary::after {
  background-color: var(--primary);
}
.btn-secondary::after {
  background-color: var(--secondary);
}

@keyframes amm {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
    min-height: 60vh;
}
.section-title {
    text-align: center;
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 3rem 5% 1rem;
    margin-top: 3rem;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.footer-col h3 {
    margin-top: 0;
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col a {
    color: var(--light-bg);
    text-decoration: none;
}
.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--secondary);
}

/* Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}
.card {
    position: relative;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(31, 38, 135, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(31, 38, 135, 0.2);
}
.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    position: relative;
    z-index: 1; /* Below the glass effect */
}
.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 3; /* Above the glass effect */
}
.card-content p {
    margin-bottom: 0.5rem;
}
.card-content .btn-primary {
    margin-top: auto;
}
.card-title {
    font-size: 1.25rem;
    color: var(--primary);
    margin-top: 0;
}

/* Glassmorphism Hover Effects */
.card::before,
.card::after {
    position: absolute;
    content: "";
    width: 20%;
    height: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(173, 216, 230, 0.6); /* lightblue with glass effect */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.5s;
    z-index: 2; /* Between image and content */
}
.card::before {
    top: 0;
    right: 0;
    border-radius: 0 15px 0 100%;
}
.card::after {
    bottom: 0;
    left: 0;
    border-radius: 0 100% 0 15px;
}
.card:hover::before,
.card:hover::after {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    background: rgba(173, 216, 230, 0.85);
}

/* Smooth Page Transitions */
body {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .nav-container {
        justify-content: space-between !important; gap: 0 !important;
        padding: 1rem;
    }
    .hamburger {
        display: flex !important;
    }
    #nav-menu {
        display: none;
        width: 100%;
        margin-top: 1rem;
    }
    #nav-menu.active {
        display: block;
    }
    .nav-links {
        flex-direction: column;
        gap: 1rem;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.4);
        border-radius: 10px;
        padding: 1rem 0;
        box-shadow: 0 4px 30px rgba(0,0,0,0.05);
    }
    .nav-links li {
        text-align: center;
    }
    #contact-header {
        display: none; /* Hide call button on mobile top nav to save space, or we can keep it */
    }
    .grid {
        grid-template-columns: 1fr !important;
    }
    .hero {
        padding: 2rem 1rem !important;
    }
    .hero h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    .hero p {
        font-size: 1.1rem !important;
        margin-bottom: 1.5rem !important;
    }
    .hero .btn-primary, .hero .btn-secondary {
        display: block !important;
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 1rem !important;
    }
    div[style*="padding: 2rem"] {
        padding: 1rem !important;
    }
}

/* ===== NEW HERO DESIGN ===== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: var(--light-bg);
  overflow: hidden;
  padding: 100px 0 50px 0;
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(23, 48, 110, 0.9) 0%, rgba(30, 64, 175, 0.5) 60%, transparent 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  background: rgba(30, 64, 175, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  max-width: 600px;
  text-align: left;
}

.hero__marketed {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #5c4000;
  background: linear-gradient(135deg, #ffe066 0%, #d4af37 100%);
  margin-bottom: 1rem;
  padding: 8px 16px;
  border: 1px solid #b8860b;
  border-top-color: #fff1a8;
  border-left-color: #fff1a8;
  border-radius: 50px;
  font-weight: 800;
  box-shadow: 
    4px 4px 8px rgba(0, 0, 0, 0.15),
    inset 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.hero__project-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #FFD700;
  margin-bottom: 0.5rem;
}

.hero__title {
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.hero__location {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0;
}

@media(max-width: 768px) {
  .hero__bg-overlay {
    background: linear-gradient(to top, rgba(23, 48, 110, 0.95) 0%, rgba(30, 64, 175, 0.7) 50%, rgba(30, 64, 175, 0.3) 100%);
  }
  .hero__content {
    padding: 25px;
    margin: 20px;
  }
  .hero__title {
    font-size: 2.2rem !important;
  }
}
.wrap_card {
  position: relative;
  overflow: visible;
  margin: 40px auto;
  width: var(--w-wrap-card);
  height: calc(var(--h-card) * 1.1);
  display: flex;
  align-items: center;
  justify-content: center;
  --w-card: 220px;
  --h-card: 220px;
  --rotate-card: 15deg;
  --insetX-card: 40px;
  --t-card: calc(var(--insetX-card) * 1.25);
  --w-wrap-card: calc(var(--w-card) + calc(calc(var(--w-card) / 2) * 2));
  cursor: pointer;
}

.wrap_card .content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.wrap_card .card {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  animation: rotating 9s cubic-bezier(0.75, 0, 0, 1.01) infinite 0s;
  order: var(--order);
  width: var(--w-card);
  height: var(--h-card);
  z-index: var(--z1);
  top: var(--t1);
  left: var(--l1);
  right: var(--r1);
  transform: var(--trans1);
  --pd: 4px;
  --round: 16px;
  --x1: var(--insetX-card);
  --x2: calc(var(--w-wrap-card) - calc(var(--w-card) + var(--insetX-card)));
  --to-left: rotate(calc(var(--rotate-card) * -1));
  --to-center: calc(var(--w-card) / 2);
  --to-right: rotate(calc(var(--rotate-card) * 1));
}

.wrap_card .card:nth-child(1) {
  --order: 2;
  --z1: 2; --t1: 0; --l1: var(--to-center); --r1: var(--to-center); --trans1: rotate(0);
  --z2: 0; --t2: var(--t-card); --l2: var(--x1); --r2: var(--x2); --trans2: var(--to-left);
  --z3: 0; --t3: var(--t-card); --l3: var(--x2); --r3: var(--x1); --trans3: var(--to-right);
}
.wrap_card .card:nth-child(2) {
  --order: 3;
  --z1: 0; --t1: var(--t-card); --l1: var(--x2); --r1: var(--x1); --trans1: var(--to-right);
  --z2: 2; --t2: 0; --l2: var(--to-center); --r2: var(--to-center); --trans2: rotate(0);
  --z3: 0; --t3: var(--t-card); --l3: var(--x1); --r3: var(--x2); --trans3: var(--to-left);
}
.wrap_card .card:nth-child(3) {
  --order: 1;
  --z1: 0; --t1: var(--t-card); --l1: var(--x1); --r1: var(--x2); --trans1: var(--to-left);
  --z2: 0; --t2: var(--t-card); --l2: var(--x2); --r2: var(--x1); --trans2: var(--to-right);
  --z3: 2; --t3: 0; --l3: var(--to-center); --r3: var(--to-center); --trans3: rotate(0);
}

@keyframes rotating {
  0%, 99.99% { z-index: var(--z1); top: var(--t1); left: var(--l1); right: var(--r1); transform: var(--trans1); }
  33.33% { z-index: var(--z2); top: var(--t2); left: var(--l2); right: var(--r2); transform: var(--trans2); }
  66.66% { z-index: var(--z3); top: var(--t3); left: var(--l3); right: var(--r3); transform: var(--trans3); }
}

.wrap_card .lines {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: -1;
}
.wrap_card .lines::after {
  content: "";
  width: 100%;
  height: 0px;
  position: absolute;
  z-index: 2;
  inset: 0;
  --mask-bg: #e8e8e8;
  background: var(--mask-bg);
  mask-image: radial-gradient(50% 200px at top, transparent 20%, var(--mask-bg));
}

.wrap_card .line {
  position: absolute;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wrap_card .line::before, .wrap_card .line::after {
  content: "";
  position: absolute;
  inset: auto;
  background: linear-gradient(to right, var(--gradient-a-line, #0000), var(--gradient-b-line, #0000), var(--gradient-c-line, #0000));
  filter: var(--blur-line);
  width: var(--w-line);
  height: var(--h-line);
}
.wrap_card .line:nth-child(1)::before { --blur-line: blur(4px); --w-line: 100%; --h-line: 5px; --gradient-b-line: #c1912b; }
.wrap_card .line:nth-child(1)::after { --w-line: 100%; --h-line: 1px; --gradient-b-line: #d6af59; }
.wrap_card .line:nth-child(2)::before { --blur-line: blur(4px); --w-line: 50%; --h-line: 5px; --gradient-b-line: #c1912b; }
.wrap_card .line:nth-child(2)::after { --w-line: 50%; --h-line: 1px; --gradient-b-line: #d6af59; }

/* Click to Static Behavior */
.wrap_card.is-static {
  display: flex !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  height: auto !important;
  gap: var(--s-lg);
  padding: 20px 0;
  justify-content: center;
}

.wrap_card.is-static .card {
  width: 320px !important;
  height: 400px !important;
  position: relative !important;
  animation: none !important;
  transform: none !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: 1 !important;
  width: var(--w-card) !important;
}

.wrap_card.is-static .lines {
  display: none !important;
}

.highlight-card__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto var(--s-sm);
  background: rgba(46,46,56,0.06);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
}
.highlight-card__icon svg { width: 22px; height: 22px; }

.highlight-card__value {
  font-family: var(--f-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 2px;
}

.highlight-card__label {
  font-size: 0.72rem;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== WHY CHOOSE ===== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-md);
}

/* ===== AMENITIES ===== */
.amenities__category { margin-bottom: var(--s-2xl); }
.amenities__category:last-child { margin-bottom: 0; }

.amenities__category-title {
  font-family: var(--f-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: var(--s-md);
  padding-bottom: var(--s-sm);
  border-bottom: 2px solid var(--c-accent);
  display: inline-block;
}

.amenities__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-md);
}

.amenity-item {
  display: flex;

/* Shuffle Animation Static State */
.wrap_card.is-static {
  display: flex !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  height: auto !important;
  gap: 2rem;
  padding: 20px 0;
  justify-content: center;
}

.wrap_card.is-static .card {
  width: 320px !important;
  height: 400px !important;
  position: relative !important;
  animation: none !important;
  transform: none !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: 1 !important;
  width: var(--w-card) !important;
}

.wrap_card.is-static .lines {
  display: none !important;
}

/* Remove glassmorphism hover effect for cards inside wrap_card */
.wrap_card .card::before,
.wrap_card .card::after {
    display: none !important;
}
/* Floating Contacts */
.floating-contacts {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.round-float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.round-float-btn:hover {
    transform: translateY(-5px);
}

.round-float-btn.call-btn {
    background: #3b82f6;
    animation: glow-call 1.5s infinite alternate;
}

.round-float-btn.wa-btn {
    background: #25D366;
    animation: glow-wa 1.5s infinite alternate;
    animation-delay: 0.75s; /* Offset the animations so they pulse asynchronously */
}

@keyframes glow-call {
    0% { box-shadow: 0 0 10px rgba(59, 130, 246, 0.4); }
    100% { box-shadow: 0 0 25px rgba(59, 130, 246, 0.9), 0 0 45px rgba(59, 130, 246, 0.6); }
}

@keyframes glow-wa {
    0% { box-shadow: 0 0 10px rgba(37, 211, 102, 0.4); }
    100% { box-shadow: 0 0 25px rgba(37, 211, 102, 0.9), 0 0 45px rgba(37, 211, 102, 0.6); }
}
