:root {
  --bg: #0F0E1B;
  --panel: #1B1830;
  --panel-2: #201C3B;
  --coral: #FF6B57;
  --teal: #2FDEC4;
  --amber: #FFC145;
  --violet: #9A7BFF;
  --border: rgba(245, 243, 255, 0.1);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  scroll-snap-type: y mandatory;
}

body {
  background: var(--bg);
  font-family: var(--font-body);
  line-height: 1.6;
}

body > header,
body > section,
body > footer {
  scroll-snap-align: start;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }
}

h1, h2, h3, .navbar-brand { font-family: var(--font-display); }

a { text-decoration: none; }

/* ---------- Navbar ---------- */
.navbar-custom {
  background: linear-gradient(to bottom, rgba(15,14,27,0.9), transparent);
  padding-top: 20px;
}

.navbar-custom .nav-link {
  color: rgba(245,243,255,0.75);
}

.navbar-custom .nav-link:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero-section {
  min-height: 100svh;
  padding-top: 100px;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.38), transparent 18%),
    radial-gradient(circle at 78% 15%, rgba(108, 211, 255, 0.52), transparent 26%),
    radial-gradient(circle at 72% 82%, rgba(164, 120, 255, 0.55), transparent 28%),
    radial-gradient(circle at 25% 75%, rgba(90, 247, 210, 0.3), transparent 25%),
    linear-gradient(135deg, #79d9ff 0%, #4d9ef7 18%, #3b5fe0 38%, #272d7a 62%, #0d132e 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), inset 0 -40px 80px rgba(9, 13, 25, 0.25);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.14), rgba(255,255,255,0.02) 30%, rgba(255,255,255,0.08) 60%, rgba(255,255,255,0.04));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}

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

.hero-photo-frame {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  padding: 6px;
  background: conic-gradient(from 200deg, var(--coral), var(--amber), var(--teal), var(--violet), var(--coral));
  box-shadow: 0 0 60px rgba(47, 222, 196, 0.35);
}

.hero-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 4px solid var(--bg);
}

.hero-chart { height: 120px; }

.hero-chart .bar {
  width: 16px;
  height: var(--h);
  background: var(--c);
  border-radius: 3px 3px 0 0;
  opacity: 0.9;
  transform: scaleY(0);
  transform-origin: bottom;
  animation: grow 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-chart .bar:nth-child(1) { animation-delay: 0.05s; }
.hero-chart .bar:nth-child(2) { animation-delay: 0.15s; }
.hero-chart .bar:nth-child(3) { animation-delay: 0.25s; }
.hero-chart .bar:nth-child(4) { animation-delay: 0.35s; }
.hero-chart .bar:nth-child(5) { animation-delay: 0.45s; }
.hero-chart .bar:nth-child(6) { animation-delay: 0.55s; }

@keyframes grow { to { transform: scaleY(1); } }

.hero-eyebrow { color: rgba(245,243,255,0.6); }

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

.hero-role { max-width: 46ch; color: rgba(245,243,255,0.75); }

.social-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  color: #fff;
  font-size: 1.1rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.social-icon:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #0f0e1b;
  transform: translateY(-2px);
}

.btn-fill-custom {
  background: var(--coral);
  color:blue;
  font-weight: 500;
}
.btn-fill-custom:hover { background: var(--coral); color: #16131f; transform: translateY(-2px); }

.btn-resume-custom {
  background: linear-gradient(120deg, var(--teal), var(--violet));
  color: #0f0e1b;
  font-weight: 600;
} */

.btn-fill-custom {
   background: var(--panel-2);
  color: #fff;
  border: 1px solid var(--border);
}

.btn-fill-custom:hover {
   color: #fff; border-color: var(--accent, var(--teal)); transform: translateY(-2px);
}

.btn-resume-custom:hover { color: #0f0e1b; transform: translateY(-2px); }

.btn-outline-light:hover { transform: translateY(-2px); }

.btn-dark-custom {
  background: var(--panel-2);
  color: #fff;
  border: 1px solid var(--border);
}
.btn-dark-custom:hover { color: #fff; border-color: var(--accent, var(--teal)); transform: translateY(-2px); }

/* ---------- Sections ---------- */
.section-block { padding: 110px 0; }

.section-title {
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 44px;
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--coral), var(--amber), var(--teal), var(--violet));
}

.about-section {
  background:
    linear-gradient(135deg, rgba(9, 24, 61, 0.96) 0%, rgba(19, 45, 105, 0.92) 35%, rgba(26, 88, 165, 0.86) 100%);
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -24px 35px rgba(6, 12, 26, 0.25),
    0 20px 45px rgba(18, 74, 182, 0.25);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 15%, rgba(255,255,255,0.18), transparent 32%);
  pointer-events: none;
}

.skills-section {
  background:
    linear-gradient(135deg, rgba(13, 31, 58, 0.96) 0%, rgba(16, 43, 86, 0.94) 36%, rgba(30, 84, 130, 0.9) 100%);
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -22px 30px rgba(7, 14, 24, 0.28),
    0 18px 40px rgba(26, 98, 188, 0.18);
  position: relative;
  overflow: hidden;
}

.skills-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(84, 220, 255, 0.2), transparent 30%);
  pointer-events: none;
}

.projects-section {
  position: relative;
  overflow: hidden;
  color: #26354b;
  background:
    radial-gradient(circle at 10% 12%, rgba(219, 225, 255, 0.42), transparent 32%),
    radial-gradient(circle at 90% 85%, rgba(206, 233, 255, 0.56), transparent 34%),
    linear-gradient(135deg, #f8f9fc 0%, #f1f4fb 55%, #edf3fb 100%);
}

.projects-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255,255,255,0.42), transparent 42%, rgba(255,255,255,0.2));
  pointer-events: none;
}

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

.projects-section .section-title {
  display: block;
  padding-bottom: 0;
  margin-bottom: 0.4rem;
  color: #1c2d47;
  text-align: center;
}

.projects-section .section-title::after {
  display: none;
}

.projects-intro {
  color: #596a82;
  font-size: 1.1rem;
  text-align: center;
}

/* ---------- About ---------- */
.about-text { max-width: 62ch; }

.fact-item { border-left: 2px solid var(--border); padding-left: 18px; }

.fact-num {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--teal);
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
  margin-top: 7px;
  flex-shrink: 0;
}

/* ---------- Skills ---------- */
.progress { background: rgba(255, 255, 255, 0.08); }
.progress-bar { border-radius: 999px; }

.skill-item {
  color: #ffffff;
}

.skill-item .text-body-secondary,
.skill-item .small {
  color: rgba(255,255,255,0.72) !important;
}

.badge-skill {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 0.85rem;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(173, 217, 255, 0.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 4px 14px rgba(16, 65, 120, 0.15);
}

/* ---------- Projects ---------- */
.project-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(239,244,255,0.82));
  color: #25344a;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(36, 52, 77, 0.12), inset 0 1px 0 rgba(255,255,255,0.95);
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 18px 34px rgba(36, 52, 77, 0.18), 0 8px 24px -16px var(--accent);
}

.project-card-preview {
  height: 220px;
  margin: 14px 14px 0;
  border-radius: 9px;
  color: var(--accent);
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 30%, white), transparent 62%),
    linear-gradient(135deg, #f5f0ff, #eaf2ff);
  overflow: hidden;
}

.project-card-preview .project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-card-preview i {
  font-size: 3.5rem !important;
  filter: drop-shadow(0 8px 12px rgba(38, 53, 75, 0.12));
}

.project-card .card-body { padding: 22px 24px 24px; }
.project-card .card-title { color: #1c2d47; }
.project-card .card-text { color: #596a82 !important; }

.project-card .btn-fill-custom {
  background: linear-gradient(120deg, #a044ff, #3979f6);
  color: #ffffff;
  border: 0;
  font-weight: 600;
  padding: 0.55rem 1rem;
}

.project-card .btn-dark-custom {
  background: linear-gradient(120deg, #596477, #303b4c);
  color: #ffffff;
  border: 0;
  font-weight: 600;
  padding: 0.55rem 1rem;
}

/* pill tags inside project cards reuse .badge-skill but tint with accent */
.project-card .badge-skill {
  color: #344258;
  border-color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.86);
  box-shadow: 0 3px 8px rgba(36, 52, 77, 0.08);
  padding: 7px 13px;
}

/* ---------- Contact ---------- */
.contact-section {
  padding: 110px 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(154,123,255,0.35), transparent 55%),
    linear-gradient(120deg, #0f8f7c 0%, #1789c9 45%, #3b5fe0 100%);
}

.section-title-light::after { background: #ffffff; height: 3px; width: 56px; }

.contact-row {
  background: #ffffff;
  color: #16131f;
  border-radius: 12px;
  padding: 16px 20px;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.contact-row:hover { transform: translateY(-2px); color: #16131f; }
.contact-row i { font-size: 1.15rem; }

.contact-form-panel {
  background: #ffffff;
  color: #16131f;
}

.btn-send-custom {
  background: linear-gradient(120deg, #3b5fe0, #7b61ff);
  color: #ffffff;
  font-weight: 600;
  padding: 12px 24px;
}
.btn-send-custom:hover { color: #fff; transform: translateY(-2px); }

#form-status.text-danger { color: #dc3545 !important; }
#form-status.text-success { color: #198754 !important; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
