:root {
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --secondary: #0f172a;
  --bg-soft: #f4f7fb;
  --card: #ffffff;
  --muted: #6c757d;
  --text: #1f2937;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  color: var(--text);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

p {
  margin-bottom: 0;
}

section {
  padding: 100px 0;
}

.section {
  position: relative;
}

.alt-bg {
  background: rgba(255, 255, 255, 0.45);
}

.section-heading {
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.08);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 0;
  color: var(--secondary);
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary) !important;
}

.nav-link {
  font-weight: 600;
  color: var(--secondary) !important;
  margin-left: 8px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary) !important;
}

/* Hero */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  background: radial-gradient(circle at top left, #ffffff 0%, #edf4ff 48%, #eaf1ff 100%);
}

.eyebrow {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.hero-name {
  font-size: clamp(1.7rem, 2vw, 2.5rem);
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 14px;
}

.hero-role {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 18px;
}

.hero-description {
  max-width: 650px;
  font-size: 1.06rem;
  color: var(--muted);
  margin-bottom: 30px;
}

.profile-frame {
  position: relative;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  padding: 18px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(16, 185, 129, 0.08));
  box-shadow: var(--shadow);
}

.profile-frame img {
  border-radius: 24px;
  width: 100%;
  height: 460px;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.8);
}

/* Cards */
.glass-card,
.skill-card,
.timeline-content,
.contact-card,
.dream-card,
.reason-box {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* About */
.about-photo-wrapper {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-photo {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 28px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(13, 110, 253, 0.02);
  border: 1px solid var(--border);
}

.label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.value {
  font-weight: 600;
  color: var(--secondary);
}

/* Education Timeline */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), rgba(13, 110, 253, 0.15));
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 32px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #4f9cff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 25px rgba(13, 110, 253, 0.25);
  z-index: 1;
}

.timeline-marker i {
  font-size: 1.3rem;
}

.timeline-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--muted);
  margin-bottom: 0;
}

/* Skills */
.skill-card {
  border: 1px solid rgba(13, 110, 253, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.skill-card:hover,
.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.14);
}

.icon-wrap {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(79, 156, 255, 0.25));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 2rem;
}

.skill-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--secondary);
}

/* Reason section */
.reason-section {
  padding-top: 40px;
}

.reason-box {
  background: linear-gradient(135deg, #0d6efd, #3d7ef6 40%, #6eb2ff);
  padding: 40px 34px;
  color: white;
  border: none;
}

.reason-box .section-tag {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.reason-box .section-title,
.reason-box p {
  color: #fff;
}

.reason-box p {
  font-size: 1.08rem;
  margin-top: 18px;
}

.tech-icon {
  width: 150px;
  height: 150px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

/* Dream */
.dream-title {
  font-size: clamp(1.8rem, 2vw, 2.3rem);
  font-weight: 800;
  color: var(--primary-dark);
  margin: 18px 0;
}

.dream-card {
  background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dream-image {
  width: 100%;
  max-width: 320px;
  height: 240px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: block;
}

/* Gallery */
.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow);
  cursor: pointer;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 20px;
}

.modal-content {
  border-radius: 26px;
  overflow: hidden;
}

.modal-body img {
  display: block;
  max-height: 78vh;
  object-fit: cover;
}

/* Contact */
.contact-card {
  background: rgba(255, 255, 255, 0.85);
}

.contact-text {
  font-size: 1.06rem;
  color: var(--muted);
}

.social-btn {
  min-width: 170px;
  border-radius: 999px;
  font-weight: 600;
  padding: 12px 22px;
}

/* Footer */
.footer {
  background: var(--secondary);
  color: #fff;
  padding: 24px 0;
}

.footer p,
.footer small {
  color: rgba(255, 255, 255, 0.88);
}

.social-footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 1.2rem;
}

.social-footer a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}

.social-footer a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 991.98px) {
  .navbar-nav {
    padding-top: 12px;
  }

  .nav-item {
    width: 100%;
  }

  .hero-section {
    min-height: auto;
    padding-top: 130px;
  }

  .section {
    padding: 80px 0;
  }
}

@media (max-width: 767.98px) {
  .profile-frame img {
    height: 380px;
  }

  .about-photo {
    height: 420px;
  }

  .timeline-item {
    padding-left: 64px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-marker {
    width: 42px;
    height: 42px;
  }

  .reason-box {
    padding: 28px 20px;
  }
}
