:root {
  --bg: #0b1220;
  --bg-2: #0d172a;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.10);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --accent: #38bdf8;
  --accent-2: #0ea5e9;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --radius-sm: 12px;
  --secondary: rgba(147, 146, 146, 0.78);
}


.text-body-secondary { color: var(--secondary) !important; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(900px 520px at 90% 0%, rgba(14, 165, 233, 0.14), transparent 55%),
    linear-gradient(180deg, var(--bg), #060a14 60%, #050812);
  color: var(--text);
}

/* Utilities */
.accent {
  color: var(--accent);
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 65%);
}

.section-head {
  max-width: 900px;
}

.section-kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.section-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--muted);
  max-width: 740px;
  margin-bottom: 0;
}

.divider {
  height: 1px;
  background: var(--border);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: #0b1326;
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  z-index: 2000;
  transition: top 180ms ease;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
  outline: none;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.22);
}

/* Navbar */
.glass-nav {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(6, 10, 20, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  padding: 10px 14px;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.navbar .nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}
.navbar .nav-link.active {
  background: rgba(56, 189, 248, 0.14);
  color: white;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.24) inset;
}

.btn-contact {
  border: 1px solid rgba(56, 189, 248, 0.35);
}

/* Hero */
.hero {
  padding-top: 120px;
  overflow: hidden;
}
.hero-card {
  border-radius: var(--radius);
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}
.eyebrow {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.meta-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 10px 12px;
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
}
.meta-label {
  color: var(--muted);
  font-size: 0.78rem;
}
.meta-value {
  font-weight: 600;
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.10), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(56, 189, 248, 0.18);
  box-shadow: var(--shadow);
  padding: 18px;
}
.hero-img {
  border-radius: 14px;
}

.floating-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(6, 10, 20, 0.70);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  animation: floaty 6s ease-in-out infinite;
  user-select: none;
}
.badge-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.26);
  color: white;
  font-weight: 700;
}
.floating-badge-1 { top: 16px; left: 16px; }
.floating-badge-2 { bottom: 18px; left: 18px; animation-delay: 0.8s; }
.floating-badge-3 { top: 22px; right: 18px; animation-delay: 1.6s; }

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

.reveal-on-load {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 700ms cubic-bezier(.2,.8,.2,1) 120ms forwards;
}
@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn-accent {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border: none;
  color: #041018;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(56, 189, 248, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}
.btn-accent:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 16px 34px rgba(56, 189, 248, 0.22);
}

.btn-outline-accent {
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  transition: background-color 160ms ease, transform 160ms ease, border-color 160ms ease;
}
.btn-outline-accent:hover {
  background: rgba(56, 189, 248, 0.10);
  border-color: rgba(56, 189, 248, 0.65);
  transform: translateY(-1px);
  color: white;
}

/* Panels / cards */
.panel,
.about-card,
.exp-card,
.service-card,
.testimonial-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}
.panel {
  padding: 22px;
}

.about-card {
  padding: 22px;
}

.about-stats {
  display: grid;
  gap: 12px;
}
.stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: white;
}
.stat-label {
  color: var(--muted);
  font-size: 0.92rem;
}

.chip {
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: rgba(56, 189, 248, 0.08);
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 18px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.55), rgba(255, 255, 255, 0.06));
  border-radius: 999px;
}
.timeline-item {
  position: relative;
  padding: 0 0 18px 18px;
}
.timeline-dot {
  position: absolute;
  left: -1px;
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.16);
}
.timeline-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  padding: 18px;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}
.timeline-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.22);
  background: rgba(255, 255, 255, 0.05);
}
.timeline-date {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}
.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 6px 10px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  font-size: 0.84rem;
}

/* Skills */
.skill-badge {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.90);
  transition: transform 160ms ease, border-color 160ms ease;
}
.skill-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.28);
}

.skill-bars {
  display: grid;
  gap: 14px;
}
.skill .progress {
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.skill .progress-bar {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.95), rgba(14, 165, 233, 0.95));
  border-radius: 999px;
}
.w-90 { width: 90%; }
.w-88 { width: 88%; }
.w-85 { width: 85%; }
.w-80 { width: 80%; }
.w-75 { width: 75%; }

.list-check {
  display: grid;
  gap: 14px;
}
.list-check-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.check {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.26);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
}

/* Experience */
.exp-card {
  padding: 22px;
  transition: transform 160ms ease, border-color 160ms ease;
}
.exp-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.20);
}
.pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.10);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Services */
.service-card {
  padding: 22px;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.22);
  background: rgba(255, 255, 255, 0.05);
}
.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.24);
  margin-bottom: 12px;
  font-size: 1.2rem;
}

/* Projects */
.project-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.22);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.36);
}
.project-card .card-img-top {
  aspect-ratio: 16/10;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}
.project-card .card-body {
  padding: 18px;
}

.note {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(56, 189, 248, 0.08);
  color: rgba(255, 255, 255, 0.90);
}

/* Testimonials */
.testimonial-card {
  padding: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.quote {
  font-size: 1.12rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.26);
  font-weight: 800;
  color: white;
}

.carousel .carousel-control-prev-icon,
.carousel .carousel-control-next-icon {
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}
.carousel .carousel-indicators [data-bs-target] {
  background-color: rgba(56, 189, 248, 0.55);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 12px;
}
.contact-item {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.contact-label {
  color: var(--muted);
  font-size: 0.9rem;
}
.contact-value {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  text-decoration: none;
}
.contact-value:hover {
  color: white;
  text-decoration: underline;
  text-decoration-color: rgba(56, 189, 248, 0.65);
}

.info-list {
  display: grid;
  gap: 10px;
}
.info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.info-key {
  color: var(--muted);
  font-weight: 600;
}
.info-value {
  font-weight: 700;
}

/* Footer */
.footer {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(6, 10, 20, 0.55);
}

/* To top */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.30);
  background: rgba(6, 10, 20, 0.70);
  color: white;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease;
  z-index: 1600;
}
.to-top:hover {
  border-color: rgba(56, 189, 248, 0.55);
  transform: translateY(8px);
}
.to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Bootstrap tweaks */
.text-secondary-emphasis {
  color: rgba(255, 255, 255, 0.78) !important;
}

@media (max-width: 991.98px) {
  .section { padding: 82px 0; }
  .hero { padding-top: 110px; }
  .navbar .nav-link { padding: 10px 12px; }
  .hero-card { padding: 22px; }
  .floating-badge { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-on-load,
  .floating-badge,
  .project-card,
  .service-card,
  .timeline-card,
  .exp-card,
  .navbar .nav-link,
  .btn-accent,
  .btn-outline-accent {
    animation: none !important;
    transition: none !important;
  }
}
