:root {
  --bcg-color: #ffee00;
  --second-color: #e4d500;
  --second-paragraph: #333333da;
  --paragraph: #333;
  --black-bcg: #ffffff;
  --title-color: #000;
  --welcome-img: url(/img/index/pcbcg.png);
  --border-color: #f0f0f0;
  --white-shadow: 1px solid #33333367;
  --second-icon: #33333396;
  --date: #33333381;
  --dark-yellow: #e4d500;
  --second-bcg: #f8f8f8;
  --picture-color: #ffffff;
  --test: #fff;
}

.dark-theme {
  --second-paragraph: #e0e0e0;
  --paragraph: #f0f0f0;
  --black-bcg: #1e1e1e;
  --title-color: #ffffff;
  --welcome-img: url(/img/index/pcbcg.png);
  --border-color: #333;
  --white-shadow: initial;
  --second-icon: #f0f0f09c;
  --date: #f0f0f073;
  --second-bcg: #2a2a2a;
  --picture-color: #000;
  --bcg-color: #ffee00;
  --second-color: #fff786;
  --dark-yellow: #ffee00;
  --test: #000;
}

#wlcm {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--bcg-color), var(--second-color));
  height: 400px;
  border-bottom: 2px solid var(--border-color);
  width: 100%;
  position: relative;
  top: 69px;
}

.welcome-content h2 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--title-color);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.welcome-content p {
  font-size: 1.2rem;
  color: var(--paragraph);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

#services-grid {
  padding: 120px 0 80px 0;
  /* background: linear-gradient(135deg, var(--black-bcg) 0%, var(--second-bcg) 50%, var(--black-bcg) 100%); */
  min-height: 100vh;
  position: relative;
  top: 69px;
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
  padding: 0 20px;
}

.services-header h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--title-color);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  background: linear-gradient(135deg, var(--title-color), var(--paragraph));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.services-header p {
  font-size: 1.3rem;
  color: var(--paragraph);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.services-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: var(--second-bcg);
  border-radius: 25px;
  padding: 45px 40px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  /* border: 2px solid var(--border-color); */
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 280px;
}

.service-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
  /* border-color: var(--second-color); */
}

.service-icon {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--bcg-color), var(--dark-yellow));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  order: 2;
}

.service-card:hover .service-icon {
  transform: scale(1.15) rotate(5deg);
  background: linear-gradient(135deg, var(--dark-yellow), var(--bcg-color));
}

.service-icon i {
  font-size: 3rem;
  color: #000;
}

/* Responsive icon sizes */
@media (max-width: 1279px) {
  .service-icon {
    width: 90px;
    height: 90px;
  }
  .service-icon i {
    font-size: 2.2rem;
  }
}

@media (max-width: 1023px) {
  .service-icon {
    width: 70px;
    height: 70px;
  }
  .service-icon i {
    font-size: 1.7rem;
  }
}

@media (max-width: 767px) {
  .service-icon {
    width: 60px;
    height: 60px;
  }
  .service-icon i {
    font-size: 1.3rem;
  }
}

@media (max-width: 499px) {
  .service-icon {
    width: 45px;
    height: 45px;
  }
  .service-icon i {
    font-size: 1rem;
  }
}

.service-content {
  flex: 1;
  max-width: 350px;
  margin-right: 25px;
  order: 1;
}

.service-card h3 {
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--title-color);
  margin-bottom: 18px;
  transition: color 0.3s ease;
  line-height: 1.3;
}

.service-card p {
  color: var(--paragraph);
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 0;
  transition: opacity 0.3s ease;
  font-size: 1.1rem;
}

.card-overlay {
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--bcg-color), var(--dark-yellow));
  color: #000;
  padding: 20px;
  text-align: center;
  transition: bottom 0.4s ease;
  font-size: 1.1rem;
  z-index: 2;
}

.service-card:hover .card-overlay {
  bottom: 0;
}

/* Dark theme adjustments */
.dark-theme .service-card {
  background: var(--second-bcg);
  box-shadow: none;
}

.dark-theme .service-card:hover {
  box-shadow: none;
}

/* Main font sizes for desktop */
.services-header h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--title-color);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  background: linear-gradient(135deg, var(--title-color), var(--paragraph));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.services-header p {
  font-size: 1.3rem;
  color: var(--paragraph);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.service-card h3 {
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--title-color);
  margin-bottom: 18px;
  transition: color 0.3s ease;
  line-height: 1.3;
}

.service-card p {
  font-size: 1.1rem;
  color: var(--paragraph);
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 0;
  transition: opacity 0.3s ease;
}

/* Responsive font sizes */
@media (max-width: 1279px) {
  .services-header h1 {
    font-size: 3rem;
  }
  .services-header p {
    font-size: 1.1rem;
  }
  .service-card h3 {
    font-size: 1.5rem;
  }
  .service-card p {
    font-size: 1rem;
  }
}

@media (max-width: 1023px) {
  .services-header h1 {
    font-size: 2.4rem;
  }
  .services-header p {
    font-size: 1rem;
  }
  .service-card h3 {
    font-size: 1.2rem;
  }
  .service-card p {
    font-size: 0.95rem;
  }
}

@media (max-width: 767px) {
  .services-header h1 {
    font-size: 1.7rem;
  }
  .services-header p {
    font-size: 0.95rem;
  }
  .service-card h3 {
    font-size: 1.1rem;
  }
  .service-card p {
    font-size: 0.9rem;
  }
}

@media (max-width: 499px) {
  .services-header h1 {
    font-size: 1.4rem;
  }
  .services-header p {
    font-size: 0.9rem;
  }
  .service-card h3 {
    font-size: 1rem;
  }
  .service-card p {
    font-size: 0.85rem;
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .services-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .services-header h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .services-header h1 {
    font-size: 2.5rem;
  }
  
  .services-header p {
    font-size: 1.1rem;
    padding: 0 20px;
  }
  
  .services-wrapper {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .service-card {
    padding: 35px 25px;
    margin: 0 10px;
    min-height: 250px;
    flex-direction: column;
    text-align: center;
  }

  .service-content {
    order: 2;
    max-width: none;
    margin-right: 0;
  }

  .service-icon {
    order: 1;
    margin-bottom: 20px;
  }

  #services-grid {
    padding: 100px 0 60px 0;
  }
  
  .services-header {
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .services-header h1 {
    font-size: 2rem;
  }
  
  .service-card {
    padding: 30px 20px;
    min-height: 220px;
  }

  .service-icon {
    width: 90px;
    height: 90px;
  }
  
  .service-icon i {
    font-size: 2.5rem;
  }
  
  .service-card h3 {
    font-size: 1.6rem;
  }

  .service-card p {
    font-size: 1rem;
  }
  
  #services-grid {
    padding: 90px 0 50px 0;
  }
}

/* Animation for cards on scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card {
  animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }
