@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Inter:wght@300;400;600;800&display=swap');
    
:root {
  --black: #000000;
  --white: #ffffff;
  --gray-dark: #222222;
  --gray-light: #f2f2f2;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--black);
  color: var(--white);
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body::-webkit-scrollbar {
  display: none;
}

.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;charset=utf8,%3Csvg viewBox%3D%220 0 512 512%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cfilter id%3D%22noise%22%3E%3CfeTurbulence type%3D%22fractalNoise%22 baseFrequency%3D%220.65%22 numOctaves%3D%223%22 stitchTiles%3D%22stitch%22%2F%3E%3C%2Ffilter%3E%3Crect width%3D%22100%25%22 height%3D%22100%25%22 filter%3D%22url%28%23noise%29%22 opacity%3D%220.03%22%2F%3E%3C%2Fsvg%3E');
  pointer-events: none;
  z-index: 1;
  opacity: 0.3;
}

.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, var(--white) 0%, transparent 35%),
              radial-gradient(circle at bottom left, var(--white) 0%, var(--black) 45%);
  opacity: 0.1;
  z-index: 0;
  transition: all 0.8s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.content {
  position: relative;
  z-index: 2;
}

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.preloader-text {
  font-family: 'Space Mono', monospace;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  letter-spacing: 0.3rem;
}

.loader {
  width: 200px;
  height: 2px;
  background-color: var(--gray-dark);
  position: relative;
  overflow: hidden;
}

.loader::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background-color: var(--white);
  animation: loading 2.5s ease-in-out forwards;
}

@keyframes loading {
  0% { width: 0; }
  20% { width: 20%; }
  45% { width: 40%; }
  65% { width: 60%; }
  85% { width: 90%; }
  100% { width: 100%; }
}

.welcome-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--black);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out;
}

.welcome-screen.active {
  opacity: 1;
  pointer-events: all;
}

.enter-button {
  font-family: 'Space Mono', monospace;
  font-size: 1.2rem;
  background: none;
  border: 1px solid var(--white);
  color: var(--white);
  padding: 1rem 2rem;
  letter-spacing: 0.5rem;
  text-transform: uppercase;
  cursor: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.enter-button:hover {
  background-color: var(--white);
  color: var(--black);
}

.cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background-color: var(--white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.3s;
  mix-blend-mode: difference;
}

.cursor-follower {
  position: fixed;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.6s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.main-content {
  padding: 0 5vw;
  opacity: 0;
  transition: opacity 1s ease;
  overflow: hidden;
}

header {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.name {
  font-size: clamp(2rem, 15vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
  margin-bottom: 2rem;
  transform: translateY(50px);
  opacity: 0;
  transition: all 1s ease;
}

.title {
  font-family: 'Space Mono', monospace;
  font-size: clamp(1rem, 3vw, 1.5rem);
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease 0.2s;
}

.scroll-indicator {
  position: absolute;
  bottom: 5vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: fadeIn 1s ease 2s forwards;
}

.scroll-indicator p {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  letter-spacing: 0.2rem;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) rotate(45deg);
  }
  40% {
    transform: translateY(-10px) rotate(45deg);
  }
  60% {
    transform: translateY(-5px) rotate(45deg);
  }
}

section {
  padding: 15vh 0;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

.section-title {
  font-family: 'Space Mono', monospace;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  margin-bottom: 3rem;
  letter-spacing: 0.2rem;
  display: flex;
  align-items: center;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 50px;
  height: 1px;
  background-color: var(--white);
  margin-right: 20px;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .about-content {
    grid-template-columns: 1fr 1fr;
  }
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.skill-tag {
  font-family: 'Space Mono', monospace;
  padding: 0.5rem 1rem;
  border: 1px solid var(--white);
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background-color: var(--white);
  color: var(--black);
}

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

@media (min-width: 768px) {
  .projects {
    grid-template-columns: 1fr 1fr;
  }
}

.project {
  position: relative;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.project:hover {
  border-color: var(--white);
  transform: translateY(-5px);
}

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

.project-desc {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

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

.project-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  background-color: var(--gray-dark);
}

.contact {
  text-align: center;
}

.contact p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.contact-link {
  font-family: 'Space Mono', monospace;
  color: var(--white);
  text-decoration: none;
  position: relative;
  padding-bottom: 5px;
}

.contact-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--white);
  transition: width 0.3s ease;
}

.contact-link:hover::after {
  width: 100%;
}

footer {
  padding: 10vh 5vw 5vh;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease;
}

.footer-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  letter-spacing: 0.1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.footer-link {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.footer-link:hover {
  opacity: 1;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animated-letter {
  display: inline-block;
  transition: all 0.3s ease;
}

.animated-letter:hover {
  transform: translateY(-10px) rotate(10deg);
  opacity: 0.8;
}

.magnetic-area {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}