/* 2026 Fashion Pinterest Aesthetic */
:root {
  --bg-primary: #fcfbf9;
  --text-primary: #1a1a1a;
  --accent: #d4a373;
  --accent-light: #faedcd;
}

html {
  font-family: 'Inter', sans-serif;
  scroll-behavior: auto;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, .font-serif {
  font-family: 'Playfair Display', serif;
}

.font-sans {
  font-family: 'Inter', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* --- Homepage Styles --- */
.hero-scatter { position: absolute; width: 150px; height: 180px; z-index: 5; pointer-events: none; opacity: 0; filter: blur(4px); }
.hero-scatter img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.hs-1 { top: 15%; left: 10%; transform: rotate(-5deg); }
.hs-2 { top: 25%; right: 12%; transform: rotate(8deg); }
.hs-3 { bottom: 20%; left: 15%; transform: rotate(12deg); }
.hs-4 { bottom: 25%; right: 10%; transform: rotate(-10deg); }
.cv-section { background: white; border-top: 1px solid #f0f0f0; }
.section-transition { transition: background-color 0.8s ease, color 0.8s ease; }

#moodboard-section { position: relative; z-index: 10; min-height: 100vh; }
#mb-text-header { z-index: 30; position: relative; }
.mb-item { z-index: 20; position: absolute !important; transition: all 0.5s ease; border-radius: 1rem; box-shadow: 0 10px 40px -10px rgba(0,0,0,0.15); will-change: transform, opacity; }

@media (max-width: 768px) {
  .mb-item-0 { top: 28% !important; left: 5% !important; transform: rotate(-8deg) !important; width: 110px !important; }
  .mb-item-1 { top: 62% !important; left: 8% !important; transform: rotate(5deg) !important; width: 130px !important; }
  .mb-item-2 { top: 22% !important; right: 5% !important; transform: rotate(10deg) !important; width: 120px !important; }
  .mb-item-3 { bottom: 18% !important; right: 6% !important; transform: rotate(-5deg) !important; width: 140px !important; }
  #mb-text-header { top: 10% !important; }
}
@media (min-width: 769px) {
  .mb-item-0 { top: 15% !important; left: 8% !important; transform: rotate(-10deg) !important; }
  .mb-item-1 { top: 55% !important; left: 12% !important; transform: rotate(5deg) !important; }
  .mb-item-2 { top: 10% !important; right: 10% !important; transform: rotate(12deg) !important; }
  .mb-item-3 { bottom: 15% !important; right: 5% !important; transform: rotate(-8deg) !important; }
}

/* THE CORE FIX: Final Result Centering */
.final-result {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 40;
    pointer-events: none;
    opacity: 0;
    will-change: transform, opacity;
}

/* --- Works Page Styles --- */
.horizontal-grid { display: flex; overflow-x: auto; gap: 2rem; padding: 1.5rem 0 3rem 0; scrollbar-width: none; -ms-overflow-style: none; scroll-snap-type: x mandatory; align-items: flex-end; }
.horizontal-grid::-webkit-scrollbar { display: none; }
.horizontal-item { flex: 0 0 auto; min-width: 200px; max-width: 85vw; scroll-snap-align: start; cursor: pointer; position: relative; height: 450px; border-radius: 8px; transition: transform 0.4s ease; background: #f0f0f0; border: 1px solid rgba(0,0,0,0.08); }
.horizontal-item:hover { transform: scale(1.02); }
.horizontal-item img { width: auto; height: 100%; object-fit: contain; border-radius: 8px; border: 1px solid rgba(0,0,0,0.05); }
.horizontal-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,26,26,0.8) 0%, transparent 40%); opacity: 0; transition: opacity 0.4s ease; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; border-radius: 8px; }
.horizontal-item:hover .horizontal-overlay { opacity: 1; }
.scroll-mt { scroll-margin-top: 120px; }
.works-hero { height: 60vh; width: 100%; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.works-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: transform 20s linear; }
.works-hero:hover img { transform: scale(1.1); }
.works-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(252,251,249,0.2) 0%, rgba(252,251,249,1) 100%); }

/* --- 2026 Navigation --- */
.nav-pill-new flex a { transition: all 0.3s ease; }
@keyframes scroll-line {
  0% { transform: translateY(-100%); }
  50% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}
.animate-scroll-line { animation: scroll-line 2s cubic-bezier(0.65, 0, 0.35, 1) infinite; }

/* Scroll Navigation Buttons */
.scroll-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
}
.group:hover .scroll-nav-btn { opacity: 1; pointer-events: auto; }
.scroll-nav-btn.left-btn { left: -22px; }
.scroll-nav-btn.right-btn { right: -22px; }
.scroll-nav-btn:hover { background: #1a1a1a; color: white; transform: translateY(-50%) scale(1.15); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.scroll-nav-btn svg { width: 20px; height: 20px; }

@media (max-width: 768px) {
  .scroll-nav-btn { display: none !important; }
}

@media (max-width: 768px) {
  .nav-container { right: 50%; transform: translateX(50%); width: 95%; justify-content: center; }
}

/* --- About Page & CV Styles --- */
.editorial-divider { border-top: 1px solid rgba(26,26,26,0.1); margin-top: 3rem; margin-bottom: 2rem; }

@media print {
  @page { size: A4; margin: 0; }
  body { background: white !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; zoom: 75%; }
  .nav-wrapper, footer, .print-hidden { display: none !important; }
  #editorial-view { display: none !important; }
  #simple-cv-view { display: flex !important; margin: 0 !important; padding: 20px !important; width: 100% !important; max-width: none !important; }
  .bg-white { box-shadow: none !important; border: none !important; padding: 0 !important; }
  .mb-8 { margin-bottom: 1rem !important; }
  .mb-10 { margin-bottom: 1.5rem !important; }
  h1 { font-size: 2.5rem !important; }
  h2 { font-size: 1.25rem !important; margin-bottom: 0.5rem !important; }
  p, li { font-size: 0.75rem !important; line-height: 1.4 !important; }
  p, li { font-size: 0.75rem !important; line-height: 1.4 !important; }
}

@media print {
  /* Portfolio (Works) Page Print Overrides - PREMIUM DESIGN */
  @page { margin: 1cm; size: A4; }
  
  body { background: white !important; color: black !important; }
  .works-hero, .nav-container, footer, .print-hidden, #cg-backdrop, #cg-content { display: none !important; }
  
  .horizontal-grid { 
    display: grid !important; 
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 30px !important; 
    overflow: visible !important; 
    height: auto !important; 
    padding: 20px 0 !important;
  }
  
  .horizontal-item { 
    flex: none !important; 
    width: 100% !important; 
    height: auto !important; 
    break-inside: avoid !important;
    border: none !important;
    margin-bottom: 40px !important;
    background: none !important;
  }

  .horizontal-item img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: 0.5px solid #000 !important;
  }
  
  .horizontal-overlay { 
    opacity: 1 !important; 
    background: none !important; 
    position: relative !important; 
    padding: 12px 0 !important;
    color: black !important;
  }
  
  .horizontal-overlay h3 { 
    color: black !important; 
    font-family: 'Playfair Display', serif !important;
    font-size: 16px !important; 
    font-weight: bold !important;
    margin-top: 5px !important;
  }
  .horizontal-overlay p { 
    color: #333 !important; 
    font-family: 'Inter', sans-serif !important;
    font-size: 10px !important; 
    letter-spacing: 0.1em !important;
    font-weight: 600 !important;
  }
  
  .scroll-mt { break-before: page !important; padding-top: 50px !important; border-top: 1px solid #eee !important; }
  .scroll-mt:first-child { break-before: auto !important; border-top: none !important; }
  
  h2.font-serif { 
    color: black !important; 
    font-size: 24px !important;
    border-bottom: 4px solid black !important; 
    width: 100% !important; 
    padding-bottom: 10px !important;
    margin-bottom: 20px !important;
    display: block !important;
  }

  .print-only-footer {
    display: block !important;
    position: fixed;
    bottom: 0;
    width: 100%;
    border-top: 1px solid #ccc;
    padding-top: 10px;
    font-size: 8px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #999;
  }
}

/* Pinterest style masonry (for other uses) */
.masonry-grid { column-count: 1; column-gap: 1.5rem; }
@media (min-width: 640px) { .masonry-grid { column-count: 2; } }
@media (min-width: 1024px) { .masonry-grid { column-count: 3; } }
@media (min-width: 1280px) { .masonry-grid { column-count: 4; } }
.masonry-item { break-inside: avoid; margin-bottom: 1.5rem; border-radius: 1.5rem; overflow: hidden; position: relative; background-color: #f0f0f0; }
.masonry-item img { width: 100%; display: block; border-radius: 1.5rem; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.masonry-item:hover img { transform: scale(1.05); }
.masonry-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%); opacity: 0; transition: opacity 0.4s ease; display: flex; align-items: flex-end; padding: 1.5rem; pointer-events: none; }
.masonry-item:hover .masonry-overlay { opacity: 1; }

