:root {
  --bg-main: #0f172a;
  --bg-soft: #111827;
  --bg-card: #020617;
  --border-color: #1e293b;
  --text-main: #e2e8f0;
  --text-soft: #94a3b8;
  --text-faded: #64748b;
  --accent: #38bdf8;
  --accent-hover: #0ea5e9;
  --green: #22c55e;
  --yellow: #f59e0b;
  --red: #ef4444;
  --shadow-main: 0 20px 50px rgba(0, 0, 0, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'JetBrains Mono', monospace;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 25%),
    radial-gradient(circle at bottom left, rgba(34, 197, 94, 0.05), transparent 20%),
    var(--bg-main);
  color: var(--text-main);
}

a {
  text-decoration: none;
}

.custom-navbar {
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30, 41, 59, 0.9);
}

.navbar-brand,
.nav-link {
  color: var(--text-main) !important;
}

.nav-link:hover {
  color: var(--accent) !important;
}

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

.hero-title {
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.2;
  font-weight: 700;
}

.hero-text {
  color: var(--text-soft);
  max-width: 720px;
  font-size: 1rem;
}

.text-accent {
  color: var(--accent);
}

.section-spacing {
  padding: 100px 0;
}

.section-tag {
  color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.section-title,
.section-title-center {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
}

.section-title-center,
.section-text-center {
  text-align: center;
}

.section-text,
.section-text-center {
  color: var(--text-soft);
}

.custom-card {
  background: rgba(2, 6, 23, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-main);
  transition: 0.25s ease;
}

.custom-card:hover {
  border-color: rgba(56, 189, 248, 0.55);
  transform: translateY(-4px);
}

.mini-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 20px;
}

.mini-card h5 {
  color: var(--text-main);
  margin-bottom: 10px;
  font-size: 1rem;
}

.mini-card p {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.btn-accent {
  background: var(--accent);
  color: #00111a;
  border: none;
  font-weight: 700;
  border-radius: 14px;
  padding: 14px 22px;
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: #00111a;
}

.btn-outline-custom {
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 14px;
  padding: 14px 22px;
}

.btn-outline-custom:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(56, 189, 248, 0.06);
}

.terminal-box {
  background: rgba(2, 6, 23, 0.95);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--shadow-main);
  overflow: hidden;
  max-width: 760px;
}

.terminal-top,
.code-window-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.9);
}

.terminal-body {
  padding: 22px;
}

.terminal-body p {
  margin-bottom: 10px;
  color: var(--text-main);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red {
  background: var(--red);
}

.dot-yellow {
  background: var(--yellow);
}

.dot-green {
  background: var(--green);
}

.text-green {
  color: var(--green);
}

.text-blue {
  color: var(--accent);
}

.text-light-custom {
  color: var(--text-main);
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 18px;
  background: var(--green);
  margin-left: 6px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

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

.hero-illustration-card {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.code-illustration {
  width: 100%;
  max-width: 420px;
  background: rgba(2, 6, 23, 0.95);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-main);
}

.code-window-body {
  padding: 28px;
  min-height: 260px;
}

.code-line {
  margin-bottom: 16px;
  font-size: 1rem;
}

.floating-badge {
  position: absolute;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  box-shadow: var(--shadow-main);
  font-size: 0.82rem;
}

.badge-one {
  top: 40px;
  right: 30px;
}

.badge-two {
  bottom: 70px;
  left: 0;
}

.badge-three {
  bottom: 10px;
  right: 50px;
}

.skill-card .skill-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.18);
  color: var(--accent);
  font-weight: 700;
}

.skill-card h4 {
  margin-bottom: 12px;
}

.skill-card p {
  color: var(--text-soft);
  margin-bottom: 0;
}

.project-card {
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.project-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-color);
}

.project-body {
  padding: 22px;
}

.project-badge {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.78rem;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.project-title {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.project-text {
  color: var(--text-soft);
  margin-bottom: 0;
  font-size: 0.92rem;
}

.contact-card {
  padding-top: 48px;
  padding-bottom: 48px;
}

.contact-text {
  max-width: 760px;
}

.footer-section {
  padding: 30px 0 50px;
  color: var(--text-faded);
}

.custom-modal {
  background: #020617;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 24px;
}

.modal-project-image {
  max-height: 420px;
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.modal-label {
  color: var(--accent);
  margin-bottom: 10px;
}

.modal-text {
  color: var(--text-soft);
}

@media (max-width: 991.98px) {
  .hero-section .min-vh-100 {
    min-height: auto !important;
  }

  .hero-illustration-card {
    min-height: 320px;
  }

  .badge-two {
    left: 10px;
  }
}

@media (max-width: 767.98px) {
  .section-spacing {
    padding: 72px 0;
  }

  .custom-card {
    padding: 22px;
  }

  .project-image {
    height: 200px;
  }

  .floating-badge {
    font-size: 0.72rem;
    padding: 8px 12px;
  }
}