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

:root {
  --bg-primary: #070709;
  --bg-secondary: #0f1015;
  --bg-card: rgba(20, 21, 28, 0.65);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --accent-gold: #e2c18d;
  --accent-gold-light: #f5dfb8;
  --accent-gold-glow: rgba(226, 193, 141, 0.18);
  --text-primary: #f5f5f7;
  --text-secondary: #9a9aa2;
  --text-muted: #5e5e68;
  --font-serif: 'Italiana', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Syne', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  selection-background-color: var(--accent-gold);
  selection-color: #000;
}

::selection {
  background-color: var(--accent-gold);
  color: #000000;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #23242c;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Background Noise Texture */
.bg-noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  content: "";
  opacity: 0.035;
  pointer-events: none;
  z-index: 999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Ambient Radial Glows */
.ambient-glow-1 {
  position: absolute;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(226, 193, 141, 0.07) 0%, rgba(0,0,0,0) 70%);
  top: -150px;
  right: -100px;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(40px);
}

.ambient-glow-2 {
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(120, 80, 200, 0.05) 0%, rgba(0,0,0,0) 70%);
  bottom: 20%;
  left: -200px;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(60px);
}

/* Hero Native 1080p Video Background */
.hero-video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-video-element {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  opacity: 1;
}

/* Desktop View (1024px+): Offset video to the right so Claudia occupies the right half without overlap */
@media (min-width: 1024px) {
  .hero-video-element {
    left: 72%;
    transform: translate(-50%, -50%);
    min-width: 110%;
    min-height: 105%;
    object-position: center center;
  }

  .hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(7, 7, 9, 1) 0%, rgba(7, 7, 9, 0.98) 28%, rgba(7, 7, 9, 0.75) 44%, rgba(7, 7, 9, 0) 60%),
                linear-gradient(to top, #070709 0%, transparent 12%, transparent 88%, #070709 100%);
    pointer-events: none;
    z-index: 1;
  }
}

/* Mobile & Tablet View (<1024px): Ensure video plays centered with readable text overlay */
@media (max-width: 1023px) {
  .hero-video-element {
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    object-position: center center;
  }

  .hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 7, 9, 0.98) 0%, rgba(7, 7, 9, 0.82) 45%, rgba(7, 7, 9, 0.35) 100%),
                radial-gradient(circle at 50% 30%, rgba(7, 7, 9, 0) 0%, rgba(7, 7, 9, 0.8) 85%);
    pointer-events: none;
    z-index: 1;
  }
}

/* Typography Classes */
.font-serif {
  font-family: var(--font-serif);
}

.font-display {
  font-family: var(--font-display);
}

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

.text-gradient-gold {
  background: linear-gradient(135deg, #ffffff 0%, #e2c18d 60%, #b89255 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-white {
  background: linear-gradient(180deg, #ffffff 0%, #a8a8b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--bg-card-border);
}

.glass-pill {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-pill:hover {
  background: rgba(226, 193, 141, 0.12);
  border-color: rgba(226, 193, 141, 0.3);
  color: var(--accent-gold);
}

/* Portfolio Filter Buttons */
.filter-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  color: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.filter-btn.active {
  background: #e2c18d !important;
  color: #070709 !important;
  font-weight: 700 !important;
  border-color: #e2c18d !important;
  box-shadow: 0 4px 18px rgba(226, 193, 141, 0.35) !important;
}

/* Custom Cursor */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out, opacity 0.2s ease;
}

.custom-cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(226, 193, 141, 0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, transform 0.18s ease-out;
}

.cursor-hover .custom-cursor-outline {
  width: 64px;
  height: 64px;
  background: rgba(226, 193, 141, 0.08);
  border-color: var(--accent-gold);
}

@media (pointer: coarse) {
  .custom-cursor-dot, .custom-cursor-outline {
    display: none !important;
  }
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background-color: #050507;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s ease;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-bar {
  width: 140px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  margin-top: 24px;
}

.loader-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

/* Marquee / Ticker */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

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

/* Image Hover Zoom & Reveal Effect */
.img-reveal-wrapper {
  overflow: hidden;
  position: relative;
}

.img-reveal-wrapper img {
  transition: transform 0.85s cubic-bezier(0.25, 1, 0.5, 1), filter 0.5s ease;
  will-change: transform;
}

.img-reveal-wrapper:hover img {
  transform: scale(1.06);
}

/* Button Luxury Hover Effects */
.btn-luxury {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--accent-gold);
  color: #0a0a0d;
}

.btn-luxury::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s ease;
}

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

.btn-luxury:hover {
  background: var(--accent-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(226, 193, 141, 0.3);
}

.btn-luxury-outline {
  position: relative;
  border: 1px solid rgba(226, 193, 141, 0.4);
  color: var(--text-primary);
  transition: all 0.35s ease;
}

.btn-luxury-outline:hover {
  border-color: var(--accent-gold);
  background: rgba(226, 193, 141, 0.1);
  color: var(--accent-gold-light);
  transform: translateY(-2px);
}

/* Lightbox Modal */
#lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background-color: rgba(5, 5, 8, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

#lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

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

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Floating Badges Animation */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.animate-float-slow {
  animation: floatSlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.animate-pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}
