:root { 
  --bg: #000000; 
  --text-muted: #666; 
  --text-bright: #ffffff; 
}

* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
  -webkit-tap-highlight-color: transparent; 
}

body {
  background-color: var(--bg); 
  color: var(--text-muted);
  font-family: 'Space Grotesk', sans-serif;
  min-height: 100vh; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  padding: 2rem; 
  position: relative; 
  overflow-x: hidden;
}

/* Interactive Ambient Spotlight */
.spotlight {
  position: fixed; 
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none; 
  z-index: 0;
  background: radial-gradient(600px circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.05), transparent 40%);
  opacity: 0;
  transition: opacity 2s ease;
}

.spotlight.active {
  opacity: 1;
}

.container {
  position: relative; 
  z-index: 1; 
  max-width: 520px; 
  width: 100%;
}

/* Intro Animation States */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(8px);
  transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform, filter;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

h1 {
  font-size: 2.25rem; 
  font-weight: 700; 
  color: var(--text-bright);
  margin-bottom: 0.75rem; 
  letter-spacing: -0.05em; 
  text-transform: lowercase;
  display: inline-block;
  min-width: 4ch;
  cursor: pointer;
  user-select: none;
  transition: text-shadow 0.3s ease;
}

h1:hover {
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.subtitle {
  font-size: 0.9rem; 
  font-weight: 300; 
  line-height: 1.6; 
  margin-bottom: 3.5rem; 
  max-width: 95%;
}

.section-title {
  font-size: 0.7rem; 
  font-weight: 500; 
  text-transform: uppercase; 
  letter-spacing: 0.2em;
  margin-bottom: 1.25rem; 
  opacity: 0.5;
}

/* Project Links */
.project-link {
  display: inline-flex; 
  align-items: center;
  gap: 0.4rem;
  font-size: 1.25rem; 
  font-weight: 500; 
  color: var(--text-bright);
  text-decoration: none; 
  margin-bottom: 3.5rem; 
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-text {
  position: relative; /* Contain the underline just to the text */
}

/* The Animated Underline (Now targets only the text span) */
.link-text::before {
  content: ''; 
  position: absolute; 
  left: 0; 
  bottom: -4px; 
  width: 100%; 
  height: 1px;
  background: var(--text-bright); 
  transform: scaleX(0); 
  transform-origin: right; 
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

/* Lucide Icon Styling */
.project-link svg {
  width: 0.8em;
  height: 0.8em;
  opacity: 0.4;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-link:hover { 
  transform: translateX(6px); 
}

.project-link:hover .link-text::before { 
  transform: scaleX(1); 
  transform-origin: left; 
}

.project-link:hover svg {
  opacity: 1;
  transform: translate(3px, -3px);
}

.footer-divider { 
  display: none; 
}

.social-links { 
  display: flex; 
  gap: 1.5rem; 
  flex-wrap: wrap; 
}

.social-link {
  text-decoration: none; 
  color: var(--text-muted); 
  font-size: 0.8rem; 
  font-weight: 500;
  transition: color 0.3s, text-shadow 0.3s;
}

.social-link:hover { 
  color: var(--text-bright); 
  text-shadow: 0 0 10px rgba(255,255,255,0.4); 
}

/* Mobile scaling and touch overrides */
@media (max-width: 480px) {
  body { padding: 1.5rem; }
  h1 { font-size: 2rem; }
  .subtitle { font-size: 0.85rem; margin-bottom: 2.5rem; }
  
  .project-link { 
    font-size: 1.15rem; 
    margin-bottom: 2.5rem; 
  }

  .link-text::before {
    transform: scaleX(1);
    background: rgba(255, 255, 255, 0.2);
  }

  .project-link:active .link-text::before {
    background: rgba(255, 255, 255, 1);
  }

  .social-links { gap: 1rem; }
}