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

/* ==========================================
   DESIGN SYSTEM VARIABLES
   ========================================== */
:root {
  /* Colors */
  --gold-primary: #C5A880;
  --gold-dark: #A3845B;
  --gold-light: #E2D4C0;
  --gold-glowing: rgba(197, 168, 128, 0.4);
  
  --bg-cream: #0F0F0F;
  --bg-white: #161616;
  --bg-dark: #0A0A0A;
  --bg-dark-card: #1D1D1D;
  
  --text-dark-primary: #FFFFFF;
  --text-dark-secondary: #CCCCCC;
  --text-dark-muted: #888888;
  --text-light-primary: #FFFFFF;
  --text-light-secondary: #E0E0E0;
  
  --color-terracotta: #B95C38;
  --color-sapphire: #1B365D;
  
  /* Fonts */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Outfit', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.25s ease;
  --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Glassmorphism */
  --glass-bg-dark: rgba(24, 24, 24, 0.7);
  --glass-bg-light: rgba(18, 18, 18, 0.8);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(20px);
}

/* ==========================================
   BASE RESET & GLOBAL STYLES
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background-color: var(--bg-cream);
  color: var(--text-dark-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-cream);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* Selection Color */
::selection {
  background-color: var(--gold-primary);
  color: var(--bg-dark);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
}

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

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

/* ==========================================
   COMMON LAYOUTS & UTILITIES
   ========================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
}

/* Dynamic Underline Button */
.btn-underline {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  padding: 8px 0;
  color: var(--text-dark-primary);
  cursor: pointer;
}

.btn-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--gold-primary);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.btn-underline:hover::after {
  transform: scaleX(1);
}

.btn-underline span {
  transition: var(--transition-smooth);
}

.btn-underline:hover span {
  transform: translateX(6px);
}

/* Main Luxury CTA Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-dark);
  color: var(--text-light-primary);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 36px;
  border: 1px solid var(--bg-dark);
  border-radius: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: var(--transition-smooth);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--gold-primary);
  transform: translateY(100%);
  transition: var(--transition-smooth);
  z-index: -1;
}

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

.btn-primary:hover::before {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--text-dark-primary);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 15px 35px;
  border: 1px solid var(--text-dark-primary);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: var(--transition-smooth);
}

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

.btn-secondary:hover {
  color: var(--bg-cream);
}

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

/* Badges */
.badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--gold-dark);
  border: 1px solid rgba(197, 168, 128, 0.4);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
  background-color: rgba(197, 168, 128, 0.05);
}

/* Sections Header */
.section-header {
  margin-bottom: 60px;
  max-width: 600px;
}

.section-header h2 {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-dark-secondary);
  font-size: 1.05rem;
}

@media (max-width: 768px) {
  .section-header h2 {
    font-size: 2.2rem;
  }
}

/* ==========================================
   NAVIGATION
   ========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: var(--transition-smooth);
  padding: 16px 0;
}

.header.scrolled {
  padding: 12px 0;
  background-color: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 768px) {
  .header {
    padding: 30px 0;
  }
  .header.scrolled {
    padding: 15px 0;
  }
  .logo {
    font-size: 1.7rem;
  }
}

.logo-dot {
  width: 6px;
  height: 6px;
  background-color: var(--gold-primary);
  border-radius: 50%;
}

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

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--gold-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: var(--transition-fast);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-desktop .btn-nav {
  padding: 10px 24px;
  font-size: 0.8rem;
}

/* Burger Button */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 102;
}

.burger-line {
  width: 100%;
  height: 2px;
  background-color: var(--text-dark-primary);
  transition: var(--transition-fast);
  transform-origin: center;
}

/* Active Burger */
.burger-btn.active .burger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger-btn.active .burger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.burger-btn.active .burger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation Menu */
.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-dark);
  z-index: 101;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  transition: var(--transition-smooth);
  opacity: 0;
}

.nav-mobile.active {
  right: 0;
  opacity: 1;
}

.nav-mobile .nav-link {
  color: var(--text-light-primary);
  font-size: 1.5rem;
  font-family: var(--font-serif);
  letter-spacing: 3px;
  transform: translateY(30px);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.nav-mobile.active .nav-link {
  transform: translateY(0);
  opacity: 1;
}

/* Stagger Nav Links Reveal on Mobile */
.nav-mobile.active .nav-link:nth-child(1) { transition-delay: 0.1s; }
.nav-mobile.active .nav-link:nth-child(2) { transition-delay: 0.2s; }
.nav-mobile.active .nav-link:nth-child(3) { transition-delay: 0.3s; }
.nav-mobile.active .nav-link:nth-child(4) { transition-delay: 0.4s; }
.nav-mobile.active .nav-link:nth-child(5) { transition-delay: 0.5s; }
.nav-mobile.active .nav-link:nth-child(6) { transition-delay: 0.6s; }

@media (max-width: 991px) {
  .nav-desktop {
    display: none;
  }
  
  .burger-btn {
    display: flex;
  }
}

/* ==========================================
   HERO / LANDING HERO
   ========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 0 60px 0;
}

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

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
  transition: transform 6s ease;
}

.hero-slide.active .hero-slide-img {
  transform: scale(1.0);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.85) 100%);
  z-index: 2;
}

.hero-content-wrapper {
  position: relative;
  z-index: 3;
  width: 100%;
  color: var(--text-light-primary);
  margin-top: 0;
  padding-top: 20px;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 12px;
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
  transition-delay: 0.1s;
}

.hero-title {
  font-size: 2.2rem;
  max-width: 100%;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
  transition-delay: 0.3s;
}

.hero-desc {
  max-width: 100%;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-light-secondary);
  margin-bottom: 30px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
  transition-delay: 0.5s;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
  transition-delay: 0.7s;
}

.hero-ctas .btn-primary,
.hero-ctas .btn-secondary {
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  font-size: 0.85rem;
}

.hero-ctas .btn-secondary {
  border-color: var(--text-light-primary);
  color: var(--text-light-primary);
}

.hero-ctas .btn-secondary:hover {
  color: var(--bg-dark);
}

.hero-ctas .btn-secondary::before {
  background-color: var(--text-light-primary);
}

.hero.active .hero-title,
.hero.active .hero-subtitle,
.hero.active .hero-desc,
.hero.active .hero-ctas {
  opacity: 1;
  transform: translateY(0);
}

/* Stats Badge (Mobile-First Setup) */
.hero-stats-badge {
  position: relative;
  margin: 40px auto 0 auto;
  bottom: auto;
  right: auto;
  z-index: 3;
  background-color: rgba(15, 15, 15, 0.55);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 15px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: calc(100% - 48px);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
  transition-delay: 0.9s;
}

.hero.active .hero-stats-badge {
  opacity: 1;
  transform: translateY(0);
}

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

.hero-stat-number {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--gold-primary);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 0.55rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light-secondary);
}

/* Progressive Enhancements (Hero Layout) */
@media (min-width: 576px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-subtitle {
    font-size: 1rem;
    letter-spacing: 3px;
  }
  .hero-ctas {
    flex-direction: row;
    justify-content: flex-start;
    gap: 16px;
  }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    width: auto;
  }
  .hero-stats-badge {
    padding: 24px 30px;
    gap: 20px;
    width: calc(100% - 48px);
  }
  .hero-stat-number {
    font-size: 2rem;
  }
  .hero-stat-label {
    font-size: 0.6rem;
    letter-spacing: 2px;
  }
}

@media (min-width: 992px) {
  .hero {
    height: 100vh;
    min-height: auto;
    padding: 0;
    flex-direction: row;
    align-items: center;
  }
  .hero-overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.75) 30%, rgba(0, 0, 0, 0.3) 100%);
  }
  .hero-content-wrapper {
    padding-top: 0;
    margin-top: 50px;
  }
  .hero-title {
    font-size: 4.8rem;
    max-width: 800px;
    line-height: 1.1;
    margin-bottom: 24px;
  }
  .hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 4px;
    margin-bottom: 16px;
  }
  .hero-desc {
    max-width: 500px;
    font-size: 1.1rem;
    margin-bottom: 40px;
  }
  .hero-stats-badge {
    position: absolute;
    bottom: 50px;
    right: 50px;
    margin: 0;
    width: auto;
    display: flex;
    gap: 30px;
    padding: 24px 36px;
    background-color: rgba(15, 15, 15, 0.6);
  }
  .hero-stat-number {
    font-size: 2.2rem;
  }
  .hero-stat-label {
    font-size: 0.65rem;
  }
}

/* ==========================================
   SCROLL REVEAL STYLING
   ========================================== */
.reveal-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* ==========================================
   ABOUT / HERITAGE & INNOVATION
   ========================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.about-img-wrapper {
  position: relative;
  padding: 20px;
}

.about-img-main {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: 12px 12px 0 var(--gold-primary);
}

.about-img-stamp {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background-color: var(--bg-dark);
  color: var(--text-light-primary);
  padding: 20px;
  max-width: 160px;
  text-align: center;
  border: 1px solid var(--gold-primary);
  z-index: 2;
}

.stamp-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold-primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stamp-desc {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light-secondary);
}

.about-content h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.about-highlight {
  font-size: 1.15rem;
  color: var(--gold-dark);
  font-family: var(--font-serif);
  font-style: italic;
  margin-bottom: 20px;
  border-left: 2px solid var(--gold-primary);
  padding-left: 15px;
}

.about-text {
  color: var(--text-dark-secondary);
  margin-bottom: 24px;
}

.about-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.metric-item h4 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.metric-item p {
  font-size: 0.85rem;
  color: var(--text-dark-secondary);
}

/* Progressive Enhancements (About) */
@media (min-width: 768px) {
  .about-img-main {
    height: 450px;
    box-shadow: 16px 16px 0 var(--gold-primary);
  }
  .about-img-stamp {
    bottom: -30px;
    right: -30px;
    padding: 30px;
    max-width: 200px;
  }
  .stamp-title {
    font-size: 1.6rem;
  }
  .stamp-desc {
    font-size: 0.65rem;
    letter-spacing: 2px;
  }
  .about-content h2 {
    font-size: 2.8rem;
  }
  .about-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
  .about-img-main {
    height: 550px;
    box-shadow: 20px 20px 0 var(--gold-primary);
  }
  .about-content h2 {
    font-size: 3.2rem;
  }
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services {
  background-color: var(--bg-white);
}

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

.service-card {
  background-color: var(--bg-cream);
  padding: 40px 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--gold-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 24px;
  color: var(--gold-primary);
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-title {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.service-desc {
  color: var(--text-dark-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* Progressive Enhancements (Services) */
@media (min-width: 768px) {
  .service-card {
    padding: 50px 40px;
  }
  .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  }
  .service-title {
    font-size: 1.8rem;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

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

.filter-btn {
  background-color: transparent;
  border: none;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 24px;
  cursor: pointer;
  position: relative;
  color: var(--text-dark-secondary);
  transition: var(--transition-fast);
}

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

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

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

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

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

.portfolio-item {
  position: relative;
  height: 320px;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Filter Hide/Show transitions */
.portfolio-item.hidden {
  opacity: 0;
  transform: scale(0.8) translateY(30px);
  pointer-events: none;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: none;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 15, 15, 0.9) 10%, rgba(15, 15, 15, 0.2) 70%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 1; /* Keep visible on touch screens by default, elegant gradient overlay */
  transition: var(--transition-smooth);
}

.portfolio-category {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 6px;
  transition: var(--transition-smooth);
}

.portfolio-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text-light-primary);
  margin-bottom: 8px;
  transition: var(--transition-smooth);
}

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

/* Progressive Enhancements (Portfolio) */
@media (min-width: 576px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .portfolio-item {
    height: 350px;
  }
}

@media (min-width: 768px) {
  .portfolio-overlay {
    padding: 30px;
    opacity: 0; /* Hide on larger viewports to allow hover trigger */
  }
  .portfolio-category,
  .portfolio-title {
    transform: translateY(20px);
  }
  .portfolio-item:hover .portfolio-overlay {
    opacity: 1;
  }
  .portfolio-item:hover .portfolio-category,
  .portfolio-item:hover .portfolio-title {
    transform: translateY(0);
  }
}

@media (min-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
  .portfolio-item {
    height: 450px;
  }
  .portfolio-overlay {
    padding: 40px;
  }
  .portfolio-title {
    font-size: 1.8rem;
  }
  .portfolio-item:hover .portfolio-img {
    transform: scale(1.08);
  }
}

/* ==========================================
   THE CRAFTING PROCESS
   ========================================== */
.process {
  background-color: var(--bg-white);
  position: relative;
}

.process-timeline {
  position: relative;
  max-width: 900px;
  margin: 60px auto 0 auto;
}

/* Central vertical bar */
.process-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background-color: rgba(197, 168, 128, 0.2);
  transform: translateX(-50%);
}

/* Golden animated track overlay */
.timeline-progress {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 0;
  background-color: var(--gold-primary);
  transform: translateX(-50%);
  transition: height 1s ease;
  box-shadow: 0 0 10px var(--gold-glowing);
}

.process-step {
  display: flex;
  margin-bottom: 80px;
  position: relative;
  width: 100%;
}

.process-step:last-child {
  margin-bottom: 0;
}

.process-step-node {
  position: absolute;
  top: 0;
  left: 50%;
  width: 40px;
  height: 40px;
  background-color: var(--bg-white);
  border: 2px solid rgba(197, 168, 128, 0.3);
  border-radius: 50%;
  transform: translate(-50%, 0);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--text-dark-primary);
  transition: var(--transition-bounce);
}

.process-step.in-view .process-step-node {
  border-color: var(--gold-primary);
  background-color: var(--bg-dark);
  color: var(--text-light-primary);
  box-shadow: 0 0 15px var(--gold-glowing);
}

.process-step-content {
  width: 45%;
  position: relative;
  padding: 0 20px;
}

/* Odd steps on the left, even steps on the right */
.process-step:nth-child(odd) .process-step-content {
  text-align: right;
  margin-left: 0;
}

.process-step:nth-child(even) .process-step-content {
  text-align: left;
  margin-left: auto;
}

.process-step-num {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold-primary);
  margin-bottom: 6px;
}

.process-step-title {
  font-size: 1.9rem;
  margin-bottom: 12px;
}

.process-step-desc {
  color: var(--text-dark-secondary);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .process-timeline::before,
  .timeline-progress {
    left: 20px;
    transform: none;
  }
  
  .process-step {
    flex-direction: column;
    margin-bottom: 50px;
  }
  
  .process-step-node {
    left: 20px;
    transform: translate(-50%, 0);
  }
  
  .process-step-content {
    width: calc(100% - 40px);
    margin-left: 40px !important;
    text-align: left !important;
    padding: 0 10px;
  }
}

/* ==========================================
   CLIENT STORIES / TESTIMONIALS CAROUSEL
   ========================================== */
.testimonials {
  background-color: var(--bg-cream);
  overflow: hidden;
}

.testimonial-slider-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.testimonial-slide {
  min-width: 100%;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonial-slide.active {
  opacity: 1;
  transform: scale(1);
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  line-height: 1.4;
  color: var(--text-dark-primary);
  margin-bottom: 30px;
  max-width: 800px;
  position: relative;
}

.testimonial-quote::before {
  content: '“';
  font-size: 8rem;
  position: absolute;
  top: -60px;
  left: -20px;
  color: rgba(197, 168, 128, 0.12);
  font-family: var(--font-serif);
  z-index: -1;
}

.testimonial-client {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.client-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-primary);
}

.client-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.client-location {
  font-size: 0.75rem;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Dots Navigation */
.slider-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0;
}

.slider-dot.active {
  background-color: var(--gold-primary);
  transform: scale(1.5);
}

@media (max-width: 768px) {
  .testimonial-quote {
    font-size: 1.5rem;
  }
  
  .testimonial-quote::before {
    font-size: 5rem;
    top: -40px;
  }
}

/* ==========================================
   CONSULTATION BOOKING SECTION
   ========================================== */
.contact {
  background-color: var(--bg-dark);
  color: var(--text-light-primary);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(197, 168, 128, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

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

.contact-info .badge {
  color: var(--gold-light);
  border-color: rgba(226, 212, 192, 0.3);
}

.contact-info h2 {
  font-size: 3.4rem;
  margin-bottom: 24px;
}

.contact-info p {
  color: var(--text-light-secondary);
  font-size: 1.05rem;
  margin-bottom: 40px;
  max-width: 500px;
}

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

.contact-detail-item {
  display: flex;
  gap: 20px;
}

.contact-detail-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light-secondary);
  margin-bottom: 4px;
}

.contact-detail-text p {
  font-size: 1.1rem;
  color: var(--text-light-primary);
  margin-bottom: 0;
}

/* Animated Floating Label Form */
.contact-form-wrapper {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 50px;
  position: relative;
  overflow: hidden;
}

.form-group {
  position: relative;
  margin-bottom: 36px;
  width: 100%;
}

.form-control {
  width: 100%;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 10px 0;
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-bottom-color: var(--gold-primary);
}

.form-label {
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--text-light-secondary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  pointer-events: none;
  transition: var(--transition-smooth);
}

/* Floating behavior */
.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
  top: -15px;
  font-size: 0.75rem;
  color: var(--gold-primary);
  letter-spacing: 1px;
}

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

.contact-form-wrapper .btn-primary {
  width: 100%;
  border-color: var(--gold-primary);
  background-color: var(--gold-primary);
  color: var(--bg-dark);
}

.contact-form-wrapper .btn-primary::before {
  background-color: var(--bg-white);
}

.contact-form-wrapper .btn-primary:hover {
  border-color: var(--bg-white);
  color: var(--bg-dark);
}

/* Submission Success State */
.form-success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.form-success-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.success-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 24px;
  animation: scalePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scalePop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.success-title {
  font-size: 2.2rem;
  color: var(--text-light-primary);
  margin-bottom: 12px;
}

.success-message {
  color: var(--text-light-secondary);
  font-size: 0.95rem;
}

@media (max-width: 991px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 480px) {
  .contact-form-wrapper {
    padding: 30px 20px;
  }
}

/* ==========================================
   FOOTER SYSTEM
   ========================================== */
.footer {
  background-color: #080808;
  color: var(--text-light-primary);
  padding: 80px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

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

.footer-col-about h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.footer-col-about p {
  color: var(--text-light-secondary);
  font-size: 0.95rem;
  margin-bottom: 30px;
  max-width: 320px;
}

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

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light-secondary);
  transition: var(--transition-fast);
}

.social-btn:hover {
  background-color: var(--gold-primary);
  color: var(--bg-dark);
  border-color: var(--gold-primary);
  transform: translateY(-3px);
}

.footer-col-links h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-primary);
  margin-bottom: 24px;
}

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

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

.footer-links-list a {
  color: var(--text-light-secondary);
  font-size: 0.9rem;
}

.footer-links-list a:hover {
  color: var(--gold-primary);
  padding-left: 5px;
}

.footer-col-newsletter h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-primary);
  margin-bottom: 24px;
}

.footer-col-newsletter p {
  color: var(--text-light-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* Inline Newsletter Form */
.newsletter-form {
  position: relative;
  display: flex;
  width: 100%;
}

.newsletter-input {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 20px;
  color: var(--text-light-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.newsletter-input:focus {
  border-color: var(--gold-primary);
}

.newsletter-submit {
  background-color: var(--gold-primary);
  border: none;
  color: var(--bg-dark);
  padding: 0 24px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-fast);
}

.newsletter-submit:hover {
  background-color: var(--text-light-primary);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-dark-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 30px;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: var(--text-dark-muted);
}

.footer-bottom-links a:hover {
  color: var(--gold-primary);
}

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

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom-links {
    justify-content: center;
  }
}

/* ==========================================
   BEFORE & AFTER TRANSFORMATION SHOWCASE
   ========================================== */
.transformation {
  background-color: var(--bg-cream);
  position: relative;
}

.transformation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  margin-top: 50px;
}

@media (min-width: 992px) {
  .transformation-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

.comparison-card {
  background: var(--bg-white);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .comparison-card {
    padding: 32px;
  }
}

.comparison-info h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: var(--text-dark-primary);
}

.comparison-info p {
  color: var(--text-dark-secondary);
  font-size: 0.95rem;
}

.comparison-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  user-select: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.comparison-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.image-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.image-after {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 2;
  overflow: hidden;
  width: 50%; /* JS-driven width */
}

/* Ensure the image inside after takes full width despite clipping */
.image-after img {
  width: 100%;
  max-width: none;
}

/* Glassmorphism Labels */
.slider-label {
  position: absolute;
  bottom: 20px;
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light-primary);
  z-index: 4;
}

.slider-label.before {
  left: 20px;
}

.slider-label.after {
  right: 20px;
}

/* Sliding Handle */
.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--gold-primary);
  left: 50%; /* JS-driven left */
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 10px var(--gold-glowing);
}

.handle-line {
  width: 100%;
  height: 100%;
}

.handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-dark);
  border: 2px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.handle-button svg {
  width: 16px;
  height: 16px;
}

.handle-button svg:first-child {
  margin-right: -4px;
}

.handle-button svg:last-child {
  margin-left: -4px;
}

/* Transparent Overlay Range Input */
.slider-range-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

.slider-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.slider-range-input::-moz-range-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
