/* =============================================
       RESET & BASE
    ============================================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: #0a0f1e;
  color: #e7f6f2;
  overflow-x: hidden;
}
body.menu-scroll-locked {
  position: fixed;
  left: 0;
  width: 100%;
  overflow: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #5982eb;
  border-radius: 10px;
}

/* =============================================
       CSS VARIABLES
    ============================================= */
:root {
  --accent: #5982eb;
  --accent-light: #b4d4ff;
  --accent-glow: rgba(89, 130, 235, 0.25);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --text-primary: #e7f6f2;
  --text-muted: #8899bb;
  --navy: #0a0f1e;
  --navy-2: #0f1729;
  --orange: #f66b0e;
  --ticker-h: 36px;
}

/* =============================================
       TICKER BAR
    ============================================= */
.ticker-wrap {
  width: 100%;
  background: linear-gradient(90deg, #3a5fd9 0%, #5982eb 50%, #3a5fd9 100%);
  overflow: hidden;
  white-space: nowrap;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  height: var(--ticker-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.ticker-track {
  display: flex;
  width: max-content;
  min-width: 200%;
  animation: ticker-scroll 22s linear infinite;
}
.ticker-group {
  display: flex;
  align-items: center;
  justify-content: space-around;
  min-width: 100vw;
  flex-shrink: 0;
}
.ticker-group span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 clamp(24px, 4vw, 64px);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* =============================================
       MOBILE NAVBAR
    ============================================= */
.navbar {
  display: none;
  position: fixed;
  top: var(--ticker-h);
  left: 0;
  right: 0;
  z-index: 99;
  padding: 10px 18px;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 15, 30, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.navbar .hamburger {
  width: 36px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.navbar .hamburger span {
  width: 100%;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transform-origin: center;
  transition:
    transform 0.35s ease,
    opacity 0.2s ease;
}
.navbar.active .hamburger span:first-child {
  transform: translateY(10.5px) rotate(45deg);
}
.navbar.active .hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.navbar.active .hamburger span:last-child {
  transform: translateY(-10.5px) rotate(-45deg);
}
@media (max-width: 965px) {
  .navbar {
    display: flex;
  }
}

/* =============================================
       MOBILE SIDE MENU
    ============================================= */
.menu {
  display: none;
  width: min(380px, 88vw);
  height: calc(100vh - var(--ticker-h));
  background:
    radial-gradient(
      120% 60% at 100% 0%,
      rgba(89, 130, 235, 0.18) 0%,
      transparent 60%
    ),
    radial-gradient(
      80% 40% at 0% 100%,
      rgba(89, 130, 235, 0.12) 0%,
      transparent 60%
    ),
    rgba(10, 15, 30, 0.96);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-left: 1px solid var(--border);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
  position: fixed;
  top: var(--ticker-h);
  right: calc(-1 * min(380px, 88vw));
  z-index: 98;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 40px 32px 32px;
  gap: 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  transition: right 0.55s cubic-bezier(0.77, 0, 0.18, 1);
}
.menu.activeMenu {
  right: 0;
}

.menu-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.menu-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.menu-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.menu-list li {
  opacity: 0;
  transform: translateX(24px);
  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.menu.activeMenu .menu-list li {
  opacity: 1;
  transform: translateX(0);
  transition-delay: calc(var(--i, 0) * 60ms + 150ms);
}
.menu-list li a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  color: var(--text-primary);
  border: 1px solid transparent;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    color 0.25s ease;
}
.menu-list li a:hover {
  background: var(--surface-hover);
  border-color: var(--border);
  transform: translateX(4px);
}
.menu-num {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  min-width: 22px;
}
.menu-text {
  flex: 1;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.01em;
}
.menu-arrow {
  font-size: 16px;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    color 0.25s ease;
}
.menu-list li a:hover .menu-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent);
}

.menu-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.menu-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}
.menu-contact:hover {
  color: var(--text-primary);
  background: var(--surface-hover);
  border-color: var(--accent);
}
.menu-contact img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.menu-cta {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #3a5fd9 0%, #5982eb 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 22px var(--accent-glow);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.menu-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px var(--accent-glow);
}
.menu-social {
  display: flex;
  gap: 8px;
}
.menu-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}
.menu-social-btn:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
}
.menu-social-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.menu-social-btn img.linkedin_img {
  filter: none;
}

@media (max-width: 965px) {
  .menu {
    display: flex;
  }
}

/* =============================================
       DESKTOP NAVBAR
    ============================================= */
.desktop-nav {
  display: none;
  position: fixed;
  top: var(--ticker-h);
  left: 0;
  right: 0;
  z-index: 95;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(24px, 4vw, 56px);
  background: rgba(10, 15, 30, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    padding 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}
.desktop-nav.scrolled {
  padding-top: 10px;
  padding-bottom: 10px;
  background: rgba(10, 15, 30, 0.85);
  border-bottom-color: var(--border);
}
.desktop-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.desktop-nav-brand .brand-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.desktop-nav-brand .brand-name {
  font-size: 15px;
  color: var(--text-primary);
  transition: color 0.25s ease;
}
.desktop-nav-brand:hover .brand-name {
  color: var(--accent-light);
}
.desktop-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}
.desktop-nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-muted);
  border-radius: 999px;
  letter-spacing: 0.02em;
  transition:
    color 0.25s ease,
    background 0.25s ease;
}
.desktop-nav-link:hover {
  color: var(--text-primary);
  background: var(--surface-hover);
}
.desktop-nav-link.active {
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(89, 130, 235, 0.9) 0%,
    rgba(58, 95, 217, 0.9) 100%
  );
  box-shadow: 0 4px 16px var(--accent-glow);
}
.desktop-nav-cta-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.desktop-nav-cta img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}
.desktop-nav-cta img.linkedin_img {
  filter: none;
}

.desktop-nav-cta .linkedin_img {
  width: 18px;
  height: 18px;
}
.desktop-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}
.desktop-nav-cta:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}
@media (min-width: 966px) {
  .desktop-nav {
    display: flex;
  }
}
@media (max-width: 1180px) {
  .desktop-nav-brand .brand-name {
    display: none;
  }
}

/* =============================================
       SECTIONS WRAPPER
    ============================================= */
.sections {
  padding-top: var(--ticker-h);
}

/* =============================================
       HOME SECTION
    ============================================= */
#home {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--navy);
}
#blobCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
#canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* Home layout: two-column flex */
.home-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 6vw;
}
.home-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* "Hello, I'm" line */
.home .hello {
  display: flex;
  align-items: baseline;
  gap: 0;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.home .hello .alpha {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.04em;
}
.home .hello .Iam {
  display: flex;
  margin-left: 8px;
}

/* Name */
.home .nameBox {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  line-height: 1;
  margin-bottom: 16px;
}
.home .nameBox .name,
.home .nameBox .lastName {
  display: flex;
  color: var(--text-primary);
  font-weight: 700;
}
.home .nameBox .lastName {
  margin-left: 0.22em;
}
.home h1.alpha {
  font-size: clamp(52px, 7vw, 90px);
}
.name-alias {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 300;
  margin: -8px 0 18px;
}

/* Role ticker */
.home .roleContainer {
  overflow: hidden;
  height: 48px;
  margin-bottom: 28px;
}
.home .roleContainer .roles {
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 300;
  color: var(--accent-light);
  animation: show 8s ease-in-out infinite;
}
.home .roleContainer .roles > div {
  height: 48px;
}
.home .roleContainer .roles > div > div {
  height: 48px;
  display: flex;
  align-items: center;
}

/* CTA row */
.home-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.btn-primary {
  border: none;
  border-radius: 999px;
  font-size: 0.88em;
  font-weight: 500;
  padding: 11px 28px;
  cursor: pointer;
  transition: all 0.35s ease;
  background: var(--accent);
  color: #fff;
  letter-spacing: 0.04em;
}
.btn-primary:hover {
  background: #3a5fd9;
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-1px);
}

/* Contact pills */
.home-contacts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.contact-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  color: var(--text-muted);
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}
.contact-pill:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  background: var(--surface-hover);
}
.contact-pill img {
  width: 16px;
  height: 16px;
  opacity: 0.9;
  filter: brightness(0) invert(1);
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
  pointer-events: none;
}
.scroll-hint svg {
  opacity: 0.5;
}
@keyframes scrollBounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* Fade-in on load */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}
.fade-in:nth-child(1) {
  animation-delay: 0.1s;
}
.fade-in:nth-child(2) {
  animation-delay: 0.25s;
}
.fade-in:nth-child(3) {
  animation-delay: 0.4s;
}
.fade-in:nth-child(4) {
  animation-delay: 0.55s;
}
.fade-in:nth-child(5) {
  animation-delay: 0.7s;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animated letter effect (original) */
.alpha {
  cursor: default;
  transition: color 0.3s ease;
}
.animated {
  animation: letterHoverAnimation 0.7s ease-in-out;
}
.home .animated {
  animation: letterHoverAnimation 0.7s;
}

@media (max-width: 768px) {
  .home-inner {
    padding: 0 5vw;
  }
  .home h1.alpha {
    font-size: clamp(40px, 10vw, 60px);
  }
}

/* =============================================
       SECTION SHARED STYLES
    ============================================= */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 40px;
}
.section-tag {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-tag::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 56px;
  display: flex;
  flex-wrap: wrap;
}
.section-title .alpha {
  font-size: inherit;
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* =============================================
       ABOUT SECTION
    ============================================= */
#aboutMe {
  background: var(--navy-2);
}
#aboutMe .section-inner {
  max-width: 1320px;
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 96px;
  align-items: center;
}
.about-text .section-tag {
  margin-bottom: 8px;
}
.about-bio {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;
  color: #aabbd4;
  margin-bottom: 36px;
  text-align: justify;
}
.about-code-block {
  font-family: "Courier New", monospace;
  font-size: 13px;
  color: #5982eb;
  font-style: italic;
  letter-spacing: 2px;
  opacity: 0.6;
  margin-bottom: 8px;
}
.about-three-wrap {
  width: 100%;
  height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
#aboutThree {
  width: 100%;
  height: 100%;
}
.about-three-wrap::after {
  content: "";
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(89, 130, 235, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-three-wrap {
    height: 460px;
    max-width: 500px;
    margin: 0 auto;
  }
}
@media (max-width: 600px) {
  .about-three-wrap {
    display: none;
  }
}

/* =============================================
       SKILLS SECTION
    ============================================= */
#skills {
  background: var(--navy);
}

.skills-ticker-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 12px 0;
}
.skills-ticker-track {
  display: flex;
}
.skills-ticker-row {
  display: flex;
  flex-shrink: 0;
  gap: 14px;
  animation: skills-scroll 25s linear infinite;
  padding-right: 14px;
}
.skills-ticker-row:hover {
  animation-play-state: paused;
}
.skills-ticker-row:hover {
  animation-play-state: paused;
}
@keyframes skills-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.skill-chip {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  width: 180px;
  height: 80px;
  cursor: default;
  transition: all 0.3s ease;
  flex-shrink: 0;
  font-size: 22px;
  background-color: #ffffff;
}
.skill-chip span {
  font-size: 16px;
  font-weight: 500;
  color: #000000;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.skill-chip:hover {
  background: #7daacb;
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(89, 130, 235, 0.2);
}
.skill-chip img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* =============================================
       PROJECTS SECTION
    ============================================= */
#projects {
  background: var(--navy-2);
}

.projects-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}
.projects-viewport {
  flex: 1;
  overflow: hidden;
  padding: 20px 4px;
  margin: -20px -4px;
}
.projects-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  padding: 4px 2px;
}
.proj-card {
  flex-shrink: 0;
  width: 260px;
  height: 380px;
  perspective: 1000px;
  cursor: pointer;
}
.proj-card-inner {
  width: 100%;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    transform 0.15s ease;
  will-change: transform;
  transform-origin: center center;
  backface-visibility: hidden;
  contain: layout paint;
  transform: translateZ(0);
}
.proj-card:hover .proj-card-inner {
  border-color: rgba(89, 130, 235, 0.5);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(89, 130, 235, 0.15);
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.proj-card-img-placeholder {
  flex: 1;
  background: linear-gradient(
    135deg,
    rgba(89, 130, 235, 0.12) 0%,
    rgba(40, 65, 180, 0.08) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.proj-icon {
  font-size: 56px;
  filter: drop-shadow(0 4px 12px rgba(89, 130, 235, 0.3));
}

img.proj-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  font-size: unset;
  filter: none;
}

.proj-card-body {
  padding: 20px;
  flex-shrink: 0;
}
.proj-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.proj-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}
.proj-desc {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.5;
}
.proj-hover-cta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(89, 130, 235, 0.22) 0%,
    transparent 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-light);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  pointer-events: none;
  letter-spacing: 0.04em;
}
.proj-card:hover .proj-hover-cta {
  opacity: 1;
  transform: translateY(0);
}
.proj-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.proj-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}
.proj-arrow:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}
.proj-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.proj-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
}
.proj-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 600px) {
  #projects .section-inner {
    padding-left: 20px;
    padding-right: 20px;
  }
  .projects-wrapper {
    display: block;
  }
  .projects-viewport {
    width: 100%;
    padding: 16px 0;
    margin: -16px 0;
  }
  .projects-track {
    gap: 16px;
    padding: 4px 0;
  }
  .proj-card {
    width: min(100%, 320px);
    height: 340px;
  }
  .proj-card-inner {
    border-radius: 16px;
  }
  .proj-card-img-placeholder {
    flex: 0 0 150px;
  }
  .proj-icon {
    font-size: 44px;
  }
  .proj-card-body {
    padding: 18px;
  }
  .proj-title {
    font-size: 16px;
  }
  .proj-desc {
    font-size: 12px;
  }
  .proj-hover-cta {
    opacity: 1;
    transform: none;
    padding: 12px;
    background: linear-gradient(
      to top,
      rgba(89, 130, 235, 0.2) 0%,
      transparent 100%
    );
  }
  .proj-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 38px;
    height: 38px;
    transform: translateY(-50%);
    background: rgba(10, 15, 30, 0.82);
    backdrop-filter: blur(10px);
  }
  .proj-arrow-left {
    left: -6px;
  }
  .proj-arrow-right {
    right: -6px;
  }
  .proj-dots {
    margin-top: 22px;
  }
}

/* =============================================
       EDUCATION SECTION
    ============================================= */
#education {
  background: var(--navy);
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.edu-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.edu-card-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.edu-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.edu-card:hover .edu-icon {
  border-color: var(--accent);
  background: rgba(89, 130, 235, 0.12);
  box-shadow: 0 0 20px rgba(89, 130, 235, 0.2);
}

.edu-line {
  height: 2px;
  flex: 1;
  background: linear-gradient(
    to right,
    var(--accent),
    rgba(89, 130, 235, 0.15)
  );
  border-radius: 1px;
}

.edu-card-right {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.edu-card-right::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.edu-card:hover .edu-card-right {
  background: var(--surface-hover);
  border-color: rgba(89, 130, 235, 0.3);
  transform: translateY(-4px);
}

.edu-card:hover .edu-card-right::before {
  opacity: 1;
}

.edu-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 12px;
}

.edu-badge-done {
  color: var(--text-muted);
  background: rgba(136, 153, 187, 0.08);
  border-color: rgba(136, 153, 187, 0.2);
}

.edu-degree {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.edu-field {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.2;
}

.edu-school {
  font-size: 15px;
  font-weight: 400;
  color: #aabbd4;
  margin-bottom: 12px;
}

.edu-second {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

.edu-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.edu-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.edu-tags span {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-light);
  background: rgba(89, 130, 235, 0.1);
  border: 1px solid rgba(89, 130, 235, 0.2);
  border-radius: 999px;
  padding: 4px 12px;
}

@media (max-width: 900px) {
  .edu-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .edu-card {
    flex-direction: row;
    gap: 20px;
  }
  .edu-card-left {
    flex-direction: column;
    align-items: center;
    width: 36px;
  }
  .edu-line {
    width: 2px;
    height: auto;
    flex: 1;
    min-height: 32px;
    background: linear-gradient(
      to bottom,
      var(--accent),
      rgba(89, 130, 235, 0.1)
    );
  }
  .edu-card-right {
    margin-bottom: 20px;
  }
  .edu-card:hover .edu-card-right {
    transform: translateX(4px);
  }
  .edu-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
    border-radius: 10px;
  }
  .edu-field {
    font-size: 18px;
  }
  .edu-card-right {
    padding: 16px 18px;
  }
}

/* =============================================
       EXPERIENCE SECTION
    ============================================= */
#experiences {
  background: var(--navy-2);
}

.exp-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Vertical line running through all items */
.exp-timeline::before {
  content: "";
  position: absolute;
  left: 148px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--accent) 0%,
    rgba(89, 130, 235, 0.4) 60%,
    transparent 100%
  );
  border-radius: 1px;
}

.exp-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  margin-bottom: 36px;
  position: relative;
}

.exp-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding-top: 6px;
}

.exp-dot-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

.exp-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--navy-2);
  border: 2px solid rgba(89, 130, 235, 0.5);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.exp-dot-active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow:
    0 0 0 4px rgba(89, 130, 235, 0.2),
    0 0 16px rgba(89, 130, 235, 0.4);
}

/* Pulse ring on active dot */
.exp-dot-active::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(89, 130, 235, 0.3);
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.exp-date-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding-right: 32px;
}

.exp-badge-current {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 999px;
  padding: 2px 8px;
}

.exp-date {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
  line-height: 1.4;
}

.exp-date-break {
  display: none;
}

/* Card */
.exp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 26px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.exp-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.exp-item:hover .exp-card {
  background: var(--surface-hover);
  border-color: rgba(89, 130, 235, 0.3);
  transform: translateX(6px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.exp-item:hover .exp-card::before {
  opacity: 1;
}
.exp-item:hover .exp-dot {
  border-color: var(--accent);
  background: var(--accent);
}

.exp-company {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3px;
}

.exp-role {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.exp-logo {
  width: 80px;
  border-radius: 6px;
  opacity: 0.85;
  flex-shrink: 0;
}

.exp-summary {
  font-size: 14px;
  font-weight: 300;
  color: #aabbd4;
  line-height: 1.7;
  margin-bottom: 14px;
  text-align: justify;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.exp-tags span {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-light);
  background: rgba(89, 130, 235, 0.1);
  border: 1px solid rgba(89, 130, 235, 0.18);
  border-radius: 999px;
  padding: 3px 10px;
}

@media (max-width: 600px) {
  .exp-timeline::before {
    left: 60px;
  }
  .exp-item {
    grid-template-columns: 70px 1fr;
    gap: 16px;
  }
  .exp-date-col {
    padding-right: 14px;
  }
  .exp-date {
    font-size: 10px;
    white-space: normal;
  }
  .exp-date-break {
    display: initial;
  }
  .exp-role {
    font-size: 15px;
  }
  .exp-logo {
    width: 60px;
  }
  .exp-card {
    padding: 16px 18px;
  }
}
/* =============================================
       FOOTER
    ============================================= */
footer {
  background: var(--navy);
  border-top: 1px solid var(--border);
  padding: 48px 40px;
  text-align: center;
}
.footer-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.3s ease;
  letter-spacing: 0.06em;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-copy {
  font-size: 12px;
  color: rgba(136, 153, 187, 0.5);
}

@media (max-width: 600px) {
  footer {
    padding: 36px 20px;
  }
  .footer-name {
    font-size: 20px;
    margin-bottom: 16px;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 12px 18px;
    max-width: 320px;
    margin: 0 auto 24px;
  }
  .footer-links a {
    font-size: 12px;
    line-height: 1.4;
  }
  .footer-copy {
    max-width: 280px;
    margin: 0 auto;
    line-height: 1.7;
  }
}

/* =============================================
       ANIMATIONS
    ============================================= */
@keyframes letterHoverAnimation {
  0% {
    transform: scale(1.2, 0.5);
  }
  16% {
    transform: scale(1.2, 0.5);
  }
  25% {
    transform: scale(1.2, 0.5);
  }
  32% {
    transform: scale(0.8, 1.1);
  }
  48% {
    transform: scale(0.95, 1);
  }
  64% {
    transform: scale(0.8, 1.2);
  }
  80% {
    transform: scale(1.15, 1);
  }
  87% {
    transform: scale(1.15, 1);
  }
  90% {
    transform: scale(0.8, 1);
  }
  95% {
    transform: scale(1.05, 1);
  }
  100% {
    transform: scale(1, 1);
  }
}

@keyframes show {
  0% {
    transform: translateY(0);
  }
  22% {
    transform: translateY(0);
  }
  28% {
    transform: translateY(-48px);
  }
  47% {
    transform: translateY(-48px);
  }
  53% {
    transform: translateY(-96px);
  }
  72% {
    transform: translateY(-96px);
  }
  78% {
    transform: translateY(-144px);
  }
  97% {
    transform: translateY(-144px);
  }
  100% {
    transform: translateY(-144px);
  }
}
