:root {
  --bg-color: #0d0d0d;
  --text-color: #ffffff;
  --accent-color: #512bd4; /* .NET purple */
  --accent-angular: #dd0031;
  --accent-net: #512bd4;
  --secondary-bg: #1a1a1a;
  --border-color: rgba(255, 255, 255, 0.1);

  --font-heading: "Syncopate", sans-serif;
  --font-body: "Inter", sans-serif;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  background-color: var(--bg-color);
  background-image: radial-gradient(
    circle at 50% 50%,
    rgba(81, 43, 212, 0.1) 0%,
    rgba(255, 77, 109, 0.05) 30%,
    var(--bg-color) 80%
  );
  background-attachment: fixed;
  color: var(--text-color);
  font-family: var(--font-body);
  overflow-x: hidden;
  width: 100%;
  cursor: none; /* Custom cursor */
}

a {
  color: inherit;
  text-decoration: none;
  cursor: none;
}

button {
  cursor: none;
}

ul {
  list-style: none;
}

/* Utility Classes */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.relative {
  position: relative;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.hidden {
  display: none;
}
.flex {
  display: flex;
}
.gap-4 {
  gap: 1rem;
}
.flex-col-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.text-center {
  text-align: center;
}
.text-red {
  color: #ff5555;
}
.text-4xl {
  font-size: 2.5rem;
}

.mt-2 {
  margin-top: 0.5rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-8 {
  margin-top: 2rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.pt-8 {
  padding-top: 2rem;
}
.pb-8 {
  padding-bottom: 2rem;
}

/* Loading Screen */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-angular);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Custom Cursor */
.cursor {
  width: 20px;
  height: 20px;
  background: var(--text-color);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition:
    width 0.3s,
    height 0.3s,
    background-color 0.3s;
}

.cursor.hover {
  width: 60px;
  height: 60px;
  background: var(--accent-color);
  mix-blend-mode: normal;
  opacity: 0.8;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  mix-blend-mode: difference;
}

nav .logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 2px;
}

nav .links {
  display: flex;
  gap: 2rem;
}

nav .links a {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  position: relative;
}

nav .links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: var(--text-color);
  transition: width 0.3s ease;
}

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

/* Hero Section */
#hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

main {
  position: relative;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-left: 10%;
  max-width: 800px;
  pointer-events: none; /* Let clicks pass to 3D if needed, but text is here */
}

.hero-content > * {
  pointer-events: auto;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 2.5rem);
  font-weight: 300;
  line-height: 1.4;
  color: #cccccc;
}

.btn {
  border: 1px solid var(--text-color);
  padding: 1rem 2rem;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  background: transparent;
  cursor: none;
  color: var(--text-color);
}

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

/* Hero Social Icons */
.hero-socials {
  pointer-events: auto;
  flex-wrap: wrap;
  background: rgba(13, 13, 13, 0.6);
  backdrop-filter: blur(10px);
  padding: 0.8rem 1.5rem;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: fit-content;
}

.hero-socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.hero-socials a:hover {
  color: var(--text-color);
  transform: translateY(-3px);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Section Headings */
.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.section-heading .outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--text-color);
}

/* About Section */
#about {
  padding: 10rem 0;
  background: rgba(13, 13, 13, 0.6);
  backdrop-filter: blur(10px);
}

.about-text p {
  font-size: clamp(1.2rem, 2vw, 2rem);
  line-height: 1.6;
  font-weight: 300;
  color: #b3b3b3;
  max-width: 800px;
}

/* Skills Ticker */
.skills-ticker {
  width: 100%;
  overflow: hidden;
  background-color: var(--bg-color);
  padding: 1rem 0; /* Reduced from 1.5rem to 1rem */
  transform: rotate(-2deg) scale(1.1);
}

.skills-ticker.reverse {
  transform: rotate(2deg) scale(1.1);
  background-color: var(--text-color);
  color: var(--bg-color);
}

.ticker-wrapper {
  width: 100%;
  overflow: hidden;
}

.ticker-content {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}

.skills-ticker.reverse .ticker-content {
  animation-direction: reverse;
}

.ticker-content span {
  font-family: var(--font-heading);
  font-size: 1.5rem; /* Reduced from 2rem to 1.5rem */
  font-weight: 700;
  text-transform: uppercase;
  padding: 0 1.5rem; /* Reduced from 2rem to 1.5rem */
}

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

/* Projects Section - Removed */

/* Contact Section */
#contact {
  padding-top: 10rem;
  background: transparent;
}

.massive-link {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 4vw, 4rem);
  font-weight: 700;
  word-break: break-all;
  position: relative;
  display: inline-block;
}

.mobile-break {
  display: none;
}

.massive-link::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 4px;
  bottom: 0;
  left: 0;
  background-color: var(--text-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
}

.massive-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.socials a:hover {
  background: var(--text-color);
  color: var(--bg-color);
}

/* Contact Form */
#contact {
  position: relative;
  z-index: 10;
}

.contact-form {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 0;
}

.input-group {
  position: relative;
  width: 100%;
}

.input-group i {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.2rem;
  pointer-events: none;
  transition: color 0.3s ease;
}

.input-group.textarea-group i {
  top: 1.5rem;
  transform: none;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1.2rem 1.2rem 1.2rem 3.5rem;
  background-color: rgba(0, 0, 0, 0.4); /* Dark semi-transparent background */
  backdrop-filter: blur(8px); /* Localized blur */
  -webkit-backdrop-filter: blur(8px); /* Safari support */
  border: 2px solid rgba(255, 255, 255, 0.4); /* Thicker, softer border */
  border-radius: 15px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Subtle drop shadow */
}

.contact-form textarea {
  border-radius: 15px;
  padding: 1.2rem 1.2rem 1.2rem 3.5rem;
  min-height: 180px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background-color: rgba(0, 0, 0, 0.6); /* Slightly darker on focus */
  border-color: var(--accent-color);
  box-shadow:
    0 0 20px rgba(81, 43, 212, 0.4),
    0 4px 15px rgba(0, 0, 0, 0.5); /* Glowing accent + stronger drop shadow */
}

.contact-form input:focus + i,
.contact-form textarea:focus + i,
.input-group:focus-within i {
  color: var(--accent-color);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact-form button {
  align-self: center;
  margin-top: 0.5rem;
  min-width: 200px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1.5rem;
  height: 50px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: none;
}

.contact-form button:hover {
  background: rgba(81, 43, 212, 0.2);
  border-color: var(--accent-color);
  color: var(--text-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(81, 43, 212, 0.3);
}

.form-status {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 500;
  min-height: 1.5rem;
  text-align: center;
}

.form-status.success {
  color: #4ade80;
}

.form-status.error {
  color: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 5%;
  }
  nav .links {
    gap: 1.5rem;
  }
  .skills-ticker {
    padding: 0.5rem 0;
  }
  .ticker-content span {
    font-size: 1rem;
    padding: 0 1rem;
  }
  .cursor {
    display: none; /* Hide custom cursor on mobile */
  }
  body {
    cursor: auto;
  }
  .mobile-break {
    display: block;
  }
  .hero-content {
    padding-left: 0;
    padding-top: 0;
    margin-top: -5vh; /* Push slightly up on mobile to balance the visual space */
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-title {
    font-size: clamp(3rem, 12vw, 4.5rem);
  }
  .hero-subtitle {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }
  .hero-socials {
    padding: 0.6rem 1rem;
    gap: 0.6rem;
    border-radius: 30px;
    justify-content: center;
  }
  .hero-socials a {
    font-size: 0.75rem;
  }
  #about {
    text-align: center;
  }
  .about-text p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .section-heading {
    text-align: center;
  }
  .contact-form {
    gap: 1rem;
  }
  .contact-form input,
  .contact-form textarea {
    padding: 0.8rem 1.2rem 0.8rem 3.2rem;
    font-size: 1rem;
  }
  .contact-form textarea {
    min-height: 120px;
  }
  .input-group i {
    left: 1.2rem;
  }
  .input-group.textarea-group i {
    top: 1rem;
  }
  .contact-form button {
    height: 45px;
    font-size: 0.85rem;
    min-width: 150px;
  }
}

/* =========================================
   Experience / Timeline Section
========================================= */
#experience {
  position: relative;
  padding: 6rem 0;
  z-index: 10;
  overflow: hidden;
}

.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--accent-color), transparent);
  transform: translateX(-50%);
  transform-origin: top;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 2rem 3rem;
  opacity: 0;
  clear: both;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 2rem;
  width: 40px;
  height: 40px;
  background: var(--bg-color);
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent-color);
  z-index: 2;
  box-shadow: 0 0 15px rgba(81, 43, 212, 0.4);
}

.timeline-item.left .timeline-dot {
  right: -20px;
}

.timeline-item.right .timeline-dot {
  left: -20px;
}

.timeline-content {
  padding: 2rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
  background: rgba(15, 15, 15, 0.65); /* Darker translucent background for better readability */
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
}

.timeline-content:hover {
  background: rgba(81, 43, 212, 0.25);
  border-color: rgba(81, 43, 212, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(81, 43, 212, 0.3);
}

.timeline-date {
  font-family: var(--font-heading);
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.1rem;
}

.timeline-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.timeline-desc {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.timeline-link {
  color: var(--accent-color);
  text-decoration: underline;
  text-decoration-color: rgba(81, 43, 212, 0.4);
  transition: all 0.3s ease;
}

.timeline-link:hover {
  color: #fff;
  text-decoration-color: #fff;
}

@media (max-width: 768px) {
  .timeline-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .timeline-line {
    left: 30px; /* 1rem (16px) + 14px */
  }
  
  .timeline-item {
    width: 100%;
    padding: 1.5rem 0 1.5rem 3rem;
    text-align: left;
  }
  
  .timeline-item.left, 
  .timeline-item.right {
    left: 0;
  }
  
  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot {
    left: 10px; /* Centers 40px dot on 30px line */
  }
}

/* =========================================
   Projects Section (Horizontal Scroll)
========================================= */
.projects-pin-wrapper {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden; /* prevents vertical scrollbar during pin */
}

/* Fix title so it doesn't scroll away */
.projects-pin-wrapper .container {
  position: relative;
  z-index: 10;
  margin-bottom: 2rem;
}

.projects-scroll-container {
  display: grid;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  gap: 1.5vw 2vw;
  padding: 0 10vw;
  margin-top: 0;
  width: max-content;
  align-items: center;
  will-change: transform;
}

.project-card {
  width: 420px;
  flex-shrink: 0;
  padding: 1.5rem;
  background: rgba(15, 15, 15, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  background: rgba(81, 43, 212, 0.1);
  border-color: rgba(81, 43, 212, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(81, 43, 212, 0.2);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: #fff;
  margin: 0;
}

.project-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  line-height: 1.5;
  flex-grow: 1; /* Pushes footer to the bottom */
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
}

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

.tech-tag {
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.8);
}

.project-link-icon {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease;
}

.project-card:hover .project-link-icon {
  color: var(--accent-color);
}

/* =========================================
   Project Modal
========================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.modal-content {
  width: 90%;
  max-width: 900px;
  height: 85vh;
  background: rgba(15, 15, 15, 0.9);
  border: 1px solid rgba(81, 43, 212, 0.3);
  border-radius: 20px;
  padding: 3rem;
  position: relative;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  opacity: 0;
  /* Smooth scrolling for modal */
  scrollbar-width: thin;
  scrollbar-color: rgba(81, 43, 212, 0.5) rgba(0, 0, 0, 0.2);
}

/* Custom Scrollbar for Modal (Webkit) */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background-color: rgba(81, 43, 212, 0.5);
  border-radius: 10px;
  border: 2px solid rgba(15, 15, 15, 0.9); /* Creates padding around thumb */
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background-color: rgba(81, 43, 212, 0.8);
}

.close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.close-btn:hover {
  background: rgba(81, 43, 212, 0.5);
  transform: rotate(90deg);
}

/* Markdown Styling within Modal */
.markdown-body {
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-body);
  line-height: 1.8;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  color: #fff;
  font-family: var(--font-heading);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.markdown-body h1 {
  font-size: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}
.markdown-body h2 {
  font-size: 2rem;
}
.markdown-body h3 {
  font-size: 1.5rem;
}

.markdown-body p {
  margin-bottom: 1.5rem;
}

.markdown-body a {
  color: var(--accent-color);
  text-decoration: none;
}

.markdown-body a:hover {
  text-decoration: underline;
}

.markdown-body img {
  max-width: 100%;
  border-radius: 10px;
  margin: 1.5rem 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.markdown-body pre {
  background: rgba(0, 0, 0, 0.5);
  padding: 1.5rem;
  border-radius: 10px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.markdown-body code {
  font-family: "Courier New", Courier, monospace;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.markdown-body pre code {
  background: transparent;
  padding: 0;
}

.markdown-body ul,
.markdown-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.markdown-body li {
  margin-bottom: 0.5rem;
}

/* Responsive Projects */
@media (max-width: 768px) {
  .projects-pin-wrapper {
    justify-content: flex-start;
    padding-top: 8vh;
  }
  .projects-pin-wrapper .container {
    margin-bottom: 0.5rem;
  }
  .projects-scroll-container {
    margin-top: 0;
    padding: 0 5vw;
    gap: 2vw; /* Reduced gap between rows/cols to fit more */
  }
  .project-card {
    width: 80vw; /* Slightly smaller width */
    padding: 0.8rem; /* Reduced padding from 1rem to 0.8rem to save vertical height */
  }
  .project-header {
    margin-bottom: 0.3rem;
  }
  .project-title {
    font-size: 1rem;
  }
  .project-desc {
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    line-height: 1.25;
  }
  .tech-tag {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }
  .modal-content {
    width: 100%;
    height: 100vh;
    border-radius: 0;
    padding: 4rem 1.5rem 2rem 1.5rem;
  }
  .close-btn {
    top: 1rem;
    right: 1rem;
  }
}
