/* Custom Fonts */
@font-face {
  font-family: 'MonumentExtended';
  src: url('fonts/Monument/MonumentExtended-Ultrabold.otf') format('opentype');
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: 'ClashDisplay';
  src: url('fonts/fonts/ClashDisplay-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'ClashDisplay';
  src: url('fonts/fonts/ClashDisplay-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'ClashDisplay';
  src: url('fonts/fonts/ClashDisplay-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

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

html {
  scroll-behavior: auto;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #140224;
  color: white;
  overflow-x: hidden;
  position: relative;
}

/* Intro Splash Screen */
.intro-splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #140224;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), visibility 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.intro-splash.hidden {
  opacity: 0;
  visibility: hidden;
}

.hello-container {
  position: relative;
  text-align: center;
}

.hello-main,
.hello-outline {
  font-family: 'ClashDisplay', sans-serif;
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 0;
  filter: blur(10px);
}

.hello-main {
  color: white;
  z-index: 10;
  animation: helloMainIn 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.3s forwards;
}

.hello-outline {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.4);
  z-index: 5;
}

/* Individual outline positioning and animations */
.hello-outline-1 {
  animation: helloOutlineIn1 1.4s cubic-bezier(0.23, 1, 0.32, 1) 0.6s forwards;
}

.hello-outline-2 {
  animation: helloOutlineIn2 1.4s cubic-bezier(0.23, 1, 0.32, 1) 0.7s forwards;
}

.hello-outline-3 {
  animation: helloOutlineIn3 1.4s cubic-bezier(0.23, 1, 0.32, 1) 0.8s forwards;
}

.hello-outline-4 {
  animation: helloOutlineIn4 1.4s cubic-bezier(0.23, 1, 0.32, 1) 0.9s forwards;
}

.hello-outline-5 {
  animation: helloOutlineIn5 1.4s cubic-bezier(0.23, 1, 0.32, 1) 1.0s forwards;
}

.hello-outline-6 {
  animation: helloOutlineIn6 1.4s cubic-bezier(0.23, 1, 0.32, 1) 1.1s forwards;
}

.hello-outline-7 {
  animation: helloOutlineIn7 1.4s cubic-bezier(0.23, 1, 0.32, 1) 1.2s forwards;
}

.hello-outline-8 {
  animation: helloOutlineIn8 1.4s cubic-bezier(0.23, 1, 0.32, 1) 0.6s forwards;
}

.hello-outline-9 {
  animation: helloOutlineIn9 1.4s cubic-bezier(0.23, 1, 0.32, 1) 0.7s forwards;
}

.hello-outline-10 {
  animation: helloOutlineIn10 1.4s cubic-bezier(0.23, 1, 0.32, 1) 0.8s forwards;
}

.hello-outline-11 {
  animation: helloOutlineIn11 1.4s cubic-bezier(0.23, 1, 0.32, 1) 0.9s forwards;
}

.hello-outline-12 {
  animation: helloOutlineIn12 1.4s cubic-bezier(0.23, 1, 0.32, 1) 1.0s forwards;
}

.hello-outline-13 {
  animation: helloOutlineIn13 1.4s cubic-bezier(0.23, 1, 0.32, 1) 1.1s forwards;
}

.hello-outline-14 {
  animation: helloOutlineIn14 1.4s cubic-bezier(0.23, 1, 0.32, 1) 1.2s forwards;
}

/* Hello animations */
@keyframes helloMainIn {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translate(-50%, -50%) scale(1.1);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Outline animations - emerge from center and move to closer positions */
@keyframes helloOutlineIn1 {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 0.7;
    filter: blur(0px);
    transform: translate(-50%, -65%) scale(1);
  }
}

@keyframes helloOutlineIn2 {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 0.6;
    filter: blur(0px);
    transform: translate(-50%, -110%) scale(1);
  }
}

@keyframes helloOutlineIn3 {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 0.5;
    filter: blur(0px);
    transform: translate(-50%, -155%) scale(1);
  }
}

@keyframes helloOutlineIn4 {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 0.4;
    filter: blur(0px);
    transform: translate(-50%, -200%) scale(1);
  }
}

@keyframes helloOutlineIn5 {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 0.35;
    filter: blur(0px);
    transform: translate(-50%, -245%) scale(1);
  }
}

@keyframes helloOutlineIn6 {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 0.3;
    filter: blur(0px);
    transform: translate(-50%, -290%) scale(1);
  }
}

@keyframes helloOutlineIn7 {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 0.25;
    filter: blur(0px);
    transform: translate(-50%, -335%) scale(1);
  }
}

@keyframes helloOutlineIn8 {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 0.7;
    filter: blur(0px);
    transform: translate(-50%, -35%) scale(1);
  }
}

@keyframes helloOutlineIn9 {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 0.6;
    filter: blur(0px);
    transform: translate(-50%, 10%) scale(1);
  }
}

@keyframes helloOutlineIn10 {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 0.5;
    filter: blur(0px);
    transform: translate(-50%, 55%) scale(1);
  }
}

@keyframes helloOutlineIn11 {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 0.4;
    filter: blur(0px);
    transform: translate(-50%, 100%) scale(1);
  }
}

@keyframes helloOutlineIn12 {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 0.35;
    filter: blur(0px);
    transform: translate(-50%, 145%) scale(1);
  }
}

@keyframes helloOutlineIn13 {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 0.3;
    filter: blur(0px);
    transform: translate(-50%, 190%) scale(1);
  }
}

@keyframes helloOutlineIn14 {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 0.25;
    filter: blur(0px);
    transform: translate(-50%, 235%) scale(1);
  }
}

/* Exit animations - move back to center while fading, all at same time */
@keyframes helloMainOut {
  0% {
    opacity: 1;
    filter: blur(0px);
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    filter: blur(10px);
    transform: translate(-50%, -50%) scale(0.95);
  }
}

@keyframes helloOutlineOut1 {
  0% {
    opacity: 0.7;
    filter: blur(0px);
    transform: translate(-50%, -65%) scale(1);
  }
  100% {
    opacity: 0;
    filter: blur(10px);
    transform: translate(-50%, -50%) scale(0.8);
  }
}

@keyframes helloOutlineOut2 {
  0% {
    opacity: 0.6;
    filter: blur(0px);
    transform: translate(-50%, -110%) scale(1);
  }
  100% {
    opacity: 0;
    filter: blur(10px);
    transform: translate(-50%, -50%) scale(0.8);
  }
}

@keyframes helloOutlineOut3 {
  0% {
    opacity: 0.5;
    filter: blur(0px);
    transform: translate(-50%, -155%) scale(1);
  }
  100% {
    opacity: 0;
    filter: blur(10px);
    transform: translate(-50%, -50%) scale(0.8);
  }
}

@keyframes helloOutlineOut4 {
  0% {
    opacity: 0.4;
    filter: blur(0px);
    transform: translate(-50%, -200%) scale(1);
  }
  100% {
    opacity: 0;
    filter: blur(10px);
    transform: translate(-50%, -50%) scale(0.8);
  }
}

@keyframes helloOutlineOut5 {
  0% {
    opacity: 0.35;
    filter: blur(0px);
    transform: translate(-50%, -245%) scale(1);
  }
  100% {
    opacity: 0;
    filter: blur(10px);
    transform: translate(-50%, -50%) scale(0.8);
  }
}

@keyframes helloOutlineOut6 {
  0% {
    opacity: 0.3;
    filter: blur(0px);
    transform: translate(-50%, -290%) scale(1);
  }
  100% {
    opacity: 0;
    filter: blur(10px);
    transform: translate(-50%, -50%) scale(0.8);
  }
}

@keyframes helloOutlineOut7 {
  0% {
    opacity: 0.25;
    filter: blur(0px);
    transform: translate(-50%, -335%) scale(1);
  }
  100% {
    opacity: 0;
    filter: blur(10px);
    transform: translate(-50%, -50%) scale(0.8);
  }
}

@keyframes helloOutlineOut8 {
  0% {
    opacity: 0.7;
    filter: blur(0px);
    transform: translate(-50%, -35%) scale(1);
  }
  100% {
    opacity: 0;
    filter: blur(10px);
    transform: translate(-50%, -50%) scale(0.8);
  }
}

@keyframes helloOutlineOut9 {
  0% {
    opacity: 0.6;
    filter: blur(0px);
    transform: translate(-50%, 10%) scale(1);
  }
  100% {
    opacity: 0;
    filter: blur(10px);
    transform: translate(-50%, -50%) scale(0.8);
  }
}

@keyframes helloOutlineOut10 {
  0% {
    opacity: 0.5;
    filter: blur(0px);
    transform: translate(-50%, 55%) scale(1);
  }
  100% {
    opacity: 0;
    filter: blur(10px);
    transform: translate(-50%, -50%) scale(0.8);
  }
}

@keyframes helloOutlineOut11 {
  0% {
    opacity: 0.4;
    filter: blur(0px);
    transform: translate(-50%, 100%) scale(1);
  }
  100% {
    opacity: 0;
    filter: blur(10px);
    transform: translate(-50%, -50%) scale(0.8);
  }
}

@keyframes helloOutlineOut12 {
  0% {
    opacity: 0.35;
    filter: blur(0px);
    transform: translate(-50%, 145%) scale(1);
  }
  100% {
    opacity: 0;
    filter: blur(10px);
    transform: translate(-50%, -50%) scale(0.8);
  }
}

@keyframes helloOutlineOut13 {
  0% {
    opacity: 0.3;
    filter: blur(0px);
    transform: translate(-50%, 190%) scale(1);
  }
  100% {
    opacity: 0;
    filter: blur(10px);
    transform: translate(-50%, -50%) scale(0.8);
  }
}

@keyframes helloOutlineOut14 {
  0% {
    opacity: 0.25;
    filter: blur(0px);
    transform: translate(-50%, 235%) scale(1);
  }
  100% {
    opacity: 0;
    filter: blur(10px);
    transform: translate(-50%, -50%) scale(0.8);
  }
}

/* Main content initial state */
#mainContent {
  opacity: 0;
  transform: scale(1.05);
  filter: blur(8px);
  transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

#mainContent.loaded {
  opacity: 1;
  transform: scale(1);
  filter: blur(0px);
}

/* Grid Background */
.grid-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: auto;  /* Change from fixed height */
  min-height: 500vh;  /* Increase to cover full page scroll */
  background-image: url('assets/images/background.png');
  background-size: 100% auto;  /* Keep this - stretches width, maintains aspect ratio */
  background-position: center top;  /* Keep this */
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.parallax-bg.loaded {
  opacity: 1;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 2, 36, 0.3);
  z-index: 2;
  pointer-events: none;
}

/* Large Vertical Text */
.vertical-text {
  position: fixed;
  right: 2vw;
  top: 0;
  transform: rotate(90deg);
  transform-origin: top right;
  font-family: 'MonumentExtended', Arial, sans-serif;
  font-size: clamp(30rem, 37.5vw, 52.5rem);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.3);
  z-index: 3;
  pointer-events: none;
  letter-spacing: -0.02em;
  will-change: transform;
  white-space: nowrap;
  margin-top: 0;
  opacity: 0;
  filter: blur(8px);
  transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.vertical-text.loaded {
  opacity: 1;
  filter: blur(0px);
}

/* Vertical text entrance from bottom */
.vertical-text.entrance {
  transform: rotate(90deg) translateX(100vh);
  opacity: 0;
  filter: blur(8px);
}

/* Name Section */
.name-section {
  position: absolute;
  top: 50vh;
  left: 15vw;
  transform: translateY(-50%);
  z-index: 4;
  opacity: 0;
  transform: translateY(-50%) scale(1.05);
  filter: blur(8px);
  transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.name-section.loaded {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  filter: blur(0px);
}

@media (max-width: 992px) {
  .name-section { left: 10vw; }
}

@media (max-width: 768px) {
  .name-section { left: 8vw; }
}

.name-svg {
  max-width: 480px;
  height: auto;
}

/* Content Container */
.content-container {
  position: relative;
  z-index: 5;
  min-height: 100vh;
}

/* Landing Section (Name-box area) */
.landing-section {
  height: 100vh;
  position: relative;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
}

/* About Section */
.about-section {
  height: 100vh;
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Projects Section */
.projects-section {
  height: 100vh;
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Contact Section */
.contact-section {
  height: 100vh;
  padding: 6rem 2rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content h1 {
  font-family: 'ClashDisplay', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* About Section */
.about-section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: 'ClashDisplay', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.9;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.skills-grid-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-height: 320px;
  overflow-y: auto;
  padding: 0.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  width: 100%;
}

.skills-grid::-webkit-scrollbar {
  display: none;
}

.skills-scroll-btn {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  font-size: 0.9rem;
}

.skills-scroll-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  transform: translateY(-2px);
}

.skills-scroll-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
}

.skill-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-item:hover {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transform: translateY(-5px);
}

.scrolling-text {
  position: relative;
  width: 100%;
  height: 1.2em;
  overflow: hidden;
}

.scrolling-text span {
  display: inline-block;
  white-space: nowrap;
  animation: scrollText 3s linear infinite;
}

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

.scrolling-text:hover span {
  animation-play-state: paused;
}

/* Projects Section */
.projects-section {
  height: 100vh;
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.projects-container {
  position: relative;
  margin-top: 3rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(480px, 1fr));
  gap: 3rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 60px;
  margin: 0 -60px;
  position: relative;
}

.projects-grid::-webkit-scrollbar {
  display: none;
}

.projects-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  font-size: 1.1rem;
  z-index: 50;
  pointer-events: auto;
}

.projects-scroll-left {
  left: 10px;
}

.projects-scroll-right {
  right: 10px;
}

.projects-scroll-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  transform: translateY(-50%) scale(1.05);
}

.projects-scroll-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateY(-10px);
}

.project-logo {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.7);
  overflow: hidden;
  margin-bottom: 1.5rem;
  width: auto;
  min-width: 80px;
  max-width: 200px;
}

.project-logo img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

.project-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.project-title {
  font-family: 'ClashDisplay', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.project-description {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

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

.project-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: auto;
  min-height: 48px;
}

.project-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.project-title {
  font-family: 'ClashDisplay', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.project-description {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

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

.tech-tag {
  background: rgba(134, 35, 169, 0.3);
  border: 1px solid rgba(134, 35, 169, 0.5);
  border-radius: 8px;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}

.project-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.action-btn {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0.8rem 1.5rem;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.action-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  text-decoration: none;
}

.action-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  transform: translateY(-2px);
}

/* Contact Section */
.contact-section {
  padding: 6rem 2rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.contact-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  text-decoration: none;
  color: white;
  display: block;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.contact-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: rgba(134, 35, 169, 0.8);
}

.contact-label {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.contact-value {
  font-weight: 500;
}

/* Footer */
.footer {
  position: fixed;
  bottom: 5vh;
  right: 5vw;
  text-align: right;
  color: white;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  opacity: 0;
  transform: scale(1.05);
  filter: blur(8px);
  transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.footer.loaded {
  opacity: 1;
  transform: scale(1);
  filter: blur(0px);
}

.footer-line {
  height: 1px;
  width: 66vw;
  background: linear-gradient(to left, rgba(134, 35, 169, 0.8), rgba(134, 35, 169, 0));
  margin-right: 15px;
}

.footer-text {
  font-size: 0.8rem;
  letter-spacing: 2px;
  opacity: 0.8;
  font-weight: 500;
}

/* Section Navigation */
.section-nav {
  position: fixed;
  left: 2vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(-50%) scale(1.05);
  filter: blur(8px);
  transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.section-nav.loaded {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  filter: blur(0px);
}

.nav-pill {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 1.5rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
}

.nav-dot:hover {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.nav-dot.active {
  background: rgba(134, 35, 169, 0.8);
  border-color: rgba(134, 35, 169, 1);
  transform: scale(1.3);
  box-shadow: 0 0 20px rgba(134, 35, 169, 0.4);
}

.nav-tooltip {
  position: absolute;
  left: 200%;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-dot:hover .nav-tooltip {
  opacity: 1;
}

@media (max-width: 768px) {
  .section-nav {
    left: 1vw;
  }
  
  .nav-pill {
    padding: 1rem 0.6rem;
    gap: 0.8rem;
  }
  
  .nav-dot {
    width: 10px;
    height: 10px;
  }
  
  .nav-tooltip {
    display: none;
  }
}

/* Scroll Hint */
.scroll-hint {
  position: fixed;
  bottom: 8vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.scroll-hint.loaded {
  opacity: 0.6;
}

.scroll-hint.hidden {
  opacity: 0;
  filter: blur(8px);
}

.scroll-hint-text {
  font-family: 'ClashDisplay', sans-serif;
  font-size: 0.75rem;
  color: white;
  letter-spacing: 2px;
  opacity: 0.8;
  font-weight: 500;
}

.scroll-hint-icon {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-hint-dot {
  width: 3px;
  height: 6px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  animation: scrollHintBounce 2s infinite;
}

@keyframes scrollHintBounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(12px);
    opacity: 1;
  }
}

.scroll-hint:hover {
  opacity: 1;
}

/* Cursor Ready Attributes */
[data-cursor="pointer"] { cursor: pointer; }
[data-cursor="view"] { cursor: pointer; }
[data-cursor="text"] { cursor: text; }
[data-cursor="hover"] { cursor: pointer; }

/* Responsive Design */
@media (max-width: 1200px) {
  .name-svg { max-width: 400px; }
  .vertical-text { 
    font-size: clamp(72rem, 90vw, 120rem);
    right: 2vw;
  }
}

@media (max-width: 992px) {
  .about-content { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .name-section { left: 4vw; }
  .vertical-text { 
    font-size: clamp(60rem, 80vw, 100rem);
    right: 3vw;
  }
}

@media (max-width: 768px) {
  .name-svg { max-width: 300px; }
  .vertical-text { 
    font-size: clamp(48rem, 72vw, 80rem);
    right: 2vw;
  }
  .footer-line { width: 40vw; }
  .name-section { left: 8vw; }
  
  .skills-grid { 
    grid-template-columns: repeat(2, 1fr);
    max-height: 240px;
    gap: 1rem;
  }
  
  .skills-scroll-btn {
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
  }
  
  .skill-item {
    padding: 1rem 0.8rem;
    min-height: 70px;
  }
  
  .projects-grid {
    grid-template-columns: repeat(3, minmax(320px, 1fr));
    gap: 2rem;
    padding: 0 50px;
    margin: 0 -50px;
  }
  
  .projects-scroll-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .project-card {
    padding: 1.5rem;
  }
}

@media (orientation: portrait) {
  .parallax-bg {
    width: 100vw;
    height: auto;
    min-height: 800vh; /* Much taller for mobile scroll */
    background-size: cover; /* Use cover instead of 100% auto */
    background-position: center top;
  }
}

@media (max-width: 768px) {
  .parallax-bg {
    min-height: 700vh; /* Ensure enough height for mobile */
    background-size: cover;
    background-position: center center;
  }
}

/* For very narrow screens */
@media (max-width: 480px) {
  .parallax-bg {
    min-height: 800vh;
    background-size: cover;
    background-position: center top;
  }
}

/* Mobile Popup Overlay */
.mobile-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 2, 36, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 1;
  visibility: visible;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-popup-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

.mobile-popup {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  animation: popupEnter 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.2s forwards;
}

@keyframes popupEnter {
  0% {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.popup-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(134, 35, 169, 0.3), rgba(134, 35, 169, 0.6));
  border: 2px solid rgba(134, 35, 169, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 30px rgba(134, 35, 169, 0.4);
}

.popup-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.popup-text {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.popup-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.popup-btn {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 0.8rem 1.5rem;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.popup-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.popup-btn.primary {
  background: linear-gradient(135deg, rgba(134, 35, 169, 0.6), rgba(134, 35, 169, 0.8));
  border: 1px solid rgba(134, 35, 169, 0.9);
  box-shadow: 0 4px 20px rgba(134, 35, 169, 0.3);
}

.popup-btn.primary:hover {
  background: linear-gradient(135deg, rgba(134, 35, 169, 0.7), rgba(134, 35, 169, 0.9));
  border: 1px solid rgba(134, 35, 169, 1);
  box-shadow: 0 6px 25px rgba(134, 35, 169, 0.4);
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  font-size: 0.8rem;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  transform: scale(1.1);
}

/* Hide popup on desktop */
@media (min-width: 1024px) {
  .mobile-popup-overlay {
    display: none !important;
  }
}

/* Animation for dismissal */
.mobile-popup-overlay.dismissing {
  animation: overlayFadeOut 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.mobile-popup-overlay.dismissing .mobile-popup {
  animation: popupExit 0.4s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes overlayFadeOut {
  0% {
    opacity: 1;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  100% {
    opacity: 0;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
}

@keyframes popupExit {
  0% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
  100% {
    transform: scale(0.95) translateY(-20px);
    opacity: 0;
  }
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .mobile-popup {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }
  
  .popup-actions {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .popup-btn {
    padding: 1rem 1.5rem;
    justify-content: center;
  }
}
