/* Global styles */
body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: #050816;
  color: #e5e7eb;
}

html,
body {
  scroll-behavior: smooth;
}

.navbar {
  backdrop-filter: blur(12px);
  background: rgba(10, 12, 24, 0.92) !important;
}

.brand-logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.navbar-brand span {
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.navbar-nav .nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #cbd5f5;
  padding-left: 1rem;
  padding-right: 1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #ffffff;
}

.navbar-nav .nav-link.active {
  color: #ffffff;
  position: relative;
}

.navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.1rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
}

.hero-section {
  min-height: 100vh;
  padding-top: 88px;
  padding-bottom: 72px;
  background: radial-gradient(circle at top left, #1b3358 0, transparent 55%),
    radial-gradient(circle at bottom right, #2b2040 0, #050816 55%);
  color: #f8f9fa;
}

.text-gradient {
  background: linear-gradient(135deg, #0d6efd, #00d4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-card {
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 24px;
}

.mini-card {
  border-radius: 16px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.25);
  height: 100%;
}

.mini-card h6 {
  color: #e2e8f0;
  margin-bottom: 4px;
}

.hero-stats .stat-card {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
}

.hero-stats h3 {
  color: #0d6efd;
  font-weight: 700;
}

.section-title {
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

section {
  scroll-margin-top: 90px;
}

/* About */
.bg-light {
  background-color: #0f172a !important;
}

.text-muted {
  color: #94a3b8 !important;
}

.bg-soft-primary {
  background: rgba(37, 99, 235, 0.18);
}

.about-card {
  border-radius: 20px;
  padding: 24px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.pill-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.25);
  height: 100%;
}

.pill-label {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(37, 99, 235, 0.15);
  color: #bfdbfe;
  margin-bottom: 8px;
}

/* Services */
#services {
  background: #020617;
}

.service-card {
  border-radius: 18px;
  padding: 24px 22px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
  border-color: rgba(59, 130, 246, 0.8);
}

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: radial-gradient(circle at top left, #2563eb, #0f172a);
  color: #e5f2ff;
  font-size: 1.25rem;
}

.service-card h5 {
  color: #e5e7eb;
  margin-bottom: 8px;
}

.service-list {
  margin: 0;
  padding-left: 18px;
  color: #9ca3af;
  font-size: 0.92rem;
}

.service-list li + li {
  margin-top: 4px;
}

/* Technologies */
.tech-pill {
  padding: 10px 14px;
  text-align: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e5e7eb;
  font-size: 0.9rem;
}

/* Portfolio */
.portfolio-card {
  border-radius: 18px;
  padding: 20px 18px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.35);
  position: relative;
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
  transform: translateY(-4px);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.portfolio-badge {
  position: absolute;
  top: 12px;
  right: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(37, 99, 235, 0.2);
  color: #bfdbfe;
}

.portfolio-card h5 {
  color: #e5e7eb;
  margin-bottom: 8px;
}

/* Contact */
#contact {
  background: radial-gradient(circle at top left, #111827 0, #020617 55%);
}

.text-light-50 {
  color: rgba(248, 250, 252, 0.65);
}

.contact-card {
  border-radius: 20px;
}

.contact-card .form-control,
.contact-card .form-select {
  background-color: #f9fafb;
  border-radius: 12px;
  border-color: #e5e7eb;
}

.contact-card .form-control:focus,
.contact-card .form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.2);
}

/* Footer */
footer.bg-black {
  background-color: #020617 !important;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #0284c7);
}

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

/* Small devices */
@media (max-width: 575.98px) {
  .hero-section {
    padding-top: 96px;
  }

  .display-4 {
    font-size: 2.1rem;
  }
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

