:root {
  --bg-hard: #1d2021;
  --bg-dark: #282828;
  --bg-1: #3c3836;
  --bg-2: #504945;
  --bg-3: #665c54;
  --fg-0: #fbf1c7;
  --fg-1: #ebdbb2;
  --fg-2: #d5c4a1;
  --aqua: #8ec07c;
  --aqua-dark: #689d6a;
  --yellow: #fabd2f;
  --yellow-dark: #d79921;
  --orange: #fe8019;
  --orange-dark: #d65d0e;
  --blue: #83a598;
  --blue-dark: #458588;
  --purple: #b16286;
  --red: #fb4934;
  --green: #b8bb26;
  --bg-soft: #3c3836;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background-color: var(--bg-hard);
  color: var(--fg-1);
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.7;
  overflow-x: hidden;
  --scroll-damping: 0.08;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

h1,
h2,
h3,
h4 {
  font-family: 'Playfair Display', serif;
  color: var(--fg-0);
  line-height: 1.2;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 0.75rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 7rem 0;
  position: relative;
  z-index: 1;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
  background-color: var(--bg-hard);
}

nav.scrolled {
  background: rgba(29, 32, 33, 0.92);
  backdrop-filter: blur(12px);
  border-color: var(--bg-2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: 65px;
}

.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--aqua);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.nav-logo:hover {
  color: var(--aqua-dark);
}

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

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--fg-2);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
  font-weight: 500;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--aqua);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--aqua);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--fg-1);
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 2rem 0;
  overflow: hidden;
  position: relative;
}

#home::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142, 192, 124, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: var(--aqua);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s forwards;
}

.hero-pre::before {
  content: '// ';
  color: var(--bg-3);
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  color: var(--fg-0);
  line-height: 1.1;
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.35s forwards;
}

.hero-name .accent {
  color: var(--aqua);
  position: relative;
  display: inline-block;
}

.hero-name .accent::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(142, 192, 124, 0.2);
  z-index: -1;
}

.hero-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--yellow);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.5s forwards;
}

.hero-bio {
  font-size: 1rem;
  color: var(--fg-2);
  max-width: 540px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.65s forwards;
  line-height: 1.9;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s 0.8s forwards;
}

.hero-avatar-wrap {
  opacity: 0;
  animation: fadeIn 0.8s 0.6s forwards;
  flex-shrink: 0;
  position: relative;
}

.hero-avatar {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-1));
  border: 3px solid var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.hero-avatar:hover {
  transform: scale(1.02);
  border-color: var(--aqua);
}

.hero-avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 40% 35%, rgba(142, 192, 124, 0.2), transparent 60%);
}

.hero-avatar-ring {
  position: relative;
}

.hero-avatar-ring::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed var(--bg-3);
  animation: spin 20s linear infinite;
}

.hero-avatar-ring::before {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px solid var(--aqua-dark);
  border-top-color: transparent;
  border-right-color: transparent;
  animation: spin 12s linear infinite reverse;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--bg-3);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.scroll-hint-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--aqua), transparent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.btn:hover::after {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--aqua);
  color: var(--bg-hard);
}

.btn-primary:hover {
  background: var(--aqua-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(142, 192, 124, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--fg-1);
  border: 1px solid var(--bg-3);
}

.btn-outline:hover {
  border-color: var(--aqua);
  color: var(--aqua);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(142, 192, 124, 0.15);
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.75rem;
}

#about {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
}

#about .section-title {
  flex: 1 1 100%;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--fg-0);
  line-height: 1.1;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.35s forwards;
  position: relative;
}

#about .section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--aqua);
  border-radius: 2px;
}

#about .about-text {
  flex: 1 1 500px;
  background-color: var(--bg-dark);
  border: 1px solid var(--bg-2);
  border-radius: 20px;
  padding: 2.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#about .about-text:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--aqua-dark);
}

#about p {
  font-size: 1.1rem;
  margin: 0;
  color: var(--fg-1);
  line-height: 1.8;
}

#about img {
  flex: 0 0 auto;
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 3px solid var(--blue-dark);
}

#about img:hover {
  transform: scale(1.02);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.4);
  border-color: var(--blue);
}

#skills {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5rem 2rem;
  background: linear-gradient(180deg, var(--bg-hard) 0%, var(--bg-dark) 100%);
}

#skills .section-title {
  margin: 0 0 2rem;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--blue);
  text-align: center;
  position: relative;
  display: inline-block;
}

#skills .section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--blue);
  border-radius: 2px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  max-width: 1000px;
}

.skills-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem 0.75rem 1.25rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--aqua);
  background: var(--bg-1);
  border: 2px solid var(--green);
  border-radius: 50px;
  white-space: nowrap;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: default;
}

.skills-list li i,
.skills-list li svg {
  font-size: 1.2em;
  color: var(--green);
  transition: transform 0.3s ease, color 0.3s ease;
}

.skills-list li:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  background: var(--bg-2);
  border-color: var(--aqua);
}

.skills-list li:hover i,
.skills-list li:hover svg {
  color: var(--aqua);
  transform: scale(1.15);
}

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--aqua-dark), transparent);
  margin: 0;
  opacity: 0.3;
}

footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--bg-2);
  padding: 3rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--fg-2);
  position: relative;
  z-index: 1;
}

footer span {
  color: var(--aqua);
  font-weight: 600;
}

footer a {
  color: var(--fg-2);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--aqua);
}

.section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (max-width: 992px) {
  .hero-grid {
    gap: 2rem;
  }

  .hero-avatar {
    width: 240px;
    height: 240px;
    font-size: 6rem;
  }
}

@media (max-width: 768px) {
  .nav-inner {
    padding: 0 1.5rem;
    min-height: 70px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(29, 32, 33, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--bg-2);
    padding: 1rem 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    padding: 0.75rem 0;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 0.5rem 0;
    display: block;
  }

  .nav-links a::after {
    bottom: 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-avatar-wrap {
    margin: 0 auto;
    order: -1;
  }

  .hero-avatar {
    width: 200px;
    height: 200px;
    font-size: 5rem;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-bio {
    margin: 0 auto 2.5rem;
  }

  .scroll-hint {
    display: none;
  }

  #about {
    flex-direction: column;
    text-align: center;
    padding: 4rem 1.5rem;
  }

  #about .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  #about .about-text {
    order: 2;
    padding: 2rem;
  }

  #about img {
    max-width: 300px;
    order: 1;
  }

  #skills {
    padding: 4rem 1.5rem;
  }

  .skills-list {
    gap: 0.875rem;
  }

  .skills-list li {
    padding: 0.5rem 1rem 0.5rem 0.875rem;
    font-size: 0.95rem;
  }

  section {
    padding: 5rem 0;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
  }

  .hero-role {
    font-size: 1rem;
  }

  .hero-bio {
    font-size: 0.95rem;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
  }

  #about .about-text {
    padding: 1.5rem;
  }

  #about p {
    font-size: 1rem;
  }

  .skills-list li {
    font-size: 0.875rem;
    padding: 0.5rem 0.875rem 0.5rem 0.75rem;
  }

  footer {
    padding: 2rem 1.5rem;
    font-size: 0.8rem;
  }
}

#projects {
  padding: 7rem 2rem;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-hard) 100%);
  position: relative;
  z-index: 1;
}

#projects .section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--fg-0);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  opacity: 0;
  animation: fadeUp 0.6s 0.35s forwards;
}

#projects .section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--aqua);
  border-radius: 2px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
}

.project-card {
  background: var(--bg-dark);
  border: 2px solid var(--bg-2);
  border-radius: 20px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--aqua), var(--yellow));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--aqua);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 2px solid var(--bg-3);
  transition: all 0.3s ease;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-1));
}

.project-card:hover img {
  border-color: var(--aqua);
  transform: scale(1.02);
}

.project-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--fg-0);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.project-card h3::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--aqua);
  transition: width 0.3s ease;
}

.project-card:hover h3::after {
  width: 60px;
}

.project-card p {
  color: var(--fg-2);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-card .btn {
  align-self: flex-start;
  margin-top: auto;
  transition: all 0.3s ease;
}

.project-card .btn:hover {
  transform: translateY(-2px);
  background: var(--aqua);
  color: var(--bg-hard);
  border-color: var(--aqua);
}

.project-card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUpCard 0.6s ease forwards;
}

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

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

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

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

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


@media (max-width: 768px) {
  #projects {
    padding: 5rem 1.5rem;
  }

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

  .project-card {
    padding: 1.25rem;
  }

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

@media (max-width: 480px) {
  #projects {
    padding: 4rem 1rem;
  }

  .project-card {
    padding: 1rem;
  }

  .project-card h3 {
    font-size: 1.35rem;
  }

  .project-card p {
    font-size: 0.9rem;
  }

  .project-card .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}


.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tag {
  background: var(--bg-1);
  color: var(--fg-2);
  font-size: 0.7rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  border: 1px solid var(--bg-2);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.project-card:hover .project-tag {
  border-color: var(--aqua);
  color: var(--aqua);
}


#contact {
  padding: 7rem 2rem;
  background: var(--bg-dark);
  position: relative;
  z-index: 1;
  text-align: center;
}

#contact .section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--fg-0);
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  opacity: 0;
  animation: fadeUp 0.6s 0.35s forwards;
}

#contact .section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--aqua);
  border-radius: 2px;
}

#contact p {
  color: var(--fg-2);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 600px;
  margin: 2rem auto 3rem;
  font-family: 'JetBrains Mono', monospace;
  opacity: 0;
  animation: fadeUp 0.6s 0.5s forwards;
}

.contact-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s 0.65s forwards;
}

#contact .btn {
  min-width: 160px;
  padding: 1rem 2rem;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

#contact .btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(142, 192, 124, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

#contact .btn:hover::before {
  width: 300px;
  height: 300px;
}

#contact .btn-outline {
  border: 2px solid var(--bg-3);
  color: var(--fg-1);
}

#contact .btn-outline:hover {
  border-color: var(--aqua);
  color: var(--aqua);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(142, 192, 124, 0.15);
}


.contact-info {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--fg-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-1);
  border-radius: 50px;
  border: 1px solid var(--bg-2);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-2px);
  border-color: var(--aqua);
  color: var(--aqua);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-item i {
  font-size: 1.2rem;
  color: var(--aqua);
}


@media (max-width: 768px) {
  #contact {
    padding: 5rem 1.5rem;
  }

  #contact p {
    font-size: 1rem;
    padding: 0 1rem;
    margin: 1.5rem auto 2rem;
  }

  .contact-links {
    gap: 1rem;
  }

  #contact .btn {
    min-width: 140px;
    padding: 0.875rem 1.5rem;
  }

  .contact-item {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  #contact {
    padding: 4rem 1rem;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  #contact .btn {
    width: 100%;
    max-width: 250px;
  }

  .contact-info {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
  }

  .contact-item {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }
}

#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--aqua-dark), transparent);
  opacity: 0.3;
}

#contact::after {
  content: '//';
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 3rem;
  color: var(--bg-2);
  opacity: 0.2;
  pointer-events: none;
  transform: rotate(10deg);
}

#contact .contact-item a{
  text-decoration: none;
  color: var(--fg-2);
  transition: color 0.3s ease;
}

#contact .contact-item a:hover {
  color: var(--aqua);
}