/* Import Google Fonts for elegant typography */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables - La Dolce Vita Color Palette */
:root {
  /* Primary Colors */
  --primary-dark: #1a1a1a;
  --secondary-dark: #2a2a2a;
  --accent-gold: #d4af37;
  --accent-warm: #c8985f;
  --accent-beige: #f4e4bc;
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #e8e8e8;
  --text-muted: #b8b8b8;
  --text-accent: #d4af37;
  
  /* Background Colors */
  --bg-primary: #0f0f0f;
  --bg-secondary: #1a1a1a;
  --bg-card: rgba(42, 42, 42, 0.9);
  --bg-glass: rgba(42, 42, 42, 0.8);
  
  /* Border Colors */
  --border-primary: rgba(212, 175, 55, 0.3);
  --border-secondary: rgba(255, 255, 255, 0.1);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #d4af37 0%, #c8985f 100%);
  --gradient-secondary: linear-gradient(135deg, #c8985f 0%, #b8965a 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(15, 15, 15, 0.9) 0%, rgba(26, 26, 26, 0.9) 100%);
  
  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-heavy: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 8px 32px rgba(212, 175, 55, 0.2);
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease-out;
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Border Radius */
  --radius-small: 8px;
  --radius-medium: 16px;
  --radius-large: 24px;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(200, 152, 95, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 60% 40%, rgba(212, 175, 55, 0.02) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

/* Page Transition Overlay */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}

.page-transition.active {
  transform: translateY(0);
}

.page-transition .transition-content {
  text-align: center;
  color: white;
}

.page-transition .transition-logo {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 600;
  font-style: italic;
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease-out;
}

.page-transition .transition-text {
  font-size: 1.2rem;
  opacity: 0.9;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 1s ease-in-out infinite;
  margin-right: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

.page-title {
  font-size: 3.5rem;
  font-weight: 700;
  text-align: center;
  margin: 3rem 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  animation: titleFadeIn 1s ease-out;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

@keyframes titleFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Container */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 600;
  font-style: italic;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.logo:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
  position: relative;
  transition: var(--transition-smooth);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-smooth);
}

nav a:hover {
  color: var(--text-accent);
}

nav a:hover::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border: none;
  border-radius: var(--radius-medium);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-gold);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f4e4bc 0%, #d4af37 100%);
  transition: var(--transition-smooth);
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover::before {
  left: 0;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Footer */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-primary);
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-content {
  text-align: center;
  color: var(--text-muted);
}

.footer-content p {
  margin-bottom: 0.5rem;
}

.footer-content a {
  color: var(--text-accent);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-content a:hover {
  color: var(--accent-beige);
}

/* Decorative Elements */
.decorative-border {
  position: relative;
  padding: 2rem 0;
}

.decorative-border::before,
.decorative-border::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 100px;
  height: 2px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
}

.decorative-border::before {
  top: 0;
}

.decorative-border::after {
  bottom: 0;
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-title {
    font-size: 2.5rem;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav ul {
    gap: 1rem;
  }
  
  nav a {
    font-size: 0.8rem;
  }
  
  .btn {
    padding: 14px 24px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 2rem;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-accent {
  color: var(--text-accent);
}

.bg-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
}

.shadow-gold {
  box-shadow: var(--shadow-gold);
}

.fade-in {
  animation: fadeIn 0.8s ease-out;
}

.slide-in-up {
  animation: slideInUp 0.8s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}