:root {
  --primary-color: #0a1118;
  --secondary-color: #6c757d;
  --accent-color: #3498db;
  --background-color: #f8f9fa;
  --text-color: #333;
  --light-text-color: #666;
  --white: #ffffff;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
  background-size: cover;
  background-attachment: fixed;
  color: var(--white);
  text-align: center;
  padding: 150px 0;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(40%);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to top, var(--background-color), transparent);
  z-index: 2;
}

.hero-section .container {
  position: relative;
  z-index: 3;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInDown 1s ease-out;
}

.hero-section p {
  font-size: 1.3rem;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.5s both;
}

.section-title {
  font-weight: 600;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.section-title:hover::after {
  width: 100%;
}

.tip-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.tip-item {
  background-color: var(--white);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  border: 1px solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.tip-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.tip-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 20px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.tip-item:hover .tip-icon {
  transform: scale(1.1) rotate(10deg);
  color: var(--primary-color);
}

.tip-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.tip-item:hover h3 {
  color: var(--accent-color);
}

.tip-item p {
  font-size: 1rem;
  color: var(--light-text-color);
  line-height: 1.6;
  transition: color 0.3s ease;
}

.tip-item:hover p {
  color: var(--text-color);
}

.list-group-item {
  border: none;
  padding: 12px 20px;
  background-color: transparent;
  color: var(--text-color);
  transition: all 0.3s ease;
  border-radius: 8px;
  margin-bottom: 5px;
  position: relative;
  overflow: hidden;
}

.list-group-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--accent-color);
  transition: all 0.3s ease;
  z-index: -1;
}

.list-group-item:hover, .list-group-item:focus {
  color: var(--white);
  transform: translateX(5px);
}

.list-group-item:hover::before, .list-group-item:focus::before {
  left: 0;
}

.sticky-top {
  z-index: 1020;
  top: 20px;
  transition: all 0.3s ease;
}

.sticky-top.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .tip-container {
    grid-template-columns: 1fr;
  }

  .list-group-item:hover, .list-group-item:focus, .list-group-item:active {
    transform: none;  
    background-color: var(--accent-color);
  }
}


section {
  padding-top: 80px; 
  margin-top: -80px; 
}