/* =============================================
   HomeStage - Home Staging Website
   CSS Styles
   ============================================= */

/* ===================
   CSS Variables
   =================== */
:root {
  /* Colors */
  --color-primary: #2B2B2B;
  --color-heading: #2B2B2B;
  --color-accent: #b09e87;
  --color-accent-button: #a08b79;
  --color-bg: #FFFFFF;
  --color-bg-alt: #FAFAFA;
  --color-text: #3A3A3A;
  --color-text-light: #5A5A5A;
  --color-text-muted: #888888;
  --color-border: #E8E8E8;
  --color-border-light: #D4C4B0;
  --color-packages-bg: #5d574f;
  
  /* Fonts */
  --font-primary: 'Inter', 'Roboto', 'Open Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  
  /* Spacing */
  --section-padding: 120px 60px;
  --container-max: 1400px;
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.6s ease;
  
  /* Border Radius */
  --radius-sm: 12px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 30px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: var(--font-primary);
  cursor: pointer;
}

ul {
  list-style: none;
}

::selection {
  background: var(--color-border-light);
  color: var(--color-text);
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-scale {
  animation: scaleIn 0.6s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ===================
   Typography
   =================== */
.section-tag {
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: 20px;
  display: block;
  text-transform: uppercase;
}

.section-tag-light {
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: 16px;
  display: block;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: var(--color-heading);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
}

.italic {
  font-style: italic;
  color: var(--color-accent);
}

/* ===================
   Buttons
   =================== */
.btn-primary {
  background: #6b5d52;
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background: #5a4d43;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.btn-evaluation {
  background: var(--color-accent-button) !important;
}

.btn-evaluation:hover {
  background: #8a7568 !important;
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

/* ===================
   Navigation
   =================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 24px 0;
  transition: all var(--transition-fast);
  border-bottom: 1px solid #d4c4b5;
  background: rgba(255, 255, 255, 0.98);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

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

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

.logo-text {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.3px;
}

.logo-home {
  color: var(--color-heading);
}

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

.nav-links {
  display: flex;
  gap: 36px;
  margin-left: auto;
  padding-right: 36px;
}

.nav-link {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
  transition: color var(--transition-fast);
  letter-spacing: 0.01em;
}

.nav-link:hover {
  color: var(--color-accent);
}

.contact-btn {
  padding: 12px 24px;
  font-size: 13px;
  background: #6b5d52 !important;
}

.contact-btn:hover {
  background: #5a4d43 !important;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 5px;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 22px;
  height: 1.5px;
  background: var(--color-primary);
  transition: all var(--transition-fast);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--color-bg);
  padding: 20px;
  flex-direction: column;
  gap: 20px;
  z-index: 999;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.mobile-menu.active {
  display: flex;
}

.mobile-nav-link {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

/* ===================
   Hero Section
   =================== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 140px 60px 100px 60px;
  gap: 60px;
}

.hero-content {
  max-width: 520px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 28px;
  letter-spacing: -1px;
  color: var(--color-heading);
}

.hero-title-accent {
  font-style: italic;
  color: var(--color-accent);
}

.hero-subtitle {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-light);
  margin-bottom: 36px;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.hero-btns {
  display: flex;
  gap: 14px;
}

.hero-image {
  position: relative;
  display: flex;
  height: 100%;
}

.hero-img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px rgba(0,0,0,0.08);
}

.hero-slider {
  width: 100%;
  height: 100%;
  min-height: 600px;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px rgba(0,0,0,0.08);
  overflow: hidden;
  background: #f5f5f5;
}

.hero-slider .img-after,
.hero-slider .img-before {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* ===================
   About Section
   =================== */
.about {
  padding: var(--section-padding);
  max-width: var(--container-max);
  margin: 0 auto;
}

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

.about-title {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--color-heading);
}

.about-title-large {
  font-size: 56px;
}

.about-title-centered {
  text-align: center;
  width: 100%;
  grid-column: 1 / -1;
  justify-self: center;
}

.about-text {
  font-family: var(--font-accent);
  font-size: 18px;
  line-height: 1.6;
  color: #888888;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.01em;
  text-align: right;
  max-width: 320px;
  margin-left: auto;
  padding-right: 20px;
  border-right: 2px solid #d4c4b5;
}

.about-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 60px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
}

.stat-card {
  text-align: center;
  padding: 20px;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--color-accent);
}

.stat-label {
  display: block;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.stat-desc {
  display: block;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ===================
   Portfolio Section
   =================== */
.portfolio {
  padding: 80px 60px 120px;
  max-width: var(--container-max);
  margin: 0 auto;
  background: var(--color-bg-alt);
}

.portfolio .section-title {
  color: var(--color-heading);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-images {
  display: flex;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}

.project-image-wrap {
  position: relative;
  flex: 1;
  height: 320px;
  overflow: hidden;
}

.project-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-image-wrap img {
  transform: scale(1.03);
}

.image-label {
  position: absolute;
  top: 16px;
  padding: 8px 20px;
  border-radius: 30px;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.image-label.before {
  left: 16px;
  background: white;
  color: var(--color-text);
}

.image-label.after {
  right: 16px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  color: var(--color-text);
}

.project-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 4px;
}

.project-title {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text);
  background: transparent;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #d4c4b5;
}

.project-btn {
  background: #d4c4b5;
  border: 1px solid #d4c4b5;
  color: var(--color-text);
  padding: 12px 24px;
  border-radius: 30px;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.project-btn:hover {
  background: #c9b8a9;
  border-color: #c9b8a9;
  color: var(--color-text);
}

.project-btn.filled {
  background: #d4c4b5;
  border-color: #d4c4b5;
  color: var(--color-text);
}

.project-btn.filled:hover {
  background: #c9b8a9;
  border-color: #c9b8a9;
}

/* Image Comparison Slider */
.comparison-slider {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  cursor: ew-resize;
  user-select: none;
}

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

.comparison-slider .img-before {
  z-index: 1;
  clip-path: inset(0 50% 0 0);
}

.comparison-slider .img-after {
  z-index: 0;
}

.comparison-slider .slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: #e8dcd0;
  z-index: 3;
  cursor: ew-resize;
}

.comparison-slider .slider-handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #e8dcd0;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.comparison-slider .slider-handle::after {
  content: '';
  display: none;
}

.comparison-slider .label-before,
.comparison-slider .label-after {
  position: absolute;
  top: 16px;
  padding: 8px 20px;
  border-radius: 30px;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  z-index: 2;
}

.comparison-slider .label-before {
  left: 16px;
  background: white;
  color: var(--color-text);
}

.comparison-slider .label-after {
  right: 16px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  color: var(--color-text);
}

/* ===================
   Process Section
   =================== */
.process {
  padding: 100px 60px 120px;
  background: var(--color-bg-alt);
  position: relative;
}

.process .section-header {
  margin-bottom: 70px;
}

.process .section-header::after {
  content: '';
  display: block;
  width: 100%;
  max-width: 1100px;
  height: 1px;
  background: var(--color-border);
  margin: 50px auto 0;
}

.process .section-tag {
  color: var(--color-text-muted);
}

.process .section-title {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  color: var(--color-heading);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.step-card {
  text-align: center;
  padding: 20px;
}

.step-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1px solid var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 300;
  color: var(--color-text);
  transition: all var(--transition-fast);
  background: transparent;
}

.step-circle:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.step-title {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 14px;
  color: var(--color-heading);
  letter-spacing: 0.01em;
}

.step-desc {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text-light);
  line-height: 1.6;
  max-width: 220px;
  margin: 0 auto;
}

.steps-line {
  display: none;
}

/* ===================
   Packages Section
   =================== */
.packages {
  background: #7a7265;
  padding: 100px 60px 120px;
}

.packages-header {
  text-align: center;
  margin-bottom: 60px;
}

.packages-header .section-tag {
  color: rgba(255,255,255,0.5);
}

.packages-title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  color: white;
  margin-bottom: 12px;
}

.packages-subtitle {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
}

.packages-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.package-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 24px;
  padding: 50px 40px;
  cursor: pointer;
  transition: all var(--transition-medium);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 500px;
}

.package-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.12);
}

.package-card.popular {
  background: #5d574f;
  border: 1px solid rgba(255,255,255,0.1);
}

.package-card.popular:hover {
  background: #52493f;
}

.popular-badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: white;
  padding: 10px 28px;
  border-radius: 30px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.package-name {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
  text-transform: uppercase;
  text-align: center;
}

.package-price {
  text-align: center;
  margin-bottom: 30px;
}

.price-value {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
  color: white;
}

.price-currency {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  margin-left: 6px;
}

.package-features {
  flex: 1;
  text-align: left;
  margin-bottom: 30px;
}

.package-feature {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.55;
}

.checkmark {
  color: var(--color-accent);
  font-weight: 500;
  flex-shrink: 0;
}

.package-btn {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 16px 24px;
  border-radius: 30px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  transition: all var(--transition-fast);
  margin-top: auto;
}

.package-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.package-card.popular .package-btn {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
}

.package-card.popular .package-btn:hover {
  background: rgba(255,255,255,0.2);
}

/* ===================
   CTA Section
   =================== */
.cta {
  padding: 140px 60px;
  text-align: center;
  background: var(--color-bg-alt);
}

.cta-inner {
  max-width: 700px;
  margin: 0 auto;
}

.cta .section-tag {
  color: var(--color-text-muted);
}

.cta-title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 50px;
  letter-spacing: -0.5px;
  color: var(--color-heading);
}

.cta-title .italic {
  font-style: italic;
  color: var(--color-accent);
}

.cta-form {
  display: flex;
  gap: 14px;
  max-width: 560px;
  margin: 0 auto 30px;
}

.cta-input {
  flex: 1;
  padding: 18px 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 300;
  background: white;
  outline: none;
  transition: border-color var(--transition-fast);
}

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

.cta-btn {
  padding: 18px 40px;
  white-space: nowrap;
}

.cta-note {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text-muted);
}

/* ===================
   Footer
   =================== */
.footer {
  background: #3a3a3a;
  color: white;
  padding: 60px 60px 0;
  position: relative;
  overflow: hidden;
}

.footer-top {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-phones {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-phone {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 300;
  color: var(--color-accent);
  transition: opacity var(--transition-fast);
}

.footer-phone:hover {
  opacity: 0.8;
}

.footer-email {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  transition: color var(--transition-fast);
}

.footer-email:hover {
  color: white;
}

.footer-socials-top {
  display: flex;
  gap: 60px;
  justify-content: flex-end;
  grid-column: span 2;
}

.footer-social-link {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  transition: color var(--transition-fast);
}

.footer-social-link:hover {
  color: white;
}

.footer-nav {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-bottom: 60px;
}

.footer-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-nav-link {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition-fast);
}

.footer-nav-link:hover {
  color: white;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 18vw;
  font-weight: 400;
  color: white;
  line-height: 0.9;
  letter-spacing: -0.03em;
  white-space: nowrap;
  width: 100vw;
  margin-left: calc(-60px);
  padding: 0 60px 20px;
  box-sizing: border-box;
  overflow: hidden;
}

.footer-brand-home {
  color: white;
}

.footer-brand-stage {
  color: white;
  font-style: italic;
}

/* ===================
   Modal
   =================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 24px;
  width: 98%;
  max-width: 1400px;
  max-height: 95vh;
  overflow: hidden;
  position: relative;
}

.modal-scroll {
  max-height: 95vh;
  overflow-y: auto;
  padding: 30px;
}

/* Custom scrollbar - beige color */
.modal-scroll::-webkit-scrollbar {
  width: 10px;
}

.modal-scroll::-webkit-scrollbar-track {
  background: #f5f0eb;
  border-radius: 5px;
}

.modal-scroll::-webkit-scrollbar-thumb {
  background: #d4c4b5;
  border-radius: 5px;
}

.modal-scroll::-webkit-scrollbar-thumb:hover {
  background: #c4b4a5;
}

/* Firefox scrollbar */
.modal-scroll {
  scrollbar-width: thin;
  scrollbar-color: #d4c4b5 #f5f0eb;
}

.modal-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.modal-close:hover {
  transform: scale(1.1);
}

/* Thumbnails section with overlaid "до" button */
.modal-thumbnails-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.modal-thumbnails {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.modal-thumb {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

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

/* "До" button overlaid on first thumbnail - top left */
.modal-label-before {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #d4c4b5;
  color: white;
  border: none;
  padding: 12px 20px;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  text-transform: lowercase;
  letter-spacing: 1px;
  z-index: 5;
  pointer-events: none;
}

/* Carousel with overlaid "после" button */
.modal-carousel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
}

.carousel-container {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 16px;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f5f5f5;
}

/* "После" button overlaid on carousel - bottom left */
.modal-label-after {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: #d4c4b5;
  color: white;
  border: none;
  padding: 12px 20px;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  text-transform: lowercase;
  letter-spacing: 1px;
  z-index: 5;
  pointer-events: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: none;
  background: #d4c4b5;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: all var(--transition-fast);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  line-height: 1;
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.1);
  background: #c9b8a9;
}

.carousel-btn.prev {
  left: 16px;
}

.carousel-btn.next {
  right: 16px;
}

/* Clickable carousel thumbnails */
.carousel-thumbs {
  display: flex;
  gap: 10px;
  padding: 16px 0 0;
  overflow-x: auto;
  justify-content: center;
}

.carousel-thumb {
  width: 90px;
  height: 68px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  border: 3px solid transparent;
}

.carousel-thumb:hover {
  opacity: 0.8;
}

.carousel-thumb.active {
  opacity: 1;
  border-color: #d4c4b5;
}

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

/* Modal info */
.modal-info {
  padding: 10px 10px 0;
}

.modal-header {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  color: var(--color-heading);
  margin-bottom: 8px;
}

.modal-subtitle {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 300;
  color: var(--color-text-muted);
}

.modal-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  width: 100%;
  padding: 0 10%;
}

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

.modal-stat-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  color: var(--color-heading);
  display: block;
}

.modal-stat-label {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 300;
  color: var(--color-text-muted);
}

.modal-description p {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 300;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 30px;
}

.modal-cta {
  display: inline-block;
  text-decoration: none;
}

@media (max-width: 768px) {
  .modal-content {
    width: 100%;
    max-height: 100vh;
    border-radius: 16px;
  }
  
  .modal-scroll {
    padding: 20px;
  }
  
  .modal-thumbnails {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }
  
  .modal-label-before,
  .modal-label-after {
    padding: 8px 14px;
    font-size: 12px;
  }
  
  .modal-label-before {
    top: 8px;
    left: 8px;
  }
  
  .modal-label-after {
    bottom: 12px;
    left: 12px;
  }
  
  .carousel-container {
    border-radius: 12px;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .carousel-btn.prev {
    left: 12px;
  }
  
  .carousel-thumbs {
    padding: 12px 0 0;
    gap: 6px;
  }
  
  .carousel-thumb {
    width: 60px;
    height: 45px;
  }
  
  .modal-info {
    padding: 10px 0 0;
  }
  
  .modal-title {
    font-size: 28px;
  }
  
  .modal-stats {
    flex-wrap: wrap;
    gap: 24px;
  }
  
  .modal-stat {
    flex: 1;
    min-width: 80px;
  }
  
  .modal-stat-value {
    font-size: 28px;
  }
}

/* ===================
   Responsive Design
   =================== */
@media (max-width: 1200px) {
  .hero {
    padding: 120px 40px 80px;
    gap: 60px;
  }
  
  .hero-title {
    font-size: 52px;
  }
  
  .about {
    padding: 80px 40px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .packages-left {
    display: none;
  }
  
  .packages {
    padding: 80px 40px;
  }
}

@media (max-width: 992px) {
  .nav-links,
  .contact-btn {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 120px;
  }
  
  .hero-image {
    order: -1;
  }
  
  .hero-img {
    height: 400px;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .steps-line {
    display: none;
  }
  
  .packages-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  
  .package-card {
    min-height: auto;
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-socials-top {
    grid-column: span 2;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 20px;
  }
  
  .nav-inner {
    padding: 0 20px;
  }
  
  .hero {
    padding: 100px 20px 40px;
  }
  
  .hero-title {
    font-size: 38px;
  }
  
  .hero-subtitle {
    font-size: 15px;
  }
  
  .hero-btns {
    flex-direction: column;
  }
  
  .about {
    padding: 60px 20px;
  }
  
  .about-title {
    font-size: 32px;
  }
  
  .stats-grid {
    padding: 30px;
    gap: 20px;
  }
  
  .stat-number {
    font-size: 40px;
  }
  
  .portfolio {
    padding: 60px 20px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .project-image-wrap {
    height: 200px;
  }
  
  .comparison-slider {
    height: 200px;
  }
  
  .project-info {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .process {
    padding: 60px 20px;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .packages {
    padding: 60px 20px;
  }
  
  .packages-cards {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  
  .package-card {
    padding: 40px 30px;
  }
  
  .cta {
    padding: 80px 20px;
  }
  
  .cta-title {
    font-size: 38px;
  }
  
  .cta-form {
    flex-direction: column;
  }
  
  .footer {
    padding: 60px 20px 0;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-socials-top {
    grid-column: span 1;
    justify-content: flex-start;
    gap: 30px;
  }
  
  .footer-brand {
    font-size: 15vw;
    margin-left: -20px;
    padding: 0 20px 20px;
  }
}

/* Vertical gallery mode for project 4 */
.carousel-container.vertical-gallery {
  display: flex;
  flex-direction: row;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #d4c4b5 #f5f5f5;
}

.carousel-container.vertical-gallery::-webkit-scrollbar {
  height: 8px;
}

.carousel-container.vertical-gallery::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 4px;
}

.carousel-container.vertical-gallery::-webkit-scrollbar-thumb {
  background: #d4c4b5;
  border-radius: 4px;
}

.carousel-container.vertical-gallery .carousel-slide {
  position: relative;
  flex: 0 0 auto;
  width: auto;
  height: 100%;
  opacity: 1;
}

.carousel-container.vertical-gallery .carousel-slide img {
  height: 100%;
  width: auto;
  max-height: 400px;
  object-fit: contain;
}

.modal-carousel.vertical-mode {
  height: 450px;
}

.modal-carousel.vertical-mode .carousel-btn {
  display: flex;
}

.modal-carousel.vertical-mode .carousel-thumbs {
  display: none;
}
