:root {
  --primary: #5F8575;
  --secondary: #FFC38B;
  --accent: #CDB4DB;
  --success: #48BB78;
  --warning: #F6AD55;
  --error: #F56565;
  --background: #F0F4F9;
  --cardBackground: #FFFFFF;
  --inputBackground: #F8FAFC;
  --textPrimary: #2D3748;
  --textSecondary: #718096;
  --textDisabled: #A0AEC0;
  --border: #E2E8F0;
  --tagBackground: #EDF2F7;
  --backgroundSecondary: #FDF5EC;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes markerSweep {
  0%, 100% {
    width: 0;
  }
  50% {
    width: 100%;
  }
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background);
    color: var(--textPrimary);
}

/* Typography */
.hero-title, .section-title, .feature-item h4, .navbar-brand, h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

.highlight {
  position: relative;
  display: inline-block;
  color: white;
}

.highlight::before {
  content: 'Gratitude';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--textPrimary);
  overflow: hidden;
  width: 0;
  animation: markerSweep 4s linear infinite;
}

/* Spacing and Layout */
.hero-section, .stats-section, .features-section, .contact-section {
    padding: 6rem 0;
}

.hero-section {
    background: linear-gradient(-45deg, var(--primary), var(--secondary), var(--accent), var(--success));
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    color: white;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Stats Section */
.stats-section {
    background-color: transparent;
    position: relative;
    top: -50px;
}

.stats-section .container {
    background-color: var(--cardBackground);
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stats-section h3 {
    font-size: 3rem;
    font-weight: 700;
}

.stats-section p {
    color: var(--textSecondary);
}

/* Features Section */
.features-section {
    background-color: var(--backgroundSecondary);
}

.feature-item {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 36px 0 rgba(31, 38, 135, 0.2);
}

/* Glassmorphism Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1140px;
    border-radius: 15px;
    z-index: 100;
}

.navbar-brand, .nav-link {
    color: var(--textPrimary) !important;
}

/* Contact Section */
.contact-section a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: var(--cardBackground);
    border-top: 1px solid var(--border);
}

.footer a {
    text-decoration: none;
    color: var(--textSecondary);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary);
}
