/* 🌐 Reset + Base */
html,
body {
  height: 100%;
  overflow-x: hidden;
}

html {
  scroll-padding-bottom: calc(var(--floating-bar-height, 64px) + env(safe-area-inset-bottom) + 16px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background-color: #ffffff;
  color: #000000;
  font-family: 'Manrope', sans-serif;
  box-sizing: border-box;
}



@keyframes rotate {
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* .switch:hover */
.moon svg {
  animation: tilt 5s linear infinite;
}

@keyframes tilt {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-10deg);
  }

  75% {
    transform: rotate(10deg);
  }

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

.input:checked+.slider {
  background-color: #183153;
}

.input:focus+.slider {
  box-shadow: 0 0 1px #183153;
}

.input:checked+.slider:before {
  transform: translateX(30px);
}

/* Dark theme inversion: keep visuals consistent by inverting the whole page */
.theme-dark {
  filter: invert(1) hue-rotate(180deg);
}

/* Re-invert media/icons so they appear normal in dark mode */
.theme-dark img,
.theme-dark video {
  filter: invert(1) hue-rotate(180deg);
}

/* Keep emojis unchanged across themes */
.theme-dark .emoji {
  filter: invert(1) hue-rotate(180deg);
}

/* Allow vector/icon fonts to invert with the page so they stay visible */
.theme-dark i,
.theme-dark .svgIcon,
.theme-dark .githubSVG,
.theme-dark .linkedinSVG,
.theme-dark .gmailSVG,
.theme-dark .instagramSVG {
  filter: none !important;
}

/* Keep floating bar translucent backdrop feeling in dark via same filter pipeline */
.theme-dark .floating-bar {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

:root {
  --floating-bar-height: 64px;
}

/* Reserve space only at the end of content so the bar doesn't cover last section */
section:last-of-type {
  padding-bottom: calc(var(--floating-bar-height) + env(safe-area-inset-bottom) + 24px);
}

.section-divider {
  width: 80%;
  height: 2px;
  background: linear-gradient(to right, black, #000, black);
  margin: 2% auto;
  border-radius: 10px;
  opacity: 1;
}

/* About Me */
.about {
  width: 100%;
  padding: 90px 6%;
  background: #ffffff;
  color: #000000;
}

.about-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.about .section-title {
  color: #000;
}

.about-text {
  max-width: 900px;
  margin: 0 auto 24px auto;
  line-height: 1.8;
  font-size: clamp(0.98rem, 1.8vw, 1.1rem);
  opacity: 0.95;
  overflow-wrap: break-word;
}

.about-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  justify-items: center;
  margin-top: 10px;
}

.about-badges .badge {
  width: 100%;
  max-width: 520px;
  border: 2px solid #000000;
  color: #000000;
  background: #ffffff;
  border-radius: 14px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 15px 15px black;
}

.about-badges .badge i {
  color: #000000;
}

.about-badges .badge .sub {
  color: #333333;
  opacity: 1;
  margin-left: 6px;
}

.about-badges .badge:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 5px;
}

@media (max-width: 600px) {
  body {
    padding-bottom: 160px;
  }

  .about,
  .achievements,
  .skills,
  .projects,
  .socials,
  .socials {
    top: 64px;
    padding-bottom: 64px;
  }

  .section-title {
    margin-bottom: 28px;
  }

  .contact {
    padding-bottom: 100px;
  }

  .about,
  .achievements,
  .skills,
  .projects,
  .socials,
  .contact {
    padding-left: 5%;
    padding-right: 5%;
  }

  .about {
    padding: 70px 5%;
  }

  .about-inner {
    max-width: 640px;
  }

  .about-text {
    line-height: 1.75;
    padding: 0 2px;
  }

  .about-badges {
    grid-template-columns: 1fr;
    gap: 18px;
    /* ensure borders don’t visually merge */
  }

  .about-badges .badge {
    align-items: center;
    text-align: left;
    gap: 8px;
    border-width: 2px;
  }

  .about-badges .badge .sub {
    display: block;
    margin-left: 0;
    font-size: 0.9rem;
    opacity: 0.85;
  }
}


/* 🌟 Intro Section */
.intro {
  width: 100%;
  min-height: calc(100svh - var(--floating-bar-height) - max(12px, env(safe-area-inset-bottom) + 12px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 15px 5%;
}

.typewriter {
  overflow: hidden;
  border-right: 2px solid black;
  white-space: nowrap;
  letter-spacing: 2px;
  animation: typing 2s steps(40, end), blink 0.6s step-end infinite;
  font-size: 1.8rem;
  max-width: 90%;
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink {

  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: black;
  }
}

@media (max-width: 600px) {
  .typewriter {
    white-space: normal;
    text-align: center;
    display: inline-block;
    border-right: none;
    animation: none;
    font-size: 1.2rem;
    max-width: 95%;
  }

  .typewriter::after {
    content: '|';
    display: inline-block;
    animation: blink 0.6s step-end infinite;
    margin-left: 3px;
  }

  .intro h1 {
    animation: fadeIn 1.5s ease-in-out;
  }
}

.subtitle {
  opacity: 0;
  animation: fadeIn 1.5s ease-in-out 2s forwards;
  margin-top: 20px;
  font-size: 1.1rem;
  color: grey;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* 🧭 Floating Bar */
.floating-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  margin-left: auto;
  margin-right: auto;
  bottom: max(12px, env(safe-area-inset-bottom) + 12px);
  width: auto;
  max-width: 900px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid #000000;
  border-radius: 28px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 12px 12px;
  gap: 10px;
  z-index: 9999;
}

/* When over the footer, keep transparency but flip text/border for contrast */
.floating-bar.on-footer {
  border-color: #ffffff;
}

.floating-bar.on-footer a {
  color: #ffffff;
}

.floating-bar.on-footer a:hover {
  color: #00f5d4;
}

.floating-bar a {
  text-decoration: none;
  color: #000000;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  text-align: center;
}

.floating-bar a:hover {
  transform: translateY(-2px);
  color: #00f5d4;
}

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

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

@media (max-width: 600px) {
  .floating-bar {
    left: 12px;
    right: 12px;
    margin-left: auto;
    margin-right: auto;
    max-width: 560px;
    bottom: max(10px, env(safe-area-inset-bottom) + 10px);
    padding: 10px;
  }

  .floating-bar a {
    font-size: 0.85rem;
  }
}

@media (max-width: 360px) {
  .floating-bar {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .floating-bar a {
    font-size: 0.7rem;
  }
}

/* Allow earlier wrapping to avoid overflow on small phones */
@media (max-width: 420px) {
  .floating-bar {
    flex-wrap: wrap;
    row-gap: 6px;
  }
}

/* 🏆 Achievements Section */
.achievements {
  width: 100%;
  box-sizing: border-box;
  padding: 100px 10%;
  text-align: center;
  background: #fff;
  color: #000;
  margin-bottom: 80px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: black;
  margin: 15px auto 0;
  border-radius: 10px;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
  justify-items: center;
}

.achievement-card {
  background: #fff;
  border: 2px solid black;
  border-radius: 25px;
  padding: 30px 25px;
  max-width: 350px;
  box-shadow: 15px 15px black;
  opacity: 0;
  transform: translateY(40px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card.visible {
  /* opacity: 1; */
  transform: translateY(0);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.achievement-card:hover {
  transform: translateY(-5px);
  box-shadow: 5px 5px 5px;
}

.emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 15px;
}

.achievement-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.achievement-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
}

.year {
  font-weight: 600;
  color: #333;
}

@media (max-width: 600px) {
  .achievements {
    padding: 80px 5%;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .achievement-card {
    padding: 25px 20px;
  }
}

/* 🧠 Skills (Progress Rings) */
/* 🧠 Skills (Progress Rings) */
.skills {
  width: 100%;
  padding: 100px 10%;
  text-align: center;
  background: #fafafa;
}

.skills .section-title {
  margin-bottom: 60px;
}

.skill-rings {
  display: none;
}

/* Histogram bars container (hidden by default on desktop) */
.skills-bars {
  display: block;
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}

.skills-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 50px 0;
}

.skills-bar-label {
  min-width: 120px;
  font-weight: 700;
  color: #000;
}

.skills-bar-track {
  position: relative;
  flex: 1;
  height: 16px;
  border: 2px solid #000;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.skills-bar-fill {
  height: 100%;
  background: #000;
  width: 0%;
  transition: width 0.9s ease-out;
}

.skill {
  text-align: center;
  position: relative;
}

.progress-ring {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.progress-ring svg {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
  width: 140px;
  height: 140px;
}

.progress-ring circle {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
}

.progress-ring .background {
  stroke: #e0e0e0;
}

.progress-ring .progress {
  stroke: #000000;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 1.5s ease-out;
}

.percent-text {
  position: relative;
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  z-index: 2;
}

.skill-name {
  margin-top: 15px;
  font-size: 1rem;
  font-weight: 600;
}

/* 📱 Mobile Rings */
@media (max-width: 600px) {
  .skills {
    padding: 80px 6%;
  }
}

.intro h1 {
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
}

.subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
}

.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
}

.social-link {
  font-size: clamp(1.6rem, 2.8vw, 2rem);
}

@media (max-width: 1024px) {
  .project-row {
    gap: 60px;
    width: 90%;
    margin-bottom: 200px;
  }

  .project-content h3 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .achievements {
    padding: 80px 6%;
  }

  .skills {
    padding: 80px 6%;
  }

  .project-links a {
    padding: 6px 14px;
    gap: 8px;
  }

  .project-content h3 {
    font-size: 1.5rem;
  }

  .project-content p {
    font-size: 0.95rem;
  }

  .uiverse-icons .tooltip-container:hover .tooltip {
    top: -130px;
  }
}

@media (max-width: 480px) {
  .uiverse-icons .img {
    width: 44px;
    height: 44px;
  }

  .uiverse-icons .img i {
    font-size: 20px;
  }

  .project-links a {
    padding: 6px 12px;
    font-size: 0.95rem;
  }
}

.projects {
  width: 100%;
  padding: 120px 0;
  background-color: var(--bg-color, #fff);
  color: var(--text-color, #000);
}

.section-title {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 100px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: black;
  margin: 15px auto 0;
  border-radius: 10px;
}

/* Project Layout */
.project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 100px;
  width: 85%;
  margin: 0 auto 140px auto;
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.project-row.show {
  opacity: 1;
  transform: translateY(0);
}

.project-row.reverse {
  flex-direction: row-reverse;
}

/* Image Section */
.project-image {
  flex: 1;
  max-width: 45%;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 15px 15px black;
  transition: box-shadow 0.3s ease;
}

.project-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 25px;
  transition: transform 0.5s ease;
}

.project-image:hover img {
  transform: scale(1.05);
}

.project-image:hover {
  box-shadow: 5px 5px 5px;
}

/* Content Section */
.project-content {
  flex: 1;
  max-width: 55%;
  text-align: left;
}

.project-content h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.project-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 20px;
}

.project-content .tech-stack {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 25px;
}

/* Links */
.project-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.project-links a {
  text-decoration: none;
  color: black;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.8px solid black;
  padding: 8px 18px;
  border-radius: 30px;
  transition: all 0.3s ease;
}

/* Hover effect */
.project-links a:hover {
  background-color: black;
  border-color: black;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.project-links a:hover i {
  transform: translateX(3px);
}

.project-links i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

/* Outlined look for Earth icon */
.project-links .fa-earth-americas {
  opacity: 0.85;
  filter: grayscale(100%);
}

/* Responsive */
@media (max-width: 900px) {
  .project-row {
    flex-direction: column;
    gap: 40px;
    width: 90%;
    text-align: center;
    margin-bottom: 100px;
  }

  .project-row.reverse {
    flex-direction: column;
  }

  .project-image,
  .project-content {
    max-width: 100%;
  }

  .project-content h3 {
    font-size: 1.6rem;
  }

  .project-content p {
    font-size: 0.95rem;
  }

  .project-links {
    justify-content: center;
  }
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.socials {
  text-align: center;
  padding: 80px 20px;
}

/* Ensure anchored sections are not hidden under the fixed floating bar */
section {
  scroll-margin-top: calc(var(--floating-bar-height, 64px) + 28px);
}

/* Ensure reveal styles never shift the fixed floating bar */
.floating-bar.reveal,
.floating-bar.reveal.show {
  opacity: 1 !important;
  transform: none !important;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.social-link {
  font-size: 2rem;
  color: #000000;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-link:hover {
  transform: scale(1.2);
  color: #555555;
}

/* UIverse-style Tooltip Icons (scoped) */
.uiverse-icons {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.uiverse-icons .tooltip-container {
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 17px;
  border-radius: 10px;
  margin: 10px;
}

.uiverse-icons .tooltip {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  border-radius: 15px;
  box-shadow: inset 5px 5px 5px rgba(0, 0, 0, 0.06),
    inset -5px -5px 15px rgba(255, 255, 255, 0.2),
    5px 5px 15px rgba(0, 0, 0, 0.08), -5px -5px 15px rgba(255, 255, 255, 0.2);
}

.uiverse-icons .profile {
  background: #fff;
  border-radius: 10px 15px;
  padding: 10px;
  border: 2px solid #000;
}

.uiverse-icons .user {
  display: flex;
  gap: 10px;
}

.uiverse-icons .img {
  width: 50px;
  height: 50px;
  font-size: 18px;
  font-weight: 700;
  border: 2px solid #000;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #000;
}

.uiverse-icons .img i {
  font-size: 22px;
  line-height: 1;
  color: #000;
}

.uiverse-icons .details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #000;
}

.uiverse-icons .title-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.uiverse-icons .profile-icon {
  font-size: 16px;
  color: #000;
}

.uiverse-icons .name {
  font-size: 16px;
  font-weight: 700;
  color: #000;
}

.uiverse-icons .username {
  font-size: 13px;
  color: #333;
}

.uiverse-icons .about {
  color: #555;
  padding-top: 5px;
  font-size: 12px;
}

.uiverse-icons .tooltip-container:hover .tooltip {
  top: -150px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.uiverse-icons .icon {
  text-decoration: none;
  color: #000;
  display: block;
  position: relative;
}

.uiverse-icons .layer {
  width: 55px;
  height: 55px;
  transition: transform 0.3s;
}

.uiverse-icons .icon:hover .layer {
  transform: rotate(-35deg) skew(20deg);
}

.uiverse-icons .layer span {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  border: 2px solid #000;
  border-radius: 15px;
  transition: all 0.3s;
  background: #fff;
}

.uiverse-icons .icon .text,
.uiverse-icons .layer span {
  color: #000;
  border-color: #000;
}

.uiverse-icons .icon:hover .layer span {
  box-shadow: -1px 1px 3px rgba(0, 0, 0, 0.3);
}

.uiverse-icons .icon .text {
  position: absolute;
  left: 50%;
  bottom: -5px;
  opacity: 0;
  font-weight: 600;
  transform: translateX(-50%);
  transition: bottom 0.3s ease, opacity 0.3s ease;
  white-space: nowrap;
}

.uiverse-icons .icon:hover .text {
  bottom: -35px;
  opacity: 1;
}

.uiverse-icons .icon:hover .layer span:nth-child(1) {
  opacity: 0.2;
}

.uiverse-icons .icon:hover .layer span:nth-child(2) {
  opacity: 0.4;
  transform: translate(5px, -5px);
}

.uiverse-icons .icon:hover .layer span:nth-child(3) {
  opacity: 0.6;
  transform: translate(10px, -10px);
}

.uiverse-icons .icon:hover .layer span:nth-child(4) {
  opacity: 0.8;
  transform: translate(15px, -15px);
}

.uiverse-icons .icon:hover .layer span:nth-child(5) {
  opacity: 1;
  transform: translate(20px, -20px);
}

/* Inner icon wrapper for brand blocks (monochrome to match theme) */
.uiverse-icons .svgIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 26px;
}

.uiverse-icons .githubSVG,
.uiverse-icons .linkedinSVG,
.uiverse-icons .gmailSVG,
.uiverse-icons .instagramSVG {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  background: #000;
  /* solid black tile */
  color: #fff;
  /* white icon */
}

/* Contact card styles */
.card {
  width: 100%;
  max-width: 420px;
  padding: 20px 18px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border-radius: 20px;
  border: 2px solid #000;
  margin: 0 auto;
  box-shadow: 15px 15px black;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 5px 5px 5px;
}

.card>* {
  margin: 0;
}

.card__title {
  font-size: 23px;
  font-weight: 900;
  color: #333;
  margin-bottom: 6px;
}

.card__content {
  font-size: 13px;
  line-height: 18px;
  color: #333;
  padding: 0 10px;
  overflow-wrap: break-word;
}

.card__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.card__form input,
.card__form textarea {
  margin-top: 10px;
  outline: 0;
  background: #ffffff;
  box-shadow: transparent 0 0 0 1px inset;
  padding: 0.6em;
  border-radius: 14px;
  border: 1px solid #000000;
  color: #000000;
  font-family: inherit;
}

/* Ensure focused inputs are scrolled above the floating bar on mobile */
input:focus,
textarea:focus {
  scroll-margin-bottom: 140px;
}

.card__form textarea {
  resize: vertical;
}

.card__form button {
  border: 0;
  background: #000000;
  color: #ffffff;
  padding: 0.68em;
  border-radius: 14px;
  font-weight: bold;
  cursor: pointer;
}

.sign-up:hover {
  opacity: 0.9;
}

@media (max-width: 600px) {
  .uiverse-icons {
    flex-wrap: wrap;
    gap: 20px;
  }

  .uiverse-icons .layer {
    width: 48px;
    height: 48px;
  }

  .uiverse-icons .card {
    width: 90%;
    margin: 0 auto;
    padding: 18px 14px;
  }

  .card__form button {
    width: 100%;
    padding: 0.8em 1em;
    border-radius: 14px;
  }

  .card__form input,
  .card__form textarea {
    padding: 0.75em;
  }

  .card__form textarea {
    min-height: 140px;
  }

  .floating-bar {
    bottom: 26px;
    width: 94%;
  }

  .floating-bar a {
    padding: 6px 8px;
  }

  .card {
    max-width: 360px;
    padding: 16px 14px;
  }
}

.contact {
  padding: 100px 20px;
  text-align: center;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 12px;
  background: #3f8efc22;
  /* translucent blue */
  color: #fff;
  font-size: 1rem;
  outline: none;
  resize: none;
  transition: background 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: #3f8efc44;
}

.send-btn {
  align-self: center;
  background: #2667ff;
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
}

.send-btn:hover {
  background: #00f5d4;
  transform: translateY(-3px);
}

/* Footer */
.site-footer {
  background: #000000;
  color: #ffffff;
  width: 100%;
  padding: 40px 20px 110px;
  margin-top: 60px;
}

.site-footer .footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.site-footer .footer-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 0 0 6px 0;
}

.site-footer .footer-copy {
  margin: 0 0 16px 0;
  opacity: 0.9;
}

.site-footer .footer-copy a {
  color: inherit;
  text-decoration: underline;
}

/* Education subsection */
.education {
  margin-top: 36px;
  text-align: left;
}

.subsection-title {
  font-size: 1.4rem;
  margin: 30px 0 16px;
  position: relative;
}

.subsection-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: #000;
  margin-top: 10px;
  border-radius: 10px;
}

.education-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.education-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 2px solid #000;
  background: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 15px 15px black;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-item:hover {
  transform: translateY(-5px);
  box-shadow: 5px 5px 5px;
}

.edu-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.edu-badge {
  min-width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  font-weight: 800;
}

.edu-texts {
  min-width: 0;
}

.edu-title {
  font-weight: 800;
}

.edu-sub {
  color: #333;
  font-size: 0.95rem;
}

.edu-year {
  white-space: nowrap;
  color: #333;
  font-weight: 600;
}

@media (max-width: 720px) {
  .education-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .edu-year {
    align-self: flex-end;
  }
}

.site-footer .footer-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
}

.site-footer .footer-socials a {
  color: #ffffff;
  font-size: 1.4rem;
  display: inline-flex;
  transition: transform 0.2s ease, color 0.2s ease;
}

.site-footer .footer-socials a:hover {
  color: #00f5d4;
  transform: scale(1.08);
}

.site-footer .footer-socials a:focus-visible {
  outline: 2px solid #00f5d4;
  outline-offset: 4px;
  border-radius: 6px;
}

@media (max-width: 600px) {
  .site-footer {
    padding: 36px 16px 120px;
  }
}

/* --- UpVote System --- */
.upvote-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto; /* Push to the right */
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}



.upvote-container:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  border-color: rgba(255, 77, 109, 0.4);
}

.upvote-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #333;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}



.upvote-btn i {
  transition: all 0.3s ease;
}

.upvote-btn.active i {
  color: #ff4d6d;
  font-weight: 900; /* fa-solid effect */
}

.upvote-btn:active {
  transform: scale(1.4);
}

.upvote-count {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ff4d6d;
  opacity: 0;
  display: none; /* Hidden until threshold */
  transform: translateX(-5px);
  transition: all 0.4s ease;
}

.upvote-count.show {
  display: inline-block;
  opacity: 1;
  transform: translateX(0);
}

/* Pop animation */
@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.6); }
  100% { transform: scale(1); }
}

.heart-animate {
  animation: heartPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (max-width: 600px) {
  .upvote-container {
    margin-left: 0;
    margin-top: 12px;
  }
}