:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --dark-color: #212529;
  --light-color: #f8f9fa;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient: linear-gradient(135deg, var(--primary-color), #0056b3);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --primary-soft: #f0f7ff;
  --info-soft: #f0f9ff;
}

.light-mode {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e9ecef;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --border-color: #dee2e6;
  --card-bg: #ffffff;
  --navbar-bg: rgba(255, 255, 255, 0.95);
  --input-bg: #ffffff;
  --input-border: #ced4da;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

.dark-mode {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --bg-tertiary: #333333;
  --text-primary: #f8f9fa;
  --text-secondary: #adb5bd;
  --border-color: #404040;
  --card-bg: #2d2d2d;
  --navbar-bg: rgba(26, 26, 26, 0.95);
  --input-bg: #2c2c2c;
  --input-border: #444;
  --shadow-color: rgba(0, 0, 0, 0.3);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: var(--transition);
  scroll-behavior: smooth;
}

::selection {
  background: var(--primary-color);
  color: white;
}

.section-padding {
  padding: 6rem 0;
}

.section-title {
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.preloader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--border-color);
  z-index: 1000;
}

.scroll-progress-bar {
  height: 100%;
  background: var(--gradient);
  width: 0%;
  transition: width 0.1s ease;
}

.navbar {
  width: 100%;
  padding: 1rem 0;
  background-color: var(--navbar-bg);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand img {
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: rotate(-5deg) scale(1.1);
}

.nav-link {
  position: relative;
  padding: 0.5rem 1rem !important;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.nav-link.active {
  color: var(--primary-color) !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.nav-link:hover i {
  transform: translateY(-2px);
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  transition: var(--transition);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: var(--bg-secondary);
  transform: rotate(45deg);
}

.offcanvas {
  max-width: 300px;
  border: none;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.offcanvas-header {
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.offcanvas-title {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.offcanvas-title::before {
  content: "";
  width: 4px;
  height: 24px;
  background: var(--gradient);
  border-radius: 2px;
}

.offcanvas .navbar-nav {
  padding: 1rem;
}

.offcanvas .nav-item {
  margin-bottom: 0.5rem;
}

.offcanvas .nav-link {
  padding: 0.75rem 1rem !important;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.offcanvas .nav-link:hover,
.offcanvas .nav-link.active {
  background: var(--bg-secondary);
  color: var(--primary-color) !important;
  transform: translateX(5px);
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  opacity: 0.8;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-image {
  box-shadow: var(--shadow-lg);
}

.highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.stats-section {
  background: var(--gradient);
  color: white;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="white" opacity="0.1" x="0" y="0" width="100" height="100"/></svg>');
  opacity: 0.1;
}

.stats-card {
  padding: 2rem;
  text-align: center;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.stats-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
}

.expertise-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.expertise-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.expertise-card:hover::before {
  transform: scaleX(1);
}

.expertise-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.expertise-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.expertise-card:hover .expertise-icon {
  background: var(--gradient);
  transform: rotate(360deg);
}

.expertise-icon i {
  font-size: 2rem;
  color: var(--primary-color);
  transition: var(--transition);
}

.expertise-card:hover .expertise-icon i {
  color: white;
}

.expertise-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  text-align: left;
}

.expertise-list li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.expertise-list i {
  color: var(--success-color);
}

.service-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color) !important;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-card .card-body > div {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.service-card:hover .card-body > div {
  background: var(--gradient);
  transform: rotate(360deg);
}

.service-card .card-body i {
  font-size: 2rem;
  color: var(--primary-color);
  transition: var(--transition);
}

.service-card:hover .card-body i {
  color: white;
}

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: var(--border-color);
  z-index: 0;
}

.timeline-row {
  position: relative;
  margin-bottom: 8rem;
}

.timeline-col {
  position: relative;
  z-index: 1;
}

.timeline-center-col {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  position: relative;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 50%;
  border: 4px solid var(--bg-primary);
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
  animation: pulse 2s infinite;
  z-index: 2;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

.timeline-content {
  background: none;
  text-align: left;
}

.timeline-image-col {
  text-align: left;
}

.timeline-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin: 0 auto;
    display: block;
}

.timeline-image:hover img {
    box-shadow: 0 12px 40px rgba(0,123,255,0.18), 0 2px 8px rgba(0,0,0,0.10);
}

.timeline-item-wrapper:nth-child(even) .timeline-content-col {
  order: 2;
}

.timeline-item-wrapper:nth-child(even) .timeline-image-col {
  order: 1;
}

.timeline-item-wrapper:nth-child(even) .timeline-center-col {
  order: 2;
}

.timeline-content h3 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 2.25rem;
}

.timeline-image {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-image:hover {
    box-shadow: var(--shadow-lg);
}


.skills-grid {
  display: grid;
  gap: 2rem;
}

.skill-item {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.skill-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-md);
}

.progress {
  height: 8px;
  background-color: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  background: var(--gradient);
  transition: width 1s ease;
}

.testimonial-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  height: 100%;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.testimonial-content {
  position: relative;
  z-index: 1;
}

.testimonial-card .bi-quote {
  position: absolute;
  top: 1rem;
  right: 1rem;
  opacity: 0.1;
  transition: var(--transition);
}

.testimonial-card:hover .bi-quote {
  transform: rotate(180deg);
}

.contact-form-wrapper {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.form-floating > .form-control {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.form-floating > .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

.contact-info {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  height: 100%;
  border: 1px solid var(--border-color);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.contact-item:hover .contact-icon {
  background: var(--gradient);
  transform: rotate(360deg);
}

.contact-icon i {
  color: var(--primary-color);
  transition: var(--transition);
}

.contact-item:hover .contact-icon i {
  color: white;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--gradient);
  color: white;
  transform: translateY(-5px);
}

.footer {
  background-color: var(--bg-secondary);
  padding: 60px 0 0;
  color: var(--text-primary);
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient);
}

.footer-title {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--gradient);
}

.footer-links {
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.footer-form .input-group {
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.footer-form .form-control {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.8rem;
}

.footer-form .btn {
  padding: 0 1.5rem;
}

.scroll-top {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: var(--gradient);
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.scroll-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.scroll-top.visible {
  display: flex;
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  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);
  }
}

.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.timeline-panel {
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(0,0,0,0.08), 0 1.5px 6px rgba(0,0,0,0.04);
  padding: 2.5rem 2rem;
  margin-bottom: 3rem;
  transition: box-shadow 0.3s;
  border: 1px solid var(--border-color);
}

.timeline-panel:hover {
  box-shadow: 0 12px 40px rgba(0,123,255,0.10), 0 2px 8px rgba(0,0,0,0.06);
}

.timeline-item-wrapper:last-child .timeline-panel {
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .section-padding {
    padding: 4rem 0;
  }

  .hero {
    text-align: center;
    padding-top: 6rem;
  }

  .expertise-card,
  .project-card,
  .testimonial-card {
    margin-bottom: 2rem;
  }

  .navbar-nav {
    gap: 0.5rem;
  }
  .timeline::before {
    display: none;
  }
  .timeline-center-col {
    display: none !important;
  }
  .timeline-row {
    flex-direction: column !important;
    margin-bottom: 2.5rem;
  }
  .timeline-image {
    margin-bottom: 1.25rem;
    text-align: center;
  }
  .timeline-content {
    text-align: left !important;
    padding: 0 0.5rem;
  }
}

@media (max-width: 767.98px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero {
    padding-top: 5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .timeline-content h3 {
    font-size: 1.35rem;
  }
}

::-webkit-scrollbar {
  width: 10px;
}

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

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

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

.floating-menu {
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 999;
}

.floating-menu-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.floating-menu-btn:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.company-logo {
  opacity: 0.7;
  transition: var(--transition);
  filter: grayscale(100%);
}

.company-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}

.btn {
  padding: 0.8rem 1.5rem;
  font-weight: 500;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.btn-primary {
  background: var(--gradient);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background: var(--gradient);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.badge {
  padding: 0.5rem 1rem;
  font-weight: 500;
  border-radius: 30px;
}

.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

.dark-mode .navbar,
.dark-mode .offcanvas,
.dark-mode .card,
.dark-mode .form-control {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dark-mode .service-card,
.dark-mode .bg-light {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary);
}

.bg-gradient-primary {
  background: linear-gradient(135deg, #0d6efd, #0b5ed7);
}

.bg-gradient-dark {
  background: linear-gradient(135deg, #212529, #1a1e21);
}

.hover-scale {
  transition: transform 0.2s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

.bg-soft-primary {
  background-color: var(--primary-soft);
}

.bg-soft-info {
  background-color: var(--info-soft);
}

.btn-soft-primary {
  background-color: var(--primary-soft);
  color: #0d6efd;
  border: none;
  transition: all 0.3s ease;
}

.btn-soft-primary:hover {
  background-color: #0d6efd;
  color: white;
  transform: translateY(-2px);
}

.preview-icon-wrapper,
.code-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.preview-icon-wrapper {
  background-color: var(--primary-soft);
}

.code-icon-wrapper {
  background-color: var(--info-soft);
}

.preview-icon-wrapper i,
.code-icon-wrapper i {
  font-size: 2rem;
}

.preview-icon-wrapper:hover,
.code-icon-wrapper:hover {
  transform: scale(1.05);
}

.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out, opacity 0.2s ease;
  opacity: 0;
  transform: scale(0.98) translateY(-10px);
}

.modal.show .modal-dialog {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.modal-backdrop {
  backdrop-filter: blur(5px);
}

.modal-backdrop.show {
  opacity: 0.4;
}

.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(13, 110, 253, 0.1) !important;
}

@media (max-width: 576px) {
  .modal-body {
    padding: 2rem !important;
  }

  .preview-icon-wrapper,
  .code-icon-wrapper {
    width: 60px;
    height: 60px;
  }

  .preview-icon-wrapper i,
  .code-icon-wrapper i {
    font-size: 1.5rem;
  }
}

.btn {
  transition: all 0.3s ease;
}

.modal-content {
  animation: modalContent 0.3s ease-out;
}

@keyframes modalContent {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#contactSuccessModal,
#contactErrorModal,
#contactLoadingSpinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1051;
}

@keyframes modalEntrance {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.custom-modal {
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  animation: modalEntrance 0.5s ease-out;
}

.minimalist-okay-btn {
  background: #007bff;
  border: none;
  border-radius: 50px;
  padding: 8px 14px;
  transition: 0.2s ease-in-out;
  color: white;
  width: 80px;
}
.minimalist-okay-btn:hover {
  color: white;
  background: #0056b3;
}

.modal-content {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.bi-info-circle {
  color: #007bff;
}

.yp-category-label {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(var(--bs-primary-rgb), 0.2);
}

.yp-category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--bs-primary);
  color: white;
  border-radius: 8px;
  margin-right: 12px;
  font-size: 1rem;
}

.yp-project-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  background-color: white;
  height: 100%;
  margin-bottom: 10px;
}

.yp-project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.12);
}

.yp-card-img-container {
  position: relative;
  overflow: hidden;
  height: 140px;
}

.yp-card-img-container img {
  width: 10%;
  height: 100%;
  object-fit: cover;
}

.yp-project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s;
  text-align: center;
}

.yp-project-overlay p {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.yp-project-card:hover .yp-project-overlay {
  opacity: 1;
}

.yp-project-content {
  padding: 0.75rem;
}

.yp-project-content h6 {
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.yp-project-tags .badge {
  font-size: 0.65rem;
  padding: 0.25em 0.5em;
}

.dark-mode .navbar,
.dark-mode .footer,
.dark-mode .expertise-card,
.dark-mode .testimonial-card,
.dark-mode .contact-form-wrapper,
.dark-mode .contact-info,
.dark-mode .skill-item,
.dark-mode .yp-project-card,
.dark-mode .yp-project-content,
.dark-mode .modal-content,
.dark-mode .offcanvas {
  background-color: var(--card-bg);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.dark-mode .bg-light {
  background-color: var(--bg-secondary) !important;
}

.dark-mode .text-secondary {
  color: #adb5bd !important;
}

.dark-mode .form-control,
.dark-mode .form-select,
.dark-mode .form-floating > .form-control {
  background-color: var(--input-bg);
  border-color: var(--input-border);
  color: var(--text-primary);
}

.dark-mode .form-floating > label {
  color: var(--text-secondary);
}

.dark-mode .modal-header,
.dark-mode .modal-footer {
  border-color: var(--border-color);
}

.dark-mode .offcanvas-header {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
}

.dark-mode .progress {
  background-color: var(--bg-tertiary);
}

.dark-mode .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.dark-mode .social-link {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.dark-mode .expertise-icon,
.dark-mode .contact-icon {
  background-color: var(--bg-tertiary);
}

.dark-mode .btn-outline-light {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.dark-mode .yp-category-label {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.dark-mode .timeline-panel {
    background-color: var(--bg-tertiary);
    border-color: #444;
}

.tech-scroll {
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}

.tech-scroll::before,
.tech-scroll::after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px; 
  height: 100%;
  z-index: 2;
  pointer-events: none; 
}

.tech-scroll::before {
  left: 0;
  background: linear-gradient(to right, white 0%, transparent 100%);
}

.tech-scroll::after {
  right: 0;
  background: linear-gradient(to left, white 0%, transparent 100%);
}

.scroll-track {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-left 25s linear infinite;
}

.scroll-track:hover {
  animation-play-state: paused;
}

.tech-icon {
  display: inline-block;
  font-size: 3rem;
  margin-right: 2.5rem;
  vertical-align: middle;
  transition: transform 0.2s;
}

.tech-icon:hover {
  transform: scale(1.15);
  cursor: pointer;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .tech-icon {
    font-size: 2rem;
    margin-right: 1.5rem;
  }

  .tech-scroll::before,
  .tech-scroll::after {
    width: 40px; 
  }
}
