:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-card: #1f1f1f;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-muted: #666666;
  --accent-primary: #3b82f6;
  --accent-hover: #2563eb;
  --border-color: #333333;
  --shadow-light: rgba(0, 0, 0, 0.3);
  --shadow-heavy: rgba(0, 0, 0, 0.6);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --border-radius: 16px;
  --border-radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 400;
}


.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


.menu-bar {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin: 1rem;
  padding: 1rem 2rem;
  box-shadow: 0 8px 32px var(--shadow-light);
  position: sticky;
  top: 1rem;
  z-index: 100;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}


.container {
  flex: 1;
  padding: 0 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.top-section,
.bottom-section {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.top-section {
  grid-template-columns: minmax(300px, 400px) 1fr;
}

.bottom-section {
  grid-template-columns: 1fr 2fr 1fr;
}


.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: 0 8px 32px var(--shadow-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 64px var(--shadow-heavy);
  border-color: var(--accent-primary);
}

.card:hover::before {
  opacity: 1;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}


.profile-card {
  overflow: hidden;
  padding: 0;
}

.profile-banner {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  position: relative;
  margin-top: -30px;
  z-index: 2;
}

.profile-avatar {
  flex-shrink: 0;
}

.pfp {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-card);
  box-shadow: 0 4px 20px var(--shadow-heavy);
  transition: var(--transition);
}

.profile-details {
  flex: 1;
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pronouns {
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
  display: inline-block;
}


.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.skill-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
}

.skill-item:hover {
  transform: translateY(-2px) scale(1.05);
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 8px 24px var(--shadow-light);
}

.skill-item img,
.skill-item svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 4px var(--shadow-light));
}

.asterisk-icon {
  font-size: 32px;
  font-weight: bold;
  color: #ff6b35;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.skill-tooltip {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  z-index: 10;
}

.skill-item:hover .skill-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}


.updates-list {
  list-style: none;
}

.update-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.update-item:last-child {
  border-bottom: none;
}

.update-badge {
  background: var(--accent-primary);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.update-text {
  color: var(--text-secondary);
}


.about-text {
  color: var(--text-secondary);
  line-height: 1.7;
}


.iframe-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--bg-secondary);
  height: 200px;
}

.display-box-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
}


.media-player {
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  max-width: 300px;
}

.media-info {
  text-align: center;
  margin-bottom: 0.75rem;
}

.track-title {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.media-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.control-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: var(--transition);
  font-size: 1rem;
  flex-shrink: 0;
}

.control-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  transform: scale(1.1);
}

.progress-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.progress-bar {
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent-primary);
  width: 0%;
  transition: width 0.1s ease;
  border-radius: 2px;
}

.time-display {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
}


.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  margin-top: auto;
  padding: 2rem 1rem 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-center {
  text-align: center;
}

.footer-right {
  text-align: right;
}

.powered-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.php-logo {
  width: 24px;
  height: 24px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.875rem;
}

.footer-link:hover {
  color: var(--accent-primary);
}

.copyright,
.made-with {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-divider {
  height: 1px;
  background: var(--border-color);
  margin: 1.5rem 0 1rem;
}

.footer-info {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.info-item {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.info-value {
  color: var(--accent-primary);
  font-weight: 600;
}


@media (max-width: 1024px) {
  .top-section {
    grid-template-columns: 1fr;
  }
  
  .bottom-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 0.5rem 1rem;
  }
  
  .menu-bar {
    margin: 0.5rem;
    padding: 1rem;
  }
  
  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .card {
    padding: 1rem;
  }
  
  .profile-info {
    padding: 1rem;
    margin-top: -20px;
  }
  
  .pfp {
    width: 60px;
    height: 60px;
  }
  
  .profile-name {
    font-size: 1.25rem;
  }
  
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 0.75rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-right {
    text-align: center;
  }
  
  .footer-nav {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .footer-info {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .media-player {
    max-width: 100%;
  }
  
  .media-controls {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .progress-container {
    order: -1;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .nav-links {
    justify-content: space-around;
  }
  
  .nav-link {
    padding: 0.5rem;
    font-size: 0.875rem;
  }
  
  .profile-info {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.card {
  animation: fadeInUp 0.6s ease-out;
}

.card:nth-child(2) {
  animation-delay: 0.1s;
}

.card:nth-child(3) {
  animation-delay: 0.2s;
}


@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


.nav-link:focus,
.footer-link:focus,
.control-btn:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}