:root {
  --bs-primary: #4f46e5;
  --bs-primary-rgb: 79, 70, 229;
  --accent: #10b981;
  --ink: #0f172a;
  --muted-bg: #f7f8fc;
}

.btn-primary,
.bg-primary {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
}

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

.border-primary {
  border-color: var(--bs-primary) !important;
}

body {
  font-family: 'Mulish', system-ui, sans-serif;
  color: var(--ink);
}

h1,
h2,
h3,
h4,
h5 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

section {
  padding: 80px 0;
}

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

.section-title span {
  color: var(--bs-primary);
}

.section-subtitle {
  color: #64748b;
  margin-bottom: 3rem;
}

.navbar {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff !important;
}

.navbar-brand span {
  color: var(--bs-primary);
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
}

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

.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #312e81 100%);
  color: #fff;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.25), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.18), transparent 40%);
}

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

.banner-img {
  width: 150px;
  height: 150px;
}

@media(min-width: 992px) {
  .banner-img {
    width: 600px;
    height: 600px;
  }
}

.img-container {
  position: relative;
  overflow: hidden;
}

.img-fit {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.banner-image {
  border-radius: 50%;
}

.hero .eyebrow {
  color: var(--accent);
  letter-spacing: 0.15em;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
}

.hero .role {
  color: #2fd459;
  font-weight: 900;
  font-size: 44px;
}

@media(max-width: 992px) {
  .hero .role {
    font-size: 18px;
  }
}

.type-cursor {
  display: inline-block;
  width: 3px;
  height: 0.65em;
  vertical-align: -0.05em;
  margin-left: 4px;
  background: var(--bs-primary);
  animation: type-blink 0.9s steps(1) infinite;
}

@keyframes type-blink {
  50% {
    opacity: 0;
  }
}

.profile-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.profile-card .avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bs-primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  font-weight: 700;
  margin: 0 auto;
}

.contact-strip {
  background: #fff;
  border-top: 1px solid #c7c7c7;
  color: #444;
}

.contact-strip a {
  color: #444;
  text-decoration: none;
}

.contact-strip a:hover {
  color: var(--bs-primary);
}

.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 8px;
  width: 2px;
  background: linear-gradient(to bottom,
      var(--bs-primary),
      rgba(79, 70, 229, 0.25));
  border-radius: 2px;
}

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

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

.timeline-item::before {
  content: "";
  position: absolute;
  top: 14px;
  left: -26px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--bs-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.timeline-card {
  background: #fff;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  border: 1px solid #eef2ff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-card:hover {
  transform: translateX(3px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
}

.timeline-card .period {
  color: #94a3b8;
  font-size: 0.85rem;
  white-space: nowrap;
}

.timeline-sm {
  padding-left: 22px;
}

.timeline-sm::before {
  left: 6px;
}

.timeline-sm .timeline-item::before {
  left: -22px;
  width: 11px;
  height: 11px;
  border-width: 2px;
  top: 12px;
}

@media (max-width: 576px) {
  .timeline {
    padding-left: 22px;
  }

  .timeline::before {
    left: 6px;
  }

  .timeline .timeline-item::before {
    left: -22px;
    width: 11px;
    height: 11px;
    border-width: 2px;
  }

  .timeline-card {
    padding: 0.85rem 1rem;
  }
}

.skill-group h6 {
  color: var(--bs-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.skill-badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  margin: 0.2rem;
  background: #eef2ff;
  color: #444;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.service-card {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
  border: 1px solid #e2e8f0;
  transition: all 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  border-color: var(--bs-primary);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 0rem;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(16, 185, 129, 0.15));
  color: var(--bs-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.stats-section {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  color: #fff;
  padding: 60px 0;
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  border-color: var(--bs-primary);
  color: inherit;
}

.project-cover {
  position: relative;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #eef2ff;
}

.project-icon {
  font-size: 3rem;
  color: var(--bs-primary);
  transition: transform 0.35s ease;
}

.project-card:hover .project-icon {
  transform: scale(1.08) rotate(-4deg);
}

.project-category {
  position: absolute;
  top: 14px;
  left: 14px;
  color: var(--bs-primary);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.65rem;
  border-radius: 2rem;
  border: 1px solid #e2e8f0;
}

.project-overlay {
  position: absolute;
  inset: auto 14px 14px auto;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--bs-primary);
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.project-overlay i {
  transition: transform 0.25s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
  transform: translateX(0);
}

.project-card:hover .project-overlay i {
  transform: translateX(4px);
}

.project-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

.project-desc {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
  line-height: 1.55;
}

.project-tags {
  margin-top: auto;
  padding-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.project-tags .tag {
  display: inline-block;
  background: #eef2ff;
  color: #4338ca;
  padding: 0.25rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.bg-muted {
  background: var(--muted-bg);
}

.cta-section {
  background: #fff;
  border-top: 1px solid #eef2ff;
}

.cta-form .form-control {
  border-radius: 0.6rem;
  border-color: #e2e8f0;
  padding: 0.75rem 1rem;
}

.cta-form .form-control:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.12);
}

footer {
  background: var(--ink);
  color: #cbd5e1;
  padding: 40px 0;
}

footer a {
  color: #cbd5e1;
  margin: 0 0.5rem;
  font-size: 1.2rem;
}

footer a:hover {
  color: var(--bs-primary);
}