@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;800&display=swap');

:root {
  --primary: #6d2c2f;
  --primary-dark: #4b1e20;
  --accent: #dac6a2;
  --white: #f5f1e6;
  --background: #f1e9dc;
  --text: #2e1f13;
  --text-muted: #6e5e4b;
  --shadow: rgba(30, 20, 10, 0.1);
  --border-radius: 12px;
}

body.dark {
  --background: #19130f;
  --text: #f1e8db;
  --text-muted: #c5b49b;
  --white: #2b201a;
  --accent: #3b2c23;
  --shadow: rgba(255, 255, 255, 0.06);
  --primary: #a96567;
  --primary-dark: #86494c;
}

* {
  box-sizing: border-box;
  font-family: 'Playfair Display', 'Segoe UI', serif;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--background);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}

/* Navbar */
header.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--primary);
  color: var(--white);
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .logo {
  font-weight: 700;
  font-size: 1.2rem;
}

header nav a {
  margin: 0 12px;
  text-decoration: none;
  color: var(--white);
  font-weight: 500;
  transition: color 0.3s ease;
}

header nav a:hover {
  color: var(--accent);
}

header nav .dark-toggle {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  margin-left: 20px;
  color: var(--white);
}

/* Hero Section */
.hero {
  position: relative;
  background-color: rgba(109, 44, 47, 0.299);
  padding: 60px 20px;
  text-align: center;
  overflow: hidden; /* Prevent blur edges from showing */
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(Assets/Background/hero.jpg);
  background-position: center;
  background-size: cover;
  filter: blur(2px); /* Adjust blur strength */
  transform: scale(1.1); /* Prevent edge clipping */
  z-index: -1; /* Keep image behind content */
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: auto;
  padding: 2rem 1rem;
  z-index: 1; /* Make sure content stays on top */
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: 1000;
  color: var(--white);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-style: italic;
  color: #000000;
}


/* CTA Buttons */
.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cta-buttons button {
  background: var(--accent);
  color: var(--primary-dark);
  border: none;
  padding: 10px 18px;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-family: 'Playfair Display', serif;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.cta-buttons button:hover {
  background: var(--primary);
  color: var(--white);
}

/* Main Layout */
main {
  padding: 2rem 1.5rem;
  max-width: 1200px;
  margin: auto;
}

/* Panels */
.dual-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.progress-section,
.activity-section {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 6px var(--shadow);
}

.progress-section h2,
.activity-section h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

/* Clear Buttons */
.clear-buttons {
  margin-top: 1rem;
}

.clear-buttons button {
  background: var(--primary);
  color: var(--white);
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  margin-right: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.clear-buttons button:hover {
  background: var(--primary-dark);
}

#activity-feed {
  margin-top: 1rem;
  list-style: none;
}

#activity-feed li {
  padding: 6px 0;
  border-bottom: 1px solid var(--accent);
}

/* Scroll Sections */
.container-h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.scroll-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: thin;
}

.scroll-container::-webkit-scrollbar {
  height: 6px;
}

.scroll-container::-webkit-scrollbar-thumb {
  background: var(--primary-dark);
  border-radius: 10px;
}

/* Cards */
.card {
  width: 160px;
  height: 230px;
  border-radius: var(--border-radius);
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 12px var(--shadow);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 10px;
  color: var(--text);
  border: 1px solid rgba(90, 50, 30, 0.15);
  transition: transform 0.3s;
  position: relative;
}

.card:hover {
  transform: scale(1.04);
}

.card .content {
  background: rgba(245, 241, 230, 0.9);
  width: 100%;
  padding: 6px;
  border-radius: 8px;
  text-align: center;
}

.card .content h4 {
  font-size: 0.9rem;
  color: var(--text);
}
