body {
  background-color: #0d0d0d;
  background-image: 
    linear-gradient(to right, rgba(255, 105, 180, 0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 105, 180, 0.15) 1px, transparent 1px);
  background-size: 20px 20px;
  box-shadow: inset 0 0 80px rgba(255, 105, 180, 0.05);
  cursor: none;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 3200px;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

/* 🔄 Loader Styles */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #b8cce0; 
  background-image:
  linear-gradient(to right, rgba(41, 36, 38, 0.15) 1px, transparent 1px),
  linear-gradient(to bottom, rgba(57, 48, 53, 0.15) 1px, transparent 1px);
  background-size: 20px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 50s ease;
}

.loader-text {
  font-size: 1rem;
  letter-spacing: 3px;
  font-family: 'Playfair Display', serif;
  animation: flicker 50s infinite;
}

/* 🔥 Flicker animation */
@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Main pastel cursor */
.custom-cursor {
  width: 16px;
  height: 16px;
  background-color: #a95555;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(248, 175, 166, 0.5);
}

/* Smooth trailing effect */
.cursor-trail {
  width: 35px;
  height: 35px;
  border: 2px solid #F8AFA6;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease;
  opacity: 0.4;
}

/* Desktop Layout - Original Positioning */
header.hero {
  position: relative;
  width: 100%;
  max-width: 100vw;
  height: 101px;
  border-radius: 2px;
}

h1.glow {
  font-family: 'Playfair Display', serif;
  font-size: clamp(60px, 8vw, 100px);
  font-weight: 900;
  letter-spacing: 2px;
  position: relative;
  top: -115px;
  height: 50px;
  left: 5vw;
  color: #FADCD9;
}

.adder {
  color: #ff69b4;
  font-weight: bold;
  animation: blink 0.7s steps(1) infinite;
}

#typed-text {
  height: 130px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  color: #fff;
}

#typed-text-mobile {
  height: 130px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  color: #fff;
}

.typewriter-container {
  position: absolute;
  top: 350px;
  left: 5vw;
}

#about {
  position: absolute;
  top: 420px;
  left: 5vw;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  color: #FADCD9;
  max-width: 90vw;
}

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

.handwritten-name {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(60px, 8vw, 100px);
  color: rgb(210, 130, 174);
  position: absolute;
  top: 45px;
  left: 30vw;
  gap: 1px;
  transform: rotate(-20deg);
  z-index: 10;
  pointer-events: none;
}

@keyframes move {
  0% { filter: blur(2px); }
  50% { filter: blur(8px); }
  100% { filter: blur(2px); }
}

.nav {
  position: fixed;
  top: 0;
  right: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  height: 80px;
  padding: 0 20px;
  margin: 0;
  z-index: 999;
  border-radius: 12px;
  gap: 25px;
}

.nav li {
  margin: 0;
  padding: 0;
}

.nav a {
  font-weight: 700;
  font-size: clamp(16px, 2vw, 20px);
  color: rgb(204, 149, 129);
  text-decoration: none;
  transition: color 0.2s;
}

.nav a:hover {
  color: #FADCD9;
}

/* Social links */
.social-links {
  position: fixed;
  left: 1rem;
  top: 65%;
  font-weight: 750;
  font-size: clamp(20px, 3vw, 28px);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  z-index: 1000;
}

.social-links a {
  text-decoration: none;
  color: #e18662;
  font-weight: bold;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #FADCD9;
}

.contact-button {
  display: inline-block;
  padding: 12px 25px;
  font-size: clamp(16px, 2vw, 20px);
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  color: rgb(210, 130, 174);
  position: absolute;
  top: 580px;
  left: 25vw;
  border: 2px solid rgb(210, 130, 174);
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.contact-button:hover {
  background-color: #cbc4c4;
}

.about-line {
  position: absolute;
  top: 725px;
  left: 50vw;
  width: 20vw;
  height: 1px;
  background-color: #fff;
  border: none;
}

.abbat {
  position: absolute;
  top: 680px;
  left: 75vw;
  font-size: clamp(2rem, 4vw, 3rem);
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  color: #fff;
}

.babbat {
  position: absolute;
  top: 760px;
  left: 30vw;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  color: #FADCD9;
  max-width: 60vw;
}

.tech-stack {
  padding: 60px 20px;
  margin-top: 80px;
  text-align: center;
  font-family: 'Courier New', Courier, monospace;
  position: relative;
  z-index: 1;
}

.cabbat {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #ffffff;
  position: absolute;
  top: 1150px;
  left: 75vw;
}

.about-line1 {
  position: absolute;
  top: 1188px;
  left: 50vw;
  width: 20vw;
  height: 1px;
  background-color: #fff;
  border: none;
}

.stack-icons {
  position: absolute;
  top: 1000px;
  left: 30vw;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
  max-width: 60vw;
}

.tech {
  width: 70px;
  height: 70px;
  border-radius: 14px;
  padding: 10px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.tech:hover {
  transform: scale(1.1);
  background-color: #000;
}

.tech img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(0%);
  transition: filter 0.3s ease-in-out;
}

.tech:hover img {
  filter: invert(100%);
}

.about-line2 {
  position: absolute;
  top: 1540px;
  left: 50vw;
  width: 20vw;
  height: 1px;
  background-color: #fff;
  border: none;
}

.dabbat {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #ffffff;
  position: absolute;
  top: 1500px;
  left: 75vw;
}

.projects-section {
  padding: 60px 20px;
  color: #FADCD9;
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
  position: absolute;
  top: 1600px;
  width: 100%;
  max-width: 100vw;
}

.projects-title {
  font-size: 3rem;
  margin-bottom: 40px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 90vw;
  margin: auto;
  padding: 0 20px;
}

.project-tile {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 220px;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.4s, box-shadow 0.4s;
  cursor: pointer;
}

.project-tile:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
}

.project-tile .overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.project-tile h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

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

.project-links a {
  font-size: 1rem;
  background: rgb(255, 255, 255);
  padding: 6px 10px;
  border-radius: 6px;
  color: rgb(210, 130, 174);
  text-decoration: none;
  transition: background 0.3s;
}

.project-links a:hover {
  background: rgba(255, 255, 255, 0.3);
}

.project-description-outside {
  text-align: left;
  font-size: 0.9rem;
  color: #FADCD9;
  margin-top: 12px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

#eabbat {
  text-align: left;
  font-size: 0.8rem;
  color: #FADCD9;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.about-line3 {
  position: absolute;
  top: 2620px;
  left: 55vw;
  width: 20vw;
  height: 1px;
  background-color: #fff;
  border: none;
}

.fabbat {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #ffffff;
  position: absolute;
  top: 2580px;
  left: 80vw;
}

.gabbat {
  position: absolute;
  top: 2680px;
  left: 55vw;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  color: #FADCD9;
}

.vsco-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 2600px;
  left: 45vw;
  width: 220px;
  transform: rotate(20deg);
  z-index: 10;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vsco-card:hover,
.vsco-card.rotate-in.visible:hover {
  transform: rotate(-3deg) scale(1.05) !important;
}

.coffee-badge {
  display: inline-block;
  background-color: #FADCD9;
  color: rgba(146, 96, 39, 0.356);
  font-weight: 600;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: clamp(16px, 2vw, 20px);
  position: absolute;
  top: 2850px;
  left: 20vw;
  transition: background 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.coffee-badge:hover {
  background-color: #b1e88f;
  transform: translateX(-50%) scale(1.05);
}

.pinterest {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 2900px;
  left: 25vw;
  width: 220px;
  transform: rotate(340deg);
  z-index: 10;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pinterest:hover,
.pinterest.rotate-in.visible:hover {
  transform: rotate(345deg) scale(1.05) !important;
}

footer {
  text-align: center;
  color: #FADCD9;
  font-size: 0.8rem;
  opacity: 0.7;
  position: absolute;
  top: 3250px;
  left: 40vw;
  max-width: 30vw;
}

/* Add scroll-triggered animation classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Special animation classes that preserve existing transformations */
.rotate-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.rotate-in.visible {
  opacity: 1;
}

/* Preserve vsco-card rotation */
.vsco-card.rotate-in {
  opacity: 0;
  transform: rotate(20deg) scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.vsco-card.rotate-in.visible {
  opacity: 1;
  transform: rotate(20deg) scale(1);
}

/* Preserve pinterest rotation */
.pinterest.rotate-in {
  opacity: 0;
  transform: rotate(340deg) scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.pinterest.rotate-in.visible {
  opacity: 1;
  transform: rotate(340deg) scale(1);
}

/* Preserve coffee badge effects */
.coffee-badge.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.coffee-badge.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger animation for multiple elements */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Add delay for staggered animations */
.stagger-item:nth-child(1) { transition-delay: 0.1s; }
.stagger-item:nth-child(2) { transition-delay: 0.2s; }
.stagger-item:nth-child(3) { transition-delay: 0.3s; }
.stagger-item:nth-child(4) { transition-delay: 0.4s; }
.stagger-item:nth-child(5) { transition-delay: 0.5s; }
.stagger-item:nth-child(6) { transition-delay: 0.6s; }
.stagger-item:nth-child(7) { transition-delay: 0.7s; }
.stagger-item:nth-child(8) { transition-delay: 0.8s; }
.stagger-item:nth-child(9) { transition-delay: 0.9s; }
.stagger-item:nth-child(10) { transition-delay: 1.0s; }
.stagger-item:nth-child(11) { transition-delay: 1.1s; }
.stagger-item:nth-child(12) { transition-delay: 1.2s; }
.stagger-item:nth-child(13) { transition-delay: 1.3s; }
.stagger-item:nth-child(14) { transition-delay: 1.4s; }
.stagger-item:nth-child(15) { transition-delay: 1.5s; }

/* Mobile responsive - Switch to flow layout */
@media (max-width: 768px) {
  body {
    height: auto;
    min-height: 100vh;
  }

  /* Hide desktop elements on mobile */
  .main-container {
    display: none;
  }

  /* Show mobile container */
  .mobile-container {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
  }

  /* Mobile layout styles */
  .hero-section {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    min-height: 400px;
  }

  h1.glow {
    position: static;
    margin: 0;
    margin-bottom: 20px;
  }

  .handwritten-name {
    position: static;
    transform: rotate(-20deg);
    margin: 20px 0;
  }

  .typewriter-container {
    position: static;
    margin-top: 40px;
    text-align: center;
  }

  #about {
    position: static;
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: center;
    line-height: 1.6;
  }

  .contact-button {
    position: static;
    display: inline-block;
    margin: 20px 0;
  }

  .section-divider {
    width: 200px;
    height: 1px;
    background-color: #fff;
    margin: 60px auto;
  }

  .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
  }

  .about-content {
    max-width: 800px;
    margin: 0 auto 60px auto;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #FADCD9;
    line-height: 1.6;
    text-align: center;
  }

  .tech-stack {
    margin: 60px 0;
    text-align: center;
  }

  .stack-icons {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
  }

  .projects-section {
    position: static;
    margin: 60px 0;
    color: #FADCD9;
    font-family: 'Segoe UI', sans-serif;
  }

  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
  }

  .project-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    transition: transform 0.3s ease;
  }

  .project-wrapper:hover {
    transform: translateY(-5px);
  }

  .project-tile {
    margin-bottom: 15px;
  }

  .project-description-outside {
    margin-bottom: 10px;
  }

  .stuffs-content {
    text-align: center;
    margin: 40px 0;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #FADCD9;
  }

  .vsco-card {
    position: static;
    display: inline-block;
    margin: 20px;
  }

  .coffee-badge {
    position: static;
    display: inline-block;
    margin: 20px;
  }

  .pinterest {
    position: static;
    display: inline-block;
    margin: 20px;
  }

  footer {
    position: static;
    margin-top: 80px;
    padding: 20px;
  }

  .nav {
    right: 1rem;
    gap: 10px;
    padding: 0 10px;
    height: 60px;
  }

  .nav a {
    font-size: 14px;
  }
  
  .social-links {
    left: 0.5rem;
    top: 50%;
    gap: 1.5rem;
    font-size: 18px;
  }

  .stack-icons {
    gap: 15px;
  }

  .tech {
    width: 50px;
    height: 50px;
    padding: 8px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-tile {
    height: 180px;
  }

  .vsco-card,
  .pinterest {
    width: 150px;
    margin: 10px;
  }
}

@media (max-width: 480px) {
  .nav {
    right: 0.5rem;
    gap: 8px;
    padding: 0 8px;
    height: 50px;
  }

  .nav a {
    font-size: 12px;
  }

  .social-links {
    left: 0.3rem;
    gap: 1rem;
    font-size: 16px;
  }

  .stack-icons {
    gap: 10px;
  }

  .tech {
    width: 40px;
    height: 40px;
    padding: 6px;
  }

  .vsco-card,
  .pinterest {
    width: 120px;
  }
}

@media (max-width: 320px) {
  .nav {
    gap: 5px;
    padding: 0 5px;
  }

  .nav a {
    font-size: 10px;
  }

  .social-links {
    font-size: 14px;
    gap: 0.8rem;
  }

  .stack-icons {
    gap: 5px;
  }

  .tech {
    width: 35px;
    height: 35px;
    padding: 5px;
  }
}
