/*===============
  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: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--clr-fg);
  background: var(--clr-bg);
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.15) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

.light {
  --clr-bg: #fafbfc;
  --clr-bg-solid: #ffffff;
  --clr-bg-alt: #f8f9fa;
  --clr-fg: #4a5568;
  --clr-fg-alt: #2d3748;
  --clr-primary: #718096;
  --clr-secondary: #a0aec0;
  --clr-accent: #4299e1;
  --clr-success: #68d391;
  --clr-warning: #ed8936;
  --shadow: rgba(0, 0, 0, 0.05) 0px 1px 3px, rgba(0, 0, 0, 0.1) 0px 1px 2px;
  --shadow-lg: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
  --gradient-primary: linear-gradient(135deg, #718096 0%, #a0aec0 100%);
  --gradient-secondary: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
  --gradient-accent: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
}

.dark {
  --clr-bg: #1a202c;
  --clr-bg-solid: #2d3748;
  --clr-bg-alt: #4a5568;
  --clr-fg: #e2e8f0;
  --clr-fg-alt: #f7fafc;
  --clr-primary: #a0aec0;
  --clr-secondary: #718096;
  --clr-accent: #63b3ed;
  --clr-success: #68d391;
  --clr-warning: #fbb018;
  --shadow: rgba(0, 0, 0, 0.2) 0px 1px 3px, rgba(0, 0, 0, 0.3) 0px 1px 2px;
  --shadow-lg: rgba(0, 0, 0, 0.4) 0px 4px 6px -1px, rgba(0, 0, 0, 0.2) 0px 2px 4px -1px;
  --gradient-primary: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
  --gradient-secondary: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  --gradient-accent: linear-gradient(135deg, #63b3ed 0%, #4299e1 100%);
}

body {
  background: var(--clr-bg-solid);
}

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

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

h1, h2, h3, h4 {
  line-height: 1.2;
  color: var(--clr-fg-alt);
  font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

ul { list-style-type: none; }
a { text-decoration: none; }
button { cursor: pointer; }

.container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
}

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

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

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

.link::before {
  content: "";
  display: inline;
  width: 0%;
  height: 0.2em;
  position: absolute;
  bottom: 0;
  background: var(--gradient-primary);
  transition: width 0.3s ease-in-out;
}

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

.link--nav {
  color: var(--clr-fg);
  text-transform: capitalize;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.3px;
  position: relative;
  padding: 0.5rem 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.link--nav::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.link--nav:hover::before {
  width: 100%;
}

.link--nav.active {
  color: var(--clr-primary);
}

.link--nav.active::before {
  width: 100%;
}

.link--icon {
  color: var(--clr-fg);
  font-size: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  text-transform: capitalize;
  transition: all 0.3s ease;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn--primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn--primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

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

.btn--outline:hover {
  color: white;
  transform: translateY(-2px);
}

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

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

.btn--plain {
  background-color: var(--clr-bg-alt);
  box-shadow: var(--shadow);
  border-radius: 25px;
  transition: all 0.3s ease;
}

.btn--plain:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn--icon {
  padding: 0.75rem;
  font-size: 1.1rem;
  border-radius: 12px;
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn--icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.btn--icon:hover::before {
  width: 200%;
  height: 200%;
}

.btn--icon:hover {
  color: var(--clr-primary);
  background: rgba(102, 126, 234, 0.15);
  border-color: var(--clr-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.25);
}

.btn--icon i {
  position: relative;
  z-index: 1;
}

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

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

.nav.center {
  gap: 3rem;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.dark .header {
  background: rgba(26, 32, 44, 0.8);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-bottom: 1px solid rgba(160, 174, 192, 0.1);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.dark .header.scrolled {
  background: rgba(26, 32, 44, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header h3 {
  position: relative;
  z-index: 10;
  margin-right: 2rem;
  margin-left: 2rem;
}

.header h3 a {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}

.header h3 a:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

.header h3 a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.header h3 a:hover::after {
  width: 100%;
}

main {
  padding-top: 6rem;
}

.section {
  padding: 5rem 0;
  opacity: 0;
  animation: fadeInUp 1s forwards;
}

.section__title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  position: relative;
}

.section__title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
  animation: expandWidth 1s ease-out;
}

@keyframes expandWidth {
  from { width: 0; }
  to { width: 80px; }
}

.section__title {
  position: relative;
  display: inline-block;
  width: 100%;
}

/*========
  Hero Section
========*/

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--clr-bg-solid);
  position: relative;
  padding: 4rem 0 6rem 0;
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  width: 90%;
  z-index: 1;
}

.hero__text {
  color: var(--clr-fg-alt);
}

.hero__greeting {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.3s forwards;
  color: var(--clr-fg-alt);
}

.hero__name {
  color: var(--clr-primary);
  font-weight: 700;
}

.hero__typing-container {
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.5s forwards;
}

.hero__role {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--clr-fg);
}

.typing-text {
  color: var(--clr-accent);
}

.cursor {
  animation: blink 1s infinite;
}

.hero__desc {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.7s forwards;
  color: var(--clr-fg);
  max-width: 500px;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: slideInLeft 1s ease 1.1s forwards;
}

.hero__social {
  display: flex;
  gap: 1rem;
  opacity: 0;
  animation: slideInLeft 1s ease 1.3s forwards;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--clr-bg-alt);
  backdrop-filter: blur(10px);
  color: var(--clr-primary);
  font-size: 1.2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--gradient-primary);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.social-link:hover::before {
  width: 100%;
  height: 100%;
}

.social-link i {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.social-link:hover i {
  color: white;
}

.social-link:hover {
  transform: translateY(-5px) rotate(5deg);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  opacity: 0;
  animation: slideInRight 1s ease 0.5s forwards;
}

.hero__avatar {
  position: relative;
  z-index: 2;
  transform: translateY(-45px);
}

.profile-image {
  width: 350px;
  height: 450px;
  border-radius: 25px;
  object-fit: cover;
  object-position: center 28%;
  border: 4px solid transparent;
  background: linear-gradient(var(--clr-bg-solid), var(--clr-bg-solid)) padding-box,
              var(--gradient-primary) border-box;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
  position: relative;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-image:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 80px rgba(102, 126, 234, 0.4);
  filter: brightness(1.05);
}

/* Floating elements removed for cleaner design */

.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--clr-fg);
  opacity: 0.6;
  font-size: 0.9rem;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.hero__scroll-indicator:hover {
  opacity: 1;
}

.scroll-arrow {
  animation: bounce 2s infinite;
  width: 30px;
  height: 50px;
  border: 2px solid var(--clr-primary);
  border-radius: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8px;
  margin-bottom: 10px;
}

.scroll-arrow i {
  font-size: 1rem;
  animation: scrollIndicator 2s infinite;
}

@keyframes scrollIndicator {
  0%, 20% { transform: translateY(0); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(15px); opacity: 0; }
}

/*========
  About Section
========*/

.about-section {
  background: var(--clr-bg-solid);
  padding: 12rem 0 5rem 0;
  margin-top: 8rem;
}

.about__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about__text h3 {
  color: var(--clr-primary);
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.about__text h3:first-child {
  margin-top: 0;
}

.about__text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--clr-fg);
  margin-bottom: 1.5rem;
}

.about__highlights {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--clr-bg-alt);
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.highlight:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.highlight i {
  font-size: 2rem;
  color: var(--clr-primary);
  background: rgba(102, 126, 234, 0.1);
  padding: 1rem;
  border-radius: 50%;
}

.highlight h4 {
  margin-bottom: 0.5rem;
}

.about__stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stat-card {
  background: var(--gradient-primary);
  color: white;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  transform: perspective(1000px) rotateY(-5deg);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.stat-card:hover {
  transform: perspective(1000px) rotateY(0deg) translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/*========
  Projects Section
========*/

.projects {
  background: var(--clr-bg-alt);
}

.projects__filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.8rem 1.5rem;
  background: transparent;
  border: 2px solid var(--clr-primary);
  color: var(--clr-primary);
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-2px);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--clr-bg-alt);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  pointer-events: none;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.3);
}

.project-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--clr-primary);
  color: white;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.project-link:hover {
  background: var(--clr-secondary);
  transform: scale(1.1);
}

.project-content {
  padding: 2rem;
}

.project-title {
  color: var(--clr-fg-alt);
  margin-bottom: 1rem;
}

.project-description {
  color: var(--clr-fg);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.project-stats span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--clr-primary);
  font-size: 0.9rem;
}

.project__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project__stack-item {
  padding: 0.3rem 1rem;
  background: rgba(102, 126, 234, 0.1);
  color: var(--clr-primary);
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

/*========
  Skills Section
========*/

.skills {
  background: var(--clr-bg-solid);
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: var(--clr-bg-alt);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.skill-card:hover::before {
  opacity: 0.05;
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.3);
}

.skill-card__icon {
  font-size: 3rem;
  color: var(--clr-primary);
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.skill-card:hover .skill-card__icon {
  transform: scale(1.1);
  color: var(--clr-primary);
}

.skill-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--clr-fg);
  position: relative;
  z-index: 2;
}

.skill-card p {
  color: var(--clr-fg-alt);
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}

.skills__category {
  background: var(--clr-bg-alt);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.skills__category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--gradient-primary);
  border-radius: 4px;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skills__category:hover::before {
  height: 100%;
}

.skills__category:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.3);
}

.skills__category-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  color: var(--clr-fg-alt);
}

.skills__category-title i {
  font-size: 1.5rem;
  color: var(--clr-primary);
}

.skill-item {
  margin-bottom: 2rem;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.skill-name {
  font-weight: 600;
  color: var(--clr-fg-alt);
}

.skill-percentage {
  font-weight: 600;
  color: var(--clr-primary);
}

.skill-bar {
  height: 8px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  width: 0;
  transition: width 1s ease-in-out;
  position: relative;
  overflow: hidden;
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: progressShine 2s infinite;
}

@keyframes progressShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/*========
  Contact Section
========*/

.contact {
  background: var(--clr-bg-alt);
}

.contact__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact__info h3 {
  color: var(--clr-fg-alt);
  margin-bottom: 1rem;
}

.contact__info p {
  color: var(--clr-fg);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contact__details {
  margin-bottom: 2rem;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--clr-bg-solid);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.contact__item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow);
}

.contact__item i {
  font-size: 1.2rem;
  color: var(--clr-primary);
  width: 20px;
}

.contact__item h4 {
  margin-bottom: 0.2rem;
}

.contact__item a {
  color: var(--clr-primary);
}

.contact__social {
  display: flex;
  gap: 1rem;
}

.contact__form {
  background: var(--clr-bg-solid);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(102, 126, 234, 0.1);
  transition: all 0.3s ease;
}

.contact__form:hover {
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.1);
  border-color: rgba(102, 126, 234, 0.2);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--clr-fg-alt);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 10px;
  background: var(--clr-bg-alt);
  color: var(--clr-fg);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.form-group input,
.form-group textarea {
  transition: all 0.3s ease;
}

/*========
  Footer
========*/

.footer {
  background: var(--clr-bg-solid);
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer__link {
  color: var(--clr-fg);
  font-weight: 600;
}

.footer__contact {
  color: var(--clr-fg);
  font-size: 0.9rem;
  opacity: 0.8;
}

/*========
  Scroll to Top
========*/

.scroll-top {
  display: none;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  font-size: 1.2rem;
  z-index: 1000;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.scroll-top.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.scroll-top:active {
  transform: translateY(-1px) scale(1.02);
}

.scroll-top a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
  position: relative;
}

.scroll-top i {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 1.2rem;
  width: 100%;
  height: 100%;
  position: relative;
  margin: 0;
  padding: 0;
}

/*========
  Navigation
========*/

.nav__list {
  display: flex;
  gap: 3.2rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__hamburger {
  display: none;
}

/*========
  Responsive Design
========*/

@media (max-width: 768px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .hero__visual {
    order: -1;
  }
  
  .profile-image {
    width: 280px;
    height: 350px;
  }
  
  .hero {
    padding: 2rem 0 4rem 0;
  }
  
  .about-section {
    padding: 6rem 0 3rem 0;
    margin-top: 4rem;
  }
  
  .hero__avatar {
    transform: translateY(-35px);
  }
  
  .about__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact__content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero__cta {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero__cta .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .nav__list {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  /* Better mobile navigation */
  .nav__list.display-nav-list {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 5rem;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 2rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0;
  }

  .dark .nav__list.display-nav-list {
    background: rgba(26, 32, 44, 0.98);
    border-bottom: 1px solid rgba(160, 174, 192, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  }

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

  .nav__list-item {
    margin: 0;
    width: 100%;
    text-align: center;
  }

  .nav__list-item a {
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
  }

  .nav__list-item:last-child a {
    border-bottom: none;
  }

  /* Adjust font sizes for mobile */
  .hero__greeting {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero__role {
    font-size: clamp(1.2rem, 6vw, 2rem);
  }

  .section__title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  /* Improve card spacing on mobile */
  .projects__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .skills__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Better button sizing */
  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  /* Disable complex animations on mobile for performance */
  .custom-cursor,
  .custom-cursor-follower {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* Additional cursor cleanup */
  *[class*="cursor"] {
    display: none !important;
  }

  /* Simplify hover effects on touch devices */
  .project-card:active {
    transform: translateY(-5px) scale(1.01);
  }

  .btn--primary:active {
    transform: translateY(-2px);
  }

  /* Better spacing for sections */
  .section {
    padding: 3rem 0;
  }

  /* Adjust testimonial cards */
  .testimonial__card::after {
    font-size: 4rem;
    right: 1rem;
  }

  /* Better form on mobile */
  .form-group input,
  .form-group textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

@media (max-width: 600px) {
  .header {
    padding: 1rem 0;
  }

  .header.scrolled {
    padding: 0.75rem 0;
  }
  
  main {
    padding-top: 5rem;
  }

  .header h3 a {
    font-size: 1.4rem;
  }
  
  .profile-image {
    width: 250px;
    height: 320px;
  }
  
  .section {
    padding: 2.5rem 0;
  }
  
  .projects__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .skills__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .projects__filter {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  /* Stack stat cards */
  .about__stats {
    gap: 1.5rem;
  }

  /* Better timeline on small screens */
  .timeline__content {
    padding: 1.5rem;
    max-width: 100%;
  }

  /* Smaller hero social icons */
  .social-link {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  /* Adjust highlight cards */
  .highlight {
    padding: 1rem;
  }

  .highlight i {
    font-size: 1.5rem;
    padding: 0.8rem;
  }

  /* Better scroll indicator */
  .hero__scroll-indicator {
    display: none; /* Hide on very small screens */
  }

  /* Container adjustments */
  .container {
    width: 95%;
  }

  /* Certificate cards */
  .certifications__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Reduce font sizes slightly */
  body {
    font-size: 0.95rem;
  }

  /* Better project stats display */
  .project-stats {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  /* Adjust section title underline */
  .section__title::after {
    width: 60px;
  }

  @keyframes expandWidth {
    from { width: 0; }
    to { width: 60px; }
  }
}

/* Extra small devices (< 400px) */
@media (max-width: 400px) {
  .hero__greeting {
    font-size: 1.8rem;
  }

  .hero__role {
    font-size: 1.2rem;
  }

  .profile-image {
    width: 220px;
    height: 280px;
  }

  .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }

  .stat-card {
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .project-content {
    padding: 1.5rem;
  }

  .skills__category {
    padding: 1.5rem;
  }
}

/*===================
  Animations
===================*/

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

@keyframes fadeInUp {
  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);
  }
}

/* Removed subtleFloat animation - no longer needed */

@keyframes subtleWave {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-5px);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

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

/*========
  Loading Screen
========*/

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--clr-bg-solid);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.5s ease;
}

.loader {
  display: flex;
  gap: 10px;
  margin-bottom: 2rem;
}

.loader__circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--clr-primary);
  animation: bounce-loader 1.4s infinite ease-in-out;
}

.loader__circle:nth-child(1) { animation-delay: -0.32s; }
.loader__circle:nth-child(2) { animation-delay: -0.16s; }

.loading-text {
  display: flex;
  gap: 3px;
}

.loading-text span {
  color: var(--clr-fg-alt);
  font-size: 1.5rem;
  font-weight: 600;
  animation: subtleWave 2s infinite;
  animation-delay: calc(var(--i) * 0.1s);
}

.loading-text span:nth-child(1) { --i: 0; }
.loading-text span:nth-child(2) { --i: 1; }
.loading-text span:nth-child(3) { --i: 2; }
.loading-text span:nth-child(4) { --i: 3; }
.loading-text span:nth-child(5) { --i: 4; }
.loading-text span:nth-child(6) { --i: 5; }
.loading-text span:nth-child(7) { --i: 6; }
.loading-text span:nth-child(8) { --i: 7; }
.loading-text span:nth-child(9) { --i: 8; }
.loading-text span:nth-child(10) { --i: 9; }

/*========
  Subtle Background
========*/

.bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 1px 1px, var(--clr-secondary) 1px, transparent 0);
  background-size: 40px 40px;
  opacity: 0.05;
  z-index: -1;
  pointer-events: none;
}

/*========
  Timeline Section
========*/

.timeline {
  background: var(--clr-bg-solid);
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--gradient-primary);
  z-index: 1;
}

.timeline__container {
  position: relative;
  z-index: 2;
}

.timeline__item {
  display: flex;
  justify-content: flex-end;
  padding-right: 2rem;
  position: relative;
  margin: 2rem 0;
  width: 50%;
}

.timeline__item:nth-child(odd) {
  align-self: flex-end;
  justify-content: flex-start;
  padding-left: 2rem;
  padding-right: 0;
}

.timeline__item:nth-child(even) {
  left: 50%;
}

.timeline__marker {
  position: absolute;
  top: 1rem;
  right: -30px;
  width: 20px;
  height: 20px;
  background: var(--clr-primary);
  border: 4px solid var(--clr-bg-alt);
  border-radius: 50%;
  z-index: 3;
}

.timeline__item:nth-child(odd) .timeline__marker {
  left: -30px;
  right: auto;
}

.timeline__content {
  background: var(--clr-bg-alt);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-width: 500px;
  transition: all 0.3s ease;
}

.timeline__content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.timeline__content::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  right: -10px;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-left-color: var(--clr-bg-alt);
}

.timeline__item:nth-child(odd) .timeline__content::before {
  left: -10px;
  right: auto;
  border-left-color: transparent;
  border-right-color: var(--clr-bg-alt);
}

.timeline__date {
  color: var(--clr-primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.timeline__content h4 {
  color: var(--clr-primary);
  margin-bottom: 1rem;
  font-weight: 500;
}

.timeline__content p {
  color: var(--clr-fg);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.timeline__highlights {
  list-style: none;
}

.timeline__highlights li {
  color: var(--clr-fg);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.timeline__highlights li::before {
  content: '✓';
  color: var(--clr-success);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/*========
  Testimonials Section
========*/

.testimonials {
  background: var(--clr-bg-alt);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.testimonial__card {
  background: var(--clr-bg-solid);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.testimonial__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.testimonial__card::after {
  content: '"';
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 6rem;
  color: var(--clr-primary);
  opacity: 0.1;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial__card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.3);
}

.testimonial__stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial__stars i {
  color: #ffd700;
  font-size: 1.2rem;
}

.testimonial__content p {
  color: var(--clr-fg);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial__avatar {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.testimonial__info h4 {
  color: var(--clr-fg-alt);
  margin-bottom: 0.25rem;
}

.testimonial__info span {
  color: var(--clr-primary);
  font-size: 0.9rem;
}

/*========
  Certifications Section
========*/

.certifications {
  background: var(--clr-bg-solid);
}

.certifications__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.cert__card {
  background: var(--clr-bg-alt);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cert__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.cert__card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.cert__card:hover::before {
  opacity: 0.15;
}

.cert__card:hover::after {
  width: 500px;
  height: 500px;
}

.cert__card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 25px 50px rgba(102, 126, 234, 0.25);
}

.cert__icon {
  font-size: 4rem;
  color: var(--clr-primary);
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.cert__card:hover .cert__icon {
  transform: scale(1.2) rotateY(360deg);
  filter: drop-shadow(0 5px 15px rgba(102, 126, 234, 0.5));
}

.cert__card h3 {
  color: var(--clr-fg-alt);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  text-align: center;
  word-wrap: break-word;
  hyphens: auto;
}

.cert__card:hover h3 {
  color: var(--clr-primary);
  transform: translateY(-3px);
}

.cert__card p {
  color: var(--clr-fg);
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  text-align: center;
  word-wrap: break-word;
}

.cert__card:hover p {
  color: var(--clr-fg-alt);
}

.cert__status {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 2;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(102, 126, 234, 0.1);
  color: var(--clr-primary);
}

.cert__card:hover .cert__status {
  transform: scale(1.05);
  background: rgba(102, 126, 234, 0.2);
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.cert__status:contains("In Progress") {
  background: rgba(237, 137, 54, 0.1);
  color: var(--clr-warning);
}

.cert__status:contains("Planned") {
  background: rgba(102, 126, 234, 0.1);
  color: var(--clr-primary);
}

/*========
  Enhanced Mobile Responsiveness
========*/

@media (max-width: 768px) {
  .timeline::before {
    left: 2rem;
  }
  
  .timeline__item {
    width: 100%;
    padding-left: 4rem;
    padding-right: 0;
    justify-content: flex-start;
  }
  
  .timeline__item:nth-child(even) {
    left: 0;
  }
  
  .timeline__marker {
    left: 1.2rem !important;
    right: auto !important;
  }
  
  .timeline__content::before {
    left: -10px !important;
    right: auto !important;
    border-left-color: transparent !important;
    border-right-color: var(--clr-bg-alt) !important;
  }
  
  .testimonials__grid {
    grid-template-columns: 1fr;
  }
  
  .certifications__grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/*========
  Additional Animations
========*/

@keyframes bounce-loader {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

@keyframes wave {
  0%, 60%, 100% {
    transform: initial;
  }
  30% {
    transform: translateY(-15px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
  transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px var(--clr-primary), 0 0 10px var(--clr-primary), 0 0 15px var(--clr-primary);
  }
  50% {
    box-shadow: 0 0 10px var(--clr-primary), 0 0 20px var(--clr-primary), 0 0 30px var(--clr-primary);
  }
}

/*========
  Scroll Improvements
========*/

html {
  scroll-padding-top: 5rem;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--gradient-primary);
  z-index: 10001;
  transition: width 0.1s linear;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.5);
  will-change: width;
}

/* Custom Cursor */
.custom-cursor {
  width: 20px;
  height: 20px;
  border: 2px solid var(--clr-primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: all 0.15s ease;
  transform: translate(-50%, -50%);
}

.custom-cursor-follower {
  width: 8px;
  height: 8px;
  background: var(--clr-primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: all 0.3s ease;
  transform: translate(-50%, -50%);
}

.custom-cursor.expand {
  transform: translate(-50%, -50%) scale(2);
  background: rgba(102, 126, 234, 0.1);
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-track {
  background: var(--clr-bg-alt);
}

body::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
  background: var(--clr-primary);
}

/* Scrollbar for Firefox */
body {
  scrollbar-width: thin;
  scrollbar-color: var(--clr-primary) var(--clr-bg-alt);
}

/*========
  Performance Optimizations
========*/

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-arrow,
  .loader__circle,
  .loading-text span {
    animation: none !important;
  }
}

/* Better focus states for accessibility */
*:focus-visible {
  outline: 3px solid var(--clr-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Smooth font rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* GPU acceleration for animations */
.project-card,
.skills__category,
.testimonial__card,
.cert__card,
.btn {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}
