/* Base Styles */
:root {
  --primary-color: #000000;
  --secondary-color: #333333;
  --background-color: #ffffff;
  --card-background: #f5f5f5;
  --text-color: #000000;
  --text-secondary: #555555;
  --border-color: #dddddd;
  --animation-timing: 0.3s;
  --shadow: 0 5px 15px -3px rgba(0, 0, 0, 0.05),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

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

section {
  padding: 100px 0;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-play-state: paused;
}

section.animate {
  animation-play-state: running;
}

a {
  text-decoration: none;
  color: var(--text-color);
  transition: all var(--animation-timing) ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--animation-timing) ease;
  position: relative;
}

.primary-btn {
  background: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
}

.primary-btn:hover {
  background: white;
  color: var(--primary-color);
}

.secondary-btn {
  background: transparent;
  color: var(--text-color);
  border: 2px solid var(--text-color);
}

.secondary-btn:hover {
  background: var(--text-color);
  color: var(--background-color);
}

.small-btn {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.section-header h2::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--background-color);
  transform: translateX(0);
  transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1);
}

.section-header.reveal h2::after {
  transform: translateX(101%);
}

.underline {
  height: 4px;
  width: 60px;
  background: var(--primary-color);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.underline::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--primary-color);
  animation: underlineReveal 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
  animation-delay: 0.3s;
}

@keyframes underlineReveal {
  0% {
    width: 0;
    left: 0;
  }
  50% {
    width: 100%;
    left: 0;
  }
  100% {
    width: 100%;
    left: 100%;
  }
}

/* Custom cursor - completely hidden on touch devices */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease, background 0.3s ease;
  display: none; /* Hidden by default */
  mix-blend-mode: difference;
}

/* Only show cursor on desktop devices */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
  }

  .cursor-hover {
    transform: translate(-50%, -50%) scale(3);
    background: white;
    mix-blend-mode: difference;
  }
}

/* Explicitly hide cursor on touch devices */
@media (hover: none) or (pointer: coarse) {
  .cursor {
    display: none !important;
  }
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: all var(--animation-timing) ease;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

header.scrolled {
  padding: 15px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
}

.logo span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  padding: 5px 0;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--animation-timing) ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger animation - refined version */
.hamburger {
  position: relative;
  cursor: pointer;
  display: none;
  z-index: 1001;
  transition: transform 0.3s ease;
  background: transparent;
  border: none;
  padding: 10px;
  margin: -10px;
  outline: none;
}

.hamburger:focus {
  outline: none;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  margin-bottom: 7px;
  position: relative;
  background: var(--primary-color);
  border-radius: 4px;
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6),
    opacity 0.3s ease;
}

.hamburger span:last-child {
  margin-bottom: 0;
  width: 24px; /* Make last bar slightly shorter for style */
  margin-left: auto;
}

/* X transformation when active - improved */
.hamburger.active span:first-child {
  transform: rotate(45deg) translate(6px, 7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:last-child {
  width: 28px; /* Make it full width when active */
  transform: rotate(-45deg) translate(5px, -7px);
}

/* Hover effect */
.hamburger:hover span {
  background: var(--primary-color);
}

.hamburger:hover span:nth-child(2) {
  transform: scaleX(0.8);
}

.hamburger.active:hover span {
  transform-origin: center;
}

.hamburger.active:hover span:first-child {
  transform: rotate(45deg) translate(6px, 7px);
}

.hamburger.active:hover span:last-child {
  transform: rotate(-45deg) translate(5px, -7px);
}

@media (max-width: 991px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    padding: 0;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
  }
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--background-color);
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../assets/hero-bg.jpg") center/cover no-repeat;
  opacity: 0.03;
  z-index: -1;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--text-secondary);
  position: relative;
  overflow: hidden;
}

.hero .name {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 10px;
  background-image: linear-gradient(90deg, #000, #444);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 8s ease infinite;
}

.hero .title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 600px;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  transition: all var(--animation-timing) ease;
}

.social-links a:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-5px);
}

.social-links a i {
  font-size: 1.2rem;
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-down a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all var(--animation-timing) ease;
}

.scroll-down a:hover {
  background: var(--primary-color);
}

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

/* Glitch effect */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  display: none;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  align-items: center;
}

.about-img {
  position: relative;
}

.img-container {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.img-container img {
  transition: transform 0.5s ease;
}

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

.about-img::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border: 5px solid var(--primary-color);
  top: 20px;
  left: 20px;
  border-radius: 20px;
  z-index: 0;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.about-text p {
  margin-bottom: 25px;
}

.personal-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.info-item {
  margin-bottom: 10px;
}

.info-item span {
  font-weight: 600;
  color: var(--primary-color);
  margin-right: 10px;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }

  .about-img {
    max-width: 300px;
    margin: 0 auto 30px;
  }

  .personal-info {
    grid-template-columns: 1fr;
  }
}

/* Skills Section */
.skills-content {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.skill-category h3 {
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-align: center;
  color: var(--primary-color);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.skill-item {
  background: var(--card-background);
  border-radius: 10px;
  padding: 25px;
  transition: transform var(--animation-timing) ease,
    box-shadow var(--animation-timing) ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.skill-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.skill-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  text-align: center;
}

.skill-item h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  text-align: center;
}

.skill-progress {
  width: 100%;
  height: 8px;
  background: var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress {
  height: 100%;
  background: var(--primary-color);
  border-radius: 10px;
  position: relative;
  transition: width 1.5s ease;
  transform: translateX(-100%);
  animation: none;
}

.progress::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: progress-shine 2s infinite;
}

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

.skill-item.animate .progress {
  animation: skillProgress 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes skillProgress {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.tag {
  background: var(--card-background);
  color: var(--text-color);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
  transition: all var(--animation-timing) ease;
  position: relative;
  overflow: hidden;
  transform: translateY(0);
}

.tag::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: -1;
  border-radius: inherit;
}

.tag:hover {
  color: white;
  transform: translateY(-3px);
  background: transparent;
}

.tag:hover::before {
  transform: translateY(0);
}

/* Projects Section */
.projects-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.filter-btn {
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 8px 20px;
  cursor: pointer;
  transition: all var(--animation-timing) ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--card-background);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: var(--shadow);
}

.project-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.project-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

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

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.1);
}

.project-info {
  padding: 25px;
}

.project-info h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.project-info p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.project-links {
  display: flex;
  gap: 10px;
}

/* Resume Section */
.resume-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.resume-download {
  text-align: center;
  margin-bottom: 20px;
}

.resume-preview {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.resume-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.resume-section h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  height: 100%;
  width: 2px;
  background: var(--border-color);
}

.timeline::after {
  content: "";
  position: absolute;
  width: 2px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 0;
  margin-left: -1px;
  transform: scaleY(0);
  transform-origin: top;
  animation: timelineGrow 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
  animation-delay: 0.2s;
}

@keyframes timelineGrow {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

.timeline-item {
  position: relative;
  padding-bottom: 30px;
  padding-left: 20px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.animate {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 2px solid var(--background-color);
  z-index: 1;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item .date {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.timeline-item h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.timeline-item .company {
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.timeline-item ul {
  padding-left: 20px;
}

.timeline-item ul li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 5px;
}

.timeline-item ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-color);
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contact-item .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--card-background);
  color: var(--primary-color);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-item .details h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.contact-item .details p,
.contact-item .details a {
  color: var(--text-secondary);
  transition: color var(--animation-timing) ease;
}

.contact-item .details a:hover {
  color: var(--primary-color);
}

.contact-form {
  background: var(--card-background);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  color: var(--text-color);
  font-family: "Poppins", sans-serif;
  transition: border-color var(--animation-timing) ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
}

/* Footer */
footer {
  background: var(--card-background);
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.footer-logo h2 {
  font-size: 1.8rem;
  font-weight: 700;
}

.footer-logo span {
  color: var(--primary-color);
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--background-color);
  transition: all var(--animation-timing) ease;
}

.footer-social a:hover {
  background: var(--primary-color);
  transform: translateY(-5px);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.footer-nav a:hover {
  color: var(--primary-color);
}

.copyright {
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-secondary);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  visibility: hidden;
  opacity: 0;
  transition: all var(--animation-timing) ease;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

.back-to-top a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  box-shadow: var(--shadow);
  transition: all var(--animation-timing) ease;
}

.back-to-top a:hover {
  background: var(--background-color);
  color: var(--primary-color);
  transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 991px) {
  /* Adjust header for better mobile experience */
  header {
    padding: 10px 0;
  }

  .logo h1 {
    font-size: 1.5rem;
  }

  /* Improve hero section on mobile */
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 120px 0 80px;
  }

  .hero .name {
    font-size: 2.5rem;
  }

  .hero .title {
    font-size: 1.2rem;
  }

  /* Adjust section padding */
  section {
    padding: 60px 0;
  }

  /* Improve about section layout */
  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-img {
    max-width: 250px;
    margin: 0 auto;
  }

  /* Adjust skill items for better mobile display */
  .skill-item {
    padding: 15px;
  }

  /* Make project cards look better on mobile */
  .project-card {
    margin-bottom: 20px;
  }

  /* Adjust timeline for mobile */
  .timeline-item {
    padding-left: 25px;
  }

  .timeline-item::before {
    left: -20px;
  }

  /* Adjust form elements */
  .form-group input,
  .form-group textarea {
    padding: 10px;
  }

  /* Better button spacing on mobile */
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  /* Fix footer on mobile */
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
}

/* Specific tablet adjustments */
@media (min-width: 768px) and (max-width: 991px) {
  .hero .name {
    font-size: 3rem;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Smaller devices (phones) */
@media (max-width: 576px) {
  .section-header h2 {
    font-size: 1.8rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .tag-cloud {
    justify-content: center;
  }

  .projects-filter {
    flex-wrap: wrap;
    gap: 8px;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  /* Improve resume section on mobile */
  .resume-preview {
    height: 400px;
  }

  iframe {
    height: 400px;
  }
}

/* Animation classes */
.fade-in {
  animation: fadeIn 1s ease forwards;
}

.slide-in-left {
  animation: slideInLeft 1s ease forwards;
}

.slide-in-right {
  animation: slideInRight 1s ease forwards;
}

.slide-in-bottom {
  animation: slideInBottom 1s ease forwards;
}

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

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

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

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

/* Dark/Light mode switch (optional feature) */
.theme-switch {
  position: fixed;
  top: 90px;
  right: 30px;
  z-index: 999;
  width: 45px;
  height: 45px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all var(--animation-timing) ease;
}

.theme-switch:hover {
  transform: rotate(30deg);
}

.theme-switch i {
  color: white;
  font-size: 1.2rem;
}

/* Adding a subtle reveal animation for sections */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-play-state: paused;
}

section.animate {
  animation-play-state: running;
}

/* Text splitting effect for hero */
.hero h1::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--background-color);
  animation: textReveal 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes textReveal {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(101%);
  }
}

/* Animated hero section */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Parallax scrolling effect */
.hero,
.about,
.skills,
.projects,
.resume {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Add this to the main.js file to animate elements on scroll */
