/*===============
  global styles
===============*/

* {
  padding: 0;
  margin: 0;
  border: 0;
  outline: 0;
  background-color: inherit;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  box-shadow: none;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  line-height: 1.7;
  color: var(--clr-fg);
  background-color: var(--clr-bg);
  background-image: radial-gradient(circle at 20% 20%, rgba(45, 212, 191, 0.18), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(13, 148, 136, 0.12), transparent 28%),
    radial-gradient(circle at 70% 70%, rgba(13, 148, 136, 0.1), transparent 26%);
  animation: fadeIn 0.6s ease-in-out;
  cursor: auto;
  position: relative;
  overflow-x: hidden;
}

/* Scroll progress bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-primary-light));
  z-index: 2000;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* Particles Background */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  background: var(--clr-bg);
  pointer-events: none;
}

/* Animated Gradient Background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: linear-gradient(-45deg, var(--clr-bg), var(--clr-accent), var(--clr-bg-alt), var(--clr-bg));
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  opacity: 0.5;
  pointer-events: none;
}

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

/* Custom cursor removed */

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes floatBadge {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes revealText {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

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

@keyframes spring {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

.light {
  --clr-bg: #f6f8f6;
  --clr-bg-alt: #ffffff;
  --clr-fg: #42514a;
  --clr-fg-alt: #0f261d;
  --clr-primary: #0d9488; /* teal 600 */
  --clr-primary-light: #2dd4bf; /* teal 400 */
  --clr-accent: #e7f7f2;
  --border-accent: rgba(13, 148, 136, 0.26);
  --shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 35px -12px rgba(0, 0, 0, 0.12), 0 10px 12px -8px rgba(0, 0, 0, 0.08);
  --border: #d6e4df;
}

.dark {
  --clr-bg: #0c1514;
  --clr-bg-alt: #0f1f1d;
  --clr-fg: #cbe6df;
  --clr-fg-alt: #e9faf5;
  --clr-primary: #2dd4bf; /* teal 400 */
  --clr-primary-light: #5eead4; /* teal 300 */
  --clr-accent: #0a2925;
  --border-accent: rgba(45, 212, 191, 0.32);
  --shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.35), 0 2px 4px -2px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.45), 0 10px 14px -8px rgba(0, 0, 0, 0.35);
  --border: #1f3935;
}

::-moz-selection {
  background: var(--clr-primary);
  color: var(--clr-bg);
}

::-webkit-selection,
::selection {
  background: var(--clr-primary);
  color: var(--clr-bg);
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  color: var(--clr-fg-alt);
  font-weight: 600;
  letter-spacing: -0.025em;
}

h1 {
  font-size: 4rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.3rem;
  font-weight: 500;
}

ul {
  list-style-type: none;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
}

@media (max-width: 900px) {
  h1 {
    font-size: 2.6rem;
  }
}

/*===================
  buttons and links
===================*/

.link {
  color: var(--clr-primary);
  padding: 0 0 0.3em 0;
  position: relative;
  transition: color 0.3s ease;
}

.link:hover {
  color: var(--clr-primary-light);
}

.link::before {
  content: "";
  display: inline;
  width: 0%;
  height: 0.15em;
  position: absolute;
  bottom: 0;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-primary-light));
  transition: width 0.3s ease;
  border-radius: 2px;
}

.link:hover::before,
.link:focus::before {
  width: 100%;
}

.link--nav {
  color: var(--clr-fg);
  text-transform: lowercase;
  font-weight: 500;
  font-size: 0.95rem;
}

.link--icon {
  color: var(--clr-fg);
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.link--icon:hover {
  color: var(--clr-primary);
  transform: translateY(-3px);
  animation: pulse 0.5s ease-in-out;
}

.btn {
  display: block;
  padding: 0.9em 1.8em;
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: lowercase;
  transition: all 0.3s ease;
  border-radius: 8px;
  position: relative;
  cursor: pointer;
}

.btn:active {
  animation: spring 0.3s ease;
}

.btn--outline {
  color: var(--clr-primary);
  border: 2px solid var(--clr-primary);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn--outline:focus,
.btn--outline:hover {
  color: var(--clr-bg);
  border-color: var(--clr-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -14px rgba(45, 212, 191, 0.6), 0 0 0 1px rgba(45, 212, 191, 0.25);
  letter-spacing: 0.02em;
}

.btn--outline:before {
  content: "";
  position: absolute;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-light));
  right: 100%;
  bottom: 0;
  left: 0;
  top: 0;
  z-index: -1;
  transition: right 0.3s ease;
}

.btn--outline:hover::before,
.btn--outline:focus::before {
  right: 0;
}

.btn--plain {
  text-transform: initial;
  background-color: var(--clr-bg-alt);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.6em 1.2em;
  font-size: 0.85rem;
}

.btn--plain:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px -14px rgba(45, 212, 191, 0.5), var(--shadow);
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}

.btn--icon {
  padding: 0;
  font-size: 1.2rem;
}

.btn--icon:hover,
.btn--icon:focus {
  color: var(--clr-primary);
}

.btn--icon:active {
  transform: translateY(-5px);
}

/*========
  layout
========*/

.center {
  display: flex;
  align-items: center;
}

.header {
  height: 5em;
  max-width: 1200px;
  width: 95%;
  margin: 0 auto;
  justify-content: space-between;
  background-color: var(--clr-bg-alt);
  padding: 0 2em;
  border-radius: 16px;
  margin-top: 1.5em;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  animation: slideDown 0.6s ease-out;
  position: relative;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  background-color: rgba(var(--clr-bg-alt-rgb), 0.95);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.2);
  margin-top: 0.5em;
}

main {
  max-width: 1200px;
  width: 95%;
  margin: 0 auto;
  position: relative;
  z-index: 100;
}

.section {
  margin-top: 5em;
  padding: 0 1em;
}

.section__title {
  text-align: center;
  margin-bottom: 3em;
  text-transform: uppercase;
  font-size: 2.2rem;
  position: relative;
  display: inline-block;
  width: 100%;
  letter-spacing: 0.05em;
  animation: revealText 0.8s ease-out;
}

.section__title::after {
  content: "";
  position: absolute;
  bottom: -0.5em;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-primary-light));
  border-radius: 2px;
  animation: shimmer 2s linear infinite;
  background-size: 1000px 100%;
}

.nav__list {
  margin-right: 1.5em;
  display: flex;
}

.nav__list-item {
  margin-left: 1.5em;
}

.nav__hamburger {
  display: none;
  width: 1em;
}

.about {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5em;
  margin: 3.5em auto 0;
  padding: 3.5em 3em;
  max-width: 1100px;
  width: 100%;
  background: linear-gradient(135deg, var(--clr-bg-alt) 0%, var(--clr-accent) 100%);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  animation: slideUp 0.8s ease-out 0.2s both;
}

.about__name {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-light), var(--clr-primary), var(--clr-primary-light));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInLeft 0.8s ease-out 0.4s both, gradientFlow 8s ease infinite;
}

.about__role {
  margin-top: 1em;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--clr-fg);
  animation: slideInRight 0.8s ease-out 0.6s both;
  min-height: 1.6em;
}

.about__desc {
  font-size: 1.1rem;
  max-width: 700px;
  line-height: 1.8;
}

.about__desc,
.about__contact {
  margin-top: 2em;
  animation: fadeIn 1s ease-out 0.8s both;
}

.about__contact {
  gap: 1.2em;
  flex-wrap: wrap;
  justify-content: center;
}

.hero {
  position: relative;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75em;
}

.about__actions {
  display: flex;
  gap: 1.5em;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.about__actions .link--icon {
  font-size: 1.9rem;
}

.about .link--icon {
  margin-right: 1em;
  animation: float 3s ease-in-out infinite;
}

.about .link--icon:nth-child(2) {
  animation-delay: 0.2s;
}

.about .link--icon:nth-child(3) {
  animation-delay: 0.4s;
}

.about .btn--outline {
  margin-right: 1em;
}

.projects__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28em, 1fr));
  grid-gap: 2.5em;
}

.project {
  padding: 2.5em;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
  background-color: var(--clr-bg-alt);
  border: 1px solid var(--border-accent);
  background-image: linear-gradient(180deg, rgba(45, 212, 191, 0.06), transparent 32%);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease-out, opacity 0.6s ease-out, transform 0.6s ease-out;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  cursor: pointer;
}

.project:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 45px -20px rgba(45, 212, 191, 0.6), var(--shadow-lg);
  border-color: var(--clr-primary);
}

.project.visible {
  opacity: 1;
  transform: translateY(0);
}

.project.visible:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 20px 45px -20px rgba(45, 212, 191, 0.6), var(--shadow-lg) !important;
  border-color: var(--clr-primary) !important;
}

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

.project:nth-child(2) {
  animation-delay: 0.2s;
}

.project:nth-child(3) {
  animation-delay: 0.3s;
}

.project:nth-child(4) {
  animation-delay: 0.4s;
}

.project:nth-child(5) {
  animation-delay: 0.5s;
}

.project:nth-child(6) {
  animation-delay: 0.6s;
}

.project::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-primary-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  display: none;
}

.project:hover::before {
  transform: scaleX(1);
  display: none;
}

.project:hover {
  /* transform handled by VanillaTilt; keep visual emphasis only */
  box-shadow: 0 20px 45px -20px rgba(45, 212, 191, 0.6), var(--shadow-lg);
  border-color: var(--clr-primary);
}

.project h3 {
  color: var(--clr-fg-alt);
  margin-bottom: 0.8em;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  word-break: keep-all;
  hyphens: none;
  text-wrap: balance;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project__description {
  margin-top: 1em;
  line-height: 1.7;
  font-size: 0.95rem;
}

.project__stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1.2em 0;
}

.project__stack-item {
  margin: 0.5em;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--clr-primary);
  background: var(--clr-accent);
  padding: 0.4em 0.9em;
  border-radius: 6px;
  border: 1px solid var(--border-accent);
  transition: all 0.2s ease;
}

.project__stack-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px -4px rgba(45, 212, 191, 0.4);
  border-color: var(--clr-primary);
}

.project-links {
  display: flex;
  gap: 1em;
  justify-content: center;
  flex-wrap: nowrap;
  margin-top: 1.2em;
}

.project .link--icon {
  margin-left: 0;
}

.project h4 {
  color: var(--clr-primary);
  font-weight: 500;
  margin-bottom: 0.8em;
}

.education__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20em, 1fr));
  grid-gap: 2.5em;
}

.education {
  padding: 2.5em;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
  background-color: var(--clr-bg-alt);
  border: 1px solid var(--border-accent);
  background-image: linear-gradient(180deg, rgba(45, 212, 191, 0.06), transparent 32%);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease-out, opacity 0.6s ease-out, transform 0.6s ease-out;
  cursor: pointer;
}

.education:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 45px -20px rgba(45, 212, 191, 0.6), var(--shadow-lg);
  border-color: var(--clr-primary);
}

.education.visible {
  opacity: 1;
  transform: translateY(0);
}

.education.visible:hover {
  transform: translateY(-5px) scale(1.02) !important;
  box-shadow: 0 20px 45px -20px rgba(45, 212, 191, 0.6), var(--shadow-lg) !important;
  border-color: var(--clr-primary) !important;
}

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

.education:nth-child(2) {
  animation-delay: 0.2s;
}

.education::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-primary-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  display: none;
}

.education:hover::before {
  transform: scaleX(1);
  display: none;
}

.education:hover {
  box-shadow: 0 20px 45px -20px rgba(45, 212, 191, 0.6), var(--shadow-lg);
  border-color: var(--clr-primary);
}

.education h3 {
  color: var(--clr-fg-alt);
  margin-bottom: 0.8em;
}

.education h4 {
  color: var(--clr-primary);
  font-weight: 500;
  margin-bottom: 0.8em;
}

.education__description {
  margin-top: 1em;
  line-height: 1.7;
}

.experience__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20em, 1fr));
  grid-gap: 2.5em;
}

.experience {
  padding: 2.5em;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
  background-color: var(--clr-bg-alt);
  border: 1px solid var(--border-accent);
  background-image: linear-gradient(180deg, rgba(45, 212, 191, 0.06), transparent 32%);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease-out, opacity 0.6s ease-out, transform 0.6s ease-out;
  cursor: pointer;
}

.experience:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 45px -20px rgba(45, 212, 191, 0.6), var(--shadow-lg);
  border-color: var(--clr-primary);
}

.experience.visible {
  opacity: 1;
  transform: translateY(0);
}

.experience.visible:hover {
  transform: translateY(-5px) scale(1.02) !important;
  box-shadow: 0 20px 45px -20px rgba(45, 212, 191, 0.6), var(--shadow-lg) !important;
  border-color: var(--clr-primary) !important;
}

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

.experience:nth-child(2) {
  animation-delay: 0.2s;
}

.experience::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-primary-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  display: none;
}

.experience:hover::before {
  transform: scaleX(1);
  display: none;
}

.experience:hover {
  box-shadow: 0 20px 45px -20px rgba(45, 212, 191, 0.6), var(--shadow-lg);
  border-color: var(--clr-primary);
}

.experience h3 {
  color: var(--clr-fg-alt);
  margin-bottom: 0.5em;
}

.experience h4 {
  color: var(--clr-primary);
  font-weight: 500;
  margin-bottom: 0.8em;
}

.experience__description {
  margin-top: 1em;
  line-height: 1.7;
}

.skills__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  grid-gap: 2.5em;
}

.skill-category {
  padding: 2em;
  background-color: var(--clr-bg-alt);
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-accent);
  background-image: linear-gradient(180deg, rgba(45, 212, 191, 0.05), transparent 35%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease-out, opacity 0.6s ease-out, transform 0.6s ease-out;
  cursor: pointer;
}

.skill-category:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 45px -20px rgba(45, 212, 191, 0.6), var(--shadow-lg);
  border-color: var(--clr-primary);
}

.skill-category.visible {
  opacity: 1;
  transform: translateY(0);
}

.skill-category.visible:hover {
  transform: translateY(-5px) scale(1.02) !important;
  box-shadow: 0 20px 45px -20px rgba(45, 212, 191, 0.6), var(--shadow-lg) !important;
  border-color: var(--clr-primary) !important;
}

.skill-category:nth-child(1) {
  animation-delay: 0.1s;
}

.skill-category:nth-child(2) {
  animation-delay: 0.2s;
}

.skill-category:nth-child(3) {
  animation-delay: 0.3s;
}

.skill-category:nth-child(4) {
  animation-delay: 0.4s;
}

.skill-category::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-primary-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  display: none;
}

.skill-category:hover::before {
  transform: scaleX(1);
  display: none;
}

.skill-category:hover {
  box-shadow: 0 20px 45px -20px rgba(45, 212, 191, 0.6), var(--shadow-lg);
  border-color: var(--clr-primary);
}

/* Certification badge images */
.cert-badge {
  width: 100px !important;
  height: 100px !important;
  object-fit: contain;
  margin-top: 8px;
  animation: floatBadge 3s ease-in-out infinite;
}

.certifications__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16em, 1fr));
  grid-gap: 2em;
}

.certifications .project {
  min-height: 340px;
  padding: 1.8em;
}

.certifications .project h3 {
  min-height: 50px;
  font-size: clamp(0.85rem, 1.4vw, 1rem);
}

.certifications .project p {
  font-size: 0.85rem;
  margin-top: 6px !important;
}

.skill-category__title {
  text-align: center;
  color: var(--clr-fg-alt);
  margin-bottom: 1.5em;
  font-size: 1.2rem;
  font-weight: 600;
}

.skills__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8em;
}

.skills__list-item {
  margin: 0;
  animation: slideInFromLeft 0.6s ease-out backwards;
}

.skills__list-item:nth-child(1) { animation-delay: 0.1s; }
.skills__list-item:nth-child(2) { animation-delay: 0.15s; }
.skills__list-item:nth-child(3) { animation-delay: 0.2s; }
.skills__list-item:nth-child(4) { animation-delay: 0.25s; }
.skills__list-item:nth-child(5) { animation-delay: 0.3s; }
.skills__list-item:nth-child(6) { animation-delay: 0.35s; }
.skills__list-item:nth-child(7) { animation-delay: 0.4s; }
.skills__list-item:nth-child(8) { animation-delay: 0.45s; }

.contact {
  flex-direction: column;
  padding: 3em 2em;
}

.footer {
  padding: 3em 0;
  margin-top: 6em;
  text-align: center;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 100;
}

.footer__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-fg);
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: var(--clr-primary);
}

/* Smooth theme fade for core components */
body,
.header,
.project,
.education,
.experience,
.skill-category,
.btn--plain,
.footer,
.nav__list,
.about,
.scroll-top,
.link {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Typed.js caret */
.typed-cursor {
  color: var(--clr-primary);
  opacity: 1;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.scroll-container {
  position: fixed;
  bottom: 2em;
  right: 2em;
  z-index: 1000;
}

.scroll-top {
  display: none;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-light));
  font-size: 1.5rem;
  transition: all 0.3s ease;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
}

.scroll-top:hover {
  transform: translateY(-5px) rotate(360deg);
  box-shadow: 0 15px 30px -10px var(--clr-primary);
}

.scroll-top a {
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

@media (max-width: 600px) {
  .header {
    height: 6em;
    margin-top: 1em;
    padding: 0 1.5em;
  }

  .section {
    margin-top: 4em;
  }

  .section__title {
    font-size: 1.8rem;
  }

  .nav__list {
    flex-direction: column;
    padding: 4em 0;
    position: absolute;
    right: 0;
    left: 0;
    top: 5em;
    background-color: var(--clr-bg);
    width: 0;
    overflow: hidden;
    transition: width 0.2s ease-in-out;
  }

  .display-nav-list {
    width: 100%;
  }

  .nav__list-item {
    margin: 0.5em 0;
  }

  .nav__hamburger {
    display: flex;
    margin-left: 0.8em;
  }

  .about {
    align-items: flex-start;
    margin-top: 2em;
    padding: 2.5em 1.5em;
  }

  .footer {
    padding: 2em;
    margin-top: 3em;
  }

  .scroll-container {
    display: none;
  }
}
