@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: #d7d5d3;
  color: #242424;
  font-family: "Roboto", sans-serif;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: #242424;
}

::selection {
  background-color: #fcfcfc;
  color: #3a3939;
}

.container {
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 3rem auto;
  border-radius: 80px;
  background-color: #ffffff;
  border: 2px solid #fafafa;
  overflow: hidden;
  isolation: isolate;
}

.container::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='noiseFilter'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23noiseFilter)'/></svg>");
  background-repeat: repeat;
  background-size: cover;
  opacity: 0.7;
  border-radius: 80px;
  pointer-events: none;
  z-index: -1;
}

.hero {
  position: relative;
  background-color: #f0f0f0;
  height: 640px;
  isolation: isolate;
  border-radius: 80px;
  border-bottom: 1px solid #cdcdcd;
  overflow: hidden;
  transform: translateZ(0);
  will-change: transform;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='noiseFilter'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23noiseFilter)'/></svg>");
  background-repeat: repeat;
  background-size: cover;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
  border-radius: 80px;
}

.hero::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(36, 36, 36, 0.03) 0%,
    transparent 70%
  );
  border-radius: 50%;
  top: -150px;
  right: -150px;
  z-index: 0;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
  will-change: transform;
  transform: translateZ(0);
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-20px, 20px) scale(1.05);
  }
}

nav {
  display: flex;
  justify-content: space-between;
  padding: 2rem 4rem 1rem 4rem;
}

nav .logo {
  font-weight: bold;
  color: #1a1a1a;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
  position: relative;
  z-index: 10;
}

nav .logo:hover {
  color: #000;
  transform: scale(1.05);
}

nav .social-links {
  position: relative;
  z-index: 10;
}

nav .social-links a {
  margin-left: 5px;
  transition:
    letter-spacing 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
  display: inline-block;
  transform: translateY(0);
}

nav .social-links a span {
  margin-left: 5px;
  font-weight: bolder;
  color: black;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
  display: inline-block;
  transform: scale(1) rotate(0deg);
}

nav .social-links a:hover {
  color: black;
  letter-spacing: 1.5px;
}

nav .social-links a:hover span {
  transform: scale(1.25) rotate(5deg);
}

.hero .content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  height: 100%;
  margin-top: -5rem;
  z-index: 1;
}

.hero .content > div {
  position: relative;
  cursor: help;
  width: max-content;
}

.hero .content .profile-pic {
  width: 130px;
  border-radius: 50%;
  filter: grayscale(100%);
  outline: 5px outset white;
  transition:
    filter 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    outline 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  will-change: transform, filter;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: subpixel-antialiased;
}

.hero .content .profile-pic:hover {
  filter: grayscale(0%);
  transform: scale(1.1) rotate(8deg) translateZ(0);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  outline: 6px outset white;
}

.hero .content .profile-pic:hover + .name-tag {
  pointer-events: none;
  background: black;
  color: white;
  top: 95%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg) translateZ(0);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: none;
}

.hero .content .name-tag {
  position: absolute;
  top: 15%;
  left: 70%;
  transform: rotate(-12deg) translateZ(0);
  background-color: white;
  padding: 10px 20px;
  border-radius: 25px;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.5s ease,
    top 0.5s ease-out,
    left 0.5s ease,
    background 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
  animation: wiggle 3s ease-in-out infinite;
  will-change: transform;
}

@keyframes wiggle {
  0%,
  100% {
    transform: rotate(-12deg) translateZ(0);
  }

  25% {
    transform: rotate(-14deg) translateZ(0);
  }

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

.hero .content h1 {
  max-width: 450px;
  text-align: center;
  font-size: 3rem;
  font-weight: bold;
  background-image: linear-gradient(to right, #101012, #727173);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease-out;
  will-change: opacity, transform;
  transform: translateZ(0);
}

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

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

.btn {
  padding: 0.5rem 1.25rem;
  background-color: #242424;
  color: white;
  border-radius: 20px;
  font-size: 1.25rem;
  /* margin-top removed for consistency across all .btn */
  transition:
    background-color 0.4s ease,
    color 0.4s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(36, 36, 36, 0.2);
  will-change: transform;
  transform: translateZ(0);
}

/* Add margin to the hero button only */
.hero .btn {
  margin-top: 0.8rem;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 20px;
  transition: transform 0.4s ease;
  z-index: -1;
}

.btn:hover {
  color: #242424;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(36, 36, 36, 0.3);
}

.btn:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

.technologies {
  position: relative;
  overflow: hidden;
}

.technologies .bg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 50%;
  background-color: #f0f0f0;
  isolation: isolate;
}

.technologies .bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='noiseFilter'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23noiseFilter)'/></svg>");
  background-repeat: repeat;
  background-size: cover;
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}

.slider {
  position: relative;
  width: 100%;
  background-color: #ffffff;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  gap: 3rem;
  border-bottom-left-radius: 80px;
  border-bottom-right-radius: 80px;
  border-bottom: 1px solid #cdcdcd;
}

.slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='noiseFilter'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23noiseFilter)'/></svg>");
  background-repeat: repeat;
  background-size: cover;
  opacity: 0.7;
  border-bottom-left-radius: 80px;
  border-bottom-right-radius: 80px;
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 768px) {
  .slider::before {
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
  }
}

@media (max-width: 600px) {
  .slider::before {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }
}

@media (max-width: 400px) {
  .slider::before {
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
  }
}

.slider .techs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  padding: 5rem 0 6rem 0;
  gap: 3rem;
  animation: slide 90s infinite linear;
  will-change: transform;
  transform: translateZ(0);
}

.slider .techs .icon {
  width: 1rem;
  flex: 0 0 3.5rem;
  filter: grayscale(100%) brightness(0.9);
  cursor: pointer;
  transition:
    filter 0.3s ease,
    transform 0.3s ease;
  position: relative;
  transform: scale(1) translateY(0);
}

.slider .techs .icon {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.6);
  transition: filter 0.3s ease;
  will-change: transform;
  transform: scale(1) translateY(0);
}

.slider .techs .icon.active {
  filter: grayscale(0%) opacity(1);
}

.tech-track {
  display: flex;
  gap: 3rem;
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes slide {
  from {
    transform: translateX(0) translateZ(0);
  }

  to {
    transform: translateX(-100%) translateZ(0);
  }
}

.about-me {
  position: relative;
  background: #f0f0f0;
  border-bottom: 1px solid #cdcdcd;
  border-bottom-left-radius: 80px;
  border-bottom-right-radius: 80px;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
}

.about-me-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 3rem 5rem 3rem;
}

.about-image-container {
  flex: 0 0 50%;
  max-width: 50%;
  width: 50%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-content {
  flex: 0 0 50%;
  max-width: 50%;
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
}

@media (max-width: 900px) {
  .about-me-inner {
    flex-direction: column;
    gap: 2.5rem;
    padding: 3rem 1.5rem;
  }
}

.about-image-container {
  flex: 0 0 320px;
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-image-container img {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 24px;
  filter: grayscale(100%) brightness(0.95);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition:
    filter 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    border-radius 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, filter;
  transform: translateZ(0) scale(1) rotate(0deg);
  backface-visibility: hidden;
}

.about-image-container:hover img {
  filter: grayscale(0%) brightness(1.08) contrast(1.08) saturate(1.12);
  transform: translateY(-16px) scale(1.07) rotate(-2deg) translateZ(0);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.22),
    0 12px 36px rgba(0, 0, 0, 0.18);
  border-radius: 32px;
}

.about-badge {
  margin-top: 1.2rem;
  background: #242424;
  color: #fff;
  padding: 0.7rem 2rem;
  border-radius: 22px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.13);
  letter-spacing: 0.5px;
  transition:
    background 0.3s,
    color 0.3s,
    box-shadow 0.3s;
}

.about-image-container:hover .about-badge {
  background: linear-gradient(135deg, #1a1a1a, #242424);
  color: #fff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.about-content {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: center;
  min-width: 260px;
}

.about-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #242424;
  margin-bottom: 0.2rem;
  letter-spacing: -1.2px;
}

.about-subtitle {
  font-size: 1.15rem;
  color: #666;
  font-weight: 500;
  margin-bottom: 0.7rem;
}

.about-bio {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4a4a4a;
  margin-bottom: 1.2rem;
  max-width: 540px;
}

.about-stats {
  display: flex;
  gap: 2.2rem;
  margin-bottom: 1.2rem;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #242424;
  line-height: 1;
  letter-spacing: -1px;
}
.stat-label {
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}
.about-btn {
  margin-top: 0.5rem;
}

@media (max-width: 600px) {
  .about-me-inner {
    padding: 2rem 0.5rem;
    gap: 1.5rem;
  }
  .about-title {
    font-size: 1.5rem;
  }
  .about-bio {
    font-size: 0.95rem;
  }
  .about-badge {
    font-size: 0.85rem;
    padding: 0.5rem 1.2rem;
  }
  .about-image-container img {
    max-width: 180px;
    border-radius: 16px;
  }
  .about-image-container:hover img {
    border-radius: 20px;
  }
  .about-content {
    min-width: 0;
  }
  .about-stats {
    gap: 1.1rem;
  }
  .stat-number {
    font-size: 1.1rem;
  }
}

.about-me::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='noiseFilter'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23noiseFilter)'/></svg>");
  background-repeat: repeat;
  background-size: cover;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
  border-bottom-left-radius: 80px;
  border-bottom-right-radius: 80px;
}

.about-me::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(36, 36, 36, 0.03) 0%,
    transparent 70%
  );
  border-radius: 50%;
  top: -80px;
  right: -80px;
  z-index: 0;
  pointer-events: none;
}

.about-image-container {
  position: relative;
  justify-self: center;
  z-index: 1;
  cursor: pointer;
}

.about-image-container::before {
  content: "";
  position: absolute;
  inset: -15px;
  background: linear-gradient(
    135deg,
    rgba(36, 36, 36, 0.1),
    rgba(36, 36, 36, 0.05),
    transparent
  );
  border-radius: 24px;
  z-index: -1;
  opacity: 0;
  transform: rotate(0deg) scale(0.95);
  transition:
    opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-image-container::after {
  content: "";
  position: absolute;
  inset: -20px;
  background: linear-gradient(
    45deg,
    rgba(36, 36, 36, 0.03),
    transparent,
    rgba(36, 36, 36, 0.03)
  );
  border-radius: 28px;
  z-index: -2;
  opacity: 0;
  transform: rotate(-5deg) scale(0.9);
  transition:
    opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s,
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: rotate(-5deg) scale(0.9);
  }
  50% {
    transform: rotate(-5deg) scale(0.95);
  }
}

.about-image-container:hover::before {
  opacity: 1;
  transform: rotate(-3deg) scale(1);
}

.about-image-container:hover::after {
  opacity: 1;
  transform: rotate(3deg) scale(1.05);
}

.about-image-container img {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  filter: grayscale(100%) brightness(0.95);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition:
    filter 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    border-radius 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, filter;
  transform: translateZ(0) scale(1) rotate(0deg);
  backface-visibility: hidden;
  -webkit-font-smoothing: subpixel-antialiased;
}

.about-image-container:hover img {
  filter: grayscale(0%) brightness(1.05) contrast(1.05) saturate(1.1);
  transform: translateY(-12px) scale(1.05) rotate(-2deg) translateZ(0);
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.25),
    0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: 24px;
}

.about-badge {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #242424;
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
  overflow: hidden;
}

.about-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.about-image-container:hover .about-badge {
  transform: translateX(-50%) translateY(-8px) scale(1.08);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #1a1a1a, #242424);
}

.about-image-container:hover .about-badge::before {
  opacity: 1;
}

.about-content {
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.about-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about-header h2 {
  font-size: 2.75rem;
  font-weight: 700;
  color: #242424;
  letter-spacing: -1.2px;
  line-height: 1.1;
}

.about-header p {
  font-size: 1.1rem;
  color: #666;
  font-weight: 400;
}

.about-bio {
  font-size: 1rem;
  line-height: 1.7;
  color: #4a4a4a;
  max-width: 540px;
}

.about-stats {
  display: flex;
  gap: 2rem;
  padding-top: 0.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #242424;
  line-height: 1;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 0.85rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.about-cta {
  margin-top: 0.5rem;
}

/* Projects Section */
.projects {
  position: relative;
  background-color: #ffffff;
  padding: 6rem 4rem;
  isolation: isolate;
  overflow: hidden;
}

.projects::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='noiseFilter'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23noiseFilter)'/></svg>");
  background-repeat: repeat;
  background-size: cover;
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

.projects::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(36, 36, 36, 0.02) 0%,
    transparent 70%
  );
  border-radius: 50%;
  bottom: -200px;
  left: -200px;
  z-index: 0;
  pointer-events: none;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  color: #242424;
  letter-spacing: -1.5px;
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #242424, transparent);
  opacity: 0.3;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2.5rem;
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
}

.project-card {
  position: relative;
  background: #f0f0f0;
  border-radius: 24px;
  padding: 2.5rem;
  isolation: isolate;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  overflow: hidden;
  will-change: transform;
  transform: translateZ(0);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='noiseFilter'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23noiseFilter)'/></svg>");
  background-repeat: repeat;
  background-size: cover;
  opacity: 0.6;
  border-radius: 24px;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.4s ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.4) 0%,
    transparent 50%
  );
  border-radius: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

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

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

.project-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(36, 36, 36, 0.06);
  line-height: 1;
  z-index: 0;
  transition:
    color 0.4s ease,
    transform 0.4s ease;
}

.project-card:hover .project-number {
  color: rgba(36, 36, 36, 0.1);
  transform: scale(1.1);
}

.project-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #242424;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  letter-spacing: -0.5px;
  transition: color 0.3s ease;
}

.project-card:hover .project-title {
  color: #000;
}

.project-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4a4a4a;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.tech-tag {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(36, 36, 36, 0.08);
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #242424;
  transition: all 0.3s ease;
  cursor: default;
}

.tech-tag:hover {
  background: rgba(36, 36, 36, 1);
  color: white;
  border-color: rgba(36, 36, 36, 1);
  transform: translateY(-2px);
}

.project-links {
  display: flex;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.project-link {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background-color: #242424;
  color: white;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 20px;
  transition: transform 0.4s ease;
  z-index: -1;
}

.project-link:hover {
  color: #242424;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.project-link:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

.circle {
  height: 24px;
  width: 24px;
  border-radius: 24px;
  background-color: black;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999999;
}

/* Responsive Design */

/* Large tablets and small laptops (1024px to 1280px) */
@media (max-width: 1280px) {
  .container {
    max-width: 95%;
    margin: 2rem auto;
  }

  .hero {
    height: 600px;
  }

  nav {
    padding: 1.75rem 3.5rem 1rem 3.5rem;
  }

  .hero .content {
    margin-top: -4rem;
  }

  .hero .content .profile-pic {
    width: 125px;
  }

  .hero .content h1 {
    font-size: 2.75rem;
    max-width: 425px;
  }
}

/* Medium laptops (900px to 1024px) */
@media (max-width: 900px) {
  .hero {
    height: 520px;
  }

  nav {
    padding: 1.4rem 2.25rem 0.9rem 2.25rem;
  }

  .hero .content {
    margin-top: -3rem;
  }

  .hero .content .profile-pic {
    width: 110px;
  }

  .hero .content h1 {
    font-size: 2.3rem;
    max-width: 380px;
  }
}

/* Tablet landscape (768px to 1024px) */
@media (max-width: 1024px) {
  .container {
    margin: 2rem 1rem;
    border-radius: 50px;
  }

  .container::before,
  .hero::before {
    border-radius: 50px;
  }

  .hero {
    border-radius: 50px;
    height: 540px;
  }

  nav {
    padding: 1.5rem 2.5rem 1rem 2.5rem;
  }

  nav .logo {
    font-size: 1.05rem;
  }

  nav .social-links a {
    font-size: 0.9rem;
  }

  .hero .content {
    margin-top: -3.5rem;
    gap: 1.1rem;
  }

  .hero .content h1 {
    font-size: 2.4rem;
    max-width: 390px;
    line-height: 1.2;
  }

  .hero .content .profile-pic {
    width: 115px;
  }

  .hero .content .name-tag {
    font-size: 0.95rem;
    padding: 9px 18px;

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

  /* Tablet portrait (600px to 768px) */
  @media (max-width: 768px) {
    .container {
      margin: 1.5rem 0.75rem;
      border-radius: 40px;
    }

    .container::before,
    .hero::before {
      border-radius: 40px;
    }

    .hero {
      height: 500px;
      border-radius: 40px;
    }

    nav {
      flex-direction: column;
      align-items: center;
      gap: 1rem;
      padding: 1.25rem 2rem 0.75rem 2rem;
    }

    nav .logo {
      font-size: 1.05rem;
    }

    nav .social-links {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.6rem;
    }

    nav .social-links a {
      margin-left: 0;
      font-size: 0.85rem;
    }

    .hero .content {
      margin-top: -2.5rem;
      padding: 0 1.5rem;
      gap: 0.95rem;
    }

    .hero .content .profile-pic {
      width: 105px;
      outline-width: 4px;
    }

    .hero .content .name-tag {
      font-size: 0.9rem;
      padding: 8px 16px;
    }

    .hero .content h1 {
      font-size: 2.1rem;
      max-width: 360px;
    }

    .btn {
      font-size: 1rem;
      padding: 0.5rem 1.1rem;
    }

    /* About Me Section */
    .about-image-container {
      width: 100%;
      max-width: 260px;
      margin: 0 auto;
    }

    .about-content {
      width: 100%;
      align-items: center;
      text-align: center;
    }

    .about-content h2 {
      font-size: 2.2rem;
    }

    .about-content h2::after {
      left: 50%;
      transform: translateX(-50%);
    }

    .about-intro {
      max-width: 100%;
    }

    /* Projects Section */
    .projects {
      padding: 3.5rem 2rem;
    }

    .section-title {
      font-size: 2.2rem;
      margin-bottom: 2.5rem;
    }

    .project-card {
      padding: 2rem;
    }
  }

  /* Mobile devices (480px to 600px) */
  @media (max-width: 600px) {
    body {
      font-size: 15px;
    }

    .container {
      margin: 1rem 0.5rem;
      border-radius: 30px;
    }

    .container::before,
    .hero::before {
      border-radius: 30px;
    }

    .hero {
      height: 460px;
      border-radius: 30px;
    }

    nav {
      padding: 1.1rem 1.5rem 0.6rem 1.5rem;
      gap: 0.9rem;
    }

    nav .logo {
      font-size: 0.98rem;
    }

    nav .social-links a {
      font-size: 0.8rem;
    }

    nav .social-links a span {
      display: none;
    }

    .hero .content {
      margin-top: -1.8rem;
      padding: 0 1.25rem;
      gap: 0.85rem;
    }

    .hero .content .profile-pic {
      width: 98px;
      outline-width: 3px;
    }

    .hero .content .name-tag {
      font-size: 0.85rem;
      padding: 7px 14px;
      top: 18%;
      left: 68%;
    }

    .hero .content h1 {
      font-size: 1.7rem;
      max-width: 310px;
    }

    .btn {
      font-size: 0.95rem;
      padding: 0.45rem 1rem;
      margin-top: 0.6rem;
    }

    /* About Me Section */
    .about-image-container {
      max-width: 240px;
    }

    .about-image-container img {
      border-radius: 14px;
    }

    .about-badge {
      font-size: 0.75rem;
      padding: 0.45rem 0.9rem;
      bottom: -10px;
    }

    .about-content h2 {
      font-size: 1.9rem;
      margin-bottom: 0.9rem;
    }

    .about-intro {
      font-size: 0.95rem;
      line-height: 1.65;
    }

    .highlight-item {
      padding: 0.9rem;
    }

    .highlight-icon {
      font-size: 1.6rem;
    }

    .highlight-text strong {
      font-size: 0.95rem;
    }

    .highlight-text span {
      font-size: 0.88rem;
    }

    /* Projects Section */
    .projects {
      padding: 2.5rem 1.25rem;
    }

    .section-title {
      font-size: 1.9rem;
      margin-bottom: 2rem;
    }

    .project-card {
      padding: 1.75rem 1.5rem;
    }

    .project-number {
      font-size: 2.8rem;
      top: 1rem;
      right: 1rem;
    }

    .project-title {
      font-size: 1.5rem;
      margin-bottom: 0.85rem;
    }

    .project-description {
      font-size: 0.92rem;
      line-height: 1.65;
      margin-bottom: 1.25rem;
    }

    .project-tech {
      gap: 0.55rem;
      margin-bottom: 1.25rem;
    }

    .tech-tag {
      padding: 0.4rem 0.85rem;
      font-size: 0.78rem;
    }

    .project-link {
      padding: 0.55rem 1.3rem;
      font-size: 0.88rem;
    }
  }

  /* Small mobile devices (320px to 480px) */
  @media (max-width: 480px) {
    body {
      font-size: 14px;
    }

    .container {
      margin: 0.75rem 0.4rem;
      border-radius: 24px;
    }

    .container::before,
    .hero::before {
      border-radius: 24px;
    }

    .hero {
      height: 410px;
      border-radius: 24px;
    }

    nav {
      padding: 0.9rem 1.2rem 0.5rem 1.2rem;
    }

    nav .logo {
      font-size: 0.92rem;
    }

    nav .social-links a {
      font-size: 0.75rem;
    }

    .hero .content {
      margin-top: -1.3rem;
      padding: 0 1rem;
      gap: 0.7rem;
    }

    .hero .content .profile-pic {
      width: 88px;
    }

    .hero .content .name-tag {
      font-size: 0.78rem;
      padding: 6px 12px;
      top: 20%;
      left: 66%;
    }

    .hero .content h1 {
      font-size: 1.45rem;
      max-width: 270px;
      line-height: 1.28;
    }

    .btn {
      font-size: 0.88rem;
      padding: 0.4rem 0.9rem;
    }

    .about-image-container {
      max-width: 200px;
    }

    .about-image-container img {
      border-radius: 12px;
    }

    .about-badge {
      font-size: 0.7rem;
      padding: 0.4rem 0.8rem;
    }

    .about-content h2 {
      font-size: 1.65rem;
    }

    .about-intro {
      font-size: 0.9rem;
    }

    .highlight-item {
      padding: 0.8rem;
    }

    .highlight-icon {
      font-size: 1.4rem;
    }

    .highlight-text strong {
      font-size: 0.9rem;
    }

    .highlight-text span {
      font-size: 0.82rem;
    }

    .projects {
      padding: 2rem 1rem;
    }

    .section-title {
      font-size: 1.65rem;
      margin-bottom: 1.75rem;
    }

    .project-card {
      padding: 1.5rem 1.25rem;
    }

    .project-number {
      font-size: 2.5rem;
      top: 0.85rem;
      right: 0.85rem;
    }

    .project-title {
      font-size: 1.3rem;
      margin-bottom: 0.75rem;
    }

    .project-description {
      font-size: 0.88rem;
      line-height: 1.6;
      margin-bottom: 1.1rem;
    }

    .tech-tag {
      padding: 0.35rem 0.75rem;
      font-size: 0.72rem;
    }

    .project-link {
      padding: 0.5rem 1.15rem;
      font-size: 0.82rem;
    }
  }

  /* Extra small devices (320px and below) */
  @media (max-width: 360px) {
    .container {
      margin: 0.5rem 0.3rem;
      border-radius: 20px;
    }

    .container::before,
    .hero::before {
      border-radius: 20px;
    }

    .hero {
      border-radius: 20px;
      height: 370px;
    }

    nav {
      padding: 0.8rem 1rem 0.4rem 1rem;
    }

    nav .logo {
      font-size: 0.88rem;
    }

    .hero .content {
      margin-top: -1rem;
      gap: 0.6rem;
    }

    .hero .content h1 {
      font-size: 1.3rem;
      max-width: 240px;
      line-height: 1.3;
    }

    .hero .content .profile-pic {
      width: 78px;
      outline-width: 2px;
    }

    .hero .content .name-tag {
      font-size: 0.72rem;
      padding: 6px 11px;
      top: 22%;
    }

    .about-content h2 {
      font-size: 1.5rem;
    }

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

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

    .project-number {
      font-size: 2.2rem;
    }
  }

  /* Landscape orientation adjustments for mobile devices */
  @media (max-width: 900px) and (orientation: landscape) {
    .hero {
      height: 360px;
    }

    nav {
      padding: 0.8rem 2rem 0.5rem 2rem;
      gap: 0.7rem;
    }

    .hero .content {
      margin-top: -0.8rem;
      gap: 0.6rem;
      padding: 0 1.5rem;
    }

    .hero .content .profile-pic {
      width: 75px;
      outline-width: 3px;
    }

    .hero .content .name-tag {
      font-size: 0.75rem;
      padding: 6px 12px;
    }

    .hero .content h1 {
      font-size: 1.5rem;
      max-width: 300px;
      line-height: 1.25;
    }

    .btn {
      font-size: 0.82rem;
      padding: 0.38rem 0.85rem;
      min-height: auto;
      padding: 3rem 2rem;
    }

    .projects {
      padding: 3rem 2rem;
    }
  }

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