/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700&display=swap');

/* Color Variables */
:root {
  --bg-darker: #0b0c10;
  --bg-dark: #1f2833;
  --bg-card: rgba(31, 40, 51, 0.65);
  --accent-gold: #c5a059;
  --accent-gold-hover: #e5c17b;
  --text-main: #c5d1eb;
  --text-muted: #b0c2de;
  --text-light: #ffffff;
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-glow: rgba(197, 160, 89, 0.15);
}

/* Base Styles */
body {
  background-color: var(--bg-darker);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

.text-muted {
  color: var(--text-muted) !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: all 0.3s ease;
}

.glass-panel:hover {
  border-color: rgba(197, 160, 89, 0.3);
  box-shadow: 0 8px 32px 0 var(--glass-glow);
}

/* Elegant Navbar */
.navbar-custom {
  background: rgba(11, 12, 16, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1030;
}

.navbar-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-light) !important;
  letter-spacing: 1px;
}

.navbar-brand span {
  color: var(--accent-gold);
}

.nav-link {
  color: var(--text-main) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-gold) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--accent-gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 70%;
}

/* SPA Sections Transitions */
.spa-section {
  animation: slideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  min-height: calc(100vh - 75px);
  padding-top: 100px;
  padding-bottom: 50px;
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section */
.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-light) 30%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2rem;
}

.btn-gold {
  background-color: var(--accent-gold);
  color: var(--bg-darker);
  font-weight: 600;
  border: 1px solid var(--accent-gold);
  padding: 0.75rem 2rem;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.btn-gold:hover {
  background-color: var(--accent-gold-hover);
  border-color: var(--accent-gold-hover);
  color: var(--bg-darker);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
}

.btn-outline-gold {
  background-color: transparent;
  color: var(--accent-gold);
  font-weight: 600;
  border: 2px solid var(--accent-gold);
  padding: 0.75rem 2rem;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.btn-outline-gold:hover {
  background-color: var(--accent-gold);
  color: var(--bg-darker);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
}

/* Filter Badges */
.filter-btn {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  margin: 0.25rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-gold);
  color: var(--bg-darker);
  border-color: var(--accent-gold);
}

/* Gallery Styles (Masonry) */
.gallery-grid {
  column-count: 3;
  column-gap: 25px;
}

@media (max-width: 992px) {
  .gallery-grid { column-count: 2; }
}

@media (max-width: 576px) {
  .gallery-grid { column-count: 1; }
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  display: block;
  margin-bottom: 25px;
  break-inside: avoid;
  background: var(--bg-card);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(11, 12, 16, 0.95) 0%, rgba(11, 12, 16, 0.4) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-card:hover .gallery-card-overlay {
  opacity: 1;
}

.badge-category {
  background: rgba(197, 160, 89, 0.2);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  align-self: flex-start;
  margin-bottom: 8px;
}

/* Modal Custom Styles */
.modal-content-glass {
  background: rgba(22, 27, 34, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  color: var(--text-main);
}

.modal-header {
  border-bottom: 1px solid var(--glass-border);
}

.modal-footer {
  border-top: 1px solid var(--glass-border);
}

.btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Color Palette Display */
.color-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  border: 2px solid rgba(255,255,255,0.2);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease;
}

.color-circle:hover {
  transform: scale(1.15);
}

.color-hex {
  font-size: 0.75rem;
  display: block;
  text-align: center;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Drag & Drop Upload Zone */
.upload-zone {
  border: 2px dashed rgba(197, 160, 89, 0.4);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  background: rgba(197, 160, 89, 0.03);
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-zone:hover, .upload-zone.dragover {
  background: rgba(197, 160, 89, 0.08);
  border-color: var(--accent-gold);
}

.upload-zone i {
  font-size: 3rem;
  color: var(--accent-gold);
  margin-bottom: 15px;
}

/* Wall Simulator */
.sim-container {
  position: relative;
  width: 100%;
  height: 480px;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 0 100px rgba(0,0,0,0.8);
  transition: background-image 0.5s ease-in-out;
}

.sim-room-selector {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.sim-room-btn {
  background: rgba(31, 40, 51, 0.8);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sim-room-btn.active, .sim-room-btn:hover {
  background: var(--accent-gold);
  color: var(--bg-darker);
  border-color: var(--accent-gold);
}

.sim-room-btn-upload {
  display: inline-flex;
  align-items: center;
  border-style: dashed;
}

.sim-room-btn-upload.active, .sim-room-btn-upload:hover {
  border-style: solid;
}

.sim-painting-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 60%;
  max-height: 60%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
  border: 12px solid #1a1a1a; /* Frame bezel */
  outline: 2px solid #000;
  cursor: move;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  will-change: top, left, transform;
}

.sim-painting-wrapper.dragging {
  cursor: grabbing;
}

.sim-painting-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.sim-scale-slider-container {
  max-width: 300px;
  margin: 20px auto 0 auto;
}

/* Table styling for Admin dashboard */
.table-custom {
  color: var(--text-main) !important;
}

.table-custom th {
  border-color: var(--glass-border) !important;
  color: var(--accent-gold);
  font-family: 'Outfit', sans-serif;
}

.table-custom td {
  border-color: var(--glass-border) !important;
  vertical-align: middle;
}

/* Bio Timeline */
.bio-timeline {
  position: relative;
  padding-left: 30px;
  border-left: 2px solid var(--glass-border);
}

.bio-timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.bio-timeline-item::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: var(--accent-gold);
  border: 4px solid var(--bg-darker);
  border-radius: 50%;
  left: -39px;
  top: 5px;
}

.bio-year {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--accent-gold);
  font-size: 1.25rem;
  margin-bottom: 5px;
}

/* Contact Cards */
.contact-item-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(197, 160, 89, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.25rem;
  margin-right: 15px;
}

/* Custom loading spinner */
.loader-spinner {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 3px solid rgba(197, 160, 89, 0.3);
  border-radius: 50%;
  border-top-color: var(--accent-gold);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}
