:root {
  --deep-navy: #050816;
  --midnight: #0a1b3d;
  --electric-blue: #2b6bff;
  --sky-blue: #5ecbff;
  --soft-white: #f5f7ff;
  --frost: rgba(255, 255, 255, 0.08);
  --frost-strong: rgba(255, 255, 255, 0.15);
  --text-muted: rgba(255, 255, 255, 0.65);
  --gradient: linear-gradient(120deg, #0b5cff, #28e0ff);
  --gradient-soft: linear-gradient(140deg, rgba(91, 210, 255, 0.35), rgba(43, 107, 255, 0.2));
  --shadow-soft: 0 20px 60px rgba(5, 8, 22, 0.65);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Space Grotesk', 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top left, rgba(43, 107, 255, 0.4), transparent 45%),
    radial-gradient(circle at 20% 20%, rgba(94, 203, 255, 0.3), transparent 35%),
    var(--deep-navy);
  color: var(--soft-white);
  position: relative;
  overflow-x: hidden;
}

.bg-midnight {
  background: var(--deep-navy);
}

.texture-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url('https://www.transparenttextures.com/patterns/graphy.png');
  opacity: 0.08;
  mix-blend-mode: screen;
}

.navbar .navbar-brand {
  letter-spacing: 0.08em;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding-block: 0.75rem;
  background: rgba(5, 8, 22, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.nav-link {
  color: var(--text-muted) !important;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--soft-white) !important;
}

.navbar-toggler-icon {
  filter: invert(1) grayscale(100%) brightness(200%);
}


.hero .display-4 {
  line-height: 1.1;
}

.eyebrow {
  letter-spacing: 0.2em;
  font-size: 0.8rem;
}

.btn-gradient,
.btn-glow {
  border: 0;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 20px 30px rgba(43, 107, 255, 0.35);
}

.btn-glow {
  padding-inline: 1.75rem;
}

.btn-outline-light {
  border-radius: 999px;
}

.btn-gradient:hover,
.btn-glow:hover {
  filter: brightness(1.1);
  color: #fff;
}

.text-white-70 {
  color: rgba(255, 255, 255, 0.7) !important;
}

.code-panel {
  background: rgba(8, 15, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  position: relative;
}

.code-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(94, 203, 255, 0.25);
  pointer-events: none;
}

.code-block {
  color: var(--sky-blue);
  font-family: 'Space Grotesk', 'Fira Code', monospace;
  font-size: 0.9rem;
  white-space: pre-wrap;
}

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

.dot-red {
  background: #ff5f57;
}

.dot-amber {
  background: #ffbd2e;
}

.dot-green {
  background: #27c93f;
}

.floating-card {
  position: absolute;
  right: -30px;
  background: rgba(13, 26, 58, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 1.5rem;
  width: min(320px, 90%);
  box-shadow: var(--shadow-soft);
  animation: float 6s ease-in-out infinite;
}

.stack-card {
  top: 10%;
}

.availability-card {
  bottom: -10%;
  animation-delay: 1.5s;
}

.floating-card .label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--sky-blue);
}

.section {
  position: relative;
}

.section-glass {
  background: rgba(5, 8, 22, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-glow {
  background: radial-gradient(circle at 10% 20%, rgba(46, 120, 255, 0.18), rgba(5, 8, 22, 0.9));
}

.timeline {
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  margin-left: 1.5rem;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.1rem;
  top: 0.45rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--sky-blue);
  background: var(--deep-navy);
}

.timeline-year {
  font-size: 0.8rem;
  letter-spacing: 0.5em;
  color: var(--sky-blue);
  text-transform: uppercase;
}

.badge-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pulse-badge {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(94, 203, 255, 0.4);
  color: var(--sky-blue);
  font-size: 0.85rem;
  animation: pulse 4s ease-in-out infinite;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
}

.progress.thin {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.bg-gradient {
  background: var(--gradient);
  border-radius: 999px;
}

.project-card {
  background: rgba(8, 15, 32, 0.85);
  border: 1px solid rgba(64, 94, 255, 0.3);
  border-radius: 1.5rem;
  padding: 1.75rem;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 1.35rem;
  border: 1px solid rgba(94, 203, 255, 0.12);
  pointer-events: none;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.project-tag {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(94, 203, 255, 0.15);
  color: var(--sky-blue);
  font-size: 0.75rem;
}

.stack-list {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0 0;
}

.stack-list li {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
}

.section-glow .process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.process-card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 15, 32, 0.85);
  position: relative;
  overflow: hidden;
}

.process-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.process-card:hover::before {
  opacity: 1;
}

.process-card .step {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--sky-blue);
}

.contact-card {
  background: rgba(10, 24, 55, 0.9);
  border: 1px solid rgba(94, 203, 255, 0.2);
  box-shadow: var(--shadow-soft);
}

.map-card {
  min-height: 280px;
  padding: 2.5rem;
  background: rgba(8, 15, 32, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.map-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 203, 255, 0.55), transparent 65%);
  top: 20%;
  right: -15%;
  filter: blur(10px);
  opacity: 0.8;
}

.social-link {
  color: var(--text-muted);
  font-size: 1.3rem;
}

.social-link:hover {
  color: var(--soft-white);
}

.chip {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(94, 203, 255, 0.15);
  color: var(--sky-blue);
  font-size: 0.85rem;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(94, 203, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(94, 203, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(94, 203, 255, 0);
  }
}

@media (max-width: 992px) {
  .floating-card {
    position: relative;
    right: auto;
    width: 100%;
    margin-top: 1rem;
  }

  .stack-card {
    top: auto;
  }

  .availability-card {
    bottom: auto;
  }
}

/* Form Styles */
.form-control,
.form-select {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--soft-white);
  padding: 0.8rem 1rem;
}

.form-control:focus,
.form-select:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--sky-blue);
  box-shadow: 0 0 0 4px rgba(43, 107, 255, 0.15);
  color: var(--soft-white);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Custom Dropdown */
.custom-select-wrapper {
  position: relative;
  user-select: none;
  cursor: pointer;
}

.custom-select-trigger {
  position: relative;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--soft-white);
  padding: 0.8rem 1rem;
  border-radius: 0.375rem; /* Matches Bootstrap .form-control */
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.custom-select-trigger:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.custom-select-wrapper.open .custom-select-trigger {
  border-color: var(--sky-blue);
  box-shadow: 0 0 0 4px rgba(43, 107, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.1);
}

.custom-select-trigger::after {
  content: '\F282'; /* Bootstrap Icons 'chevron-down' */
  font-family: 'bootstrap-icons';
  font-size: 0.8em;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.custom-select-wrapper.open .custom-select-trigger::after {
  transform: rotate(180deg);
  color: var(--sky-blue);
}

.custom-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--deep-navy); /* Solid background to cover content below */
  border: 1px solid rgba(94, 203, 255, 0.2);
  border-radius: 0.5rem;
  margin-top: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.custom-select-wrapper.open .custom-options {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0);
}

.custom-option {
  display: block; /* Ensures vertical stacking */
  padding: 0.75rem 1rem;
  color: var(--soft-white);
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.custom-option:last-child {
  border-bottom: none;
}

.custom-option:hover,
.custom-option.selected {
  background-color: rgba(94, 203, 255, 0.1);
  color: var(--sky-blue);
}

