/* Improved Theme with Better Color Palette */

:root {
  /* Primary Colors */
  --primary: #ff3838;
  --primary-dark: #d32f2f;
  --primary-light: #ff5252;
  
  /* Background Colors */
  --bg-dark: #1a1a1a;
  --bg-card: #222222;
  --bg-element: #2a2a2a;
  
  /* Text Colors */
  --text-white: #ffffff;
  --text-light: #f0f0f0;
  --text-gray: #b0b0b0;
  
  /* Accent Colors */
  --accent-gold: #ffab00;
  --accent-blue: #2979ff;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  --gradient-dark: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
}

/* Reset some base styles */
body {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

/* Clean up sidebar */
.sidebar {
  background: var(--bg-card);
  border: none;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.avatar-box {
  border: 3px solid var(--primary);
}

.info-content .title {
  background: var(--primary);
  color: white;
  transition: all 0.3s ease;
}

.info-content .title:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Clean up articles */
article {
  background: var(--bg-card);
  border: none;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

article:hover {
  box-shadow: var(--shadow-lg);
}

/* Headings */
.h2, .h3, .h4, .h5 {
  color: var(--text-white);
}

.article-title::after {
  background: var(--primary);
  height: 3px;
}

/* Service items */
.service-item {
  background: var(--bg-element);
  border: none;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-item::before {
  display: none;
}


/* Timeline items */
.timeline-item {
  transition: all 0.3s ease;
}

.timeline-item:hover {
  transform: translateX(5px);
}

.timeline-item-title {
  color: var(--primary);
}

/* Navbar */
.navbar {
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(10px);
  border: none;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
}

.navbar-link {
  color: var(--text-gray);
  transition: all 0.3s ease;
}

.navbar-link:hover {
  color: var(--text-white);
}

.navbar-link.active {
  color: var(--primary);
}

.navbar-link.active::after {
  background: var(--primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Preloader */
.preloader {
  background-color: var(--bg-dark);
}

.circle-pulse__1, .circle-pulse__2 {
  background-color: var(--primary);
  box-shadow: 0 0 20px rgba(255, 56, 56, 0.3);
}

/* Clean animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: translateX(-20px);
  }
  to { 
    opacity: 1;
    transform: translateX(0);
  }
}

/* Apply animations */
.service-item, .testimonials-item {
  animation: slideUp 0.5s ease forwards;
  opacity: 0;
}

.timeline-item {
  animation: slideIn 0.5s ease forwards;
  opacity: 0;
}

/* Staggered animations */
.service-list .service-item:nth-child(1) { animation-delay: 0.1s; }
.service-list .service-item:nth-child(2) { animation-delay: 0.2s; }
.service-list .service-item:nth-child(3) { animation-delay: 0.3s; }
.service-list .service-item:nth-child(4) { animation-delay: 0.4s; }

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

/* Action buttons */
.action-button {
  background: var(--primary);
  box-shadow: 0 4px 15px rgba(255, 56, 56, 0.3);
  transition: all 0.3s ease;
}

.action-button:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 56, 56, 0.4);
}

/* Status indicator */
.status-indicator.online {
  background-color: #4CAF50;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
}

/* Icon boxes */
.icon-box {
  background: var(--bg-element);
  border: none;
  color: var(--primary);
}

.icon-box::before {
  display: none;
}

/* Contact items */
.contact-title {
  color: var(--text-gray);
}

.contact-info :is(.contact-link, time, address) {
  color: var(--text-white);
}

/* Testimonials */
.testimonials-avatar-box {
  border: 2px solid var(--primary);
}

.content-card {
  background: var(--bg-element);
  border: none;
}

.content-card::before {
  display: none;
}
