/* ============================================
   FINICE Global Luxury Wellness Intimates
   Design System & Global Styles
   ============================================ */

/* CSS Variables - Design Tokens */
:root {
  /* Colors */
  --ivory: #F8F5F0;
  --champagne-gold: #C9A36A;
  --sage-green: #5D7158;
  --soft-sand: #E8DED0;
  --charcoal: #222222;
  --white: #FFFFFF;
  --dark-bg: #1a1a1a;
  --gold-light: #E8D5B7;
  --sage-light: #7A8F74;
  --sage-dark: #3D4F39;

  /* Typography */
  --font-heading: 'Cormorant Garamond', 'Noto Serif SC', serif;
  --font-body: 'Inter', 'Noto Sans SC', sans-serif;

  /* Spacing */
  --section-padding: 120px;
  --container-max: 1440px;
  --container-padding: 32px;

  /* Radius */
  --radius-card: 24px;
  --radius-image: 32px;
  --radius-button: 999px;
  --radius-sm: 16px;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --shadow-gold: 0 0 40px rgba(201, 163, 106, 0.2);
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--ivory);
  color: var(--charcoal);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography System */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.text-display {
  font-family: var(--font-heading);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.text-h1 {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 400;
  line-height: 1.1;
}

.text-h2 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.15;
}

.text-h3 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.2;
}

.text-body {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 400;
  line-height: 1.7;
}

.text-caption {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Color Utilities */
.text-gold { color: var(--champagne-gold); }
.text-sage { color: var(--sage-green); }
.text-ivory { color: var(--ivory); }
.text-charcoal { color: var(--charcoal); }

.bg-ivory { background-color: var(--ivory); }
.bg-charcoal { background-color: var(--charcoal); }
.bg-dark { background-color: var(--dark-bg); }

/* Gradient Text */
.text-gradient-gold {
  background: linear-gradient(135deg, var(--champagne-gold) 0%, var(--gold-light) 50%, var(--champagne-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Layout */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section-padding {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

/* Grid System */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
}

/* Glass Effect */
.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
  background: rgba(34, 34, 34, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--champagne-gold) 0%, #B8945F 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(201, 163, 106, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-dark {
  background: var(--charcoal);
  color: var(--white);
}

.btn-dark:hover {
  background: #333;
  transform: translateY(-2px);
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.card-image {
  border-radius: var(--radius-image);
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 90px;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  height: 72px;
  background: rgba(248, 245, 240, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled .nav-link {
  color: var(--charcoal);
}

.navbar.scrolled .logo-text {
  color: var(--charcoal);
}

.nav-link {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--champagne-gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--champagne-gold);
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: var(--transition-slow);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: var(--transition-slow);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: var(--transition-slow);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: var(--transition-slow);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Counter Animation */
.counter {
  font-variant-numeric: tabular-nums;
}

/* Parallax */
.parallax {
  will-change: transform;
}

/* Horizontal Scroll Section */
.horizontal-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.horizontal-scroll::-webkit-scrollbar {
  display: none;
}

.horizontal-scroll > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* Timeline */
.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--champagne-gold), transparent);
  transform: translateX(-50%);
}

/* Tech Cards Floating */
.tech-card {
  animation: float 6s ease-in-out infinite;
}

.tech-card:nth-child(2) { animation-delay: -1s; }
.tech-card:nth-child(3) { animation-delay: -2s; }
.tech-card:nth-child(4) { animation-delay: -3s; }
.tech-card:nth-child(5) { animation-delay: -4s; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Particle Canvas */
.particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--ivory);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--champagne-gold), var(--sage-green));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #B8945F, var(--sage-dark));
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--charcoal);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: var(--champagne-gold);
}

/* Video Background */
.video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

/* Form Styles */
.form-input {
  width: 100%;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--soft-sand);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--charcoal);
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--champagne-gold);
  box-shadow: 0 0 0 3px rgba(201, 163, 106, 0.15);
}

.form-input::placeholder {
  color: #999;
}

/* Table Styles */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  background: var(--charcoal);
  color: var(--white);
  padding: 16px 24px;
  text-align: left;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 12px;
}

.data-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--soft-sand);
}

.data-table tr:nth-child(even) {
  background: rgba(93, 113, 88, 0.03);
}

.data-table tr:hover {
  background: rgba(201, 163, 106, 0.05);
}

/* Tag/Badge */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-button);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.tag-gold {
  background: rgba(201, 163, 106, 0.12);
  color: #8B7347;
}

.tag-sage {
  background: rgba(93, 113, 88, 0.12);
  color: var(--sage-green);
}

/* Image hover zoom */
.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-zoom:hover img {
  transform: scale(1.08);
}

/* Line divider */
.line-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, var(--champagne-gold), transparent);
}

.line-divider-center {
  width: 60px;
  height: 1px;
  background: var(--champagne-gold);
  margin: 0 auto;
}

/* Social icons */
.social-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background: var(--champagne-gold);
  transform: translateY(-3px);
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--soft-sand) 25%, #f0e8dc 50%, var(--soft-sand) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Responsive */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .grid-12 {
    gap: 24px;
  }

  .timeline::before {
    left: 20px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
    --container-padding: 20px;
  }

  .text-display {
    font-size: 40px;
  }

  .text-h1 {
    font-size: 36px;
  }

  .text-h2 {
    font-size: 28px;
  }

  .navbar {
    height: 72px;
  }

  .btn {
    padding: 14px 24px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .text-display {
    font-size: 32px;
  }

  .text-h1 {
    font-size: 28px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Print styles */
@media print {
  .navbar,
  .floating-cta,
  .video-bg {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }
}
