/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

/* Enable scrolling on touch devices (tablets, mobile) */
@media (pointer: coarse) {
  body {
    overflow: auto !important;
  }
}

body {
  background: #fff;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  animation: fadeIn 1.8s ease-out forwards;
}

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

/* Header styles */
header {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 30px 40px 20px 40px;
  position: relative;
  z-index: 10;
}

.name {
  font-size: 100px;
  font-weight: 400;
  letter-spacing: -3px;
  line-height: 0.85;
  color: #000;
  text-decoration: none;
  cursor: pointer;
  transition: font-family 0.1s ease;
}

.name a {
  color: #000;
  text-decoration: none;
}

.name:hover,
.name.active {
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
}

a.name {
  color: inherit;
  text-decoration: none;
}

a.name:hover {
  color: inherit;
}

.header-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
}

.bio {
  font-size: 13px;
  line-height: 1.3;
  max-width: 300px;
  margin-left: auto;
  text-align: right;
}

nav {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  font-size: 13px;
  line-height: 1.2;
}

nav a {
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid #000;
  padding-bottom: 2px;
}

nav a:hover {
  border-bottom-color: #666;
}

/* Footer styles */
footer {
  flex-shrink: 0;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #666;
}

footer a {
  color: #000;
  text-decoration: none;
}

/* Video overlay */
.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: none;
  background: #000;
}

.video-overlay.active {
  display: block;
}

.video-overlay video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Custom cursor follower */
.cursor-follower {
  position: fixed;
  width: 24px;
  height: 24px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor-follower canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Tablet styles */
@media (max-width: 1024px) {
  .name {
    font-size: 60px;
    letter-spacing: -2px;
  }
  
  header {
    padding: 20px 30px 15px 30px;
  }
  
  .bio {
    font-size: 12px;
    max-width: 250px;
  }
  
  nav {
    gap: 20px;
    font-size: 12px;
  }
  
  footer {
    padding: 12px 30px;
    font-size: 10px;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .name {
    font-size: 48px;
    letter-spacing: -1px;
  }
  
  header {
    flex-direction: column;
    gap: 15px;
    padding: 15px 20px 5px 20px;
    align-items: flex-start;
  }
  
  .header-right {
    text-align: left;
    width: 100%;
  }
  
  .bio {
    margin-left: 0;
    text-align: left;
    max-width: 45%;
    margin-bottom: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  nav {
    justify-content: flex-start;
    gap: 15px;
  }
  
  footer {
    padding: 5px 20px 10px 20px;
    flex-direction: column;
    gap: 8px;
  }

  .cursor-follower {
    display: none;
  }
}

/* Small mobile styles */
@media (max-width: 480px) {
  .name {
    font-size: 36px;
  }
  
  header {
    padding: 15px;
  }

  .bio {
    max-width: 60%;
  }

  .cursor-follower {
    display: none;
  }
}
