@import url('https://fonts.googleapis.com/css2?family=Mozilla+Headline:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Outfit", "Mozilla Headline", sans-serif;
  background: linear-gradient(-45deg, #0f2027, #203a43, #2c5364, #166b57);
  background-size: 200% 200%;
  animation: gradientBG 30s ease infinite;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.5s ease;
  overflow-x: hidden;
  will-change: background-position;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  background: rgba(8, 12, 16, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(95, 234, 186, 0.4);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(95, 234, 186, 0.05);
  border-radius: 10px;
  padding: 8px 16px;
  z-index: 1000;
  will-change: transform;
  font-family: 'Fira Code', 'Consolas', monospace;
}

nav {
  display: flex;
  gap: 30px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #a9b7c6;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.nav-link.active {
  background: rgba(95, 234, 186, 0.1);
  color: #5feaba;
  border-color: rgba(95, 234, 186, 0.4);
  box-shadow: 0 2px 10px rgba(95, 234, 186, 0.15);
  transform: scale(1.05);
}

.nav-link.active .icon svg {
  color: #5feaba;
  filter: drop-shadow(0 0 2px #5feaba);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #5feaba;
  cursor: pointer;
  transform: scale(1.05);
}

.icon {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon svg {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}

.nav-link:hover .icon svg {
  transform: scale(1.2) translateY(-2px);
  color: #5feaba;
}

#content {
  padding-top: 100px;
  padding-left: 20px;
  padding-right: 20px;
  flex: 1 0 auto;
}

.gradient-text {
  background: linear-gradient(90deg, #5feaba 0%, #00f2fe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.typewriter-text {
  overflow: hidden;
  border-right: .15em solid #5feaba;
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: .05em;
  animation:
    typing 2s steps(40, end),
    blink-caret .75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0
  }

  to {
    width: 100%
  }
}

@keyframes blink-caret {

  from,
  to {
    border-color: transparent
  }

  50% {
    border-color: #5feaba;
  }
}

.hero-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 10vh 20px;
  text-align: center;
  animation: fadeIn 0.8s ease forwards;
  position: relative;
}

.floating-element {
  position: absolute;
  opacity: 0.15;
  filter: blur(2px);
  animation: float 6s ease-in-out infinite;
  z-index: -1;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(10deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.learning-path {
  position: relative;
  margin-top: 30px;
  padding-left: 40px;
}

.learning-path::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15px;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, #5feaba, rgba(0, 242, 254, 0.1));
}

.learning-node {
  position: relative;
  margin-bottom: 50px;
  animation: slideUp 0.6s ease forwards;
  opacity: 0;
}

.learning-node:nth-child(1) {
  animation-delay: 0.1s;
}

.learning-node:nth-child(2) {
  animation-delay: 0.3s;
}

.learning-node:nth-child(3) {
  animation-delay: 0.5s;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.node-icon {
  position: absolute;
  left: -48px;
  top: 5px;
  width: 48px;
  height: 48px;
  background: rgba(15, 32, 39, 0.9);
  border: 2px solid #5feaba;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #5feaba;
  box-shadow: 0 0 15px rgba(95, 234, 186, 0.4);
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.learning-node:hover .node-icon {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 0 25px rgba(95, 234, 186, 0.8);
}

.node-content h3 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.node-content p {
  font-size: 1.1rem;
  color: #bbb;
  line-height: 1.7;
  background: rgba(255, 255, 255, 0.02);
  padding: 15px;
  border-left: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 8px 8px 0;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.learning-node:hover .node-content p {
  border-left-color: #5feaba;
  background: rgba(95, 234, 186, 0.05);
}

.node-tags {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.node-tag {
  font-size: 0.8rem;
  color: #00f2fe;
  background: rgba(0, 242, 254, 0.1);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.button-grids {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 50px;
  align-items: center;
}

.social-btn {
  padding: 12px 30px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  width: 200px;
  justify-content: center;
}

.social-btn:nth-child(1) {
  transform: translateX(-40px) rotate(-3deg);
}

.social-btn:nth-child(2) {
  transform: translateX(-10px) rotate(2deg);
}

.social-btn:nth-child(3) {
  transform: translateX(20px) rotate(-1deg);
}

.social-btn:nth-child(4) {
  transform: translateX(50px) rotate(4deg);
}

.social-btn svg {
  width: 22px;
  height: 22px;
  filter: invert(1);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(95, 234, 186, 0.5);
  box-shadow: 0 8px 25px rgba(95, 234, 186, 0.2);
  z-index: 10;
}

.social-btn:nth-child(1):hover {
  transform: translateX(-40px) scale(1.1) rotate(0deg);
}

.social-btn:nth-child(2):hover {
  transform: translateX(-10px) scale(1.1) rotate(0deg);
}

.social-btn:nth-child(3):hover {
  transform: translateX(20px) scale(1.1) rotate(0deg);
}

.social-btn:nth-child(4):hover {
  transform: translateX(50px) scale(1.1) rotate(0deg);
}

.social-btn:hover svg {
  transform: scale(1.2);
  color: #5feaba;
  filter: none;
}

.scroll-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.3;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  margin-bottom: 60px;
}

.scroll-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  color: #eee;
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #5feaba 0%, #00f2fe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.page-subtitle {
  font-size: 1.25rem;
  color: #ccc;
  margin-bottom: 30px;
}

.about-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 40px;
  margin-top: 30px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: left;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.lead-text {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 20px;
  font-weight: 600;
}

.timeline {
  position: relative;
  margin-top: 40px;
  padding-left: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-dot {
  position: absolute;
  left: -24px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5feaba;
  border: 2px solid rgba(15, 32, 39, 1);
  box-shadow: 0 0 10px #5feaba;
}

.timeline-date {
  font-size: 0.95rem;
  color: #5feaba;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-content h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #fff;
}

.timeline-content p {
  font-size: 1rem;
  color: #bbb;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  color: #ddd;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
  transform: translateZ(0);
  will-change: transform, box-shadow;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(22, 107, 87, 0.5);
  border-color: rgba(22, 107, 87, 0.8);
}

.card h3,
.card h4 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #fff;
  font-weight: 700;
}

.card p {
  font-size: 1.05rem;
  color: #bbb;
  margin-bottom: 16px;
  flex-grow: 1;
  line-height: 1.5;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  background: rgba(22, 107, 87, 0.15);
  border: 1px solid rgba(22, 107, 87, 0.4);
  color: #e0f2f1;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tag:hover {
  background: rgba(22, 107, 87, 0.5);
  border-color: rgba(22, 107, 87, 0.8);
}

.card-link {
  align-self: flex-start;
  background: #1e90ff;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 12px #1e90ffaa;
  transition: background-color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link:hover {
  background: #0f70d4;
}

.site-footer {
  text-align: center;
  padding: 24px 16px;
  background: rgba(15, 32, 39, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
  user-select: none;
  width: 100%;
  /* Fix CLS: reserve explicit height for footer */
  min-height: 72px;
}

.footer-minimal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  color: #aaa;
}

.footer-brand {
  font-weight: 700;
  font-size: 1.05rem;
}

.separator {
  color: rgba(95, 234, 186, 0.4);
  font-size: 0.8rem;
}

.footer-role,
.footer-copyright {
  font-weight: 400;
}

@media (max-width: 600px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section p {
    font-size: 1.1rem;
  }

  nav {
    gap: 12px;
  }

  .nav-link span:not(.icon) {
    display: none;
  }

  .card {
    padding: 16px;
  }
}

.mb-4 {
  margin-bottom: 16px;
}

.mb-8 {
  margin-bottom: 32px;
}

.terminal-theme {
  font-family: 'Fira Code', 'Consolas', monospace !important;
  background: rgba(8, 12, 16, 0.85) !important;
  border: 1px solid rgba(95, 234, 186, 0.4) !important;
  border-radius: 10px !important;
  position: relative;
  padding-top: 45px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(95, 234, 186, 0.05) !important;
  overflow: hidden;
  color: #e0f2f1 !important;
}

.terminal-theme::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: rgba(20, 25, 30, 0.95);
  border-bottom: 1px solid rgba(95, 234, 186, 0.3);
  z-index: 1;
}

.terminal-theme::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 15px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f56;
  box-shadow: 18px 0 0 #ffbd2e, 36px 0 0 #27c93f;
  z-index: 2;
}

.terminal-path {
  position: absolute;
  top: 6px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: #888;
  z-index: 2;
  font-family: 'Fira Code', 'Consolas', monospace;
  pointer-events: none;
}

.terminal-text-prompt::before {
  content: '> ';
  color: #5feaba;
  font-weight: 700;
  margin-right: 5px;
}

.terminal-theme h1,
.terminal-theme h2,
.terminal-theme h3,
.terminal-theme h4 {
  color: #5feaba !important;
  font-family: 'Fira Code', monospace !important;
}

.terminal-theme p {
  color: #a9b7c6 !important;
  font-family: 'Fira Code', monospace !important;
  line-height: 1.6;
}

.terminal-theme-tag {
  font-family: 'Fira Code', monospace;
  background: transparent !important;
  border: 1px dashed rgba(95, 234, 186, 0.5) !important;
  color: #5feaba !important;
}

.mouse-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(circle,
      rgba(95, 234, 186, 0.05) 0%,
      transparent 50%);
  transform: translate3d(-1000px, -1000px, 0);
  will-change: transform;
}