:root {
  --primary-color: #400128;
  --secondary-color1: #262626;
  --secondary-color2: #daab2d;
  --secondary-color3: #a57a03;
  --white: #f2f2f2;
  --black: #000000;
  --gray-light: #f0f0f0;
  --gray: #6c757d;
  --gray-dark: #333333;
  --success: #23d160;
  --error: #ff3860;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
  --surface-color: #f8fafc;
  --overlay-bg: rgba(0, 0, 0, 0.5);
  --shadow-color: rgba(0, 0, 0, 0.1);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --shadow-sm: 0 1px 2px 0 var(--shadow-color);
  --shadow-md: 0 4px 6px -1px var(--shadow-color),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px var(--shadow-color),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --primary-hover: #daab2d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: var(--secondary-color2);
  color: var(--secondary-color1);
  overflow-x: hidden;
}

main {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
  padding-top: 20px;
}

.header-scrolled ~ main {
  margin-top: 50px;
  min-height: calc(100vh - 50px);
  padding-top: 15px;
}

/* Counter Section Styles */
.counter-section {
  background-color: var(--secondary-color1);
  color: var(--white);
  padding: 80px 5% 0;
  text-align: center;
}

.counter-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  max-width: 1200px;
  margin: 0 auto;
}

.counter-item {
  flex: 1;
  min-width: 250px;
  margin: 20px;
  padding: 30px 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.counter-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.counter-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  color: var(--secondary-color2);
}

.counter-number {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  transition: all 0.5s ease;
}

.counter-title {
  font-size: 1.2rem;
  color: #ddd;
}

/* Animation for counter */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.counter-item.animated .counter-number {
  animation: countUp 1s ease-out forwards;
}

/* Responsive styles */
@media (max-width: 768px) {
  .counter-item {
    min-width: 100%;
    margin: 10px 0;
  }

  .counter-number {
    font-size: 2rem;
  }

  .counter-icon {
    font-size: 2.5rem;
  }

  .error-page {
    margin: 10px;
    padding: 30px 15px;
  }

  .error-page h2 {
    font-size: 1.3rem;
  }
}


.counter-item {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: center;
}

.counter-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.counter-item:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.counter-item:hover::before {
  opacity: 1;
}

.counter-item:hover .counter-icon {
  transform: scale(1.1);
}

.counter-item:hover .counter-title {
  color: var(--secondary-color2);
}

/* Ray Effect */
.counter-ray-effect {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  overflow: hidden;
}

.counter-ray-effect::before {
  content: "";
  position: absolute;
  top: -150%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 30%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 70%,
    transparent 100%
  );
  transform: rotate(45deg) translateY(-100%);
  transition: transform 0.6s ease-out;
}

.counter-item:hover .counter-ray-effect {
  opacity: 1;
}

.counter-item:hover .counter-ray-effect::before {
  transform: rotate(45deg) translateY(100%);
}



.counter-icon,
.counter-title,
.counter-number {
  position: relative;
  z-index: 3;
  transition: all 0.3s ease;
}

/* Error Page Styles */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  margin: 20px;
  box-shadow: var(--shadow-md);
}

.error-page h2 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.error-page p {
  color: var(--text-secondary);
  margin-bottom: 25px;
  font-size: 1rem;
}




