:root {
  --bs-primary-rgb: 13, 202, 240;
  --bs-success-rgb: 25, 135, 84;
  --bs-danger-rgb: 220, 53, 69;
  --gradient-primary: linear-gradient(135deg, #0dcaf0 0%, #198754 100%);
  --gradient-accent: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

/* Navigation */
.navbar {
  backdrop-filter: blur(10px);
  background: rgba(33, 37, 41, 0.95) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.navbar-brand {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 1.8rem;
}

.nav-link {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0.5rem;
  padding: 0.75rem 1rem !important;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(13, 202, 240, 0.15);
  color: #0dcaf0 !important;
  transform: translateY(-2px);
}

/* Hero */
.hero-section {
  background: linear-gradient(
    135deg,
    rgba(13, 202, 240, 0.1) 0%,
    rgba(220, 53, 69, 0.1) 100%
  );
  border-radius: 20px;
  padding: 4rem 2rem;
  margin: 2rem 0;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.1rem;
  color: #adb5bd;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.profile-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid #0dcaf0;
  box-shadow: 0 15px 35px rgba(13, 202, 240, 0.3);
  transition: all 0.3s ease;
  object-fit: cover;
  object-position: top;
}

.profile-image:hover {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 20px 40px rgba(13, 202, 240, 0.4);
}

/* Social */
.social-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.5rem;
  background: rgba(13, 202, 240, 0.1);
  border: 2px solid #0dcaf0;
  color: #0dcaf0;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.social-btn:hover {
  background: #0dcaf0;
  color: #000;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(13, 202, 240, 0.4);
}

/* Common */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.custom-divider {
  height: 4px;
  background: var(--gradient-accent);
  border: none;
  border-radius: 2px;
  margin: 4rem 0;
  opacity: 0.8;
}

/* Projects */
.project-card {
  background: rgba(52, 58, 64, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: #0dcaf0;
  box-shadow: 0 15px 35px rgba(13, 202, 240, 0.2);
}

.project-card .card-title {
  color: #0dcaf0;
  font-weight: 600;
  transition: color 0.3s ease;
}

.project-card .card-title:hover {
  color: #31d2f2;
}

.project-card img {
  transition: transform 0.3s ease;
  height: 200px;
  object-fit: cover;
}

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

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.card-heading .card-title {
  margin-bottom: 0;
  flex: 1;
}

.card-year-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(13, 202, 240, 0.4);
  background: rgba(13, 202, 240, 0.12);
  color: #8be9ff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.card-year-badge i {
  font-size: 0.72rem;
}

.project-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.65rem 0.8rem;
  border-left: 3px solid #ffc107;
  border-radius: 8px;
  background: rgba(255, 193, 7, 0.12);
  color: #ffe69c;
  font-size: 0.92rem;
  line-height: 1.5;
}

.project-note i {
  margin-top: 0.1rem;
  color: #ffc107;
  flex-shrink: 0;
}

.project-note-label {
  font-weight: 700;
  color: #ffd44d;
}

/* Skills */
.skill-item {
  background: rgba(52, 58, 64, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.skill-item:hover {
  background: rgba(13, 202, 240, 0.1);
  border-color: #0dcaf0;
  transform: translateY(-10px);
}

.skill-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.skill-item:hover img {
  transform: scale(1.2);
}

.skill-name {
  font-weight: 600;
  color: #fff;
  margin-top: 0.5rem;
}

/* Certifications */
.cert-card {
  background: rgba(52, 58, 64, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.cert-card:hover {
  transform: translateY(-10px);
  border-color: #0dcaf0;
  box-shadow: 0 15px 35px rgba(13, 202, 240, 0.2);
}

.cert-card .card-title {
  color: #0dcaf0;
  font-weight: 600;
  font-size: 1.1rem;
}

.cert-card .card-img-top {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center top;
  background-color: #1f2327;
}

.cert-card .cert-meta {
  min-height: 3rem;
}

.cert-card .btn {
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin: 0.25rem;
}

.cert-card .btn:hover {
  transform: translateY(-2px);
}

.cert-card .cert-verify.disabled {
  pointer-events: none;
}

/* Footer */
.footer {
  background: rgba(52, 58, 64, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  margin-top: 4rem;
  padding: 2rem;
  text-align: center;
}

/* Modal */
.pdf-modal-body {
  height: 80vh;
}

/* Utilities */
.bg-glass {
  background: rgba(52, 58, 64, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 1rem;
  }

  .profile-image {
    width: 150px;
    height: 150px;
  }

  .social-btn {
    width: 45px;
    height: 45px;
    margin: 0 0.25rem;
  }

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

  .cert-card .card-img-top {
    height: 280px;
  }

  .card-year-badge {
    font-size: 0.72rem;
    padding: 0.25rem 0.55rem;
  }
}
