@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Soft Pastel Light Theme Colors */
  --bg-primary: #FAF6F0;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F3EBE2;
  --text-primary: #2B231E;
  --text-secondary: #706259;
  --accent-rose: #C88282;
  --accent-rose-soft: rgba(200, 130, 130, 0.1);
  --accent-gold: #C08F58;
  --accent-gold-soft: rgba(192, 143, 88, 0.1);
  --accent-sage: #8EA093;
  --border-color: rgba(43, 35, 30, 0.08);
  --shadow-color: rgba(43, 35, 30, 0.04);
  --shadow-hover: rgba(43, 35, 30, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Outfit', sans-serif;
  
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
  /* Soft Charcoal Dark Theme Colors */
  --bg-primary: #12100F;
  --bg-secondary: #1C1917;
  --bg-tertiary: #27221F;
  --text-primary: #F5EFEB;
  --text-secondary: #A3968E;
  --accent-rose: #E29E9E;
  --accent-rose-soft: rgba(226, 158, 158, 0.15);
  --accent-gold: #DCA76F;
  --accent-gold-soft: rgba(220, 167, 111, 0.15);
  --accent-sage: #ACC0B2;
  --border-color: rgba(245, 239, 235, 0.08);
  --shadow-color: rgba(0, 0, 0, 0.4);
  --shadow-hover: rgba(0, 0, 0, 0.6);
  --glass-bg: rgba(28, 25, 23, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
}

/* Base resets & styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.6s ease, color 0.6s ease;
}

/* Custom Selection */
::selection {
  background-color: var(--accent-rose-soft);
  color: var(--accent-rose);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Layout Utilities */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

/* Complex Header Section */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

header.scrolled {
  box-shadow: 0 4px 30px var(--shadow-color);
  padding: 10px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: var(--transition-smooth);
}

header.scrolled .header-container {
  height: 60px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-dot {
  width: 12px;
  height: 12px;
  background-color: var(--accent-rose);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-rose);
  animation: logo-glow 3s infinite alternate;
}

@keyframes logo-glow {
  0% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 6px var(--accent-rose); }
  100% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 16px var(--accent-rose); }
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo-text span {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-rose);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-rose);
  transition: var(--transition-smooth);
}

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

.header-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.control-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.control-btn:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}

.control-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Theme Toggle custom rotation */
#theme-toggle svg {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#theme-toggle:hover svg {
  transform: rotate(30deg);
}

/* Hero Spotlight Section */
.hero-spotlight {
  padding: 40px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  min-height: 520px;
}

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

.hero-main-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background-color: var(--bg-secondary);
  box-shadow: 0 10px 40px var(--shadow-color);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
  min-height: 480px;
  z-index: 1;
}

.hero-main-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.85) 100%);
  z-index: 2;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 10s ease;
  z-index: 1;
}

.hero-main-card:hover .hero-bg-img {
  transform: scale(1.08);
}

.hero-content {
  position: relative;
  z-index: 3;
  color: #FFFFFF;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--accent-rose);
  color: white;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(200, 130, 130, 0.4);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 32px;
  }
}

.hero-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
  max-width: 600px;
  font-weight: 300;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.hero-side-scroll {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
}

.side-card {
  display: flex;
  gap: 20px;
  background-color: var(--bg-secondary);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 4px 20px var(--shadow-color);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.side-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-hover);
  border-color: var(--accent-rose);
}

.side-img-wrapper {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.side-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.side-card:hover .side-img {
  transform: scale(1.1);
}

.side-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.side-badge {
  font-size: 11px;
  color: var(--accent-gold);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.side-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Category Filter Tabs Bar with Sliding Pill Animation */
.filter-section {
  margin: 40px 0 20px;
}

.filter-bar-wrapper {
  background-color: var(--bg-secondary);
  border-radius: 50px;
  padding: 6px;
  box-shadow: 0 4px 15px var(--shadow-color);
  border: 1px solid var(--border-color);
  display: inline-flex;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .filter-bar-wrapper {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    border-radius: 20px;
  }
}

.filter-tab {
  background: none;
  border: none;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  z-index: 2;
  position: relative;
  transition: color 0.3s ease;
  border-radius: 40px;
}

.filter-tab.active {
  color: var(--bg-primary);
}

/* Floating animated pill for background slider */
.filter-pill {
  position: absolute;
  top: 6px;
  left: 6px;
  height: calc(100% - 12px);
  background: linear-gradient(135deg, var(--accent-rose) 0%, var(--accent-gold) 100%);
  border-radius: 40px;
  z-index: 1;
  box-shadow: 0 4px 12px var(--accent-rose-soft);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Articles Layout: News Grid & Sidebar */
.news-layout {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
}

@media (max-width: 992px) {
  .news-layout {
    grid-template-columns: 1fr;
  }
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

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

/* 3D tilt-like effect card style */
.news-card {
  background-color: var(--bg-secondary);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-color);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
  opacity: 0;
  transform: translateY(30px);
}

.news-card.reveal {
  opacity: 1;
  transform: translateY(0);
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px var(--shadow-hover);
  border-color: var(--accent-rose-soft);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.news-card:hover .card-img {
  transform: scale(1.06);
}

.card-bookmark-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  color: white;
  transition: var(--transition-bounce);
}

.card-bookmark-btn:hover {
  transform: scale(1.15);
  background-color: white;
  color: var(--accent-rose);
}

.card-bookmark-btn.bookmarked {
  background-color: white;
  color: var(--accent-rose);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 8px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--transition-fast);
}

.news-card:hover .card-title {
  color: var(--accent-rose);
}

.card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 300;
}

.card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  font-size: 12px;
  color: var(--text-secondary);
}

.author-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-sage);
  border-radius: 50%;
}

/* Sidebar Styling */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-widget {
  background-color: var(--bg-secondary);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 4px 20px var(--shadow-color);
  border: 1px solid var(--border-color);
}

.widget-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent-rose);
  border-radius: 2px;
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.trending-item {
  display: flex;
  gap: 16px;
  cursor: pointer;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.trending-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.trending-num {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-rose-soft);
  line-height: 1;
  transition: var(--transition-fast);
}

.trending-item:hover .trending-num {
  color: var(--accent-rose);
  transform: scale(1.1);
}

.trending-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.trending-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 4px;
  transition: var(--transition-fast);
}

.trending-item:hover .trending-title {
  color: var(--accent-rose);
}

.trending-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Newsletter Widget styling */
.newsletter-widget {
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(200, 130, 130, 0.05) 100%);
  text-align: center;
}

.newsletter-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.newsletter-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-input {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 14px 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-primary);
  width: 100%;
  transition: var(--transition-smooth);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--accent-rose);
  box-shadow: 0 0 10px var(--accent-rose-soft);
}

.newsletter-submit {
  background: linear-gradient(135deg, var(--accent-rose) 0%, var(--accent-gold) 100%);
  color: white;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 30px;
  padding: 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px var(--accent-rose-soft);
}

.newsletter-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(200, 130, 130, 0.4);
}

/* Complex Slider/Carousel Widget */
.gallery-widget {
  overflow: hidden;
  position: relative;
}

.gallery-slider {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.gallery-slide {
  min-width: 100%;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  height: 220px;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(360deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: white;
}

.gallery-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
}

.gallery-controls {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 50%;
  left: 10px;
  right: 10px;
  transform: translateY(-50%);
  pointer-events: none;
}

.gallery-arrow {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  pointer-events: auto;
  transition: var(--transition-fast);
}

.gallery-arrow:hover {
  background-color: white;
  color: var(--text-primary);
  transform: scale(1.1);
}

/* Complex Sliding Article Reading Drawer */
.reading-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.reading-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.reading-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 680px;
  height: 100%;
  background-color: var(--bg-secondary);
  z-index: 201;
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.reading-drawer-overlay.active .reading-drawer {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

@media (max-width: 576px) {
  .drawer-header {
    padding: 15px 20px;
  }
}

.drawer-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.drawer-close {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.drawer-close:hover {
  background-color: var(--bg-tertiary);
  transform: rotate(90deg);
}

.drawer-close svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.drawer-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.drawer-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.drawer-btn.liked {
  background-color: var(--accent-rose-soft);
  color: var(--accent-rose);
  border-color: var(--accent-rose);
  animation: heart-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heart-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.drawer-btn.bookmarked {
  background-color: var(--accent-gold-soft);
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.drawer-content-scroll {
  flex-grow: 1;
  overflow-y: auto;
  padding: 40px;
}

@media (max-width: 576px) {
  .drawer-content-scroll {
    padding: 20px;
  }
}

.drawer-hero {
  border-radius: 20px;
  overflow: hidden;
  height: 320px;
  margin-bottom: 30px;
  position: relative;
}

.drawer-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.drawer-tag {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.drawer-title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 20px;
}

@media (max-width: 576px) {
  .drawer-title {
    font-size: 26px;
  }
}

.drawer-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 30px;
  font-size: 13px;
  color: var(--text-secondary);
}

.drawer-body-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
  font-weight: 300;
}

.drawer-body-text p {
  margin-bottom: 24px;
}

.drawer-body-text p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-size: 60px;
  line-height: 40px;
  padding-top: 4px;
  padding-right: 8px;
  font-weight: 700;
  color: var(--accent-rose);
}

/* Custom Interactive Toast Messages */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 12px 24px;
  border-radius: 40px;
  box-shadow: 0 10px 30px var(--shadow-hover);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 300;
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
  pointer-events: none;
}

.toast-container.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-icon {
  color: var(--accent-rose);
  display: flex;
  align-items: center;
}

.toast-text {
  font-size: 14px;
  font-weight: 600;
}

/* Footer layout */
footer {
  background-color: var(--bg-tertiary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  transition: var(--transition-smooth);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 280px;
}

.footer-column-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-rose);
  transform: translateX(4px);
  display: inline-block;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-secondary);
}

@media (max-width: 576px) {
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-icon {
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.social-icon:hover {
  color: var(--accent-rose);
  transform: translateY(-2px);
}

/* Animations and entry effects */
.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }
.anim-delay-5 { animation-delay: 0.5s; }

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Premium Intro Loader Screen Overlay */
#loader {
  position: fixed;
  inset: 0;
  background-color: var(--bg-primary);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
}

.loader-brand {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.5px;
  animation: loader-pulse 2s infinite alternate ease-in-out;
}

.loader-brand span {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-rose);
}

.loader-bar-bg {
  width: 180px;
  height: 3px;
  background-color: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.loader-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-rose) 0%, var(--accent-gold) 100%);
  animation: loader-fill 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes loader-pulse {
  0% { transform: scale(0.96); opacity: 0.5; }
  100% { transform: scale(1.02); opacity: 1; }
}

@keyframes loader-fill {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* Scroll Reading Progress Bar */
#scroll-progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: transparent;
  z-index: 10;
}

#scroll-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-rose) 0%, var(--accent-gold) 100%);
  transition: width 0.1s ease;
}

/* Parallax card hover light shine overlay */
.card-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
  transition: opacity 0.4s ease;
}

