/* ==========================================================================
   Glamour Photos - Luxury Editorial CSS Design System
   ========================================================================== */

/* Imports */

/* CSS Variables */
:root {
  --primary: #0F0F0F;
  --secondary: #1A1A1A;
  --accent: #C9A86A;
  --accent-rgb: 201, 168, 106;
  --highlight: #FFFFFF;
  --text: #EAEAEA;
  --text-muted: #A0A0A0;
  --border: rgba(201, 168, 106, 0.15);
  --border-white: rgba(255, 255, 255, 0.08);
  --glass: rgba(26, 26, 26, 0.75);
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  
  --font-headings: 'Cormorant Garamond', serif;
  --font-body: 'Outfit', sans-serif;
  
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--primary);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  position: relative;
}

/* Native Cursor Removal for Custom Cursor on Desktop */
@media (pointer: fine) {
  body.custom-cursor-enabled,
  body.custom-cursor-enabled a,
  body.custom-cursor-enabled button,
  body.custom-cursor-enabled input,
  body.custom-cursor-enabled textarea,
  body.custom-cursor-enabled select,
  body.custom-cursor-enabled .interactive {
    cursor: none !important;
  }
}

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

p a:not([class]), .info-block a {
  color: var(--accent);
  border-bottom: 1px solid rgba(201, 168, 106, 0.25);
  padding-bottom: 1px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

p a:not([class]):hover, .info-block a:hover {
  color: var(--highlight);
  border-bottom-color: var(--highlight);
}

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

button, input, select, textarea {
  background: none;
  border: none;
  font-family: inherit;
  color: inherit;
  outline: none;
}

/* Navigation Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--secondary);
  min-width: 200px;
  box-shadow: var(--shadow);
  z-index: 1000;
  border-radius: 4px;
  top: 100%;
  left: 0;
  padding: 10px 0;
}

@media (min-width: 992px) {
  .dropdown:hover .dropdown-content {
    display: block;
  }
}

.dropdown-content li {
  display: block;
}

.dropdown-content li a {
  padding: 10px 20px;
  display: block;
  font-size: 0.9rem;
}

.dropdown-content li a:hover {
  background-color: rgba(201, 168, 106, 0.1);
  color: var(--accent);
}

::-webkit-scrollbar-track {
  background: var(--primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  color: var(--highlight);
  font-weight: 400;
  letter-spacing: 0.03em;
}

p {
  line-height: 1.6;
  font-weight: 300;
  color: var(--text-muted);
}

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

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

/* Custom Cursor Elements */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

#custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out, width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
}

/* Custom Cursor States */
#custom-cursor.hovered {
  width: 12px;
  height: 12px;
  background-color: var(--highlight);
}

#custom-cursor-ring.hovered {
  width: 56px;
  height: 56px;
  border-color: var(--highlight);
  background-color: rgba(255, 255, 255, 0.05);
}

#custom-cursor.drag {
  background-color: var(--accent);
}

#custom-cursor-ring.drag::after {
  content: '↔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--accent);
  font-size: 10px;
}

/* Disable Custom Cursor on Mobile/Touch Devices */
@media (pointer: coarse), (max-width: 1024px) {
  #custom-cursor,
  #custom-cursor-ring {
    display: none !important;
  }
}

/* Glassmorphism Styles */
.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-white);
  box-shadow: var(--shadow);
}

.glass-card {
  background: rgba(25, 25, 25, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(201, 168, 106, 0.1);
}

/* Preloader Screen */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--primary);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

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

.preloader-logo {
  font-family: var(--font-headings);
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  color: var(--highlight);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: revealText 1s forwards 0.2s;
}

.preloader-line-container {
  width: 180px;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.preloader-line {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: var(--accent);
  animation: preloaderProgress 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #ab8f56 100%);
  color: var(--primary);
  border: 1px solid var(--accent);
  box-shadow: 0 4px 15px rgba(201, 168, 106, 0.15);
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--highlight) 0%, #eaeaea 100%);
  color: var(--primary);
  border-color: var(--highlight);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(201, 168, 106, 0.35);
}

.btn-ghost {
  border: 1px solid var(--border-white);
  color: var(--highlight);
  background-color: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background-color: rgba(201, 168, 106, 0.08);
  color: var(--accent);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(201, 168, 106, 0.15);
}

.btn-link {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-link:hover {
  color: var(--highlight);
  transform: translateX(6px);
}

.btn-link:hover::after {
  width: 100%;
  background-color: var(--highlight);
}



/* Header & Navigation */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 25px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition-smooth);
}

header.site-header.scrolled {
  padding: 15px 50px;
  background-color: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-white);
}

.header-logo {
  font-family: var(--font-headings);
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  color: var(--highlight);
  transition: letter-spacing 0.4s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-logo:hover {
  letter-spacing: 0.08em;
  text-shadow: 0 0 15px rgba(201, 168, 106, 0.25);
}

.header-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding: 5px 0;
  display: inline-block;
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(-50%);
}

.nav-links a:hover {
  color: var(--highlight);
  transform: translateY(-2px);
}

.nav-links a.active {
  color: var(--highlight);
}

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

/* Sibling menu fade effect */
.nav-links:hover a:not(:hover) {
  opacity: 0.45;
  color: var(--text-muted);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
}

.mobile-menu-btn span {
  height: 2px;
  width: 100%;
  background-color: var(--highlight);
  transition: var(--transition-fast);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
  text-align: left;
  padding: 0 8%;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 0.1s ease-out; /* parallax smooth binding */
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 20%, var(--primary) 95%),
              linear-gradient(to bottom, rgba(15,15,15,0.4) 0%, rgba(15,15,15,0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  transform: translateY(30px);
  opacity: 0;
  animation: revealHero 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.8s;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.15;
  margin-bottom: 25px;
}

.hero-content p {
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  max-width: 650px;
  margin: 0 0 40px 0;
  color: var(--text);
  font-weight: 300;
}

.hero-ctas {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
}

/* Sections General */
section.section-padding {
  padding: 120px 8%;
  position: relative;
  border-bottom: 1px solid var(--border-white);
}

.section-header {
  max-width: 700px;
  margin-bottom: 60px;
}

.section-tag {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: 15px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  line-height: 1.2;
}

.instagram-handle-link {
  color: var(--accent);
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: inline-block;
}

.instagram-handle-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.instagram-handle-link:hover {
  color: var(--highlight);
}

.instagram-handle-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
  background-color: var(--highlight);
}

/* Portfolio Section */
.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 50px;
}

.filter-btn {
  padding: 10px 24px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  background-color: rgba(255, 255, 255, 0.01);
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--accent);
  border-color: var(--accent);
  background-color: rgba(201, 168, 106, 0.05);
}

/* Masonry Grid */
.portfolio-masonry {
  column-count: 3;
  column-gap: 24px;
  width: 100%;
}

.portfolio-item {
  break-inside: avoid;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border-white);
  background-color: var(--secondary);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translateY(30px);
  will-change: opacity, transform;
}

.portfolio-item.reveal-item {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-item.filtered-out {
  display: none;
}

.portfolio-img-wrapper {
  overflow: hidden;
  position: relative;
  aspect-ratio: 2/3; /* fallback for masonry vertical */
}

.portfolio-item.horizontal .portfolio-img-wrapper {
  aspect-ratio: 3/2;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform var(--transition-smooth);
}

.portfolio-item img.lazy-image {
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform var(--transition-smooth);
}

.portfolio-item img.lazy-image.image-loaded {
  opacity: 1;
}

.portfolio-item .passport-bg-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(15px);
  opacity: 0;
  transform: scale(1.1);
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item img.passport-bg-blur.image-loaded {
  opacity: 0.55;
}

.portfolio-item .passport-foreground {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 30%, rgba(15, 15, 15, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  opacity: 0;
  transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover img {
  transform: scale(1.08);
}

.portfolio-overlay h4 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.portfolio-overlay span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

/* Lightbox Modal */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 10, 0.98);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

#lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img-wrapper {
  position: relative;
  max-height: 75vh;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  border: 1px solid var(--border-white);
  border-radius: 4px;
  overflow: hidden;
}

.lightbox-bg-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(25px);
  opacity: 0.4;
  transform: scale(1.1);
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#lightbox-img {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#lightbox-img.loaded {
  opacity: 1;
}

.lightbox-details {
  margin-top: 15px;
  text-align: center;
  max-width: 600px;
}

.lightbox-details h3 {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.lightbox-details p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  width: 40px;
  height: 40px;
  font-size: 2rem;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--highlight);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(26,26,26,0.5);
  border-radius: 50%;
  transition: var(--transition-fast);
}

.lightbox-nav:hover {
  color: var(--highlight);
  background-color: var(--accent);
}

.lightbox-prev {
  left: 40px;
}

.lightbox-next {
  right: 40px;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.service-card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.service-card p {
  margin-bottom: 30px;
  font-size: 0.9rem;
}

/* Featured Stories */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.story-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border-white);
  height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 50px;
  transition: var(--transition-smooth);
}

.story-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: var(--transition-smooth);
}

.story-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(15,15,15,0.1) 0%, rgba(15,15,15,0.95) 100%);
  z-index: 1;
}

.story-content {
  position: relative;
  z-index: 2;
}

.story-card h3 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.story-card p {
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 25px;
  max-width: 80%;
}

.story-card:hover .story-bg {
  transform: scale(1.05);
}

/* Statistics Section */
.stats-section {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 40px;
  padding: 80px 8%;
  background-color: var(--secondary);
  border-bottom: 1px solid var(--border-white);
}

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

.stat-number {
  font-family: var(--font-headings);
  font-size: clamp(3rem, 5vw, 5rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}

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

/* Testimonials Carousel */
.testimonials-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 20px 0;
}

.testimonials-track {
  display: flex;
  gap: 30px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: grab;
}

.testimonials-track:active {
  cursor: grabbing;
}

.testimonial-card {
  min-width: 450px;
  width: 450px;
  padding: 40px;
  border-radius: 12px;
  flex-shrink: 0;
}

.testimonial-quote {
  font-family: var(--font-headings);
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 30px;
  font-style: italic;
}

.testimonial-client {
  display: flex;
  align-items: center;
  gap: 15px;
}

.client-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(201, 168, 106, 0.15);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.client-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--highlight);
}

.client-location {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
}

.testimonial-arrow {
  width: 45px;
  height: 45px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.testimonial-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
  background-color: rgba(201,168,106,0.05);
}

/* Instagram Feed Grid */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}

.instagram-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--border-white);
}

.instagram-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.instagram-item:hover img {
  transform: scale(1.08);
}

.instagram-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15,15,15,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  color: var(--accent);
  font-size: 1.5rem;
  transition: var(--transition-fast);
}

.instagram-item:hover .instagram-hover {
  opacity: 1;
}

/* Contact and Booking Section */
.contact-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
}

.contact-form-panel {
  padding: 50px;
  border-radius: 16px;
}

.contact-form-panel h3 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.contact-form-panel p {
  margin-bottom: 40px;
}

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

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

.form-input {
  width: 100%;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-white);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  color: var(--highlight);
}

.form-label {
  position: absolute;
  top: 12px;
  left: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition-fast);
}

/* Floating label effect on focus */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -12px;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.form-input:focus {
  border-bottom-color: var(--accent);
}

.form-select {
  width: 100%;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-white);
  font-size: 0.95rem;
  color: var(--text-muted);
  background: none;
  border-radius: 0;
  transition: var(--transition-fast);
}

.form-select:focus {
  border-bottom-color: var(--accent);
  color: var(--highlight);
}

.form-select option {
  background-color: var(--secondary);
  color: var(--text);
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.info-block {
  margin-bottom: 35px;
}

.info-block h4 {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.info-block p, .info-block a {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
}

.map-wrapper {
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 20px;
}

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

/* Footer */
footer.site-footer {
  background-color: #080808;
  padding: 80px 8% 40px 8%;
  border-top: 1px solid var(--border-white);
}

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

.footer-brand h3 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 320px;
  margin-bottom: 25px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-white);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              color 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-icon::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: var(--accent);
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.social-icon:hover {
  border-color: var(--accent);
  color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(201, 168, 106, 0.3);
}

.social-icon:hover::before {
  height: 100%;
}

.footer-links h4 {
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

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

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0;
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-links a::before {
  content: '→';
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 0;
  width: 0;
  display: inline-block;
  transform: translateX(-8px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-links a:hover {
  color: var(--highlight);
  transform: translateX(6px);
}

.footer-links a:hover::before {
  opacity: 1;
  width: 12px;
  transform: translateX(0);
}

.footer-bottom {
  border-top: 1px solid var(--border-white);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Animations declarations */
@keyframes revealText {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes preloaderProgress {
  to {
    width: 100%;
  }
}

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

/* Scroll reveal classes */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
  .portfolio-masonry {
    column-count: 2;
  }
  .instagram-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 991px) {
  header.site-header {
    padding: 20px 30px;
  }
  
  header.site-header.scrolled {
    padding: 12px 30px;
  }
  
  body.mobile-nav-active {
    overflow: hidden;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.98) 0%, rgba(18, 18, 18, 0.99) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    justify-content: flex-start;
    align-items: center;
    z-index: 998;
    gap: 20px; /* consistent vertical spacing */
    padding: 130px 30px 40px 30px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.03) translateY(-15px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.5s;
    pointer-events: none;
    overflow-y: auto;
  }
  
  .mobile-nav-active .nav-links {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    pointer-events: auto;
  }

  .nav-links > li {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    max-width: 290px;
    text-align: center;
    display: block;
  }
  
  .mobile-nav-active .nav-links > li {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .mobile-nav-active .nav-links > li:nth-child(1) { transition-delay: 0.08s; }
  .mobile-nav-active .nav-links > li:nth-child(2) { transition-delay: 0.12s; }
  .mobile-nav-active .nav-links > li:nth-child(3) { transition-delay: 0.16s; }
  .mobile-nav-active .nav-links > li:nth-child(4) { transition-delay: 0.2s; }
  .mobile-nav-active .nav-links > li:nth-child(5) { transition-delay: 0.24s; }
  .mobile-nav-active .nav-links > li:nth-child(6) { transition-delay: 0.28s; }

  .mobile-nav-active .nav-links a {
    font-family: var(--font-headings);
    font-size: 1.35rem !important;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 10px 24px;
    display: block;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 30px;
    position: relative;
    border: 1px solid transparent;
    box-sizing: border-box;
  }
  
  .mobile-nav-active .nav-links a::after {
    display: none !important;
  }

  .mobile-nav-active .nav-links a:hover,
  .mobile-nav-active .nav-links a:active {
    color: var(--accent) !important;
    background: rgba(201, 168, 106, 0.06);
    transform: scale(1.02);
  }
  
  .mobile-nav-active .nav-links a.active {
    color: var(--accent) !important;
    font-weight: 600;
    background: rgba(201, 168, 106, 0.08);
    border: 1px solid rgba(201, 168, 106, 0.15);
  }

  .nav-links .dropdown {
    position: relative;
  }

  .mobile-nav-active .nav-links .dropdown > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    margin: 0 auto;
  }
  
  .mobile-nav-active .nav-links .dropdown > a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-bottom: 3px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: static;
    background: none;
  }
  
  .mobile-nav-active .nav-links .dropdown.active > a::after {
    transform: rotate(-135deg);
    margin-bottom: -1px;
  }

  /* Mobile Dropdown Styling & Highlight */
  .nav-links .dropdown.active > a {
    color: var(--accent) !important;
    background: rgba(201, 168, 106, 0.05);
    border-color: rgba(201, 168, 106, 0.1);
  }

  .nav-links .dropdown-content {
    position: relative;
    top: 0; /* override global top: 100% */
    display: block; /* always block for transition */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    transform: scale(0.98);
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.4s,
                padding 0.4s,
                border 0.4s,
                box-shadow 0.4s;
    
    background: rgba(20, 20, 20, 0.85); /* luxury matte-black */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 0 12px;
    width: 290px;
    max-width: 90vw;
    margin: 10px auto 0 auto;
    box-sizing: border-box;
    z-index: 1009;
  }
  
  .nav-links .dropdown.active .dropdown-content {
    max-height: 280px;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    padding: 10px 12px;
    border: 1px solid rgba(201, 168, 106, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(201, 168, 106, 0.08);
  }
  
  .nav-links .dropdown-content li {
    width: 100%;
    margin-bottom: 4px;
    display: block;
  }
  
  .nav-links .dropdown-content li:last-child {
    margin-bottom: 0;
  }
  
  .nav-links .dropdown-content li a {
    font-family: var(--font-body);
    font-size: 0.9rem !important;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: none;
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 12px 16px; /* Generous touch target */
    width: 100%;
    text-align: center;
    border-radius: 8px;
    background: transparent !important;
    border: 1px solid transparent;
    box-shadow: none !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
    box-sizing: border-box;
    white-space: nowrap; /* prevent text wrapping */
  }
  
  .nav-links .dropdown-content li a:hover,
  .nav-links .dropdown-content li a:active {
    color: var(--accent) !important;
    background: rgba(201, 168, 106, 0.08) !important;
    border: 1px solid rgba(201, 168, 106, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-1px);
  }
  
  .header-cta-btn {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .mobile-nav-active .mobile-menu-btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .mobile-nav-active .mobile-menu-btn span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-nav-active .mobile-menu-btn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .stories-grid {
    grid-template-columns: 1fr;
  }
  
  .story-card {
    height: 400px;
    padding: 30px;
  }
  
  .story-card h3 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .portfolio-masonry {
    column-count: 1;
  }
  
  .instagram-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .testimonial-card {
    min-width: 320px;
    width: 320px;
    padding: 25px;
  }
  
  .contact-form-panel {
    padding: 30px 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  footer.site-footer {
    padding: 60px 5% 30px 5%;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-ctas {
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
  }
  
  .btn {
    width: 100%;
  }
}

/* Home Page Enhancements */
.welcome-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.welcome-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}
.welcome-feat {
  display: flex;
  gap: 15px;
}
.welcome-feat .feat-icon {
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
}
.welcome-feat h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.welcome-feat p {
  font-size: 0.85rem;
}
.overlapping-wrapper {
  position: relative;
  height: 480px;
  width: 100%;
}
.overlap-img {
  position: absolute;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-white);
  box-shadow: var(--shadow);
  transition: transform 0.5s ease;
}
.overlap-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-back {
  width: 65%;
  height: 380px;
  top: 0;
  left: 0;
  z-index: 1;
}
.img-front {
  width: 55%;
  height: 320px;
  bottom: 0;
  right: 0;
  z-index: 2;
  border-color: var(--accent);
}
.overlapping-wrapper:hover .img-back {
  transform: translate(-10px, -10px) scale(1.02);
}
.overlapping-wrapper:hover .img-front {
  transform: translate(10px, 10px) scale(1.02);
}

/* Specialties Section */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}
.spec-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 12px;
}
.spec-img-wrapper {
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
}
.spec-img-wrapper.landscape {
  aspect-ratio: 4 / 3;
}
.spec-img-wrapper.portrait {
  aspect-ratio: 3 / 4;
}
.spec-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}
.spec-card:hover .spec-img-wrapper img {
  transform: scale(1.08);
}
.spec-info {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.spec-info h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.spec-info p {
  font-size: 0.9rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

@media (max-width: 991px) {
  .welcome-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .overlapping-wrapper {
    height: 400px;
  }
}

/* Awards Section Styling */
.awards-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  margin-top: 50px;
  align-items: center;
}

.award-featured {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 50px;
  position: relative;
  overflow: hidden;
}

.award-featured::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(201, 168, 106, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.award-badge-wrapper {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.award-placeholder-badge {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px dashed var(--accent);
  background: rgba(201, 168, 106, 0.03);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: var(--transition-smooth);
}

.award-featured:hover .award-placeholder-badge {
  transform: scale(1.05) rotate(15deg);
  border-style: solid;
  box-shadow: 0 0 30px rgba(201, 168, 106, 0.2);
}

.gold-seal {
  font-size: 3rem;
  color: var(--accent);
  text-shadow: 0 0 15px rgba(201, 168, 106, 0.6);
}

.award-featured-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.award-year {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 600;
}

.award-featured-details h3 {
  font-size: 2.2rem;
  line-height: 1.2;
}

.award-issuer {
  font-size: 0.95rem;
  color: var(--highlight);
  font-family: var(--font-body);
  font-weight: 500;
}

.award-description {
  font-size: 0.9rem;
  line-height: 1.7;
}

.awards-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.award-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: rgba(26, 26, 26, 0.2);
  border: 1px solid var(--border-white);
  border-radius: 8px;
  transition: var(--transition-fast);
}

.award-item:hover {
  border-color: var(--accent);
  background: rgba(201, 168, 106, 0.03);
  transform: translateX(5px);
}

.award-item-icon {
  color: var(--accent);
  font-size: 1.2rem;
  margin-top: 2px;
}

.award-item-text h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  font-family: var(--font-body);
  font-weight: 500;
}

.award-item-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive Awards */
@media (max-width: 992px) {
  .awards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .award-featured {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }
}

/* Service Category Layouts */
.services-categories-container {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 50px;
}

.category-card {
  flex: 1;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 550px;
}

.category-card-header {
  margin-bottom: 30px;
}

.category-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: var(--accent);
  font-size: 1.8rem;
  margin-bottom: 25px;
  background: rgba(201, 168, 106, 0.03);
  transition: var(--transition-smooth);
}

.category-card:hover .category-icon {
  transform: scale(1.1) rotate(10deg);
  background-color: var(--accent);
  color: var(--primary);
  box-shadow: 0 0 25px rgba(201, 168, 106, 0.3);
}

.category-card h3 {
  font-size: 2.2rem;
  margin-bottom: 12px;
  font-family: var(--font-headings);
}

.category-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
}

/* 2-column grid of services inside the card */
.services-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.service-item-bullet {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text);
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-white);
  border-radius: 6px;
  transition: var(--transition-fast);
}

.service-item-bullet:hover {
  border-color: var(--accent);
  background: rgba(201, 168, 106, 0.04);
  transform: translateX(4px);
}

.service-item-bullet span.bullet-star {
  color: var(--accent);
  font-size: 0.9rem;
}

/* Category card CTA button */
.category-card .btn-accent {
  width: 100%;
  text-align: center;
  border-radius: 6px;
  padding: 16px;
}

/* Responsive Overrides for Services page categories */
@media (max-width: 1024px) {
  .services-categories-container {
    flex-direction: column;
    gap: 30px;
  }
  .category-card {
    min-height: auto;
  }
}

@media (max-width: 600px) {
  .services-list-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .category-card {
    padding: 35px 25px;
  }
}

/* Service Detail Page Layouts */
.page-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-detail-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(25, 25, 25, 0.4);
  transition: var(--transition-smooth);
}

.service-detail-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(201, 168, 106, 0.1);
}

.service-detail-img-wrapper {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.service-detail-img-wrapper:has(img[src=""]) {
  display: none;
}

.service-detail-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: var(--transition-smooth);
}

.service-detail-card:hover .service-detail-img-wrapper img {
  transform: scale(1.08);
}

.service-detail-info {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.service-detail-info h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  font-family: var(--font-headings);
  color: var(--highlight);
}

.service-detail-info p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 25px;
  flex-grow: 1;
}

.service-detail-info .btn-accent {
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  border-radius: 6px;
  font-size: 0.85rem;
}

/* Portfolio Infinite Scroll Loading Indicator */
.portfolio-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 0;
  width: 100%;
}

.portfolio-loading span {
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.05);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spinnerRotate 0.8s linear infinite;
}

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

/* ==========================================================================
   7. Reusable Custom Gallery Component Styles
   ========================================================================== */

.custom-gallery {
  width: 100%;
  position: relative;
}

.gallery-masonry {
  column-count: 3;
  column-gap: 24px;
  width: 100%;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border-white);
  background-color: var(--secondary);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translateY(30px);
  will-change: opacity, transform;
  cursor: pointer;
}

.gallery-item.reveal-item {
  opacity: 1;
  transform: translateY(0);
}

.gallery-img-wrapper {
  overflow: hidden;
  position: relative;
  background-color: rgba(255, 255, 255, 0.02);
}

.gallery-item.vertical .gallery-img-wrapper {
  aspect-ratio: 2/3;
}

.gallery-item.horizontal .gallery-img-wrapper {
  aspect-ratio: 3/2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform var(--transition-smooth);
}

.gallery-item img.lazy-image {
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item img.lazy-image.image-loaded {
  opacity: 1;
}

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

/* Skeleton Loading Effect */
.gallery-skeleton {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.01) 25%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.01) 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.6s infinite linear;
}

@keyframes skeletonPulse {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.gallery-item img.image-loaded + .gallery-skeleton {
  display: none;
}

/* Gallery Hover Overlay */
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 30%, rgba(15, 15, 15, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 2;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  font-size: 1.3rem;
  margin-bottom: 4px;
  color: var(--highlight);
  font-family: var(--font-headings);
}

.gallery-overlay span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

/* Infinite Scroll Loading */
.gallery-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 0;
  width: 100%;
  clear: both;
}

.gallery-loading span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Lightbox Modal Override/Addition */
.gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(8, 8, 8, 0.98);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.gallery-lightbox .lightbox-content {
  max-width: 90%;
  max-height: 80%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-lightbox .lightbox-img-wrapper {
  position: relative;
  max-height: 70vh;
  box-shadow: 0 20px 50px rgba(0,0,0,0.9);
  border: 1px solid var(--border-white);
  border-radius: 6px;
  overflow: hidden;
  background-color: rgba(0,0,0,0.2);
}

.gallery-lightbox img {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-lightbox img.loaded {
  opacity: 1;
}

.gallery-lightbox .lightbox-details {
  margin-top: 20px;
  text-align: center;
  max-width: 650px;
}

.gallery-lightbox .lightbox-details h3 {
  font-size: 1.6rem;
  margin-bottom: 6px;
  color: var(--highlight);
  font-family: var(--font-headings);
}

.gallery-lightbox .lightbox-details p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.gallery-lightbox .lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  width: 44px;
  height: 44px;
  font-size: 2.2rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-fast);
  z-index: 10010;
}

.gallery-lightbox .lightbox-close:hover {
  color: var(--highlight);
  transform: rotate(90deg);
}

.gallery-lightbox .lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 1.3rem;
  color: var(--text-muted);
  background-color: rgba(26,26,26,0.6);
  border: 1px solid var(--border-white);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-fast);
  z-index: 10010;
}

.gallery-lightbox .lightbox-nav:hover {
  color: var(--highlight);
  background-color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(201, 168, 106, 0.4);
}

.gallery-lightbox .lightbox-prev {
  left: 40px;
}

.gallery-lightbox .lightbox-next {
  right: 40px;
}

/* Responsive Custom Gallery */
@media (max-width: 992px) {
  .gallery-masonry {
    column-count: 2;
  }
  .gallery-lightbox .lightbox-prev {
    left: 20px;
  }
  .gallery-lightbox .lightbox-next {
    right: 20px;
  }
}

@media (max-width: 576px) {
  .gallery-masonry {
    column-count: 1;
  }
  .gallery-lightbox .lightbox-content {
    max-width: 95%;
  }
  .gallery-lightbox .lightbox-nav {
    display: none; /* Hide navigation buttons on mobile to encourage swipe guestures */
  }
  .gallery-lightbox .lightbox-close {
    top: 20px;
    right: 20px;
  }
}

/* Custom Cropping for Images with Baked-In White Borders */
.gallery-img-wrapper.crop-borders {
  overflow: hidden;
}
.gallery-img-wrapper.crop-borders img.crop-borders {
  transform: scale(var(--crop-scale, 1.6)) !important;
}
.gallery-img-wrapper.crop-borders:hover img.crop-borders {
  transform: scale(calc(var(--crop-scale, 1.6) * 1.05)) !important;
}

.gallery-lightbox .lightbox-img-wrapper.crop-borders {
  overflow: hidden;
}
.gallery-lightbox img.crop-borders {
  transform: scale(var(--crop-scale, 1.6)) !important;
}


/* ==========================================================================
   Cookie Consent Banner (Google Ads Compliance)
   ========================================================================== */
#cookie-consent-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 500px;
  background: var(--secondary);
  border: 1px solid var(--accent);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(120%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
}

#cookie-consent-banner.show {
  transform: translateY(0);
}

#cookie-consent-banner h3 {
  font-family: var(--font-headings);
  color: var(--highlight);
  font-size: 1.4rem;
  margin: 0;
}

#cookie-consent-banner p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

#cookie-consent-banner p a {
  color: var(--accent);
  text-decoration: underline;
  transition: var(--transition-fast);
}

#cookie-consent-banner p a:hover {
  color: var(--highlight);
}

.cookie-btn-container {
  display: flex;
  gap: 12px;
}

.cookie-btn {
  padding: 10px 20px;
  font-size: 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-fast);
  font-family: var(--font-body);
}

.cookie-btn-accept {
  background-color: var(--accent);
  color: var(--primary);
  border: 1px solid var(--accent);
}

.cookie-btn-accept:hover {
  background-color: transparent;
  color: var(--accent);
}

.cookie-btn-decline {
  background-color: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-btn-decline:hover {
  color: var(--highlight);
  border-color: var(--highlight);
}

@media (max-width: 576px) {
  #cookie-consent-banner {
    bottom: 16px;
    left: 16px;
    right: 16px;
    padding: 16px;
  }
}

