/* =========================================
   Anora Realty — Premium Theme (Updated Fonts)
   Headings: Nourd Bold (self-hosted)
   Body: Montserrat (Google Fonts)
   ========================================= */

/* Body font via Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* Heading font (self-hosted). Put files in assets/fonts/ */
@font-face {
  font-family: 'Nourd';
  src: url('../fonts/Nourd-Bold.woff2') format('woff2'),
       url('../fonts/Nourd-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Root Colors & Shadows */
:root {
  --steel-marine: #092534;
  --champagne-beige: #F5E8D3;
  --slate-grey: #676F79;
  --antique-gold: #C4A76D;
  --black: #000000;
  --white: #FFFFFF;
  --shadow-strong: 0 24px 60px rgba(0,0,0,0.35);
  --shadow-soft: 0 12px 32px rgba(0,0,0,0.18);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* Body uses Montserrat */
body {
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background-color: var(--champagne-beige);
  color: var(--steel-marine);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings use Nourd Bold */
h1, h2, h3 {
  font-family: 'Nourd', 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--steel-marine);
}

a {
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
}

/* Header */
.nav-bar {
  background: var(--steel-marine);
  color: var(--champagne-beige);
  padding: 0.6rem 1.2rem;            /* slimmer */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-family: 'Nourd', 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--champagne-beige);
  font-size: 1.4rem;                  /* compact but prominent */
  line-height: 1;
}

/* Header logo image */
.logo img {
  height: 120px; /* was 72px */
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--champagne-beige);
  transition: color 0.3s ease, opacity 0.3s ease;
}

.nav-links a:hover {
  color: var(--antique-gold); opacity: 1;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(9, 37, 52, 0.25), rgba(9, 37, 52, 0.25)), url('../img/hero-bg.png') no-repeat center center/cover;
  min-height: 100dvh; /* dynamic viewport for mobile rotate */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column; /* stack logo and card vertically */
  gap: 1rem;
  text-align: center;
  padding: clamp(1rem, 3vh, 2rem);
  overflow: hidden; /* prevent content overflow */
}

.hero h1 {
  font-size: 2.5rem;
  color: var(--black);
  animation: fadeInUp 1s ease-in-out forwards;
  font-family: 'Nourd', 'Montserrat', sans-serif;
  font-weight: 700;
}

.hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 1rem auto 0;
  line-height: 1.6;
  color: var(--black);
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.3);
}

.hero-logo {
  display: block;
  margin: -12vh auto 1rem; /* lift logo upward on desktop */
  width: clamp(240px, 40vw, 520px);
  height: auto;
  opacity: 0;
  transform: scale(0.8) translateY(30px);
  animation: logoFadeIn 1.2s ease-out forwards;
}
@media (min-width: 1200px) {
  .hero-logo { margin-top: -18vh; }
}

/* Hero Brand Name - Outside card */
.hero-brand-name {
  font-family: 'Nourd', 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: #FFFFFF !important;
  text-shadow: 
    2px 2px 8px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(255, 255, 255, 0.5);
  letter-spacing: 2px;
  margin: 1.5rem auto;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  animation: brandNameFadeIn 1s ease-out 0.5s forwards;
}

.hero-card {
  background: rgba(9, 37, 52, 0.75); /* Steel Marine with transparency */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  text-align: center;
  max-width: 900px;
  width: 100%;
  margin: 0 auto; /* center horizontally without consuming vertical space */
  justify-content: center;
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  animation: cardFadeIn 1s ease-out 1s forwards;
}

/* Hero title - standalone without card */
.hero-title { 
  color: #FFFFFF;
  font-family: 'Nourd', 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 6.5vw, 5rem);
  line-height: 1.3;
  letter-spacing: 2px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-shadow: 
    3px 3px 12px rgba(0, 0, 0, 0.8),
    0 0 50px rgba(255, 255, 255, 0.4);
}

/* Introduction */
.intro {
  background-color: var(--white);
  padding: 5rem 0;
}

.intro h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
  font-family: 'Nourd', 'Montserrat', sans-serif;
  font-weight: 700;
}

.intro p {
  font-size: 1.2rem;
  color: var(--slate-grey);
  text-align: center;
}

/* Intro Section Base */
.intro-video-section {
  position: relative;
  min-height: 100dvh; /* dynamic viewport to avoid cut on rotate */
  overflow: hidden;
}

/* Video */
.intro-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Video quality optimizations */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000;
  perspective: 1000;
}

/* Text that fades in/out */
.intro-fade-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #F5E8D3; /* Champagne Beige */
  text-align: center;
  max-width: min(92vw, 1000px);
  max-height: calc(100% - 4rem);
  box-sizing: border-box;
  padding: clamp(1rem, 2.5vw, 2rem) clamp(1.25rem, 3vw, 3rem);
  font-size: 2rem; /* Increased from 1.25rem */
  line-height: 1.8;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  font-family: 'Montserrat', sans-serif;
  z-index: 1; /* keep below controls */
  overflow: auto; /* avoid overflow when address bar visible */
  -webkit-overflow-scrolling: touch;
}

.intro-fade-text h2 {
  font-size: clamp(1.6rem, 5vw, 3rem);
  margin-bottom: 0.6rem;
  font-family: 'Nourd', 'Montserrat', sans-serif;
  font-weight: 700;
  color: #F5E8D3;
  line-height: 1.2;
  text-wrap: balance;
}

.intro-fade-text p {
  font-size: clamp(1rem, 3.2vw, 1.5rem);
  color: #F5E8D3;
  line-height: 1.55;
}

/* Control Buttons */
.video-controls {
  position: absolute;
  bottom: max(12px, env(safe-area-inset-bottom));
  right: max(12px, env(safe-area-inset-right));
  display: flex;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 3;
}

.video-controls button {
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  padding: 8px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
}

.intro-video-section:hover .video-controls {
  opacity: 1;
}

/* Always show controls on touch devices (no hover) */
@media (hover: none) {
  .video-controls { opacity: 1; }
}

/* Landscape phone optimizations to prevent overflow */
@media (orientation: landscape) and (max-width: 900px) {
  .intro-fade-text { font-size: 1.2rem; padding: 0.75rem 1rem; max-width: 86vw; max-height: 70vh; }
  .intro-fade-text h2 { font-size: 1.6rem; }
  .intro-fade-text p { font-size: 1rem; }
}

/* Small phones portrait */
@media (max-width: 430px) and (orientation: portrait) {
  .intro-fade-text { font-size: 1.25rem; line-height: 1.6; padding: 0.75rem 1rem; max-width: 88vw; max-height: calc(100dvh - 5rem); }
  .intro-fade-text h2 { font-size: 1.6rem; line-height: 1.3; }
  .intro-fade-text p { font-size: 1rem; line-height: 1.5; }
}

/* Why Choose Anora */
.why-anora {
  background-color: #fdf9f2;
  padding: 5rem 0;
}

.why-anora h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  font-family: 'Nourd', 'Montserrat', sans-serif;
  font-weight: 700;
}

.anora-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Why Anora — collapsed title, expand on hover */
.anora-card {
  background-color: var(--champagne-beige);
  border-left: 6px solid var(--antique-gold);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(9, 37, 52, 0.1);
  transition: min-height 0.35s ease, box-shadow 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  transform-style: preserve-3d;
  overflow: hidden;
  padding: 1.25rem 1.5rem;
  min-height: 84px;                  /* collapsed height shows only the title */
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
}

.anora-card h3 {
  font-size: 1.4rem;
  margin: 0;
  color: var(--steel-marine);
  text-align: center;              /* center text horizontally */
  width: 100%;                     /* ensure it spans full card width */
  font-family: 'Nourd', 'Montserrat', sans-serif;
  font-weight: 700;
}

.anora-card p {
  color: var(--slate-grey);
  font-size: 1rem;
  line-height: 1.55;
  max-height: 0; 
  text-align: center;                  /* hidden by default */
  opacity: 0;
  transform: translateY(8px);
  transition:
    max-height 0.4s ease,
    opacity 0.3s ease 0.05s,
    transform 0.35s ease 0.05s;
  margin-top: 0.5rem;
  pointer-events: none;               /* prevent text selection when collapsed */
}

/* Hover / focus expansion */
.anora-card:hover,
.anora-card:focus-within,
.anora-card.open {                     /* .open used by the optional JS for touch */
  min-height: 200px;                  /* stretch to reveal */
  box-shadow: 0 12px 28px rgba(9, 37, 52, 0.2);
  transform: rotateY(3deg) scale(1.02);
  background-color: #fff7ea;          /* subtle lift */
}

.anora-card:hover p,
.anora-card:focus-within p,
.anora-card.open p {
  max-height: 160px;                  /* enough to show a few lines */
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Make the grid behave nicely with variable card heights */
.anora-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;                 /* let taller hovered cards grow downward */
}

/* All mobile-specific rules have been moved to assets/css/mobile.css */

/* Featured Projects */
.featured-projects {
  background: transparent;
  padding: 6rem 0;
}

.featured-projects h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-family: 'Nourd', 'Montserrat', sans-serif;
  font-weight: 700;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  align-items: stretch;
  justify-items: center;
}

/* Flip card layout */
.projects-grid {
  margin-top: 2rem;
}

.project-card {
  perspective: 1500px;
  width: 100%;
  max-width: 380px;
  height: 460px;
  margin: 0;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
  border-radius: 12px;
}

.project-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 1.2rem;
  text-align: center;
  transition: all 0.4s ease;
}

/* Front Face */
.card-front {
  background-color: #C4A76D;
}

.card-front img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  transition: transform 0.3s ease;
}

.card-front h3 {
  font-size: 1.5rem;
  margin: 1rem 0 0.5rem;
  font-family: 'Nourd', 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--steel-marine);
  letter-spacing: 0.5px;
}

.card-front p {
  font-size: 1rem;
  color: var(--slate-grey);
  padding: 0 1rem;
  line-height: 1.5;
}

/* Back Face */
.card-back {
  background: linear-gradient(180deg, var(--champagne-beige) 0%, #f2e4cd 100%);
  transform: rotateY(180deg);
  color: var(--steel-marine);
  justify-content: center;
  border: 1px solid rgba(196, 167, 109, 0.35);
  position: absolute; /* keep face layout */
}

/* subtle decorative glow in the corner */
.card-back::before {
  content: "";
  position: absolute;
  top: -18px;
  right: -18px;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle at center, rgba(196,167,109,0.18) 0%, rgba(196,167,109,0.0) 70%);
  pointer-events: none;
}

.card-back h4 {
  letter-spacing: 0.3px;
}

.card-back h4::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: var(--antique-gold);
  margin: 0.5rem auto 0;
}

.card-back p + p {
  border-top: none;
  padding-top: 0.4rem;
  margin-top: 0.4rem;
}

.card-back h4 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-family: 'Nourd', 'Montserrat', sans-serif;
  font-weight: 700;
  color: #092534;
}

.card-back p {
  font-size: 1rem;
  color: #092534;
  margin: 0.4rem 0;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .project-card {
    max-width: 90%;
    height: 400px;
  }

  .card-front img {
    height: 160px;
  }
}

.project-card:hover {
  transform: rotateY(4deg) rotateX(4deg) scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-card h3 {
  padding: 1rem;
  font-size: 1.5rem;
}

.project-card p {
  padding: 0 1rem 1rem;
  font-size: 1rem;
  color: var(--slate-grey);
}

.projects-button-container {
  text-align: center;
  margin-top: 2.5rem;
}

/* Card-style buttons (anchors and real buttons) */
.cta-button,
.faq-section button,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  border-radius: 14px;
  border: 1px solid rgba(9, 37, 52, 0.15);
  box-shadow: 0 8px 20px rgba(9, 37, 52, 0.15);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

/* Brand coloring for generic CTA links */
.cta-button {
  background-color: var(--steel-marine);
  color: white;
}

/* Ensure identical color even after visiting the link */
.cta-button:link,
.cta-button:visited {
  background-color: var(--steel-marine);
  color: white;
}

.cta-button:hover,
.faq-section button:hover,
.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(9, 37, 52, 0.2);
  background-color: white;
  color: var(--steel-marine);
}

/* Testimonials */
.testimonials {
  background-color: var(--white);
  padding: 5rem 0;
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 2.5rem;
  color: var(--steel-marine);
  font-family: 'Nourd', 'Montserrat', sans-serif;
  font-weight: 700;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--champagne-beige);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(9, 37, 52, 0.1);
  border-top: 4px solid var(--antique-gold);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

.testimonial-card:hover {
  transform: scale(1.03) rotateY(3deg);
  box-shadow: 0 12px 28px rgba(9, 37, 52, 0.2);
}

/* remove custom cursor styles entirely (reverted) */

.testimonial-card p {
  font-style: italic;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--steel-marine);
  line-height: 1.6;
}

.testimonial-card span {
  font-weight: bold;
  color: var(--slate-grey);
  font-size: 0.95rem;
}

/* Contact CTA Section */
.cta-section {
  background: var(--antique-gold);
  color: var(--white);
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
  margin-bottom: 0;
}

.cta-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--steel-marine);
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-family: 'Nourd', 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--white);
}

.cta-section p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  color: var(--white);
  opacity: 0.95;
}

/* Footer */
.footer {
  background-color: var(--steel-marine);
  color: var(--champagne-beige);
  padding: 4rem 2rem 2rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand {
  flex: 1 1 300px;
}

/* Footer logo */
.footer-logo {
  height: 200px; /* increased for prominence */
  margin-top: -16px; /* lift upward */
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
  display: block;
}

.footer-brand p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--champagne-beige);
}

.footer-links, .footer-contact {
  flex: 1 1 200px;
}

.footer-links h4,
.footer-contact h4 {
  margin-bottom: 1rem;
  color: var(--antique-gold);
  font-size: 1.2rem;
  font-family: 'Nourd', 'Montserrat', sans-serif;
  font-weight: 700;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links a,
.footer-contact a {
  color: var(--champagne-beige);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--antique-gold);
}

.footer-contact p {
  margin-bottom: 0.5rem;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* align inline with preceding text */
  gap: 0.5rem; /* bring icons closer together */
  margin-top: 0.5rem; /* sit tight under the text */
}

.footer-social a {
  margin-right: 0; /* handled by gap */
  color: var(--antique-gold);
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: left;
}

/* Make footer social icons uniform */
.footer-social img.social-icon {
  height: 96px;
  width: 96px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--champagne-beige);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(50px) rotateX(10deg);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform-origin: center;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Premium Hero Animations */
@keyframes logoFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes brandNameFadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes textFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Layered effect utilities */
.layered-section { position: relative; overflow: hidden; }
.layered-section::before,
.layered-section::after {
  content: "";
  position: absolute;
  inset: auto auto 0 -10%;
  width: 140%;
  height: 45%;
  transform: rotate(-2.2deg);
  background: linear-gradient(180deg, rgba(9,37,52,0.04), rgba(9,37,52,0.08));
  z-index: 0;
  pointer-events: none; /* do not block clicks on content */
}
.layered-section::after {
  inset: -10% -10% auto auto;
  height: 35%;
  transform: rotate(1.8deg);
  background: radial-gradient(50% 60% at 100% 0%, rgba(196,167,109,0.12), transparent 70%);
}

.offset-card {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(196,167,109,0.35);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(9,37,52,0.16);
  padding: 2rem;
}
.offset-card::before {
  content: "";
  position: absolute;
  top: 18px; left: 18px; right: -18px; bottom: -18px;
  border-radius: 22px;
  border: none;
  pointer-events: none;
}

.floating-shape {
  position: absolute;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(196,167,109,0.18), transparent 70%);
  filter: blur(0.2px);
  z-index: 0;
}
.floating-shape.br { right: -60px; bottom: -60px; }
.floating-shape.tl { left: -60px; top: -60px; }

/* Inner page hero with decorative overlay */
.inner-page-hero {
  min-height: 60vh;
  background: linear-gradient(rgba(9, 37, 52, 0.4), rgba(9, 37, 52, 0.4)), url('../img/hero-bg2.png') no-repeat center center/cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  overflow: hidden;
}

/* About page video hero */
.about-video-hero {
  height: 60vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.about-video-hero .intro-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.about-video-hero .hero-content {
  position: relative;
  z-index: 2;
}

.transparent-card {
  background: rgba(9, 37, 52, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 3rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.inner-page-hero .hero-content {
  background: rgba(9, 37, 52, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 2.5rem;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 1s ease-in-out forwards;
}

.inner-page-hero .hero-content h1 {
  font-size: 3rem;
  color: var(--champagne-beige);
  font-family: 'Nourd', 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

.inner-page-hero .hero-content p {
  color: var(--champagne-beige);
  font-size: 1.2rem;
  margin-top: 0.5rem;
  line-height: 1.6;
  font-family: 'Montserrat', sans-serif;
}

.transparent-card h1 {
  font-size: 3rem;
  color: var(--champagne-beige);
  animation: fadeInUp 1s ease-in-out forwards;
  margin-bottom: 1rem;
  font-family: 'Nourd', 'Montserrat', sans-serif;
  font-weight: 700;
}

.transparent-card p {
  color: var(--champagne-beige);
  font-size: 1.2rem;
  margin-top: 1rem;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.3);
  font-family: 'Montserrat', sans-serif;
}

/* Overlay shape for hero background */
.overlay-shape {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at center, var(--antique-gold) 0%, transparent 70%);
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

.contact-section {
  background-color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  align-items: stretch;
}

.contact-form h2 {
  margin-bottom: 1.5rem;
  font-family: 'Nourd', 'Montserrat', sans-serif;
  font-weight: 700;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--slate-grey);
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  background-color: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--antique-gold);
}

.whatsapp-button {
  margin-top: 1rem;
  background-color: var(--steel-marine);
  color: white;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.9rem 1.2rem;
  transition: all 0.3s ease;
  border: 2px solid var(--steel-marine);
  font-family: 'Montserrat', sans-serif;
}

.whatsapp-button:hover {
  background-color: white;
  color: var(--steel-marine);
  border-color: var(--steel-marine);
}

.whatsapp-icon {
  height: 20px;
  width: 20px;
  object-fit: contain;
}

/* FAQ */
.faq-wrapper {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--champagne-beige);
  border: 1px solid var(--antique-gold);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
  overflow: hidden;
}

.faq-question {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--steel-marine);
  font-family: 'Nourd', 'Montserrat', sans-serif;
}

.faq-item:hover {
  transform: translateY(-3px);
  background-color: #fdf5e6;
}

.faq-answer {
  font-size: 1rem;
  color: var(--steel-marine);
  margin-top: 0.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.faq-item.open .faq-answer {
  padding-top: 0.5rem;
}

/* (deduped refined FAQ styles) */
.faq-wrapper {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.faq-item {
  background-color: var(--champagne-beige);
  border: 1px solid var(--antique-gold);
  padding: 1.2rem 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.3s ease;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--steel-marine);
  gap: 1rem;
  font-family: 'Nourd', 'Montserrat', sans-serif;
}

.faq-question i.arrow-icon {
  transition: transform 0.3s ease;
}

.faq-item.open .faq-question i.arrow-icon {
  transform: rotate(180deg);
}

.faq-item:hover {
  transform: translateY(-2px);
  background-color: #fdf5e6;
}

.faq-answer {
  font-size: 1rem;
  color: var(--steel-marine);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  font-family: 'Montserrat', sans-serif;
}

.faq-item.open .faq-answer {
  margin-top: 0.7rem;
}

.expand-collapse-buttons {
  text-align: right;
  margin-bottom: 1rem;
}

.expand-collapse-buttons button {
  background-color: var(--antique-gold);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  margin-left: 0.5rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.expand-collapse-buttons button:hover {
  background-color: var(--steel-marine);
}

/* Elegant Section Divider */
.section-divider {
  border: 0;
  height: 1px;                  /* slimmer */
  width: min(900px, 72%);       /* shorter overall */
  margin: 2rem auto;            /* tighter spacing */
  background: linear-gradient(
    90deg,
    rgba(196,167,109,0) 0%,
    rgba(196,167,109,0.95) 50%,
    rgba(196,167,109,0) 100%
  );
  position: relative;
}

.section-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;                  /* compact accent */
  height: 14px;
  transform: translate(-50%, -50%) rotate(45deg); /* diamond */
  background: #C4A76D;          /* antique gold */
  border: 2px solid #F5E8D3;    /* champagne edge */
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

/* Intro video section spacing */
.intro-video-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.card-front,
.card-back,
.testimonial-card,
.faq-item,
.contact-form {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Frosted Glass */
.frosted-glass {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Layout */
.project-highlight {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.project-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 15px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.project-details ul {
  list-style: none;
  padding-left: 0;
  font-size: 1.1rem;
  line-height: 2;
  color: var(--steel-marine);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 0 2rem;
}

.gallery-grid img {
  width: 100%;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Floor Plan */
.floorplan {
  width: 90%;
  max-width: 800px;
  display: block;
  margin: 2rem auto;
  border-radius: 15px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Enquiry Form */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid var(--slate-grey);
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  background-color: rgba(255,255,255,0.3);
  color: var(--steel-marine);
}

.contact-form button {
  background-color: var(--antique-gold);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}
.contact-form button:hover {
  background-color: var(--steel-marine);
}

/* ==============================
   Premium FAQs Styling
   ============================== */
.faq-section {
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(196,167,109,0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(9,37,52,0.06), transparent 60%),
    linear-gradient(180deg, #fff8ee 0%, #fff 100%);
  padding: 4rem 0;
}

.faq-section .container {
  max-width: 1000px;
}

.expand-collapse-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.expand-collapse-buttons button {
  border: 1px solid rgba(196,167,109,0.35);
  box-shadow: 0 6px 16px rgba(9,37,52,0.12);
  background: linear-gradient(180deg, var(--antique-gold), #b89659);
}

.expand-collapse-buttons button:hover {
  filter: brightness(0.95);
}

.faq-wrapper {
  margin-top: 2rem;
}

.faq-item {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(196,167,109,0.45);
  background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.45));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(9,37,52,0.10);
}

.faq-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  border-radius: 16px 0 0 16px;
  background: linear-gradient(180deg, var(--antique-gold), #e6d2aa);
}

.faq-item:hover {
  box-shadow: 0 14px 32px rgba(9,37,52,0.16);
}

.faq-question {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
}

.faq-question .fa-circle-question { display: none; }

.faq-question::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--antique-gold), #e6d2aa);
  border: 1px solid rgba(196,167,109,0.55);
  box-shadow: 0 3px 8px rgba(9,37,52,0.12);
  border-radius: 2px;
}

.faq-question .arrow-icon {
  color: var(--antique-gold);
  font-size: 1rem;
}

.faq-answer {
  background: linear-gradient(180deg, rgba(245,232,211,0.35), rgba(245,232,211,0.15));
  border-radius: 12px;
  padding: 0 0.75rem;
}

.faq-item.open {
  transform: translateY(-1px);
}

.faq-item.open .faq-answer {
  box-shadow: inset 0 1px 0 rgba(196,167,109,0.25);
}

@media (max-width: 768px) {
  .faq-question { gap: 0.75rem; }
  .faq-question::before { width: 12px; height: 12px; }
}

/* ============================================
   HOMEPAGE SPECIFIC STYLES
   ============================================ */

/* Original Hero Logo - Slide up animation AFTER flip completes */
.hero-logo {
  width: clamp(200px, 50vw, 440px);
  height: auto;
  margin-top: -25vh;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: logoSlideUp 0.8s ease-out 1.5s forwards;
}

@keyframes logoSlideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Anora SVG Logo - Flip and morph into card */
.anora-logo-flip {
  width: clamp(150px, 22vw, 280px);
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: logoFlipAndMorph 1.5s ease-in-out forwards;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6));
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2;
  will-change: transform, opacity;
}

@keyframes logoFlipAndMorph {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) perspective(600px) rotateY(-180deg) scale(0.8);
  }
  25% {
    opacity: 1;
    transform: translate(-50%, -50%) perspective(600px) rotateY(0deg) scale(1);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -50%) perspective(600px) rotateY(0deg) scale(1);
  }
  85% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
    pointer-events: none;
  }
}

/* Hero Title - fades in after logo animation */
.hero-title {
  opacity: 0;
  animation: titleFadeIn 1s ease-out 1.5s forwards;
  will-change: transform, opacity;
  color: #FFFFFF !important;
  text-shadow: 
    3px 3px 12px rgba(0, 0, 0, 0.8),
    0 0 50px rgba(255, 255, 255, 0.4);
  font-size: clamp(2.2rem, 6.5vw, 5rem) !important;
  font-weight: 700 !important;
  letter-spacing: 2px;
  text-align: center;
  max-width: 1200px;
  line-height: 1.3;
  padding: 0 2rem;
}

@keyframes titleFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Why Choose Anora Section */
.why-anora {
  background: linear-gradient(135deg, #fdf9f2 0%, #fff 100%);
  padding: 6rem 0;
}

.why-anora h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--steel-marine);
  margin-bottom: 3rem;
  font-family: 'Nourd', 'Montserrat', sans-serif;
  font-weight: 700;
  text-align: center;
  position: relative;
  padding-bottom: 1.5rem;
}

.why-anora h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--antique-gold), var(--steel-marine));
  border-radius: 2px;
}

.anora-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.anora-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(253,249,242,0.95) 100%);
  padding: 3rem 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(9,37,52,0.08);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
  opacity: 0;
  transform: scale(0.95) translateY(30px);
  border: 1px solid rgba(212,175,55,0.1);
}

.why-anora.visible .anora-card {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.why-anora.visible .anora-grid .anora-card:nth-child(1) {
  transition-delay: 0.1s;
}

.why-anora.visible .anora-grid .anora-card:nth-child(2) {
  transition-delay: 0.2s;
}

.why-anora.visible .anora-grid .anora-card:nth-child(3) {
  transition-delay: 0.3s;
}

.anora-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 20px;
  right: 20px;
  height: 4px;
  background: linear-gradient(90deg, var(--antique-gold), rgba(212,175,55,0.4));
  border-radius: 2px;
}

.anora-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(9,37,52,0.15);
  border-color: rgba(212,175,55,0.3);
}

.anora-card h3 {
  font-size: 2rem;
  color: var(--steel-marine);
  margin-bottom: 1.5rem;
  font-family: 'Nourd', 'Montserrat', sans-serif;
  font-weight: 700;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.anora-card h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--antique-gold);
  border-radius: 2px;
}

.anora-card p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--slate-grey);
  text-align: center;
}

/* Featured Projects Section */
.featured-projects {
  background: var(--white);
  padding: 6rem 0;
}

.featured-projects h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--steel-marine);
  margin-bottom: 3rem;
  font-family: 'Nourd', 'Montserrat', sans-serif;
  font-weight: 700;
  text-align: center;
  position: relative;
  padding-bottom: 1.5rem;
}

.featured-projects h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--antique-gold), var(--steel-marine));
  border-radius: 2px;
}

/* Enhanced Project Cards */
.project-card {
  background: var(--white);
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(9,37,52,0.12);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--antique-gold), var(--steel-marine));
  z-index: 1;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 25px 60px rgba(9,37,52,0.2);
}

/* CTA Button on Homepage */
.cta-button {
  display: inline-block;
  padding: 1.2rem 2.5rem;
  background: var(--antique-gold);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(212,175,55,0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(212,175,55,0.4);
  background: rgba(212,175,55,0.9);
}

/* Mobile Responsive - Homepage */
@media (max-width: 768px) {
  .hero-logo {
    width: clamp(165px, 62vw, 315px);
    margin-top: -18vh;
    margin-bottom: 1rem;
    animation: logoSlideUp 0.6s ease-out 1.2s forwards;
  }

  .anora-logo-flip {
    width: clamp(120px, 40vw, 200px);
    padding: 1rem;
    animation: logoFlipAndMorph 1.2s ease-in-out forwards;
  }

  .why-anora,
  .featured-projects {
    padding: 4rem 0;
  }

  .anora-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem;
  }

  .anora-card {
    padding: 2.5rem 2rem;
  }

  .anora-card h3 {
    font-size: 1.6rem;
  }
}

/* ============================================
   ABOUT PAGE SPECIFIC STYLES
   ============================================ */

/* About Page Hero Title */
.about-video-hero .hero-title {
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: titleFadeIn 1s ease-out 0.5s forwards;
  will-change: transform, opacity;
  color: #FFFFFF !important;
  text-shadow: 
    2px 2px 8px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(255, 255, 255, 0.3);
  font-size: clamp(1rem, 3vw, 1.5rem) !important;
  font-weight: 400 !important;
  letter-spacing: 1px;
  text-align: center;
  max-width: 1200px;
  line-height: 1.4;
  padding: 0 2rem;
  margin: 0 auto;
}

/* First line styling - more prominent */
.about-video-hero .hero-title::first-line {
  font-size: clamp(2.8rem, 7.5vw, 6rem) !important;
  font-weight: 800 !important;
  letter-spacing: 3px;
  text-shadow: 
    4px 4px 15px rgba(0, 0, 0, 0.9),
    0 0 60px rgba(255, 255, 255, 0.5);
}

/* About Page Video Hero */
.about-video-hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: none !important;
  background-image: none !important;
}

.intro-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.7);
  /* Video quality optimizations */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000;
  perspective: 1000;
}

.about-video-hero .transparent-card {
  max-width: 900px;
  padding: 3.5rem 3rem;
  background: rgba(9, 37, 52, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 25px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: scale(0.95) translateY(30px);
  animation: heroFadeIn 1.2s ease-out 0.3s forwards;
  position: relative;
  z-index: 1;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.about-video-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  font-family: 'Nourd', 'Montserrat', sans-serif;
  font-weight: 700;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.6);
  letter-spacing: 1px;
}

.about-video-hero p {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--champagne-beige);
  line-height: 1.7;
  font-weight: 400;
}

/* Intro Section */
.intro {
  background: linear-gradient(135deg, #fdf9f2 0%, #fff 100%);
  padding: 6rem 0;
}

.intro .offset-card {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 3rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 25px;
  box-shadow: 0 20px 50px rgba(9,37,52,0.15);
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

.intro.visible .offset-card {
  opacity: 1;
  transform: translateY(0);
}

.intro h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--steel-marine);
  margin-bottom: 2rem;
  font-family: 'Nourd', 'Montserrat', sans-serif;
  font-weight: 700;
  text-align: center;
  position: relative;
  padding-bottom: 1.5rem;
}

.intro h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--antique-gold), var(--steel-marine));
  border-radius: 2px;
}

.intro p {
  font-size: 1.2rem;
  line-height: 1.9;
  color: var(--slate-grey);
  text-align: justify;
  text-align-last: center;
}

/* Mobile Responsive - About Page */
@media (max-width: 768px) {
  .about-video-hero .transparent-card {
    padding: 2.5rem 2rem;
  }

  .intro .offset-card {
    padding: 2.5rem 2rem;
  }

  .intro h2 {
    font-size: 2rem;
  }
}

/* ============================================
   CONTACT PAGE SPECIFIC STYLES
   ============================================ */

/* Contact Page Hero - Override base styles */
body:has(.contact-section) .hero .hero-title {
  font-size: clamp(1rem, 3vw, 1.5rem) !important;
  font-weight: 400 !important;
  letter-spacing: 1px;
}

/* Make "Get in Touch" (first line) larger */
body:has(.contact-section) .hero .hero-title::first-line {
  font-size: clamp(2.8rem, 7.5vw, 6rem) !important;
  font-weight: 800 !important;
  letter-spacing: 3px;
}

/* Contact Section */
.contact-section {
  background: linear-gradient(135deg, #fdf9f2 0%, #fff 100%);
  padding: 6rem 0;
}

/* ============================================
   PROJECTS PAGE SPECIFIC STYLES
   ============================================ */

/* Projects Page Hero - Override base styles */
body:has(.projects-showcase) .hero .hero-title {
  font-size: clamp(1rem, 3vw, 1.5rem) !important;
  font-weight: 400 !important;
  letter-spacing: 1px;
}

/* Make "Our Projects" (first line) larger */
body:has(.projects-showcase) .hero .hero-title::first-line {
  font-size: clamp(2.8rem, 7.5vw, 6rem) !important;
  font-weight: 800 !important;
  letter-spacing: 3px;
}

/* Projects Grid Layout */
.projects-showcase {
  background: linear-gradient(135deg, #fdf9f2 0%, #fff 100%);
  padding: 5rem 0;
}

.projects-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  max-width: 1300px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.project-summary-card {
  background: var(--white);
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(9,37,52,0.12);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  display: flex;
  flex-direction: column;
}

.project-summary-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-summary-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 60px rgba(9,37,52,0.2);
}

.project-summary-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--antique-gold), var(--steel-marine));
}

.project-image-container {
  height: 280px;
  overflow: hidden;
  position: relative;
}

.project-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-summary-card:hover .project-image-container img {
  transform: scale(1.1);
}

.project-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--antique-gold);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Coming Soon Card Styles */
.coming-soon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 37, 52, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: white;
  z-index: 2;
}

.coming-soon-overlay i {
  font-size: 3rem;
  color: var(--antique-gold);
  animation: pulse 2s ease-in-out infinite;
}

.coming-soon-overlay span {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.coming-soon-card .project-image-container img {
  filter: grayscale(30%) brightness(0.8);
}

.project-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-content h3 {
  font-size: 2rem;
  color: var(--steel-marine);
  margin-bottom: 1rem;
  font-family: 'Nourd', 'Montserrat', sans-serif;
}

.project-location {
  color: var(--antique-gold);
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}

.project-description {
  color: var(--slate-grey);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.project-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: #fdf9f2;
  border-radius: 15px;
}

.highlight-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.highlight-label {
  font-size: 0.85rem;
  color: var(--slate-grey);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.highlight-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--steel-marine);
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--steel-marine);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: auto;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(9,37,52,0.2);
}

.project-cta:hover {
  background: var(--antique-gold);
  transform: translateX(5px);
  box-shadow: 0 12px 28px rgba(196,167,109,0.3);
}

.project-cta i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.project-cta:hover i {
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .projects-grid-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }

  .project-highlights {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   FAQS PAGE SPECIFIC STYLES
   ============================================ */

/* FAQs Page Hero - Override base styles */
body:has(.faq-section) .hero .hero-title {
  font-size: clamp(1rem, 3vw, 1.5rem) !important;
  font-weight: 400 !important;
  letter-spacing: 1px;
  white-space: normal;
}

/* Make "Frequently Asked Questions" (first line) larger */
body:has(.faq-section) .hero .hero-title::first-line {
  font-size: clamp(1.8rem, 4.5vw, 4rem) !important;
  font-weight: 800 !important;
  letter-spacing: 1.5px;
}

/* Premium FAQs Page Styling */
.faq-section {
  background: linear-gradient(135deg, #fdf9f2 0%, #fff 100%);
  padding: 6rem 0;
}

.faq-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.expand-collapse-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.5s ease;
}

.faq-section.visible .expand-collapse-buttons {
  opacity: 1;
  transform: translateY(0);
}

.expand-collapse-buttons button {
  padding: 1rem 2rem;
  background: var(--steel-marine);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(9,37,52,0.2);
}

.expand-collapse-buttons button:hover {
  background: var(--antique-gold);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(212,175,55,0.3);
}

.faq-item {
  background: var(--white);
  margin-bottom: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(9,37,52,0.12);
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: all 0.4s ease;
  position: relative;
}

.faq-section.visible .faq-item {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.faq-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--antique-gold), var(--steel-marine));
}

.faq-item:hover {
  box-shadow: 0 15px 40px rgba(9,37,52,0.18);
  transform: translateY(-3px) scale(1);
}

.faq-question {
  padding: 2rem 2.5rem;
  padding-top: 2.5rem;
  font-family: 'Nourd', 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--steel-marine);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: var(--antique-gold);
}

.faq-question .fa-circle-question {
  color: var(--antique-gold);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.faq-question .arrow-icon {
  margin-left: auto;
  transition: transform 0.3s ease;
  color: var(--antique-gold);
  font-size: 1.2rem;
}

.faq-item.active .arrow-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: rgba(255, 247, 234, 0.5);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 2.5rem 2rem 4.5rem;
}

.faq-answer p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--slate-grey);
  margin: 0;
}

/* Staggered animation for FAQ items */
.faq-section.visible .faq-item:nth-child(1) { transition-delay: 0.1s; }
.faq-section.visible .faq-item:nth-child(2) { transition-delay: 0.15s; }
.faq-section.visible .faq-item:nth-child(3) { transition-delay: 0.2s; }
.faq-section.visible .faq-item:nth-child(4) { transition-delay: 0.25s; }
.faq-section.visible .faq-item:nth-child(5) { transition-delay: 0.3s; }
.faq-section.visible .faq-item:nth-child(6) { transition-delay: 0.35s; }
.faq-section.visible .faq-item:nth-child(7) { transition-delay: 0.4s; }
.faq-section.visible .faq-item:nth-child(8) { transition-delay: 0.45s; }
.faq-section.visible .faq-item:nth-child(9) { transition-delay: 0.5s; }
.faq-section.visible .faq-item:nth-child(10) { transition-delay: 0.55s; }

@media (max-width: 768px) {
  .faq-wrapper {
    padding: 1rem;
  }

  .expand-collapse-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .expand-collapse-buttons button {
    width: 100%;
  }

  .faq-question {
    font-size: 1.1rem;
    padding: 1.5rem 1.5rem 1.5rem 1.5rem;
    padding-top: 2rem;
  }

  .faq-question .fa-circle-question {
    font-size: 1.3rem;
  }

  .faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem 3.5rem;
  }

  .faq-answer p {
    font-size: 1rem;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem;
}

.contact-form {
  background: var(--white);
  padding: 3.5rem 3rem;
  border-radius: 25px;
  box-shadow: 0 20px 50px rgba(9,37,52,0.15);
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.6s ease;
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--antique-gold), var(--steel-marine));
}

.contact-section.visible .contact-form {
  opacity: 1;
  transform: translateX(0);
}

.contact-form h2 {
  font-size: 2.5rem;
  color: var(--steel-marine);
  margin-bottom: 2rem;
  font-family: 'Nourd', 'Montserrat', sans-serif;
  font-weight: 700;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1.2rem 1.5rem;
  border: 2px solid rgba(9,37,52,0.1);
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s ease;
  background: var(--champagne-beige);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--antique-gold);
  box-shadow: 0 5px 15px rgba(212,175,55,0.2);
  transform: translateY(-2px);
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form .cta-button {
  margin-top: 1rem;
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  background-color: var(--steel-marine);
  color: white;
  border: 2px solid var(--steel-marine);
}

.contact-form .cta-button:hover {
  background-color: white;
  color: var(--steel-marine);
  border-color: var(--steel-marine);
}

.contact-form .whatsapp-button {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: var(--steel-marine);
  color: white;
  border: 2px solid var(--steel-marine);
  border-radius: 12px;
}

.contact-form .whatsapp-button:hover {
  background-color: white;
  color: var(--steel-marine);
  border-color: var(--steel-marine);
  transform: translateY(-3px);
}

.whatsapp-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.map-container {
  background: var(--white);
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(9,37,52,0.15);
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.6s ease 0.2s;
  min-height: 500px;
}

.contact-section.visible .map-container {
  opacity: 1;
  transform: translateX(0);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: none;
}

/* Mobile Responsive - Contact Page */
@media (max-width: 968px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 1rem;
  }

  .contact-form {
    padding: 2.5rem 2rem;
    transform: translateY(-40px);
  }

  .contact-section.visible .contact-form {
    transform: translateY(0);
  }

  .map-container {
    transform: translateY(40px);
    min-height: 400px;
  }

  .contact-section.visible .map-container {
    transform: translateY(0);
  }

  .map-container iframe {
    min-height: 400px;
  }
}


/* ============================================
   HOUSE OF OURO PAGE SPECIFIC STYLES
   ============================================ */

/* House of Ouro Page Hero - Override base styles */
.project-hero .hero-title,
body:has(.location-section) .hero .hero-title {
  font-size: clamp(1rem, 3vw, 1.5rem) !important;
  font-weight: 400 !important;
  letter-spacing: 1px;
}

/* Make "House of Ouro" (first line) larger */
.project-hero .hero-title::first-line,
body:has(.location-section) .hero .hero-title::first-line {
  font-size: clamp(2.8rem, 7.5vw, 6rem) !important;
  font-weight: 800 !important;
  letter-spacing: 3px;
}

/* Description text styling for project hero */
.project-hero .hero-title .project-description {
  color: #FFFFFF;
  font-family: 'Nourd', 'Montserrat', sans-serif;
  font-weight: 400;
  opacity: 1;
}

/* Project-specific styles */
.project-hero {
  min-height: 70vh;
  background: linear-gradient(rgba(9,37,52,0.5), rgba(9,37,52,0.5)), url('../img/hero-bg2.png') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.project-hero-content {
  max-width: 900px;
  padding: 3rem 2.5rem;
  background: rgba(9, 37, 52, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(50px);
  animation: heroFadeIn 1s ease-out 0.3s forwards;
}

.project-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  margin-bottom: 1rem;
  font-family: 'Nourd', 'Montserrat', sans-serif;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.project-hero p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--champagne-beige);
  line-height: 1.6;
}

/* Location Section */
.location-section {
  background: linear-gradient(135deg, #fdf9f2 0%, #fff 100%);
  padding: 5rem 0;
}

.location-header {
  text-align: center;
  margin-bottom: 3rem;
}

.location-header h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--steel-marine);
  margin-bottom: 1rem;
  font-family: 'Nourd', 'Montserrat', sans-serif;
}

.location-header .location-name {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--antique-gold);
  font-weight: 700;
  margin-bottom: 2rem;
}

.location-description {
  max-width: 1000px;
  margin: 0 auto 3rem;
  padding: 2rem;
  background: rgba(255,255,255,0.7);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(9,37,52,0.1);
  line-height: 1.8;
  font-size: 1.1rem;
  color: var(--steel-marine);
  text-align: justify;
  text-align-last: center;
}

/* Perks Grid */
.perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.perk-card {
  background: var(--white);
  padding: 1.5rem 1.75rem;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(9,37,52,0.12);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.95);
  min-height: 100px;
  max-height: 100px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.perk-card.visible {
  opacity: 1;
  transform: scale(1);
}

.perk-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--antique-gold), var(--steel-marine));
}

.perk-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(9,37,52,0.2);
  max-height: 800px;
  background: #fff7ea;
  justify-content: flex-start;
  padding: 2rem;
}

.perk-card:hover h3 {
  margin-bottom: 1rem;
}

.perk-card > * {
  width: 100%;
}

.perk-card h3 {
  color: var(--steel-marine);
  font-size: 1.3rem;
  margin: 0;
  font-family: 'Nourd', 'Montserrat', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.3;
  white-space: normal;
  word-wrap: break-word;
}

.perk-card h3 i {
  color: var(--antique-gold);
  font-size: 1.8rem;
  flex-shrink: 0;
}

.perk-card ul {
  list-style: none;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease 0.1s;
}

.perk-card:hover ul {
  max-height: 600px;
  opacity: 1;
  margin-top: 0.5rem;
}

.perk-card ul li {
  padding: 0.6rem 0;
  color: var(--slate-grey);
  line-height: 1.6;
  border-bottom: 1px solid rgba(9,37,52,0.08);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  text-align: left;
}

.perk-card ul li:before {
  content: "✓";
  color: var(--antique-gold);
  font-weight: bold;
  flex-shrink: 0;
}

/* Specifications Section */
.specifications-section {
  background: var(--champagne-beige);
  padding: 5rem 0;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1300px;
  margin: 3rem auto;
  padding: 2rem;
}

.spec-card {
  background: var(--white);
  padding: 1.75rem 2rem;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(9,37,52,0.12);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.95);
  min-height: 90px;
  max-height: 90px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spec-card.visible {
  opacity: 1;
  transform: scale(1);
}

.spec-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--antique-gold), var(--steel-marine));
}

.spec-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(9,37,52,0.2);
  max-height: 800px;
  background: #fff7ea;
  justify-content: flex-start;
  padding: 2rem;
}

.spec-card:hover h3 {
  margin-bottom: 1rem;
}

.spec-card > * {
  width: 100%;
}

/* Specification Disclaimer */
.spec-disclaimer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  opacity: 0.85;
  color: var(--antique-gold);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 1rem;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.spec-disclaimer i {
  font-size: 1rem;
}

/* Show desktop message by default */
.spec-disclaimer-mobile {
  display: none;
}

/* Show mobile message on touch devices */
@media (hover: none) and (pointer: coarse) {
  .spec-disclaimer-desktop {
    display: none;
  }
  .spec-disclaimer-mobile {
    display: flex;
  }
}

.spec-card h3 {
  color: var(--steel-marine);
  font-size: 1.5rem;
  margin: 0;
  font-family: 'Nourd', 'Montserrat', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.2;
  white-space: nowrap;
}

.spec-card h3 i {
  color: var(--antique-gold);
  font-size: 1.8rem;
  flex-shrink: 0;
}

.spec-card ul {
  list-style: none;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease 0.1s;
}

.spec-card:hover ul {
  max-height: 600px;
  opacity: 1;
  margin-top: 0.5rem;
}

.spec-card ul li {
  padding: 0.6rem 0;
  color: var(--slate-grey);
  line-height: 1.6;
  border-bottom: 1px solid rgba(9,37,52,0.08);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  text-align: left;
}

.spec-card ul li:last-child {
  border-bottom: none;
}

.spec-card ul li:before {
  content: "✓";
  color: var(--antique-gold);
  font-weight: bold;
  flex-shrink: 0;
  font-size: 1.1rem;
}

/* Vastu Highlight */
.vastu-highlight {
  background: linear-gradient(135deg, var(--steel-marine), #0a3a4f);
  padding: 3rem;
  border-radius: 25px;
  margin: 2rem auto 4rem;
  max-width: 1100px;
  box-shadow: 0 20px 60px rgba(9,37,52,0.25);
  position: relative;
  overflow: hidden;
}

.vastu-highlight::before {
  content: "🕉";
  position: absolute;
  right: -30px;
  top: -30px;
  font-size: 200px;
  opacity: 0.05;
}

.vastu-highlight h3 {
  color: var(--antique-gold);
  font-size: 2rem;
  margin-bottom: 1rem;
  font-family: 'Nourd', 'Montserrat', sans-serif;
}

.vastu-highlight p {
  color: var(--champagne-beige);
  font-size: 1.15rem;
  line-height: 1.8;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Premium Gallery Styles */
.project-gallery {
  background: linear-gradient(180deg, #fff 0%, #fdf9f2 100%);
  padding: 5rem 0;
}

.gallery-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(9,37,52,0.15);
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  aspect-ratio: 4/3;
  opacity: 0;
  transform: scale(0.95);
  height: 100%;
  width: 100%;
}

.gallery-item.visible {
  opacity: 1;
  transform: scale(1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(9,37,52,0.95), transparent);
  padding: 2rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay span {
  color: var(--champagne-beige);
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Nourd', 'Montserrat', sans-serif;
}

/* Floor Plans Section */
.floor-plans-section {
  background: var(--white);
  padding: 5rem 0;
}

.floor-plans-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 1400px;
  margin: 3rem auto 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

.floor-plan-card {
  background: var(--champagne-beige);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(9,37,52,0.12);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
}

.floor-plan-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.floor-plan-card:hover {
  box-shadow: 0 20px 50px rgba(9,37,52,0.18);
}

.floor-plan-content {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
}

.floor-plan-image-wrapper {
  background: var(--white);
}

.floor-plan-header {
  background: var(--steel-marine);
  padding: 1.5rem 2rem;
}

.floor-plan-header h3 {
  color: var(--champagne-beige);
  margin: 0;
  font-size: 1.75rem;
  font-family: 'Nourd', 'Montserrat', sans-serif;
  letter-spacing: 0.5px;
}

.floor-plan-image {
  padding: 2rem;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.floor-plan-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  cursor: zoom-in;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(9,37,52,0.12);
}

.floor-plan-image img:hover {
  transform: scale(1.02);
}

/* Area Details Sidebar */
.floor-area-details {
  background: linear-gradient(135deg, var(--steel-marine) 0%, rgba(9,37,52,0.95) 100%);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.area-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  border-left: 3px solid var(--antique-gold);
  transition: all 0.3s ease;
}

.area-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(5px);
}

.area-label {
  font-size: 0.85rem;
  color: var(--champagne-beige);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  opacity: 0.9;
}

.area-value {
  font-size: 1.75rem;
  color: var(--white);
  font-family: 'Nourd', 'Montserrat', sans-serif;
  font-weight: 600;
}

/* Total Area Summary */
.total-area-summary {
  margin: 3rem auto 0 auto;
  padding: 3rem;
  background: linear-gradient(135deg, var(--steel-marine) 0%, rgba(9,37,52,0.95) 100%);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(9,37,52,0.2);
  max-width: calc(1400px - 4rem);
  box-sizing: border-box;
}

.total-area-summary h3 {
  color: var(--antique-gold);
  font-size: 2rem;
  text-align: center;
  margin: 0 0 2rem 0;
  font-family: 'Nourd', 'Montserrat', sans-serif;
  letter-spacing: 1px;
}

.total-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.total-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  border-top: 3px solid var(--antique-gold);
  transition: all 0.3s ease;
}

.total-stat:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-5px);
}

.stat-value {
  font-size: 3rem;
  color: var(--white);
  font-family: 'Nourd', 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--champagne-beige);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

/* Fullscreen modal for floor plans */
.floor-plan-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.floor-plan-modal.active {
  display: flex;
}

.floor-plan-modal img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  border-radius: 10px;
}

.floor-plan-modal-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  z-index: 10000;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.floor-plan-modal-close:hover {
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg);
}

/* Floating Gallery Button */
.floating-gallery-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, var(--antique-gold), #b89659);
  color: var(--white);
  padding: 1rem 1.75rem;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(196,167,109,0.4);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: none;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
}

/* Brochure Download Button Styling */
.cta-button i {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

.cta-button:hover i {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.floating-gallery-btn.visible {
  opacity: 1;
  transform: translateY(0);
}

.floating-gallery-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(196,167,109,0.5);
  background: linear-gradient(135deg, #d4b87d, var(--antique-gold));
}

.floating-gallery-btn i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.floating-gallery-btn:hover i {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {

  .perks-grid,
  .spec-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .spec-card,
  .perk-card {
    min-height: 95px;
    max-height: 95px;
    padding: 1.25rem 1.5rem;
  }

  .perk-card h3 {
    font-size: 1.1rem;
  }
}

/* Video Quality Optimizations */
video {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000;
  perspective: 1000;
  /* Prevent video blur during scaling */
  -webkit-transform-origin: center center;
  transform-origin: center center;
  /* Force hardware acceleration */
  will-change: transform;
}

  .perk-card h3 i {
    font-size: 1.3rem;
  }

  .spec-card h3 {
    font-size: 1.2rem;
  }

  .spec-card h3 i {
    font-size: 1.5rem;
  }

  .spec-disclaimer {
    font-size: 0.85rem;
    padding: 0 1rem;
    justify-content: center;
  }

  .spec-disclaimer i {
    font-size: 0.9rem;
  }

  .gallery-grid-premium {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }

  .gallery-overlay {
    transform: translateY(0);
    background: linear-gradient(to top, rgba(9,37,52,0.85), transparent);
  }

  .floating-gallery-btn {
    bottom: 1rem;
    right: 1rem;
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
  }

  .floating-gallery-btn span {
    display: none;
  }

  .floor-plans-grid {
    gap: 2.5rem;
    padding: 0 1rem;
  }

  .floor-plan-content {
    grid-template-columns: 1fr;
  }

  .floor-plan-header h3 {
    font-size: 1.5rem;
  }

  .floor-plan-image {
    min-height: 300px;
    padding: 1.5rem;
  }

  .floor-area-details {
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .area-item {
    padding: 1rem 1.25rem;
  }

  .area-value {
    font-size: 1.5rem;
  }

  .total-area-summary {
    padding: 2rem 1.5rem;
  }

  .total-area-summary h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .total-stats {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .total-stat {
    padding: 1.5rem;
  }

  .stat-value {
    font-size: 2.5rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }

  .floor-plan-modal-close {
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    width: 40px;
    height: 40px;
  }
}
