:root {
  color-scheme: dark;
  --bg: #070a12;
  --surface: rgba(10, 15, 28, 0.88);
  --text: #f7f9ff;
  --muted: #a6b3d1;
  --primary: #5f8df7;
  --accent: #ffde59;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top, rgba(95, 141, 247, 0.18), transparent 30%),
    radial-gradient(circle at right, rgba(255, 222, 89, 0.08), transparent 18%),
    var(--bg);
  color: var(--text);
}

html {
  scroll-padding-top: 260px;
}

.section-anchor {
  display: block;
  width: 100%;
  height: 1px;
  margin-top: -1px;
  scroll-margin-top: 220px;
  pointer-events: none;
}

body {
  overflow-x: hidden;
}

.hero-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 20% 10%, rgba(95, 141, 247, 0.22), transparent 18%),
    radial-gradient(circle at 80% 15%, rgba(255, 222, 89, 0.14), transparent 16%);
  pointer-events: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: clamp(12px, 1.8vw, 20px) clamp(18px, 3.2vw, 34px);
  overflow: hidden;
  backdrop-filter: blur(26px) saturate(1.35);
  -webkit-backdrop-filter: blur(26px) saturate(1.35);
  background: linear-gradient(135deg, rgba(10, 15, 28, 0.52), rgba(18, 27, 48, 0.28));
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 44px rgba(7, 10, 18, 0.28);
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 35%, rgba(95, 141, 247, 0.12));
  opacity: 0.75;
  pointer-events: none;
}

.topbar > * {
  position: relative;
  z-index: 1;
}

.header-particle-canvas {
  opacity: 0.75;
  mix-blend-mode: screen;
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  text-align: left;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(95, 141, 247, 0.95), rgba(255, 222, 89, 0.95));
  color: #07101e;
  font-weight: 800;
  font-size: 1.22rem;
}

.brand-name {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
}

.brand-tag {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.header-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2vw, 22px);
}

.social-link {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.social-link svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.social-link:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 16px 34px rgba(0, 0, 0, 0.24);
}

.social-link.youtube:hover {
  background: #ff0033;
}

.social-link.instagram:hover {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
}

.social-link.whatsapp:hover {
  background: #25d366;
}

.social-link.facebook:hover {
  background: #1877f2;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.topnav a,
.pill-row a {
  position: relative;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 14px;
  font-size: 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  background-size: 220% 100%;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.pill-row a {
  animation: nav-link-rise 0.7s ease both;
}

.pill-row a:nth-child(1) {
  animation-delay: 0.05s;
}

.pill-row a:nth-child(2) {
  animation-delay: 0.13s;
}

.pill-row a:nth-child(3) {
  animation-delay: 0.21s;
}

.pill-row a:nth-child(4) {
  animation-delay: 0.29s;
}

.pill-row a:nth-child(5) {
  animation-delay: 0.37s;
}

.topnav a:hover,
.pill-row a:hover {
  transform: translateY(-4px) scale(1.04);
  background: linear-gradient(90deg, #ffde59, #00d4ff, #5f8df7, #ec4899, #ffde59);
  background-size: 220% 100%;
  color: #07101e;
  box-shadow: 0 14px 30px rgba(0, 212, 255, 0.22);
  animation: nav-gradient 2.2s linear infinite;
}

@keyframes nav-link-rise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes nav-gradient {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 220% 50%;
  }
}

.profile-shell {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 100px);
  display: grid;
  justify-items: center;
  align-items: start;
  padding: clamp(22px, 3.2vw, 40px) clamp(16px, 3.2vw, 34px) 44px;
  gap: clamp(22px, 3vw, 34px);
  text-align: center;
}

.hero-panel {
  width: min(100%, 1000px);
  display: grid;
  grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  gap: clamp(24px, 4vw, 44px);
  padding: clamp(22px, 3.2vw, 38px);
  text-align: left;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(10, 15, 28, 0.72), rgba(18, 27, 48, 0.46));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 22px 52px rgba(7, 10, 18, 0.3);
  backdrop-filter: blur(26px) saturate(1.18);
  -webkit-backdrop-filter: blur(26px) saturate(1.18);
}

.profile-photo {
  width: clamp(220px, 24vw, 280px);
  height: clamp(220px, 24vw, 280px);
  border-radius: 20px;
  background: #ffffff;
  border: 3px solid rgba(255, 255, 255, 0.86);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.22), 0 0 0 8px rgba(95, 141, 247, 0.1);
}

.profile-photo::before {
  content: none;
}

.profile-photo::after {
  content: none;
}

.profile-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

.profile-photo span {
  position: relative;
  z-index: 1;
  font-size: 3rem;
  font-weight: 800;
  color: #172033;
}

@keyframes profile-photo-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-8px) scale(1.03);
  }
}

@keyframes profile-photo-ring {
  to {
    transform: rotate(360deg);
  }
}

@keyframes profile-photo-pulse {
  0%,
  100% {
    opacity: 0.52;
    transform: scale(0.96);
  }

  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

.profile-role {
  margin: 0;
  position: relative;
  display: inline-block;
  color: transparent;
  background: linear-gradient(90deg, #ffde59, #00d4ff, #5f8df7, #ec4899, #ffde59);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  text-shadow: 0 0 24px rgba(95, 141, 247, 0.28);
  animation: role-gradient 4s linear infinite, role-float 3.2s ease-in-out infinite;
}

.profile-role::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 80%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #ffde59, #00d4ff, #ec4899, transparent);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.35);
  transform: translateX(-50%) scaleX(0.72);
  transform-origin: center;
  animation: role-bar 2.8s ease-in-out infinite;
}

@keyframes role-gradient {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 240% 50%;
  }
}

@keyframes role-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes role-bar {
  0%,
  100% {
    opacity: 0.55;
    transform: translateX(-50%) scaleX(0.62);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
  }
}

.profile-copy h1 {
  margin: 16px 0 10px;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1;
  overflow-wrap: anywhere;
  color: transparent;
  background: linear-gradient(90deg, #ffffff, #ffde59, #00d4ff, #ec4899, #ffffff);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  text-shadow: 0 18px 42px rgba(0, 212, 255, 0.18);
  animation: name-gradient 5s linear infinite;
}

@keyframes name-gradient {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 240% 50%;
  }
}

@keyframes name-lift {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-5px) scale(1.015);
  }
}

.profile-tagline {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  max-width: 560px;
  font-size: clamp(0.88rem, 1.1vw, 0.98rem);
}

.quick-links {
  width: min(100%, 820px);
  display: grid;
  gap: 12px;
}

.section-name {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.section-label {
  margin: 0;
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.gallery-section,
.info-section,
.info-grid,
.contact-section {
  width: min(100%, 1020px);
  margin-inline: auto;
  display: grid;
  gap: 18px;
  justify-items: center;
}

.gallery-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  line-height: 1.1;
  display: inline-block;
  position: relative;
  color: transparent;
  background: linear-gradient(
    90deg,
    #ff1744 0%,
    #ff9100 14%,
    #ffea00 28%,
    #00e676 42%,
    #00b0ff 56%,
    #304ffe 70%,
    #d500f9 84%,
    #ff1744 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  animation: gallery-rainbow 5s linear infinite;
}

.gallery-title::after {
  content: "";
  display: block;
  width: min(130px, 70%);
  height: 4px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #ff1744 0%,
    #ff9100 14%,
    #ffea00 28%,
    #00e676 42%,
    #00b0ff 56%,
    #304ffe 70%,
    #d500f9 84%,
    #ff1744 100%
  );
  background-size: 220% 100%;
  box-shadow: 0 0 18px rgba(0, 176, 255, 0.32), 0 0 28px rgba(213, 0, 249, 0.18);
  animation: gallery-rainbow 5s linear infinite;
}

.feature-carousel {
  position: relative;
  width: min(100%, 1020px);
  margin-inline: auto;
  display: grid;
  gap: 18px;
  justify-items: center;
}

.feature-carousel .gallery-title {
  text-align: center;
}

#about,
#education,
#projects,
#gallery {
  scroll-margin-top: 260px;
}

@keyframes gallery-rainbow {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 220% 50%;
  }
}

.feature-images {
  width: 100%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, calc((100% - 36px) / 3));
  grid-template-columns: none;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 12px;
}

.feature-images::-webkit-scrollbar {
  display: none;
}

.feature-image-card {
  position: relative;
  min-height: 230px;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(10, 15, 28, 0.64), rgba(18, 27, 48, 0.38));
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(26px) saturate(1.25);
  -webkit-backdrop-filter: blur(26px) saturate(1.25);
  box-shadow: 0 18px 44px rgba(7, 10, 18, 0.24);
  scroll-snap-align: start;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.carousel-btn {
  position: absolute;
  top: calc(50% + 24px);
  z-index: 3;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: rgba(123, 1, 1, 0.495);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.14);
  transform: translateY(-50%);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.carousel-btn:hover {
  background: rgba(183, 7, 4, 0.744);
  border-color: rgba(95, 141, 247, 0.5);
  transform: translateY(-50%) scale(1.05);
}

.carousel-btn svg {
  width: 19px;
  height: 19px;
}

.carousel-btn-prev {
  left: -18px;
}

.carousel-btn-next {
  right: -18px;
}

.feature-image-card:hover {
  transform: translateY(-6px);
  border-color: rgba(95, 141, 247, 0.34);
  box-shadow: 0 28px 64px rgba(37, 99, 235, 0.16);
}

.feature-image-card img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  display: block;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
  transition: transform 0.4s ease;
}

.feature-image-card:hover img {
  transform: scale(1.04);
}

.feature-image-overlay {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 6px;
  padding: 56px 20px 18px;
  text-align: left;
  background: linear-gradient(180deg, transparent, rgba(7, 10, 18, 0.9));
}

.feature-image-overlay p {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 800;
}

.feature-image-overlay span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.gallery-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.gallery-card {
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(10, 15, 28, 0.64), rgba(18, 27, 48, 0.38));
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(26px) saturate(1.25);
  -webkit-backdrop-filter: blur(26px) saturate(1.25);
  box-shadow: 0 18px 44px rgba(7, 10, 18, 0.24);
  padding: 0;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-6px);
  border-color: rgba(95, 141, 247, 0.3);
}

.photo-box {
  min-height: 130px;
  background: linear-gradient(180deg, rgba(95, 141, 247, 0.18), rgba(255, 222, 89, 0.12));
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  perspective: 700px;
}

.photo-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.45), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .photo-box::before {
  opacity: 1;
}

.photo-box.leadership {
  background: linear-gradient(180deg, rgba(95, 141, 247, 0.25), rgba(95, 141, 247, 0.08));
}

.photo-box.strategy {
  background: linear-gradient(180deg, rgba(255, 222, 89, 0.2), rgba(255, 222, 89, 0.05));
}

.photo-box.teamwork {
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.18), rgba(0, 212, 255, 0.05));
}

.photo-box.growth {
  background: linear-gradient(180deg, rgba(100, 200, 100, 0.18), rgba(100, 200, 100, 0.05));
}

.photo-box.innovation {
  background: linear-gradient(180deg, rgba(220, 100, 255, 0.18), rgba(220, 100, 255, 0.05));
}

.photo-box.execution {
  background: linear-gradient(180deg, rgba(255, 150, 100, 0.18), rgba(255, 150, 100, 0.05));
}

.photo-icon {
  font-size: 2.25rem;
  display: block;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  transition: transform 0.35s ease-in-out, text-shadow 0.35s ease-in-out, filter 0.35s ease-in-out;
}

.gallery-card:hover .photo-icon {
  filter: saturate(1.25) brightness(1.08);
  text-shadow: 0 18px 28px rgba(0, 0, 0, 0.38);
  transform: translateY(-8px) scale(1.16);
}

.gallery-card h3 {
  margin: 12px 11px 5px;
  font-size: 0.86rem;
  color: var(--text);
  font-weight: 700;
}

.gallery-card p {
  margin: 0 11px 12px;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.5;
}

.info-text,
.info-card p,
.contact-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.info-section {
  max-width: 1020px;
}

.info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 1020px);
  margin-inline: auto;
  gap: 22px;
}

.info-card {
  padding: clamp(22px, 3vw, 34px);
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(10, 15, 28, 0.64), rgba(18, 27, 48, 0.38));
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(26px) saturate(1.25);
  -webkit-backdrop-filter: blur(26px) saturate(1.25);
  box-shadow: 0 18px 44px rgba(7, 10, 18, 0.24);
}

.info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.14), transparent 38%, rgba(95, 141, 247, 0.1));
  pointer-events: none;
}

.info-card > * {
  position: relative;
  z-index: 1;
}

#education.info-card {
  width: 100%;
  padding: clamp(24px, 3vw, 36px);
}

.info-card .section-label {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.education-list {
  display: grid;
  gap: 14px;
}

.education-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(23, 32, 51, 0.08);
}

.education-item:last-child {
  border-bottom: none;
}

.education-item h4 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}

.education-detail {
  margin: 4px 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.education-percentage {
  margin: 6px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

.education-percentage span {
  color: var(--accent);
}

.projects-list {
  display: grid;
  gap: 14px;
}

.project-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(23, 32, 51, 0.08);
}

.project-item:last-child {
  border-bottom: none;
}

.project-item h4 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}

.project-detail {
  margin: 4px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}

.contact-section {
  width: min(100%, 1000px);
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: clamp(24px, 3vw, 36px) clamp(18px, 3vw, 30px);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(10, 15, 28, 0.64), rgba(18, 27, 48, 0.38));
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(26px) saturate(1.25);
  -webkit-backdrop-filter: blur(26px) saturate(1.25);
  box-shadow: 0 18px 44px rgba(7, 10, 18, 0.24);
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.14), transparent 38%, rgba(95, 141, 247, 0.1));
  pointer-events: none;
}

.contact-section > * {
  position: relative;
  z-index: 1;
}

.contact-container {
  width: 100%;
  max-width: 820px;
  display: grid;
  gap: 22px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(30, 40, 65, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(166, 179, 209, 0.6);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  background: rgba(40, 55, 85, 0.8);
  box-shadow: 0 0 0 2px rgba(95, 141, 247, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

textarea.form-input {
  min-height: 110px;
  resize: vertical;
}

.submit-btn {
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #00d4ff, #5f8df7);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 212, 255, 0.3);
}

.contact-info {
  display: grid;
  gap: 12px;
}

.contact-info p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon {
  font-size: 1.3rem;
}

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d4ff, #5f8df7);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: none;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 999;
}

.scroll-to-top.show {
  display: grid;
}

.scroll-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 212, 255, 0.35);
}

#education > .section-label,
#projects > .section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, #2563eb, #f97316) border-box;
  border: 2px solid transparent;
  color: transparent;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.14);
}

#education > .section-label,
#projects > .section-label {
  background:
    linear-gradient(
      90deg,
      #ef4444,
      #f97316,
      #eab308,
      #22c55e,
      #06b6d4,
      #3b82f6,
      #8b5cf6,
      #ec4899
    ) text,
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, #2563eb, #f97316) border-box;
  -webkit-background-clip: text, padding-box, border-box;
  background-clip: text, padding-box, border-box;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
}

#education > .section-label::before,
#projects > .section-label::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #f97316);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.gallery-title,
#about > .section-label,
#education > .section-label,
#projects > .section-label,
#contact > .section-label {
  color: transparent;
  background: linear-gradient(
    90deg,
    #ff1744 0%,
    #ff9100 14%,
    #ffea00 28%,
    #00e676 42%,
    #00b0ff 56%,
    #304ffe 70%,
    #d500f9 84%,
    #ff1744 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
}

#about > .section-label,
#education > .section-label,
#projects > .section-label,
#contact > .section-label {
  display: inline-block;
  position: relative;
  width: fit-content;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
  animation: gallery-rainbow 5s linear infinite;
}

#about > .section-label::after,
#education > .section-label::after,
#projects > .section-label::after,
#contact > .section-label::after {
  content: "";
  display: block;
  width: min(130px, 70%);
  height: 4px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #ff1744 0%,
    #ff9100 14%,
    #ffea00 28%,
    #00e676 42%,
    #00b0ff 56%,
    #304ffe 70%,
    #d500f9 84%,
    #ff1744 100%
  );
  background-size: 220% 100%;
  box-shadow: 0 0 18px rgba(0, 176, 255, 0.32), 0 0 28px rgba(213, 0, 249, 0.18);
  animation: gallery-rainbow 5s linear infinite;
}

#education > .section-label::before,
#projects > .section-label::before {
  content: none;
}

#about {
  width: min(100%, 1020px);
  margin-inline: auto;
  padding: clamp(24px, 3vw, 36px) clamp(18px, 3vw, 30px);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(10, 15, 28, 0.64), rgba(18, 27, 48, 0.38));
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(26px) saturate(1.25);
  -webkit-backdrop-filter: blur(26px) saturate(1.25);
  box-shadow: 0 18px 44px rgba(7, 10, 18, 0.24);
}

#about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.14), transparent 38%, rgba(95, 141, 247, 0.1));
  pointer-events: none;
}

#about > * {
  position: relative;
  z-index: 1;
}

#about .info-text {
  margin-bottom: 0;
}

.contact-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: #5f8df7;
}

.contact-link-text {
  color: transparent;
  background: linear-gradient(135deg, #0891b2, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  font-weight: 700;
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 260px;
  }

  .section-anchor {
    scroll-margin-top: 230px;
  }

  .topbar {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  #about,
  #education,
  #projects,
  #gallery {
    scroll-margin-top: 260px;
  }

  .brand-bar,
  .header-socials {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .topnav {
    justify-content: center;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: clamp(20px, 4vw, 32px) clamp(18px, 4vw, 28px);
    gap: 22px;
  }

  .profile-photo {
    width: clamp(210px, 38vw, 260px);
    height: clamp(210px, 38vw, 260px);
  }

  .profile-tagline {
    margin-inline: auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .feature-images {
    grid-auto-columns: minmax(240px, 78%);
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: 12px;
    gap: 12px;
  }

  .brand-bar {
    gap: 14px;
    flex-wrap: wrap;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-tag {
    font-size: 0.78rem;
  }

  .social-link {
    width: 38px;
    height: 38px;
  }

  .profile-shell {
    padding: 18px 14px 34px;
    gap: 24px;
  }

  .hero-panel {
    border-radius: 24px;
    width: 100%;
  }

  .profile-copy h1 {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
  }

  .profile-role {
    letter-spacing: 0.12em;
    font-size: 0.74rem;
  }

  .pill-row a {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 680px) {
  .profile-shell {
    min-height: auto;
    padding: 18px 10px 30px;
    gap: 22px;
  }

  .topnav,
  .pill-row {
    justify-content: center;
  }

  .profile-photo {
    width: clamp(190px, 68vw, 230px);
    height: clamp(190px, 68vw, 230px);
    border-radius: 18px;
  }

  .hero-panel {
    padding: 20px 14px;
    gap: 20px;
  }

  .header-socials {
    gap: 14px;
  }

  .pill-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    width: 100%;
    gap: 12px;
  }

  .pill-row a {
    text-align: center;
    white-space: nowrap;
  }

  .scroll-to-top {
    width: 44px;
    height: 44px;
    bottom: 20px;
    right: 20px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 14px;
  }

  .photo-box {
    min-height: 120px;
  }

  .feature-images {
    grid-auto-columns: minmax(240px, 88%);
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-btn-prev {
    left: 6px;
  }

  .carousel-btn-next {
    right: 6px;
  }

  .info-card,
  #education.info-card,
  #about,
  .contact-section {
    padding: 20px 14px;
    border-radius: 18px;
  }

  .form-input,
  .form-textarea {
    padding: 12px 14px;
  }
}

@media (max-width: 430px) {
  .brand-bar {
    flex-direction: column;
  }

  .header-socials {
    gap: 10px;
  }

  .social-link {
    width: 36px;
    height: 36px;
  }

  .profile-photo {
    width: min(220px, calc(100vw - 52px));
    height: min(220px, calc(100vw - 52px));
  }

  .profile-copy h1 {
    font-size: clamp(1.7rem, 11vw, 2.35rem);
  }

  .gallery-title,
  #about > .section-label,
  #education > .section-label,
  #projects > .section-label,
  #contact > .section-label {
    font-size: clamp(1.3rem, 8vw, 1.75rem);
  }

  .pill-row {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .photo-icon {
    font-size: 2rem;
  }

  .feature-images {
    grid-auto-columns: minmax(210px, 92%);
  }

  .contact-info p {
    align-items: flex-start;
  }

  .contact-link-text {
    overflow-wrap: anywhere;
  }
}


/* Responsive additions */
header.topbar,.navbar{padding:10px 4%!important;}
@media (min-width:1200px){
.hero,.home{padding-top:90px}
h1{font-size:clamp(2.5rem,4vw,4rem)}
}
img{max-width:100%;height:auto}
@media (max-width:992px){
.container,.hero,.home{padding-left:20px;padding-right:20px}
}
@media (max-width:768px){
.nav-links,.menu{flex-direction:column}
section{padding:32px 14px}
h1{font-size:2.2rem}
}
@media (max-width:576px){
h1{font-size:1.8rem}
.contact-form .submit-btn,.btn{width:100%}
}
