/* ============================================
   LUXE INTERIORS — Premium Portfolio CSS
   Inspired by Ratio Template
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Montserrat:wght@200;300;400;500;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --color-white: #ffffff;
  --color-off-white: #f8f7f5;
  --color-light-grey: #f0eeeb;
  --color-grey: #999999;
  --color-dark-grey: #555555;
  --color-charcoal: #333333;
  --color-black: #1a1a1a;
  --color-pure-black: #000000;
  --color-gold: #c19d5f;
  --color-gold-light: #d4b37f;
  --color-gold-dark: #a8864a;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', 'Helvetica Neue', sans-serif;

  --max-width: 1400px;
  --header-height: 90px;
  --section-padding: 120px;

  --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Dark Mode Theme Toggle ---------- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  transition: all var(--transition-fast);
  margin-left: 8px;
  position: relative;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(193, 157, 95, 0.12);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-white);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all var(--transition-fast);
}

/* Slogan specific text styles (Legacy) */
.slogan-text-legacy {
  font-family: var(--font-body), sans-serif !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  color: #ffffff !important;
}

.slogan-highlight {
  color: #ffffff !important;
}

.header.scrolled .theme-toggle svg,
.header.dark .theme-toggle svg {
  stroke: var(--color-charcoal);
}

/* Sun icon (shown in dark mode) */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
body.dark-mode .theme-toggle .icon-sun { display: block; }
body.dark-mode .theme-toggle .icon-moon { display: none; }

/* ---------- Dark Mode Overrides ---------- */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

body.dark-mode .header.scrolled {
  background: rgba(18, 18, 18, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 30px rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .header.scrolled .logo .logo-text,
body.dark-mode .header.dark .logo .logo-text {
  color: #e0e0e0;
}

body.dark-mode .header.scrolled .nav a,
body.dark-mode .header.dark .nav a {
  color: #bbbbbb;
}

body.dark-mode .header.scrolled .nav a:hover,
body.dark-mode .header.dark .nav a:hover {
  color: var(--color-gold);
}

body.dark-mode .header.scrolled .menu-toggle span,
body.dark-mode .header.dark .menu-toggle span {
  background: #e0e0e0;
}

body.dark-mode .header.scrolled .theme-toggle svg,
body.dark-mode .header.dark .theme-toggle svg {
  stroke: #e0e0e0;
}

body.dark-mode .theme-toggle svg {
  stroke: var(--color-white);
}

body.dark-mode section,
body.dark-mode .services-section,
body.dark-mode .projects-section,
body.dark-mode .about-section,
body.dark-mode .testimonials-section {
  background-color: #121212;
}

body.dark-mode .about-section,
body.dark-mode .testimonials-section,
body.dark-mode [style*="background: var(--color-off-white)"] {
  background-color: #1a1a1a !important;
}

body.dark-mode [style*="background: var(--color-white)"] {
  background-color: #121212 !important;
}

body.dark-mode [style*="background: var(--color-black)"] {
  background-color: #0a0a0a !important;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
  color: #f0f0f0;
}

body.dark-mode p {
  color: #aaaaaa;
}

body.dark-mode .section-description {
  color: #999999;
}

body.dark-mode .service-card,
body.dark-mode .service-detail-card {
  background: #1e1e1e;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

body.dark-mode .service-card:hover,
body.dark-mode .service-detail-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

body.dark-mode .service-card h3,
body.dark-mode .service-detail-card h3 {
  color: #f0f0f0;
}

body.dark-mode .service-card p,
body.dark-mode .service-detail-card p {
  color: #999999;
}

body.dark-mode .testimonial-card {
  background: #1e1e1e;
}

body.dark-mode .testimonial-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

body.dark-mode .testimonial-card p {
  color: #bbbbbb;
}

body.dark-mode .author-info h4 {
  color: #f0f0f0;
}

body.dark-mode .btn-outline-dark {
  border-color: #e0e0e0;
  color: #e0e0e0;
}

body.dark-mode .btn-outline-dark::before {
  background: #e0e0e0;
}

body.dark-mode .btn-outline-dark:hover {
  color: #121212;
}

body.dark-mode .about-stats {
  border-top-color: #333333;
}

body.dark-mode .stat-item .label {
  color: #888888;
}

body.dark-mode .footer {
  background-color: #0a0a0a;
}

body.dark-mode .footer p,
body.dark-mode .footer a,
body.dark-mode .footer li a {
  color: #999999;
}

body.dark-mode .footer h4 {
  color: #e0e0e0;
}

body.dark-mode .footer-bottom {
  border-top-color: #222222;
}

body.dark-mode .footer-about .logo .logo-text {
  color: #e0e0e0;
}

body.dark-mode .page-hero::after {
  background: rgba(0, 0, 0, 0.65);
}

body.dark-mode .contact-form {
  background: #1e1e1e;
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  background: #2a2a2a;
  border-color: #333333;
  color: #e0e0e0;
}

body.dark-mode .contact-form input:focus,
body.dark-mode .contact-form textarea:focus {
  border-color: var(--color-gold);
}

body.dark-mode .contact-item span {
  color: #bbbbbb;
}

body.dark-mode .portfolio-filters button {
  color: #888888;
}

body.dark-mode .portfolio-filters button:hover,
body.dark-mode .portfolio-filters button.active {
  color: #f0f0f0;
}

body.dark-mode .project-info h3 {
  color: var(--color-white);
}

body.dark-mode .breadcrumb,
body.dark-mode .breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .project-description {
  background: #1e1e1e;
}

body.dark-mode .project-meta-item h4 {
  color: #f0f0f0;
}

body.dark-mode .project-meta-item p {
  color: #999999;
}

body.dark-mode .nav {
  background: transparent;
}

/* ---------- Permanent Dark Mode — Hide Toggle & Fix Colors ---------- */
.theme-toggle {
  display: none !important;
}

body.dark-mode .cta-banner {
  background: var(--color-gold);
}

body.dark-mode .cta-banner p {
  color: #ffffff;
  opacity: 1;
}

body.dark-mode .cta-banner .btn-outline {
  border-color: #ffffff;
  color: #ffffff;
}

body.dark-mode .cta-banner .btn-outline:hover {
  color: var(--color-gold);
}

body.dark-mode .hero-content p {
  color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .section-subtitle {
  color: var(--color-gold);
}

body.dark-mode .about-content p,
body.dark-mode .about-section p {
  color: #bbbbbb;
}

body.dark-mode .stat-item .number {
  color: #ffffff;
}

body.dark-mode .stat-item .label {
  color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .section-title {
  color: #f0f0f0;
}

body.dark-mode .section-description {
  color: #aaaaaa;
}

body.dark-mode .contact-info p,
body.dark-mode .contact-info span {
  color: #bbbbbb;
}

body.dark-mode .contact-item h4 {
  color: #f0f0f0;
}

body.dark-mode .portfolio-filters button {
  color: #aaaaaa;
}

body.dark-mode .portfolio-filters button:hover,
body.dark-mode .portfolio-filters button.active {
  color: #ffffff;
}

body.dark-mode .quote-icon {
  color: var(--color-gold);
}

body.dark-mode .testimonial-author span {
  color: #999999;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-charcoal);
  background-color: var(--color-white);
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-black);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: 0.02em;
}

h3 {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
}

h4 {
  font-size: 1.2rem;
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: var(--color-dark-grey);
  font-size: 0.95rem;
  line-height: 1.9;
}

.section-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-gold);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  margin-bottom: 1.5rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: var(--color-gold);
  margin-top: 20px;
}

.section-title.centered::after {
  margin-left: auto;
  margin-right: auto;
}

.section-description {
  max-width: 650px;
  color: var(--color-grey);
  font-size: 1rem;
  line-height: 1.9;
}

.centered {
  text-align: center;
}

.section-description.centered {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

section {
  padding: var(--section-padding) 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 16px 40px;
  border: 1px solid;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  z-index: -1;
  transition: left var(--transition-fast);
}

.btn:hover::before {
  left: 0;
}

.btn-primary {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-white);
}

.btn-primary::before {
  background: var(--color-gold-dark);
}

.btn-primary:hover {
  border-color: var(--color-gold-dark);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn-outline::before {
  background: var(--color-white);
}

.btn-outline:hover {
  color: var(--color-black);
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--color-black);
  color: var(--color-black);
}

.btn-outline-dark::before {
  background: var(--color-black);
}

.btn-outline-dark:hover {
  color: var(--color-white);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: all var(--transition-medium);
  display: flex;
  align-items: center;
}

.header.transparent {
  background: transparent;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 75px;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-fast);
}

.logo img {
  height: 45px;
  width: auto;
  transition: all var(--transition-fast);
}

.logo-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
}

.logo .logo-text {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-white);
  transition: color var(--transition-fast);
}

.logo .logo-text:last-child {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  margin-top: -2px;
}

.footer-slogan {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffffff;
  margin: 15px 0 0 0;
  opacity: 0.9;
}

/* Logo scrolled states */
.header.scrolled .logo .logo-text,
.header.dark .logo .logo-text {
  color: var(--color-black);
}

body.dark-mode .header.scrolled .logo .logo-text,
body.dark-mode .header.dark .logo .logo-text {
  color: #ffffff !important;
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav a {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-white);
  position: relative;
  padding: 5px 0;
  transition: color var(--transition-fast);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width var(--transition-fast);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav a:hover {
  color: var(--color-gold);
}

.header.scrolled .nav a,
.header.dark .nav a {
  color: var(--color-charcoal);
}

.header.scrolled .nav a:hover,
.header.dark .nav a:hover {
  color: var(--color-gold);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 100;
  padding: 5px;
}

.menu-toggle span {
  width: 28px;
  height: 1.5px;
  background: var(--color-white);
  transition: all var(--transition-fast);
}

.header.scrolled .menu-toggle span,
.header.dark .menu-toggle span {
  background: var(--color-black);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

@keyframes heroBreathing {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  animation: heroBreathing 24s ease-in-out infinite;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.3) 50%,
    rgba(0,0,0,0.45) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  max-width: 1200px;
  padding: 0 40px;
  width: 100%;
}

.hero-content h1.hero-slogan-title {
  color: var(--color-white);
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 25px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out 0.3s forwards;
  display: block;
  width: 100%;
}

/* Removed redundant mobile rule */

.hero-content .hero-divider {
  width: 60px;
  height: 2px;
  background: var(--color-gold);
  margin: 25px auto;
  opacity: 0;
  animation: fadeIn 1s ease-out 0.6s forwards;
}

.hero-content p {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  letter-spacing: 0.03em;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out 0.8s forwards;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out 1s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0;
  animation: fadeIn 1s ease-out 1.5s forwards;
}

.hero-scroll .scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: var(--color-gold);
  padding: 50px 0;
}

.cta-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.cta-banner p {
  color: var(--color-white);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  margin: 0;
}

.cta-banner .btn-outline {
  border-color: var(--color-white);
  color: var(--color-white);
  flex-shrink: 0;
}

.cta-banner .btn-outline::before {
  background: var(--color-white);
}

.cta-banner .btn-outline:hover {
  color: var(--color-gold);
}

/* ---------- Services / What We Do ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.service-card {
  text-align: center;
  padding: 50px 30px;
  transition: all var(--transition-medium);
  position: relative;
  background: var(--color-white);
  contain: layout paint;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition-medium);
}

.service-card:hover::after {
  width: 60px;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 45px;
  height: 45px;
  stroke: var(--color-gold);
  fill: none;
  stroke-width: 1.2;
}

.service-card h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 15px;
  color: var(--color-black);
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--color-grey);
}

/* ---------- Projects Grid ---------- */
.projects-section {
  background: var(--color-white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 60px;
}

.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  will-change: transform, opacity;
  transform: translateZ(0);
  contain: layout paint;
}

.project-card .project-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-card .project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-medium);
  display: flex;
  align-items: flex-end;
  padding: 30px;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-info h3 {
  color: var(--color-white);
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.project-info span {
  color: var(--color-gold);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* Uniform Grid layout for Portfolio Page */
.projects-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 60px;
}

.projects-masonry .project-card {
  margin-bottom: 0;
}

.projects-masonry .project-card .project-img {
  aspect-ratio: 4/3;
  width: 100%;
}

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

/* Portfolio Filters */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.portfolio-filters button {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-grey);
  cursor: pointer;
  padding: 8px 5px;
  position: relative;
  transition: color var(--transition-fast);
}

.portfolio-filters button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width var(--transition-fast);
}

.portfolio-filters button:hover,
.portfolio-filters button.active {
  color: var(--color-black);
}

.portfolio-filters button.active::after,
.portfolio-filters button:hover::after {
  width: 100%;
}

/* ---------- About Section ---------- */
.about-section {
  background: var(--color-off-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-img {
  position: relative;
  overflow: hidden;
}

.about-img img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

.about-img::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  border: 2px solid var(--color-gold);
  z-index: -1;
}

.about-content {
  padding: 20px 0;
}

.about-content .section-subtitle {
  margin-bottom: 15px;
}

.about-content h2 {
  margin-bottom: 30px;
}

.about-content p {
  margin-bottom: 20px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--color-light-grey);
}

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

.stat-item .number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 5px;
}

.stat-item .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-grey);
}


/* ---------- Contact Section ---------- */
.contact-section {
  background: var(--color-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 60px;
}

.contact-info {
  padding: 20px 0;
}

.contact-info h3 {
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 30px;
}

.contact-member {
  margin-bottom: 30px;
}

.member-name {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 5px;
}

.footer .member-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.member-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-grey);
  display: inline-block;
  position: relative;
  padding-bottom: 4px;
}

.footer .member-title {
  font-size: 0.6rem;
  padding-bottom: 2px;
}

.member-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.5;
}

.footer .member-title::after {
  height: 1px;
}

.footer-member {
  margin-bottom: 20px !important;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-item svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-gold);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}

.contact-item span {
  font-size: 0.95rem;
  color: var(--color-dark-grey);
}

.contact-form {
  background: var(--color-off-white);
  padding: 50px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-charcoal);
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--color-light-grey);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--color-charcoal);
  transition: border-color var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--color-gold);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-about .logo {
  margin-bottom: 20px;
  display: inline-flex;
}

.footer-about .logo img {
  height: 40px;
}

.footer-about .logo .logo-text {
  color: var(--color-white);
}

.footer-about p {
  color: var(--color-grey);
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer h4 {
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 25px;
}

.footer ul li {
  margin-bottom: 12px;
}

.footer ul li a {
  color: var(--color-grey);
  font-size: 0.85rem;
  font-weight: 300;
  transition: color var(--transition-fast);
}

.footer ul li a:hover {
  color: var(--color-gold);
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  border-color: var(--color-gold);
  background: var(--color-gold);
}

.footer-social a svg {
  width: 16px;
  height: 16px;
  fill: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom p {
  color: var(--color-grey);
  font-size: 0.8rem;
  margin: 0;
}

/* ---------- WhatsApp Floating Button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all var(--transition-fast);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

/* ---------- Page Hero ---------- */
.page-hero {
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
}

.page-hero-content h1 {
  color: var(--color-white);
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.page-hero-content .breadcrumb {
  margin-top: 15px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.7);
}

.page-hero-content .breadcrumb a {
  color: var(--color-gold);
}

/* ---------- Project Details ---------- */
.project-details {
  padding: var(--section-padding) 0;
}

.project-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 60px;
}

.project-gallery img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.project-gallery img:hover {
  transform: scale(1.02);
}

.project-gallery img:first-child {
  grid-column: 1 / -1;
  height: 600px;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--color-light-grey);
  border-bottom: 1px solid var(--color-light-grey);
  margin-bottom: 40px;
}

.meta-item h4 {
  font-size: 0.7rem;
  margin-bottom: 8px;
  color: var(--color-grey);
}

.meta-item span {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-black);
}

/* ---------- Services Page ---------- */
.services-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 60px;
}

.service-detail-card {
  display: flex;
  gap: 30px;
  padding: 40px;
  background: var(--color-off-white);
  transition: all var(--transition-medium);
}

.service-detail-card:hover {
  background: var(--color-white);
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}

.service-detail-card .service-icon {
  margin: 0;
  flex-shrink: 0;
}

.service-detail-card h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 15px;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  will-change: opacity;
  contain: strict;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-image-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
  perspective: 1000px;
}

.lightbox-image-wrapper img {
  position: absolute;
  max-width: calc(100% - 160px);
  max-height: calc(100% - 120px);
  object-fit: contain;
  border-radius: 6px;
  transform: translate3d(35px, -25px, -60px) scale(0.96);
  transform-origin: center right;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.6s ease, visibility 0.6s ease;
  will-change: transform, opacity;
  pointer-events: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.lightbox-image-wrapper img.active {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Lightbox Spinner */
.lightbox-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  animation: spinnerRotate 0.8s linear infinite;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  position: absolute;
  z-index: 5;
}

.lightbox-spinner.active {
  opacity: 1;
  visibility: visible;
}

@keyframes spinnerRotate {
  to { transform: rotate(360deg); }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: all 0.2s ease;
  will-change: transform;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: all 0.2s ease;
  will-change: transform, background-color;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-50%) scale(1.05);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Make stacked gallery images clickable */
.stacked-slide {
  cursor: pointer;
}

.stacked-slide.stack-0:hover img {
  opacity: 0.9;
}

/* Lightbox responsive */
@media (max-width: 768px) {
  .lightbox-image-wrapper {
    padding: 70px 16px;
  }
  .lightbox-image-wrapper img {
    max-width: calc(100% - 32px);
    max-height: calc(100% - 140px);
  }

  .lightbox-nav {
    width: 42px;
    height: 42px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
  }
}

/* ---------- Image Slider ---------- */
.slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.slider-track {
  display: flex;
  transition: transform var(--transition-medium);
}

.slider-slide {
  min-width: 100%;
}

.slider-slide img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

.slider-btn:hover {
  background: var(--color-gold);
}

.slider-btn:hover svg {
  stroke: var(--color-white);
}

.slider-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-black);
  fill: none;
  stroke-width: 2;
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-light-grey);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider-dots button.active {
  background: var(--color-gold);
  transform: scale(1.2);
}

/* ---------- Before/After ---------- */
.before-after {
  position: relative;
  overflow: hidden;
  cursor: col-resize;
}

.before-after img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.before-after .after-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  overflow: hidden;
}

.before-after .slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: var(--color-gold);
  transform: translateX(-50%);
}

.before-after .slider-handle::after {
  content: '⟷';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

/* ---------- Map ---------- */
.map-section {
  width: 100%;
  height: 400px;
  filter: grayscale(1) contrast(1.1);
  transition: filter var(--transition-fast);
}

.map-section:hover {
  filter: grayscale(0);
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scrollDown {
  0%, 100% {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
  }
  30% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }
  60% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

@keyframes pulse {
  0% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
  100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
}

/* Scroll-triggered animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Stagger children animation */
.stagger-children .reveal {
  transition-delay: calc(var(--i, 0) * 0.1s);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-gold-dark);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-white);
  fill: none;
  stroke-width: 2;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .container {
    padding: 0 30px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-masonry {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    gap: 50px;
  }


  .project-meta {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-page-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
    --header-height: 70px;
  }

  .container {
    padding: 0 20px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(26, 26, 26, 0.92);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transition: right var(--transition-medium);
    z-index: 99;
  }

  body.dark-mode .nav {
    background: rgba(12, 12, 12, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
  }

  .nav.open {
    right: 0;
  }

  .nav a {
    color: var(--color-white) !important;
    font-size: 0.9rem;
    letter-spacing: 0.3em;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-banner .container {
    flex-direction: column;
    text-align: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-masonry {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-img img {
    height: 400px;
  }


  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form {
    padding: 30px 25px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

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

  .project-gallery img,
  .project-gallery img:first-child {
    height: 300px;
  }

  .project-meta {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .slider-slide img {
    height: 350px;
  }

  .page-hero {
    height: 40vh;
    min-height: 300px;
    background-attachment: scroll;
  }
}

@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .hero-content p {
    font-size: 0.9rem;
  }
}

/* ---------- Location Button ---------- */
.location-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  margin-top: 8px;
  margin-bottom: 8px;
  border: 1.5px solid var(--color-gold);
  border-radius: 10px;
  background: transparent;
  color: var(--color-gold);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.location-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-gold);
  transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
}

.location-btn:hover::before {
  left: 0;
}

.location-btn:hover {
  color: #fff;
  border-color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(193, 157, 95, 0.3);
}

.location-btn svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.location-btn:hover svg {
  transform: scale(1.1);
}

.location-btn span {
  flex: 1;
}

.location-btn svg:last-child {
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.location-btn:hover svg:last-child {
  opacity: 1;
}

/* ---------- Phone Action Buttons ---------- */
.phone-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.phone-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 24px;
  font-size: 0.68rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  color: #fff;
  background: linear-gradient(135deg, #c19d5f, #a07d3f);
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(193, 157, 95, 0.25);
}

.phone-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(193, 157, 95, 0.4);
  background: linear-gradient(135deg, #d4af6a, #c19d5f);
  color: #fff;
}

.phone-action-btn.whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}

.phone-action-btn.whatsapp:hover {
  background: linear-gradient(135deg, #34e376, #25D366);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  color: #fff;
}

.phone-action-btn svg {
  flex-shrink: 0;
}

/* ---------- Contact Form Fields ---------- */
.contact-form label {
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(193, 157, 95, 0.15);
}

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

.contact-form .form-group {
  margin-bottom: 22px;
}

.contact-form .btn {
  border-radius: 12px;
}

.field-error {
  display: block;
  color: #ff4d4d;
  font-size: 0.75rem;
  margin-top: 6px;
  min-height: 18px;
  font-family: var(--font-body);
}

.field-invalid {
  border-color: #ff4d4d !important;
  box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.15) !important;
}

/* ---------- Intl-Tel-Input Overrides ---------- */
.iti {
  width: 100%;
  display: block;
}

.iti__country-list {
  background-color: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  font-family: var(--font-body);
  margin-top: 5px;
}

.iti__country.iti__highlight {
  background-color: rgba(193, 157, 95, 0.2);
  color: #fff;
}

.iti__selected-flag {
  background-color: transparent !important;
  padding: 0 14px 0 20px;
}

.contact-form .iti input,
.contact-form .iti input[type=text],
.contact-form .iti input[type=tel] {
  padding-left: 80px !important;
}

.iti__arrow {
  border-top-color: rgba(255,255,255,0.7);
}
.iti__arrow.iti__arrow--up {
  border-bottom-color: rgba(255,255,255,0.7);
}

/* ============================================
   360° VIRTUAL TOUR — Styles
   ============================================ */

/* --- 360° Badge on Portfolio Card --- */
.project-card .tour-badge-360 {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(193, 157, 95, 0.4);
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}

.project-card .tour-badge-360 svg {
  width: 14px;
  height: 14px;
  fill: #fff;
  animation: rotateBadge360 4s linear infinite;
}

@keyframes rotateBadge360 {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

/* --- 360 Viewer Container --- */
.tour-360-wrapper {
  position: relative;
  width: 100%;
  margin-top: 40px;
}

.tour-360-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* PREVENT FRAME DROPS: Isolate 360 viewer rendering from the rest of the page layout */
  contain: strict;
  content-visibility: auto;
  contain-intrinsic-size: 100% 56.25vw; /* Approximates 16:9 aspect ratio while off-screen */
}

.tour-360-container .pnlm-container {
  border-radius: 12px;
}

/* --- Loading Overlay --- */
.tour-360-loader {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #121212;
  border-radius: 12px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.tour-360-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.tour-360-spinner {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(193, 157, 95, 0.15);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  animation: spin360 0.8s linear infinite;
}

@keyframes spin360 {
  to { transform: rotate(360deg); }
}

.tour-360-loader span {
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* --- Fade Transition Overlay (between scenes) --- */
.tour-360-fade {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: #0a0a0a;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  border-radius: 12px;
}

.tour-360-fade.active {
  opacity: 1;
}

/* --- Scene Navigation Pills --- */
.tour-scene-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.tour-scene-btn {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.04);
  color: #999;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
}

.tour-scene-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: rgba(193, 157, 95, 0.08);
}

.tour-scene-btn.active {
  border-color: var(--color-gold);
  background: var(--color-gold);
  color: #fff;
  box-shadow: 0 4px 15px rgba(193, 157, 95, 0.3);
}

/* --- Pannellum Dark/Gold Theme Overrides (Heavy Hand Approach) --- */

/* 1. Spatial Separation & Positioning */

/* Crush the main container to let absolute positioning dominate */
.tour-360-container .pnlm-controls-container {
  display: block !important; 
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  pointer-events: none !important;
  background: transparent !important;
}

/* Force absolute position for fullscreen button */
.tour-360-container .pnlm-fullscreen-toggle-button {
  display: flex !important; /* Force it even if library hides it */
  position: absolute !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 10 !important;
  margin: 0 !important;
  pointer-events: auto !important;
}

/* Force absolute position for zoom controls container */
.tour-360-container .pnlm-zoom-controls {
  position: absolute !important;
  top: 80px !important;
  right: 20px !important;
  z-index: 10 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 15px !important;
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
  pointer-events: auto !important;
}

/* 2. High-End UI Redesign: Dimensions, Shape & Glow, Background */
.tour-360-container .pnlm-zoom-in,
.tour-360-container .pnlm-zoom-out,
.tour-360-container .pnlm-fullscreen-toggle-button {
  position: static !important; /* CRITICAL: break them out of default absolute positioning */
  width: 44px !important;
  height: 44px !important;
  background-color: rgba(30, 30, 30, 0.8) !important;
  background-image: none !important; /* Hide default background sprites */
  border-radius: 50% !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important; /* Artex Gold border */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(8px) !important;
  cursor: pointer !important;
}

/* Fullscreen Button needs absolute positioning */
.tour-360-container .pnlm-fullscreen-toggle-button {
  position: absolute !important;
}

/* Hover States */
.tour-360-container .pnlm-zoom-in:hover,
.tour-360-container .pnlm-zoom-out:hover,
.tour-360-container .pnlm-fullscreen-toggle-button:hover {
  background-color: rgba(212, 175, 55, 0.15) !important;
  border-color: #D4AF37 !important;
  transform: scale(1.1) !important;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3) !important;
}

/* 3. Icons Redesign utilizing Webkit Mask for exact recoloring */
.tour-360-container .pnlm-zoom-in::before,
.tour-360-container .pnlm-zoom-out::before,
.tour-360-container .pnlm-fullscreen-toggle-button::before {
  content: '' !important;
  display: block !important;
  background-color: #D4AF37 !important; /* Force true Artex Gold */
  transition: background-color 0.3s ease !important;
}

.tour-360-container .pnlm-zoom-in::before {
  width: 16px !important;
  height: 16px !important;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2h6z"/></svg>') center/contain no-repeat !important;
  mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2h6z"/></svg>') center/contain no-repeat !important;
}

.tour-360-container .pnlm-zoom-out::before {
  width: 14px !important;
  height: 14px !important;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M5 11h14v2H5z"/></svg>') center/contain no-repeat !important;
  mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M5 11h14v2H5z"/></svg>') center/contain no-repeat !important;
}

.tour-360-container .pnlm-fullscreen-toggle-button::before {
  width: 16px !important;
  height: 16px !important;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg>') center/contain no-repeat !important;
  mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg>') center/contain no-repeat !important;
}

/* Hover icon color */
.tour-360-container .pnlm-zoom-in:hover::before,
.tour-360-container .pnlm-zoom-out:hover::before,
.tour-360-container .pnlm-fullscreen-toggle-button:hover::before {
  background-color: #fff !important;
}

/* Hide unused Pannellum elements aggressively */
.tour-360-container .pnlm-about-msg,
.tour-360-container .pnlm-load-box,
.tour-360-container .pnlm-compass,
.tour-360-container .pnlm-compass-container,
.pnlm-compass {
  display: none !important;
}

/* --- Custom Hotspot Styling --- */
.tour-hotspot {
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: absolute !important;
  margin-top: -20px !important;
  margin-left: -20px !important;
}

.tour-hotspot .hotspot-inner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(193, 157, 95, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 2;
}

.tour-hotspot:hover .hotspot-inner {
  transform: scale(1.15);
  box-shadow: 0 6px 25px rgba(193, 157, 95, 0.7);
}

.tour-hotspot .hotspot-inner svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.tour-hotspot .hotspot-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  margin-left: -20px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  animation: hotspotPulse 2s ease-out infinite;
  z-index: 1;
}

@keyframes hotspotPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.tour-hotspot .hotspot-label {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  padding: 4px 10px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.tour-hotspot:hover .hotspot-label {
  opacity: 1;
}

/* --- 360 Viewer Title Bar --- */
.tour-360-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tour-360-header h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0;
}

.btn-direct-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-direct-link:hover {
  background: var(--color-gold);
  color: #fff;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-direct-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.btn-direct-link:hover svg {
  transform: translateX(2px) translateY(-2px);
}

.tour-360-header .tour-instructions {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #666;
}

/* --- Responsive 360 Viewer --- */
@media (max-width: 768px) {
  .tour-360-container {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
  }

  .tour-360-loader {
    border-radius: 8px;
  }

  .tour-360-fade {
    border-radius: 8px;
  }

  .tour-scene-nav {
    gap: 8px;
  }

  .tour-scene-btn {
    padding: 8px 16px;
    font-size: 0.6rem;
  }

  .tour-hotspot {
    width: 34px;
    height: 34px;
  }

  .tour-hotspot .hotspot-inner {
    width: 34px;
    height: 34px;
  }

  .tour-hotspot .hotspot-pulse {
    width: 34px;
    height: 34px;
    margin-top: -17px;
    margin-left: -17px;
  }

  .tour-360-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .tour-360-container {
    aspect-ratio: 3 / 2;
  }

  .tour-scene-btn {
    padding: 7px 12px;
    font-size: 0.55rem;
  }
}


