/********** Template CSS **********/
:root {
  --primary: #00d285;
  --primary-hover: #00b874;
  --secondary: #1f293a;
  --light: #F2F2F2;
  --dark: #0f172a;
  --card-bg: rgba(30, 41, 59, 0.7);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-muted: #b7b7b7;
}

body {
  background-color: var(--dark);
  background-image:
    radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
    radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
    radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
  background-size: 200% 200%;
  animation: gradientBG 15s ease infinite;
  color: var(--light);
  font-family: 'Heebo', sans-serif;
}

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

/* Scroll Progress */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--primary);
  z-index: 100000;
  width: 0%;
  box-shadow: 0 0 10px var(--primary);
  transition: width 0.1s;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Inter', sans-serif;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

a {
  transition: 0.3s;
  text-decoration: none;
}

/* Spinner */
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease-out, visibility 0s linear .5s;
  z-index: 99999;
  background-color: var(--dark) !important;
}

#spinner.show {
  transition: opacity .5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/* Layout */
@media (max-width: 991.98px) {
  .sticky-lg-top.vh-100 {
    height: 100% !important;
  }
}

.fw-semi-bold {
  font-weight: 600;
}

.fw-medium {
  font-weight: 500;
}

/* Buttons */
.btn-square {
  width: 40px;
  height: 40px;
}

.btn-sm-square {
  width: 30px;
  height: 30px;
}

.btn-lg-square {
  width: 50px;
  height: 50px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn {
  font-weight: 600;
  transition: .3s;
  border-radius: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.btn.btn-primary {
  background: linear-gradient(45deg, var(--primary), #00a86b);
  border: none;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(0, 210, 133, 0.3);
}

.btn.btn-primary:hover {
  background: linear-gradient(45deg, #00a86b, var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 210, 133, 0.5);
}

.btn.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  color: var(--light);
  backdrop-filter: blur(5px);
}

.btn.btn-secondary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 15px var(--primary);
}

/* Sidebar Profile Image Premium */
.profile-container {
  width: 250px;
  height: 250px;
  position: relative;
  z-index: 1;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  /* Focus on face */
  border: 4px solid rgba(0, 210, 133, 0.8);
  box-shadow: 0 0 20px rgba(0, 210, 133, 0.4);
  transition: transform 0.5s ease;
}

.profile-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  filter: blur(20px);
  opacity: 0.6;
  z-index: -1;
  animation: pulseGlow 3s infinite alternate;
}

.profile-container:hover .profile-img {
  transform: scale(1.05);
  border-color: #fff;
}

@keyframes pulseGlow {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.5;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.8;
  }
}

/* Glassmorphism Cards */
.bg-secondary,
.service-item,
.skill,
.testimonial-carousel .owl-item,
.col-lg-4 .d-flex {
  background: var(--card-bg) !important;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Sections */
section.border-bottom {
  border-bottom-color: var(--glass-border) !important;
}

/* Typed Text */
.typed-cursor {
  font-size: 25px;
  color: var(--primary);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  display: none;
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 50px;
  font-size: 20px;
  right: 30px;
  bottom: 30px;
  transition: all 0.3s;
  z-index: 11;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 210, 133, 0.5);
}

.back-to-top:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-5px) rotate(360deg);
}

/* Titles */
.title {
  position: relative;
  display: inline-block;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 800;
  margin-bottom: 2rem;
}

.title::before {
  position: absolute;
  content: "";
  width: 10px;
  height: 10px;
  bottom: -4px;
  left: 0;
  border: 2px solid var(--primary);
  border-radius: 10px;
}

.title::after {
  position: absolute;
  content: "";
  width: 50px;
  height: 2px;
  bottom: 0;
  left: 15px;
  border-radius: 2px;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

/* Text Colors */
.text-primary {
  color: var(--primary) !important;
  text-shadow: 0 0 10px rgba(0, 210, 133, 0.3);
}

.text-light {
  color: var(--light) !important;
}

/* Progress Bars */
.progress {
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

/* Assuming these styles are for a .progress-bar element within .progress */
.progress-bar {
  background: linear-gradient(90deg, var(--primary), #00a86b);
  box-shadow: 0 0 10px rgba(0, 210, 133, 0.5);
}

/* Circular Progress */
.circular-progress {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--secondary) 84%, transparent 85% 100%),
    conic-gradient(var(--progress-color, var(--primary)) calc(var(--percent) * 1%), var(--glass-border) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  margin: 0 auto;
  transition: transform 0.3s;
  flex-direction: column;
}

.circular-progress::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  border-radius: 50%;
  background: var(--card-bg);
  z-index: 1;
}

.circular-progress i {
  font-size: 2.5rem;
  z-index: 2;
  color: var(--progress-color, var(--primary));
  margin-bottom: 5px;
  transition: 0.3s;
}

.circular-progress span {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  z-index: 2;
}

.skill:hover .circular-progress {
  transform: scale(1.1);
  box-shadow: 0 0 40px var(--progress-color, var(--primary));
}

.skill:hover .circular-progress i {
  transform: scale(1.2);
  text-shadow: 0 0 20px var(--progress-color, var(--primary));
}

/* Services / Projects */
.service-item {
  padding: 30px;
  text-align: center;
  transition: .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-item:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 210, 133, 0.1);
}

.service-item i {
  width: 75px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.5);
  color: var(--primary);
  transition: .5s;
  border-radius: 50%;
  margin-bottom: 20px !important;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.service-item:hover i {
  background: var(--primary);
  color: #fff;
  transform: rotateY(360deg);
  box-shadow: 0 0 30px var(--primary);
}

/* Icons */
.fab,
.fas,
.fa,
.bi {
  transition: 0.3s;
}

/* Readability */
p {
  color: #94a3b8;
  line-height: 1.8;
  font-size: 1.05rem;
}

.border-light {
  border-color: var(--glass-border) !important;
}

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

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

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

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

/* Circuit Timeline */
.timeline-circuit {
  position: relative;
  padding-left: 3rem;
  border-left: 2px dashed rgba(0, 210, 133, 0.3);
  margin-left: 1rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  left: -3.7rem;
  width: 20px;
  height: 20px;
  background: var(--dark);
  border: 4px solid var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  z-index: 2;
  transition: 0.3s;
}

.timeline-item:hover::before {
  background: var(--primary);
  box-shadow: 0 0 20px var(--primary);
  transform: scale(1.2);
}

.timeline-item::after {
  content: "";
  position: absolute;
  top: 2.1rem;
  left: -3rem;
  width: 3rem;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  z-index: 1;
}

.timeline-card {
  position: relative;
  transition: 0.3s;
  border-left: 4px solid var(--primary);
  background: var(--card-bg);
}

.timeline-card:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}