@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');
*{margin:0;padding:0;box-sizing:border-box}

body{
font-family:'Montserrat', sans-serif;
background:var(--bg);
color: var(--text-primary, #ffffff);
min-height:100vh;
display:flex;
justify-content:center;
align-items:center;
overflow:hidden;
position:relative;
perspective: 1000px;
}

#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

#enter-screen{
position:fixed;
inset:0;
background:var(--bg);
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
z-index:999;
cursor:pointer;
transition:opacity 1.5s ease, visibility 1.5s ease;
backdrop-filter: blur(4px);
}

#enter-screen.hidden{
opacity:0;
visibility:hidden;
pointer-events:none;
}

#enter-text{
font-size:13px;
letter-spacing:1px;
color:var(--text-secondary);
text-transform:lowercase;
margin-bottom:20px;
transition:transform 0.3s ease;
}

#enter-text:hover {
  transform: translateY(-2px);
}

.enter-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
  opacity: 0.7;
}

.card{
background:var(--card-bg);
border-radius:32px;
padding:0 0 50px 0;
max-width:480px;
width:100%;
text-align:center;
box-shadow:0 25px 50px -12px rgba(0,0,0,0.5);
z-index:2;
position:relative;
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.05);
overflow: hidden;
animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
transform-style: preserve-3d;
}

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

.banner {
  width: 100%;
  height: 120px;
  position: relative;
  overflow: hidden;
  border-radius: 32px 32px 0 0;
}

#bannerImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-section {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 15px;
  margin-top: -36px;
  margin-bottom: 24px;
  padding: 0 40px;
}

.avatar {
  flex-shrink: 0;
}

.username,
.status-line,
.status-badge,
.custom-status {
  padding-left: 40px;
  padding-right: 40px;
}

.section {
  margin-left: 40px;
  margin-right: 40px;
}

.avatar{
width:110px;
height:110px;
border-radius:50%;
margin:0;
overflow:visible;
position:relative;
transition: border-color 0.3s ease;
box-shadow: 0 8px 24px rgba(0,0,0,0.2);
z-index: 1;
}

.avatar:hover {
  border-color: var(--primary);
}

.avatar img{
width:100%;
height:100%;
object-fit:cover;
border-radius:50%;
border:4px solid var(--bg);
transition: transform 0.3s ease;
background: #222;
}

.avatar img:hover {
  transform: scale(1.06);
}

.status-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--bg);
  background: #747f8d;
  transition: background 0.4s;
}

.status-dot.online { background: #3ba55d; }
.status-dot.idle { background: #faa61a; }
.status-dot.dnd { background: #ed4245; }
.status-dot.offline { background: #747f8d; }

.status-bubble {
  display: none;
  background: var(--section-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px 16px;
  margin-top: 40px;
  position: relative;
  font-size: 0.85rem;
  color: var(--text);
  max-width: 200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease;
}

.status-bubble::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 20px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid var(--border);
}

.status-bubble::after {
  content: '';
  position: absolute;
  left: -6px;
  top: 21px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 7px solid var(--section-bg);
}

.status-bubble span {
  display: inline;
}

#customEmoji {
  margin-right: 6px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.username{
font-size:28px;
font-weight:600;
color: var(--text-primary, #ffffff);
margin-bottom:8px;
text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.bio {
  font-size: 13px;
  color: var(--text-secondary);
  opacity: 0.85;
  line-height: 1.5;
  margin: 10px 40px 15px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  border: 1px solid var(--border);
  text-align: center;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.bio a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

.bio a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  margin: 10px 0;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #747f8d;
  transition: background 0.4s;
}

.status-badge.online .dot { background: #3ba55d; }
.status-badge.idle .dot { background: #faa61a; }
.status-badge.dnd .dot { background: #ed4245; }
.status-badge.offline .dot { background: #747f8d; }

.section{
background:var(--section-bg);
border:1px solid var(--border);
border-radius:16px;
padding:14px;
display:none;
gap:12px;
align-items:center;
cursor:pointer;
transition: all 0.3s ease;
position:relative;
overflow:hidden;
margin-bottom: 12px;
}

.section:last-of-type {
  margin-bottom: 0;
}

#card-visualizer {
  margin-top: 20px;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(152, 255, 152, 0.1), transparent);
  transition: left 0.6s ease;
}

.section:hover::before {
  left: 100%;
}

.section:hover{
border-color:var(--primary);
transform: translateY(-2px) translateZ(10px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.section img{
width:56px;
height:56px;
border-radius:6px;
object-fit:cover;
background:var(--border);
transition: transform 0.3s ease;
}

.section:hover img {
  transform: scale(1.05);
}

.info{
flex:1;
text-align:left;
overflow:hidden;
}

.label{
font-size:11px;
color:var(--text-muted);
margin-bottom:6px;
text-transform:lowercase;
letter-spacing:0.5px;
display: flex;
align-items: center;
gap: 6px;
}

.title{
font-size:14px;
font-weight:500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.artist{
font-size:12px;
color:var(--text-secondary);
opacity:.75;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

#site-player{
position:fixed;
bottom:22px;
right:22px;
background: var(--section-bg);
border:1px solid rgba(255, 255, 255, 0.1);
border-radius:24px;
padding:12px 14px;
display:flex;
flex-direction:column;
gap:10px;
box-shadow:0 10px 30px rgba(0,0,0,.6);
z-index:3;
cursor:pointer;
transition: all 0.3s ease;
backdrop-filter: blur(10px);
}

#site-player:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.player-content {
  display: flex;
  gap: 10px;
  align-items: center;
}

#site-player img{
width:44px;
height:44px;
border-radius:8px;
object-fit:cover;
transition: transform 0.3s ease;
position: relative;
}

#site-player:hover img {
  transform: scale(1.1);
}

#site-player .meta{
display:flex;
flex-direction:column;
gap:2px;
min-width: 140px;
position: relative;
}

#site-player .now{
font-size:10px;
letter-spacing:.5px;
color:var(--primary);
text-transform:lowercase;
font-weight: 500;
}

#site-player .song{
font-size:13px;
font-weight:500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

#site-player .by{
font-size:11px;
color:var(--text-secondary);
opacity:.8;
}

.progress-container {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--color-4));
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 2px;
}

.progress-container:hover .progress-bar {
  background: var(--primary);
}

.time-display {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 4px;
  user-select: none;
}

.volume-container {
  position: fixed;
  bottom: 22px;
  left: 22px;
  background: var(--section-bg);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 24px;
  padding: 10px 15px;
  z-index: 3;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 10px;
}

.volume-slider {
  appearance: none;
  -webkit-appearance: none;
  width: 80px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--primary) 0%, var(--primary) 50%, var(--border) 50%, var(--border) 100%);
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.volume-slider:hover {
  height: 8px;
  box-shadow: 0 0 8px rgba(152, 255, 152, 0.3);
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 2px solid var(--bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 2px 12px rgba(152, 255, 152, 0.5);
}

.volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 2px solid var(--bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.volume-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 2px 12px rgba(152, 255, 152, 0.5);
}

.volume-icon {
  width: 16px;
  height: 16px;
  opacity: 0.7;
  color: var(--text);
}

#card-visualizer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  pointer-events: none;
  z-index: 1;
  border-radius: 0 0 32px 32px;
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  #navbar {
    padding: 15px 20px;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
  }

  .nav-logo {
    font-size: 16px;
    margin-bottom: 5px;
    max-width: 200px;
    word-wrap: break-word;
    text-align: center;
  }

  .nav-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-btn {
    font-size: 12px;
    padding: 8px 12px;
    min-width: 60px;
  }

  .card {
    margin: 20px 15px;
    max-width: calc(100% - 30px);
    transform: scale(0.85);
    transform-origin: top center;
  }

  #site-player {
    bottom: 15px;
    right: 15px;
    transform: scale(0.75);
    transform-origin: bottom right;
  }

  .volume-container {
    bottom: 15px;
    left: 15px;
    transform: scale(0.75);
    transform-origin: bottom left;
  }

  .modal-content {
    width: 90%;
    max-width: 90%;
    padding: 35px 25px;
    transform: scale(0.9);
  }
}

@media (max-width: 480px) {
  #navbar {
    padding: 10px 15px;
    gap: 10px;
  }

  .nav-logo {
    font-size: 14px;
    max-width: 150px;
  }

  .nav-links {
    gap: 10px;
  }

  .nav-btn {
    font-size: 11px;
    padding: 6px 10px;
    min-width: 50px;
  }

  .card {
    margin: 15px 10px;
    max-width: calc(100% - 20px);
    transform: scale(0.75);
  }

  #site-player {
    bottom: 10px;
    right: 10px;
    transform: scale(0.65);
  }

  .volume-container {
    bottom: 10px;
    left: 10px;
    transform: scale(0.65);
  }

  .modal-content {
    width: 95%;
    max-width: 95%;
    padding: 25px 20px;
    transform: scale(0.85);
  }

  .section {
    margin-left: 20px;
    margin-right: 20px;
  }

  .username,
  .status-line,
  .status-badge,
  .custom-status {
    padding-left: 20px;
    padding-right: 20px;
  }

  .bio {
    margin: 10px 20px 15px;
  }
}

.loading {
  opacity: 0.5;
  pointer-events: none;
}

.pulse {
  animation: pulse 1.5s infinite;
}

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

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  pointer-events: auto;
}

.nav-logo {
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-primary, #ffffff);
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  color: var(--primary);
  transform: translateY(-2px);
  text-shadow: 0 0 10px rgba(152, 255, 152, 0.4);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: 32px;
  width: 90%;
  max-width: 450px;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.modal.active .modal-content {
  transform: scale(1) translateY(0);
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.close-btn:hover {
  color: var(--text);
}

.modal h2 {
  font-size: 24px;
  color: var(--text);
  margin-bottom: 30px;
  text-align: center;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.project-item {
  background: var(--section-bg);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.project-item:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.project-info h3 {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 4px;
}

.project-info p {
  font-size: 12px;
  color: var(--text-secondary);
}

.project-link {
  background: var(--bg);
  color: var(--primary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid var(--border);
}

.project-link:hover {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}

.socials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.social-item {
  background: var(--section-bg);
  border: 1px solid var(--border);
  padding: 15px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-item:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  background: var(--card-bg);
}

.social-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.social-item span {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.detail-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.detail-title {
  font-size: 24px;
  color: var(--text);
  margin-bottom: 10px;
  text-align: center;
}

.detail-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 25px;
  text-align: center;
}

.back-btn {
  background: transparent;
  border: none;
  color: var(--text-primary, #ffffff);
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Montserrat', sans-serif;
  padding: 0;
}

.back-btn:hover {
  color: var(--primary);
}

#project-detail-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-item {
  cursor: pointer;
}

.album-art, .activity-art {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.spotify-activity .album-art {
  animation: spinSlow 8s linear infinite;
  border-radius: 50%;
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

.game-activity .activity-art {
  display: none;
}

#songLink {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

#songLink:hover {
  color: var(--primary);
}
