:root {
  --primary: #d63384;
  --primary-light: #f8d7ea;
  --primary-dark: #a61e61;
  --accent: #ff6b9d;
  --gold: #d4a574;
  --gold-light: #f5e6d3;
  --dark: #1a1a2e;
  --text: #2d2d44;
  --text-light: #6c6c8a;
  --cream: #faf8f5;
  --white: #ffffff;
  --rose: #e8d5d8;
  --lavender: #e6e0f3;
  --shadow: 0 2px 20px rgba(214, 51, 132, 0.08);
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html, body {
  width: 100%;
  margin: 0;
  padding: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.8;
  overflow-x: hidden;
}

::selection {
  background: var(--primary-light);
  color: var(--primary-dark);
}

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #d63384 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 1s ease, visibility 1s ease;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-heart {
  font-size: 80px;
  animation: pulse 2s ease-in-out infinite;
  margin-bottom: 20px;
}

.loading-text {
  color: var(--white);
  font-size: 18px;
  font-family: 'Noto Serif SC', serif;
  letter-spacing: 2px;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid rgba(214, 51, 132, 0.1);
}

.nav-logo {
  font-family: 'Noto Serif SC', serif;
  font-size: 20px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  position: relative;
  transition: var(--transition);
  padding: 5px 0;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

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

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

.nav-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary);
}

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(214, 51, 132, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(212, 165, 116, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(231, 224, 243, 0.1) 0%, transparent 50%);
}

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

.hero-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 72px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 8px;
  line-height: 1.2;
  background: linear-gradient(135deg, #ffffff 0%, #f8d7ea 50%, #d4a574 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 300;
  letter-spacing: 6px;
  color: var(--gold);
}

.hero-description {
  font-size: 18px;
  margin-bottom: 60px;
  opacity: 0.8;
  letter-spacing: 3px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-bottom: 60px;
  position: relative;
}

.hero-stats::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-number {
  display: block;
  font-size: 64px;
  font-weight: 700;
  font-family: 'Noto Serif SC', serif;
  color: var(--white);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.7;
}

.hero-btn {
  display: inline-block;
  padding: 18px 50px;
  background: transparent;
  color: var(--white);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.5);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.hero-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary);
  transition: var(--transition);
  z-index: -1;
}

.hero-btn:hover::before {
  left: 0;
}

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

.floating-hearts {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.floating-hearts::before,
.floating-hearts::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.floating-hearts::before {
  left: 10%;
  top: 20%;
  animation: float 8s ease-in-out infinite;
  box-shadow: 
    0 100px 0 rgba(255, 255, 255, 0.2),
    50px 200px 0 rgba(255, 255, 255, 0.15),
    -30px 300px 0 rgba(255, 255, 255, 0.25);
}

.floating-hearts::after {
  right: 15%;
  top: 30%;
  animation: float 10s ease-in-out infinite reverse;
  box-shadow: 
    0 150px 0 rgba(255, 255, 255, 0.2),
    -40px 250px 0 rgba(255, 255, 255, 0.15),
    60px 350px 0 rgba(255, 255, 255, 0.2);
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-40px) rotate(180deg); }
}

section {
  padding: 120px 50px;
  max-width: 100vw;
  box-sizing: border-box;
}

.section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 48px;
  text-align: center;
  margin-bottom: 15px;
  color: var(--text);
  letter-spacing: 4px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--primary);
  margin: 20px auto 0;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 80px;
  letter-spacing: 2px;
}

.timeline-section {
  background: var(--white);
  position: relative;
}

.timeline-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, transparent 49.5%, rgba(214, 51, 132, 0.05) 49.5%, rgba(214, 51, 132, 0.05) 50.5%, transparent 50.5%),
    repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(214, 51, 132, 0.03) 50px, rgba(214, 51, 132, 0.03) 51px);
  pointer-events: none;
}

.timeline-filter {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.filter-btn {
  padding: 12px 30px;
  background: transparent;
  border: 1px solid var(--rose);
  border-radius: 0;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.timeline-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding: 20px 0;
  overflow: visible;
  width: 100%;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--primary), var(--primary), transparent);
}

.timeline-item {
  display: flex;
  margin-bottom: 80px;
  position: relative;
  width: 100%;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-spacer {
  width: 45%;
  flex-shrink: 0;
}

.timeline-content {
  width: 45%;
  padding: 30px;
  position: relative;
  background: transparent;
  box-sizing: border-box;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  min-width: 0;
  flex-shrink: 1;
  flex-grow: 0;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: auto;
  padding-right: 50px;
  border-right: 1px solid var(--rose);
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
  padding-left: 50px;
  border-left: 1px solid var(--rose);
}

.timeline-date {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  color: var(--primary);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  z-index: 2;
  border: 1px solid var(--rose);
  letter-spacing: 1px;
  max-width: 90vw;
}

.timeline-item:nth-child(odd) .timeline-date {
  margin-left: 2.5%;
}

.timeline-item:nth-child(even) .timeline-date {
  margin-right: 2.5%;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 50%;
  z-index: 2;
  transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
  background: var(--primary);
  transform: translateX(-50%) scale(1.3);
}

.timeline-title {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--primary-dark);
  font-family: 'Noto Serif SC', serif;
  letter-spacing: 1px;
}

.timeline-reason {
  color: var(--text);
  margin-bottom: 12px;
  font-weight: 500;
  font-size: 16px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-all;
}

.timeline-description {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 15px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-all;
}

.timeline-love {
  font-style: italic;
  color: var(--gold);
  padding-left: 20px;
  border-left: 2px solid var(--gold);
  line-height: 1.6;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-all;
}

.timeline-severity {
  display: inline-block;
  padding: 5px 15px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid;
}

.timeline-severity.high {
  background: transparent;
  color: #d63031;
  border-color: #d63031;
}

.timeline-severity.moderate {
  background: transparent;
  color: #e17055;
  border-color: #e17055;
}

.timeline-severity.minor {
  background: transparent;
  color: #00b894;
  border-color: #00b894;
}

.timeline-severity.level-4 {
  background: transparent;
  color: #d63031;
  border-color: #d63031;
}

.timeline-severity.level-5 {
  background: transparent;
  color: #721c24;
  border-color: #721c24;
}

.timeline-severity.level-3 {
  background: transparent;
  color: #e17055;
  border-color: #e17055;
}

.timeline-severity.level-2 {
  background: transparent;
  color: #00bcd4;
  border-color: #00bcd4;
}

.timeline-severity.level-1 {
  background: transparent;
  color: #4caf50;
  border-color: #4caf50;
}

.timeline-initiator {
  display: inline-block;
  margin-left: 15px;
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 1px;
}

.statistics-section {
  background: var(--dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.statistics-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(214, 51, 132, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(212, 165, 116, 0.1) 0%, transparent 40%);
}

.statistics-section .section-title {
  color: var(--white);
}

.statistics-section .section-title::after {
  background: var(--gold);
}

.statistics-section .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  max-width: 1200px;
  margin: 0 auto 100px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card {
  padding: 50px 30px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  position: relative;
}

.stat-card:last-child {
  border-right: none;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.03);
}

.stat-icon {
  font-size: 32px;
  margin-bottom: 20px;
  opacity: 0.8;
}

.stat-card-title {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.stat-card-number {
  font-size: 56px;
  font-weight: 700;
  color: var(--white);
  font-family: 'Noto Serif SC', serif;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-card-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 10px;
  letter-spacing: 1px;
}

.chart-container {
  padding: 60px;
  max-width: 1000px;
  margin: 0 auto 60px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
  overflow: hidden;
}

.chart-title {
  text-align: center;
  font-size: 20px;
  margin-bottom: 50px;
  color: var(--white);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 300px;
  padding: 0 20px;
  position: relative;
}

.chart::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.chart-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 60px;
  transition: var(--transition);
}

.chart-bar:hover {
  transform: translateY(-10px);
}

.bar {
  width: 30px;
  background: linear-gradient(to top, var(--primary), var(--accent));
  border-radius: 0;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.bar-label {
  margin-top: 15px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
}

.bar-value {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 600;
  color: var(--white);
  font-size: 14px;
}

.severity-chart {
  display: flex;
  justify-content: center;
  gap: 80px;
  padding: 20px;
}

.severity-item {
  text-align: center;
}

.severity-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-weight: 700;
  font-size: 28px;
  border: 2px solid;
  background: transparent;
  transition: var(--transition);
}

.severity-circle:hover {
  transform: scale(1.1);
}

.severity-circle.high {
  border-color: #d63031;
  color: #d63031;
}

.severity-circle.moderate {
  border-color: #e17055;
  color: #e17055;
}

.severity-circle.minor {
  border-color: #00b894;
  color: #00b894;
}

.severity-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.months-section {
  background: var(--cream);
  position: relative;
}

.month-selector {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 80px;
}

.month-btn {
  padding: 12px 30px;
  background: transparent;
  border: 1px solid var(--rose);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
}

.month-btn:hover,
.month-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.month-content {
  max-width: 900px;
  margin: 0 auto;
}

.month-stats {
  padding: 50px;
  margin-bottom: 60px;
  border-left: 3px solid var(--primary);
  background: var(--white);
}

.month-stats h3 {
  margin-bottom: 30px;
  color: var(--primary);
  font-size: 24px;
  letter-spacing: 2px;
}

.month-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
}

.month-stat {
  text-align: center;
  padding: 30px;
  position: relative;
}

.month-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: var(--primary);
}

.month-stat-value {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Noto Serif SC', serif;
  line-height: 1;
  margin-bottom: 10px;
}

.month-stat-label {
  color: var(--text-light);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.quarrel-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.quarrel-card {
  padding: 40px;
  border-bottom: 1px solid var(--rose);
  transition: var(--transition);
  position: relative;
  background: transparent;
}

.quarrel-card:first-child {
  border-top: 1px solid var(--rose);
}

.quarrel-card:hover {
  background: var(--white);
}

.quarrel-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary);
  transform: scaleY(0);
  transition: var(--transition);
}

.quarrel-card:hover::before {
  transform: scaleY(1);
}

.quarrel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.quarrel-date {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 1px;
}

.quarrel-body {
  margin-bottom: 20px;
}

.quarrel-reason {
  font-weight: 500;
  margin-bottom: 12px;
  font-size: 18px;
  color: var(--text);
}

.quarrel-description {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 15px;
}

.quarrel-love {
  font-style: italic;
  color: var(--gold);
  padding-left: 20px;
  border-left: 2px solid var(--gold);
  line-height: 1.6;
}

.quarrel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 1px;
}

.letter-section {
  background: var(--lavender);
  position: relative;
}

.letter-section .section-title {
  color: var(--text);
}

.letter-section .section-subtitle {
  color: var(--text-light);
}

.letter-container {
  max-width: 750px;
  margin: 0 auto;
}

.letter {
  background: var(--white);
  color: var(--text);
  padding: 80px 60px;
  position: relative;
  border: 1px solid rgba(230, 224, 243, 0.5);
}

.letter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--gold), var(--primary));
}

.letter-date {
  text-align: right;
  color: var(--text-light);
  margin-bottom: 30px;
  font-size: 14px;
  letter-spacing: 2px;
}

.letter-greeting {
  font-size: 28px;
  font-family: 'Noto Serif SC', serif;
  margin-bottom: 40px;
  color: var(--primary);
  letter-spacing: 2px;
}

.letter-body p {
  margin-bottom: 25px;
  line-height: 2;
  font-size: 16px;
  text-indent: 2em;
}

.letter-body p:first-of-type {
  text-indent: 0;
}

.letter-signature {
  text-align: right;
  margin-top: 60px;
  font-family: 'Noto Serif SC', serif;
  font-size: 20px;
  color: var(--primary);
  line-height: 1.6;
}

.footer {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
}

.footer p {
  margin: 10px 0;
  opacity: 0.6;
  letter-spacing: 2px;
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  border: 1px solid var(--primary);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: transparent;
  color: var(--primary);
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-card:nth-child(3) {
    border-right: none;
  }

  .stat-card:nth-child(4),
  .stat-card:nth-child(5),
  .stat-card:nth-child(6) {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

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

  .nav-logo {
    font-size: 18px;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    width: 100%;
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-link {
    padding: 15px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--rose);
    text-align: center;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero-section {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-title {
    font-size: 40px;
    letter-spacing: 3px;
  }

  .hero-subtitle {
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 15px;
  }

  .hero-description {
    font-size: 14px;
    margin-bottom: 40px;
    letter-spacing: 1px;
  }

  .hero-stats {
    gap: 30px;
    margin-bottom: 40px;
  }

  .hero-stats::before {
    display: none;
  }

  .stat-number {
    font-size: 42px;
  }

  .stat-label {
    font-size: 12px;
    letter-spacing: 2px;
  }

  .hero-btn {
    padding: 15px 40px;
    font-size: 13px;
    letter-spacing: 2px;
  }

  section {
    padding: 60px 20px;
  }

  .section-title {
    font-size: 32px;
    letter-spacing: 2px;
  }

  .section-subtitle {
    font-size: 14px;
    margin-bottom: 50px;
    letter-spacing: 1px;
  }

  .timeline-filter {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
  }

  .filter-btn {
    padding: 8px 20px;
    font-size: 12px;
  }

  .timeline-container {
    padding: 10px 0;
  }

  .timeline-container::before {
    left: 20px;
  }

  .timeline-item {
    flex-direction: column !important;
    margin-bottom: 50px;
    position: relative;
    max-width: none;
  }

  .timeline-item:last-child {
    margin-bottom: 0;
  }

  .timeline-content {
    width: calc(100% - 50px);
    margin-left: 50px !important;
    padding: 20px 15px !important;
    border-left: 2px solid var(--rose) !important;
    border-right: none !important;
    position: relative;
  }

  .timeline-date {
    position: static;
    left: auto;
    transform: none;
    margin: 0 0 10px 0 !important;
    font-size: 12px;
    padding: 4px 10px;
    display: inline-block;
    white-space: normal;
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--rose);
    letter-spacing: 1px;
    font-weight: 600;
  }

  .timeline-dot {
    position: absolute;
    left: 14px;
    top: 8px;
    width: 12px;
    height: 12px;
  }

  .timeline-title {
    font-size: 18px;
    margin-bottom: 12px;
    word-wrap: break-word;
  }

  .timeline-reason {
    font-size: 14px;
    margin-bottom: 10px;
    word-wrap: break-word;
    line-height: 1.6;
  }

  .timeline-description {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
    word-wrap: break-word;
    overflow: visible;
    text-overflow: clip;
    display: block;
    white-space: normal;
    max-height: none;
  }

  .timeline-love {
    font-size: 14px;
    padding-left: 15px;
    line-height: 1.6;
    word-wrap: break-word;
    white-space: normal;
  }

  .timeline-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    align-items: center;
  }

  .timeline-severity {
    font-size: 10px;
    padding: 4px 12px;
    display: inline-block;
  }

  .timeline-initiator {
    font-size: 11px;
    margin-left: 0;
    display: inline-block;
  }

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

  .stat-card {
    padding: 30px 20px;
  }

  .stat-card:nth-child(2) {
    border-right: none;
  }

  .stat-card:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  .stat-card:nth-child(n+3) {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .stat-icon {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .stat-card-title {
    font-size: 11px;
    margin-bottom: 12px;
  }

  .stat-card-number {
    font-size: 42px;
  }

  .chart-container {
    padding: 30px 20px;
    margin-bottom: 40px;
  }

  .chart-title {
    font-size: 16px;
    margin-bottom: 30px;
    letter-spacing: 2px;
  }

  .chart {
    height: 200px;
    padding: 0 10px;
  }

  .chart-bar {
    width: 35px;
  }

  .bar {
    width: 22px;
  }

  .bar-label {
    font-size: 10px;
    margin-top: 10px;
  }

  .bar-value {
    font-size: 12px;
    top: -25px;
  }

  .severity-chart {
    gap: 30px;
  }

  .severity-circle {
    width: 80px;
    height: 80px;
    font-size: 24px;
  }

  .severity-label {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .month-selector {
    gap: 8px;
    margin-bottom: 50px;
  }

  .month-btn {
    padding: 8px 18px;
    font-size: 12px;
    letter-spacing: 1px;
  }

  .month-stats {
    padding: 30px 20px;
    margin-bottom: 40px;
  }

  .month-stats h3 {
    font-size: 20px;
    margin-bottom: 25px;
    letter-spacing: 1px;
  }

  .month-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .month-stat {
    padding: 20px 15px;
  }

  .month-stat-value {
    font-size: 36px;
  }

  .month-stat-label {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .quarrel-card {
    padding: 25px 20px;
  }

  .quarrel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
  }

  .quarrel-date {
    font-size: 14px;
  }

  .quarrel-reason {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .quarrel-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
  }

  .quarrel-love {
    font-size: 14px;
    padding-left: 15px;
  }

  .quarrel-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
  }

  .letter {
    padding: 40px 25px;
  }

  .letter-date {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .letter-greeting {
    font-size: 22px;
    margin-bottom: 30px;
  }

  .letter-body p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
  }

  .letter-signature {
    font-size: 18px;
    margin-top: 40px;
  }

  .footer {
    padding: 40px 20px;
  }

  .footer p {
    font-size: 13px;
    letter-spacing: 1px;
  }

  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 25px;
    right: 25px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 10px 15px;
  }

  .nav-logo {
    font-size: 16px;
  }

  .nav-menu {
    top: 48px;
  }

  .nav-link {
    padding: 12px 0;
    font-size: 12px;
  }

  .nav-toggle {
    font-size: 22px;
  }

  .hero-content {
    padding: 15px;
  }

  .hero-title {
    font-size: 28px;
    letter-spacing: 1px;
    margin-bottom: 15px;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 14px;
    letter-spacing: 1px;
  }

  .hero-description {
    font-size: 13px;
    margin-bottom: 30px;
    line-height: 1.6;
  }

  .hero-stats {
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
  }

  .stat-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }

  .stat-number {
    font-size: 36px;
    margin-bottom: 0;
  }

  .stat-label {
    font-size: 13px;
  }

  .hero-btn {
    padding: 12px 35px;
    font-size: 12px;
  }

  .floating-hearts::before,
  .floating-hearts::after {
    box-shadow: none;
  }

  section {
    padding: 50px 15px;
  }

  .section-title {
    font-size: 26px;
    letter-spacing: 1px;
    margin-bottom: 10px;
  }

  .section-title::after {
    width: 40px;
    margin: 15px auto 0;
  }

  .section-subtitle {
    font-size: 13px;
    margin-bottom: 40px;
    letter-spacing: 1px;
  }

  .timeline-section::before {
    display: none;
  }

  .timeline-filter {
    gap: 8px;
    margin-bottom: 30px;
  }

  .filter-btn {
    padding: 6px 15px;
    font-size: 11px;
  }

  .timeline-container::before {
    left: 15px;
  }

  .timeline-item {
    margin-bottom: 40px;
    position: relative;
    padding-left: 5px;
    max-width: none;
  }

  .timeline-item:last-child {
    margin-bottom: 0;
  }

  .timeline-content {
    width: calc(100% - 40px);
    margin-left: 40px !important;
    padding: 18px 15px !important;
    border-left: 2px solid var(--rose) !important;
    border-right: none !important;
    position: relative;
  }

  .timeline-date {
    position: static;
    left: auto;
    transform: none;
    margin: 0 0 10px 0 !important;
    font-size: 12px;
    padding: 5px 12px;
    display: inline-block;
    white-space: normal;
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--rose);
    letter-spacing: 1px;
    font-weight: 600;
  }

  .timeline-dot {
    position: absolute;
    left: 9px;
    top: 6px;
    width: 10px;
    height: 10px;
  }

  .timeline-title {
    font-size: 16px;
    margin-bottom: 10px;
    word-wrap: break-word;
  }

  .timeline-reason {
    font-size: 14px;
    margin-bottom: 10px;
    word-wrap: break-word;
    line-height: 1.6;
  }

  .timeline-description {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
    word-wrap: break-word;
    overflow: visible;
    text-overflow: clip;
    display: block;
    white-space: normal;
    max-height: none;
  }

  .timeline-love {
    font-size: 14px;
    padding-left: 15px;
    line-height: 1.6;
    word-wrap: break-word;
    white-space: normal;
  }

  .timeline-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    align-items: center;
  }

  .timeline-severity {
    font-size: 10px;
    padding: 4px 12px;
    display: inline-block;
  }

  .timeline-initiator {
    font-size: 11px;
    margin-left: 0;
    display: inline-block;
  }

  .statistics-section::before {
    display: none;
  }

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

  .stat-card {
    padding: 25px 20px;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .stat-card:last-child {
    border-bottom: none;
  }

  .stat-card::before {
    width: 100%;
    height: 2px;
    top: 0;
  }

  .stat-card:hover::before {
    transform: scaleX(1);
  }

  .stat-icon {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .stat-card-title {
    font-size: 10px;
    margin-bottom: 10px;
  }

  .stat-card-number {
    font-size: 36px;
  }

  .stat-card-desc {
    font-size: 11px;
  }

  .chart-container {
    padding: 25px 15px;
    margin-bottom: 30px;
  }

  .chart-title {
    font-size: 14px;
    margin-bottom: 25px;
  }

  .chart {
    height: 180px;
    padding: 0 5px;
  }

  .chart-bar {
    width: 28px;
  }

  .bar {
    width: 18px;
  }

  .bar-label {
    font-size: 9px;
    margin-top: 8px;
  }

  .bar-value {
    font-size: 10px;
    top: -20px;
  }

  .severity-chart {
    gap: 20px;
    padding: 15px;
  }

  .severity-circle {
    width: 70px;
    height: 70px;
    font-size: 20px;
  }

  .severity-label {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .month-selector {
    gap: 6px;
    margin-bottom: 40px;
  }

  .month-btn {
    padding: 6px 14px;
    font-size: 11px;
    letter-spacing: 0.5px;
  }

  .month-stats {
    padding: 25px 15px;
    margin-bottom: 30px;
  }

  .month-stats h3 {
    font-size: 18px;
    margin-bottom: 20px;
    letter-spacing: 1px;
  }

  .month-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .month-stat {
    padding: 15px 10px;
  }

  .month-stat-value {
    font-size: 30px;
  }

  .month-stat-label {
    font-size: 10px;
    letter-spacing: 0.5px;
  }

  .quarrel-list {
    gap: 0;
  }

  .quarrel-card {
    padding: 20px 15px;
  }

  .quarrel-card::before {
    width: 1.5px;
  }

  .quarrel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
  }

  .quarrel-date {
    font-size: 13px;
  }

  .quarrel-reason {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .quarrel-description {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 10px;
  }

  .quarrel-love {
    font-size: 13px;
    padding-left: 12px;
    line-height: 1.5;
  }

  .quarrel-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 11px;
  }

  .letter {
    padding: 30px 20px;
  }

  .letter::before {
    height: 3px;
  }

  .letter-date {
    font-size: 12px;
    margin-bottom: 15px;
    letter-spacing: 1px;
  }

  .letter-greeting {
    font-size: 18px;
    margin-bottom: 25px;
  }

  .letter-body p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
    text-indent: 0;
  }

  .letter-signature {
    font-size: 16px;
    margin-top: 30px;
    line-height: 1.5;
  }

  .footer {
    padding: 30px 15px;
  }

  .footer p {
    font-size: 12px;
    letter-spacing: 1px;
    margin: 8px 0;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
    font-size: 16px;
  }
}

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

  .hero-subtitle {
    font-size: 13px;
  }

  .hero-description {
    font-size: 12px;
  }

  .stat-number {
    font-size: 32px;
  }

  .section-title {
    font-size: 24px;
  }

  .timeline-content {
    padding: 12px 12px 12px 16px !important;
  }

  .stat-card {
    padding: 20px 15px;
  }

  .stat-card-number {
    font-size: 32px;
  }

  .chart {
    height: 150px;
  }

  .month-stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding: 80px 20px 40px;
  }

  .hero-content {
    padding: 20px;
  }

  .hero-title {
    font-size: 36px;
    margin-bottom: 10px;
  }

  .hero-stats {
    flex-direction: row;
    gap: 40px;
    margin-bottom: 30px;
  }

  .hero-stats::before {
    display: block;
  }

  .stat-number {
    font-size: 36px;
  }

  .hero-btn {
    padding: 12px 30px;
  }

  section {
    padding: 40px 20px;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@supports (padding: max(0px)) {
  @media (max-width: 768px) {
    .navbar {
      padding-top: max(12px, env(safe-area-inset-top));
      padding-bottom: max(12px, 4px);
    }

    .back-to-top {
      right: max(25px, env(safe-area-inset-right));
      bottom: max(25px, env(safe-area-inset-bottom));
    }
  }
}
