/* ============================================
   KAS Houzing — High-End Luxury Redesign
   Architecture & Interior Design
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #111111;
  --bg-surface: #1a1a1a;
  
  --text-primary: #F5F5F0;
  --text-secondary: #888888;
  --text-muted: #555555;
  
  /* Champagne Gold (Used sparingly for luxury feel) */
  --gold: #D4AF37;
  --gold-dim: rgba(212, 175, 55, 0.4);
  
  --border-subtle: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-display: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;

  /* Spacing */
  --section-padding: 160px;
  --container-max: 1440px;
  --container-padding: 40px;

  /* Transitions */
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.3s ease;
}

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

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 14px;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--text-muted); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Selection */
::selection { background: var(--gold); color: #000; }

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

.gold { color: var(--gold); }

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* --- Buttons (Hyper-Minimal) --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-primary);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--text-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-slow);
  z-index: -1;
}

.btn:hover {
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-gold {
  border-color: var(--gold-dim);
  color: var(--gold);
}
.btn-gold::before {
  background: var(--gold);
}
.btn-gold:hover {
  color: var(--bg-primary);
  border-color: var(--gold);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-outline-gold {
  border-color: var(--gold-dim);
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-outline-gold:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--bg-primary);
}

/* --- Preloader --- */
.preloader {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1s ease, visibility 1s ease;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

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

.loader-logo {
  font-family: var(--font-display);
  font-size: 48px;
  letter-spacing: 8px;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.loader-logo span {
  opacity: 0;
  transform: translateY(20px);
}

.loader-tagline {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0;
}

/* --- Navbar (Glassmorphism & Minimal) --- */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  padding: 30px 0;
  z-index: 1000;
  transition: padding var(--transition-smooth), background var(--transition-smooth);
}

.navbar.scrolled {
  padding: 15px 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-text {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 4px;
  color: var(--text-primary);
}

.logo-divider {
  width: 1px;
  height: 20px;
  background: var(--border-subtle);
}

.logo-tagline {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-link {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding: 5px 0;
}

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

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  z-index: 1001;
}

.nav-toggle span {
  width: 100%;
  height: 1px;
  background: var(--text-primary);
  transition: var(--transition-fast);
}

/* --- Hero Section (Cinematic Asymmetry) --- */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -2;
}

.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.1); /* For GSAP parallax */
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Darker overlay for better text contrast */
  z-index: -1;
}

.hero-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  font-size: 10px;
  letter-spacing: 6px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.badge-line {
  width: 40px; height: 1px;
  background: var(--gold);
}

.hero-title {
  font-size: clamp(60px, 8vw, 120px);
  line-height: 1;
  margin-bottom: 30px;
  color: var(--text-primary);
  font-weight: 400;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8); /* Better contrast */
}

.hero-slogan {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 36px);
  color: var(--text-primary); /* Changed to pure white for readability */
  font-style: italic;
  margin-bottom: 40px;
  max-width: 600px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  line-height: 1.4;
}

.hero-desc {
  font-size: 14px;
  color: #fff; /* Replaced text-muted with solid white for legibility */
  max-width: 500px;
  margin-bottom: 50px;
  letter-spacing: 1px;
  text-shadow: 0 2px 15px rgba(0,0,0,1); /* Heavy drop shadow */
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 20px;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: var(--container-padding);
  display: flex;
  align-items: center;
  gap: 15px;
  transform: rotate(-90deg);
  transform-origin: left center;
}

.scroll-indicator span {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.scroll-line {
  width: 60px; height: 1px;
  background: var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.scroll-dot {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--gold);
  transform: translateX(-100%);
  animation: scrollAnim 2s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}

@keyframes scrollAnim {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: 100px;
  max-width: 800px;
}

.section-tag {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--gold);
  display: block;
  margin-bottom: 20px;
}

.section-title {
  font-size: 48px;
  color: var(--text-primary);
  margin-bottom: 30px;
  line-height: 1.2;
}

.section-line {
  width: 60px; height: 1px;
  background: var(--gold);
  margin-bottom: 30px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 16px;
}

/* --- Portfolio Redesign (Asymmetric Grid) --- */
.portfolio-filters {
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
}

.filter-btn {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  position: relative;
}

.filter-btn.active, .filter-btn:hover {
  color: var(--text-primary);
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: -21px; left: 0; width: 0; height: 1px;
  background: var(--text-primary);
  transition: width var(--transition-smooth);
}

.filter-btn.active::after {
  width: 100%;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 60px 40px;
}

/* Cinematic Cards */
.portfolio-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  z-index: 10;
}

.portfolio-card:nth-child(odd) {
  grid-column: span 7;
}

.portfolio-card:nth-child(even) {
  grid-column: span 5;
  margin-top: 100px;
}

.portfolio-card-img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), filter 1.5s ease;
  filter: grayscale(40%) contrast(1.1);
}

.portfolio-card:hover .portfolio-card-img {
  transform: scale(1.05);
  filter: grayscale(0%) contrast(1);
}

.portfolio-card-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 40%, transparent 80%);
  opacity: 1; /* Keep visible to enhance readable text */
  transition: opacity var(--transition-slow);
}

.portfolio-card-content {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  padding: 40px;
  transform: translateY(20px);
  transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-card-content {
  transform: translateY(0);
}

.portfolio-card-category {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 15px;
  text-transform: uppercase;
}

.portfolio-card-title {
  font-size: 28px;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.9);
}

.portfolio-card-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}

.portfolio-card-cta {
  display: none; /* Hide standard CTA to enforce minimalism */
}

/* Loading State */
.portfolio-loading {
  display: none;
  text-align: center;
  padding: 100px 0;
  color: var(--text-muted);
  font-family: var(--font-display);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 12px;
}
.portfolio-loading.visible {
  display: block;
}

/* --- Contact Section (Minimalist Line Form) --- */
.contact-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 100px;
}

.contact-item {
  margin-bottom: 40px;
}

.contact-item h4 {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.contact-item p, .contact-item a {
  font-size: 18px;
  color: var(--text-primary);
}

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

.contact-socials {
  display: flex;
  gap: 20px;
  margin-top: 60px;
}

.social-link {
  width: 40px; height: 40px;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-smooth);
}

.social-link:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  transform: translateY(-5px);
}

/* --- Luxury Form Styles --- */
.contact-form {
  background: var(--bg-surface);
  /* Neo-classical subtle geometric pattern */
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 3.333l16.667 16.667L20 36.667 3.333 20 20 3.333zm0 2.357L5.69 20 20 34.31 34.31 20 20 5.69z' fill='%23c9a96e' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  padding: 50px 40px;
  border: 1px solid rgba(201, 169, 110, 0.2);
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* Corner Ornaments for the form */
.contact-form::before, .contact-form::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border: 1px solid var(--gold);
}
.contact-form::before { top: 15px; left: 15px; border-right: none; border-bottom: none; }
.contact-form::after { bottom: 15px; right: 15px; border-left: none; border-top: none; }

.form-group {
  position: relative;
  margin-bottom: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 15px 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  transition: all var(--transition-smooth);
  position: relative;
  z-index: 2;
}

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

/* Input Focus Effects */
.form-group::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: width 0.4s ease;
  z-index: 3;
}
.contact-form input:focus ~ ::after,
.contact-form textarea:focus ~ ::after,
.contact-form select:focus ~ ::after {
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-bottom-color: transparent;
}

.contact-form select {
  appearance: none;
  color: var(--text-muted);
}
.contact-form select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.contact-form label {
  position: absolute;
  top: 15px; left: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.contact-form input:focus ~ label,
.contact-form input:not(:placeholder-shown) ~ label,
.contact-form textarea:focus ~ label,
.contact-form textarea:not(:placeholder-shown) ~ label {
  top: -20px;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
}

/* Luxury Submit Button Override */
.contact-form .btn-gold {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid var(--gold);
  background: rgba(201, 169, 110, 0.05);
  transition: all 0.4s ease;
}

.contact-form .btn-gold:hover {
  background: var(--gold);
  color: #000;
  box-shadow: 0 0 30px rgba(201, 169, 110, 0.4);
}

.contact-icon { display: none; } /* Hide old icons */

.form-success {
  display: none;
  text-align: center;
  padding: 50px 40px;
  border: 1px solid var(--gold);
  margin-top: 30px;
  background: rgba(10,10,10,0.8);
  backdrop-filter: blur(5px);
}
.form-success.visible { display: block; }
.form-success h3 { margin: 20px 0 10px; color: var(--gold); font-family: var(--font-display); letter-spacing: 2px; }
.form-success p { color: var(--text-secondary); }

/* --- Footer --- */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-subtle);
}

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-slogan {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-nav h4, .footer-contact h4 {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 30px;
}

.footer-nav a {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 15px;
  transition: color var(--transition-fast);
}

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

.footer-contact p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* --- Project Modal (Frosted Glass) --- */
.project-modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* Crucial step: Prevent lingering clicks */
  transition: all var(--transition-smooth);
}

.project-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.95); /* Solid dark instead of expensive blur for better performance */
}

.modal-container {
  position: relative;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  pointer-events: none; /* Let empty space clicks fall through to overlay */
}

.modal-header {
  padding: 40px var(--container-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  pointer-events: auto;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.modal-subtitle {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
}

.modal-controls {
  display: flex;
  gap: 20px;
}

.modal-btn {
  width: 50px; height: 50px;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.modal-btn:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.modal-body {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0 60px;
}

/* Catalogue Page Flip Overrides */
.flipbook-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: 100%;
  height: 70vh; /* Extremely important: Must give parent explicit height for pageflip calculate bounds */
}

.flipbook-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Removed heavy box-shadow to improve animation performance */
}

.flip-arrow {
  width: 60px; height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all var(--transition-smooth);
  pointer-events: auto;
}

.flip-arrow:hover:not(:disabled) {
  border-color: var(--text-primary);
  color: var(--text-primary);
  transform: scale(1.1);
}

.flip-arrow:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

/* Base Page Styles for Flipbook */
.page {
  background: var(--bg-secondary);
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.5); /* Inner shadow for page depth */
}

.page-cover {
  width: 100%; height: 100%;
  object-fit: cover;
}

.page-content {
  padding: 60px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-title {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--text-primary);
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
}

/* --- Page Info (Neo-Classical Luxury) --- */
.page-info {
  background-color: var(--bg-surface);
  /* Neo-classical subtle geometric pattern */
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 3.333l16.667 16.667L20 36.667 3.333 20 20 3.333zm0 2.357L5.69 20 20 34.31 34.31 20 20 5.69z' fill='%23c9a96e' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E"), radial-gradient(circle at center, rgba(30,30,30,1) 0%, rgba(10,10,10,1) 100%);
  background-size: 80px 80px, cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

.info-content-wrapper {
  border: 1px solid rgba(201, 169, 110, 0.2);
  padding: 40px 30px;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  width: 100%;
  max-width: 400px;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Corner Ornaments */
.info-content-wrapper::before, .info-content-wrapper::after {
  content: '';
  position: absolute;
  width: 15px; height: 15px;
  border: 1px solid var(--gold);
}
.info-content-wrapper::before { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.info-content-wrapper::after { bottom: 10px; right: 10px; border-left: none; border-top: none; }

.info-title {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--gold);
  text-align: center;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0,0,0,1);
}

.info-divider {
  width: 60px;
  height: 1px;
  background: var(--gold-dim);
  margin: 0 auto 30px auto;
}

.info-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
  padding-bottom: 8px;
}

.info-lbl {
  color: var(--gold);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
}

.info-vlu {
  color: #fff;
  font-size: 13px;
  text-align: right;
  font-weight: 300;
  max-width: 60%;
}

.info-desc {
  margin-top: 30px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  text-align: justify;
  font-style: italic;
  font-weight: 300;
}

/* Thumbnails */
.flipbook-footer {
  margin-top: 40px;
  text-align: center;
}

.flip-pages {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--text-muted);
  pointer-events: auto;
}

.flipbook-thumbnails {
  display: flex;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
  overflow-x: auto;
  padding: 10px 0;
  pointer-events: auto;
  justify-content: center;
  scrollbar-width: thin;
}

.flipbook-thumbnails::-webkit-scrollbar {
  height: 4px;
}

.flipbook-thumbnails::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

.thumb-item {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0.4;
  transition: all var(--transition-smooth);
}

.thumb-item.active, .thumb-item:hover {
  opacity: 1;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  border: 1px solid var(--gold);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#flipbook {
  pointer-events: auto;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .portfolio-card:nth-child(even) { margin-top: 50px; }
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .footer-grid-compact { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 100px;
    --container-padding: 20px;
  }
  
  .hero-title { font-size: 40px; }
  .hero-cta { flex-direction: column; width: 100%; }
  
  .portfolio-grid { display: block; }
  .portfolio-card { margin-top: 0 !important; margin-bottom: 40px; }
  .portfolio-card-img { height: 400px; filter: grayscale(0%); }
  
  .footer-grid-compact { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
  
  .nav-links {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all var(--transition-smooth);
  }
  .nav-links.active { opacity: 1; visibility: visible; }
  .nav-toggle { display: flex; }
  
  .flipbook-wrapper { flex-direction: column; gap: 20px; }
  .flip-arrow { width: 40px; height: 40px; }
  .page-content { padding: 30px; }
}
