@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@400;500;600;700&family=Quicksand:wght@300;400;500;600;700&family=Noto+Sans:wght@300;400;500;600;700&display=swap');

/* Root CSS Variables - Light Theme (Default) */
:root {
  --primary-accent: #C45D54;
  --secondary-accent: #2C3E50;
  --background: #F9F7F4;
  --surface: #FFFFFF;
  --surface-alt: #F0EBE5;
  --text-primary: #1A1A1A;
  --text-secondary: #555555;
  --border-color: #E0D5CC;
  --shadow: rgba(0, 0, 0, 0.1);
  --navbar-bg: rgba(249, 247, 244, 0.95);
  --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-heading: 'Crimson Pro', serif;
  --font-body: 'Noto Sans', sans-serif;
  --font-accent: 'Quicksand', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  transition: background-color 0.3s ease, color 0.3s ease;
}

html[data-theme="dark"] {
  --primary-accent: #E8846A;
  --secondary-accent: #A89968;
  --background: #0F0F0F;
  --surface: #1A1A1A;
  --surface-alt: #2A2A2A;
  --text-primary: #F5F1ED;
  --text-secondary: #B8B3AE;
  --border-color: #333333;
  --shadow: rgba(0, 0, 0, 0.3);
  --navbar-bg: rgba(26, 26, 26, 0.95);
  --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  transition: var(--transition);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 2rem);
}

h4 {
  font-size: 1.5rem;
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.8;
}

/* Navbar - Glassmorphic Style */
.navbar {
  background: var(--navbar-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-accent) !important;
  letter-spacing: -0.5px;
}

.nav-link {
  font-family: var(--font-accent);
  color: var(--text-primary) !important;
  position: relative;
  transition: color 0.3s ease;
  margin: 0 0.5rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

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

.navbar-toggler {
  border: none;
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='currentColor' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Buttons */
.btn {
  font-family: var(--font-accent);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary-accent);
  color: white;
  border: 2px solid var(--primary-accent);
}

.btn-primary:hover {
  background: transparent;
  color: var(--primary-accent);
  border: 2px solid var(--primary-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--shadow);
}

.btn-secondary {
  background: var(--secondary-accent);
  color: white;
  border: 2px solid var(--secondary-accent);
}

.btn-secondary:hover {
  background: transparent;
  color: var(--secondary-accent);
  border: 2px solid var(--secondary-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--shadow);
}

.btn-outline-primary {
  color: var(--primary-accent);
  border: 2px solid var(--primary-accent);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-accent);
  color: white;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px var(--shadow);
}

.card-img-top {
  object-fit: cover;
  height: 300px;
}

.card-body {
  padding: var(--spacing-lg);
  background: var(--surface);
}

.card-title {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.card-text {
  color: var(--text-secondary);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: var(--spacing-xl);
}

.hero-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: var(--spacing-xl);
}

.hero-content h1 {
  color: white;
  animation: fadeInUp 0.8s ease-out;
}

.hero-content p {
  color: rgba(255,255,255,0.95);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Bento Grid Layouts */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.bento-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.bento-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px var(--shadow);
}

.bento-item.span-2 {
  grid-column: span 2;
}

.bento-item.span-2-rows {
  grid-row: span 2;
}

@media (max-width: 768px) {
  .bento-item.span-2 {
    grid-column: span 1;
  }

  .bento-item.span-2-rows {
    grid-row: span 1;
  }
}

/* Glassmorphism Effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

html[data-theme="dark"] .glass-effect {
  background: rgba(30, 30, 30, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Featured Section */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.featured-item {
  grid-column: span 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
}

.featured-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.featured-item.horizontal {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-item.large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .featured-item.horizontal {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .featured-item.large,
  .featured-item.horizontal {
    grid-column: span 1;
  }
}

/* Section Styling */
section {
  padding: var(--spacing-xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-header h2 {
  margin-bottom: var(--spacing-md);
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Forms */
.form-control,
.form-select {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  background: var(--surface);
  color: var(--text-primary);
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px rgba(196, 93, 84, 0.1);
}

.form-label {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

/* Badges & Labels */
.badge {
  background: var(--primary-accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-accent);
  font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

/* Theme Toggle Button */
#themeToggleBtn {
  background: var(--primary-accent);
  color: white;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

#themeToggleBtn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px var(--shadow);
}

/* Language Selector */
.language-selector {
  position: relative;
}

.language-selector button,
.language-selector a {
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--surface);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-accent);
  font-weight: 600;
}

.language-selector button:hover,
.language-selector a:hover {
  background: var(--primary-accent);
  color: white;
  border-color: var(--primary-accent);
}

.language-selector button.active,
.language-selector a.active {
  background: var(--primary-accent);
  color: white;
  border-color: var(--primary-accent);
}

/* Footer */
footer {
  background: var(--secondary-accent);
  color: white;
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

footer h5 {
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
}

footer p,
footer a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

footer a {
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--primary-accent);
  text-decoration: underline;
}

footer hr {
  border-color: rgba(255, 255, 255, 0.2);
  margin: var(--spacing-lg) 0;
}

/* Accordion */
.accordion-button {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-family: var(--font-accent);
  font-weight: 600;
}

.accordion-button:not(.collapsed) {
  background: var(--surface-alt);
  color: var(--primary-accent);
}

.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(196, 93, 84, 0.1);
}

.accordion-body {
  background: var(--surface);
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
  padding: 1rem;
}

/* Modal */
.modal-content {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.modal-header {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border-color);
}

.modal-header h5 {
  font-family: var(--font-heading);
  color: var(--text-primary);
}

.modal-body {
  background: var(--surface);
  color: var(--text-secondary);
}

.btn-close {
  background: var(--text-primary);
}

/* Links & Hover States */
a {
  color: var(--primary-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-accent);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  section {
    padding: var(--spacing-lg) 0;
  }

  .container {
    padding: 0 var(--spacing-md);
  }

  .btn-lg {
    width: 100%;
  }

  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-link {
    margin: 0.5rem 0;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-md: 1rem;
    --spacing-lg: 1.25rem;
    --spacing-xl: 1.5rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .hero-content {
    padding: var(--spacing-lg);
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-start {
  text-align: left;
}

.text-end {
  text-align: right;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: var(--spacing-xs);
}

.mb-2 {
  margin-bottom: var(--spacing-sm);
}

.mb-3 {
  margin-bottom: var(--spacing-md);
}

.mb-4 {
  margin-bottom: var(--spacing-lg);
}

.mb-5 {
  margin-bottom: var(--spacing-xl);
}

.mt-3 {
  margin-top: var(--spacing-md);
}

.mt-4 {
  margin-top: var(--spacing-lg);
}

.mt-5 {
  margin-top: var(--spacing-xl);
}

.d-flex {
  display: flex;
}

.justify-content-center {
  justify-content: center;
}

.align-items-center {
  align-items: center;
}

.gap-3 {
  gap: var(--spacing-md);
}

.gap-4 {
  gap: var(--spacing-lg);
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.rounded {
  border-radius: var(--radius-lg);
}

.shadow-sm {
  box-shadow: 0 2px 8px var(--shadow);
}

.shadow {
  box-shadow: var(--card-shadow);
}

/* Dropdown */
.dropdown-menu {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.dropdown-item {
  color: var(--text-primary);
  transition: var(--transition);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--surface-alt);
  color: var(--primary-accent);
}

/* Image Styling */
img {
  border-radius: var(--radius-md);
}

/* List Styles */
.list-unstyled li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
}

/* Divider */
hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: var(--spacing-lg) 0;
}
