/* 
 * Cyberpunk / Glassmorphism Theme 
 * Designed for visual impact and performance.
 */

:root {
  /* Colors - Neon & Dark */
  --bg-color: #050505;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent-primary: #00f3ff; /* Cyan Neon */
  --accent-secondary: #ff00ff; /* Pink Neon */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.15);
  --card-hover: rgba(0, 243, 255, 0.05);

  /* Typography */
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Outfit", sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;

  /* Animation */
  --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="light"] {
  --bg-color: #f0f0f3;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --accent-primary: #0051ff;
  --accent-secondary: #ff0055;
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(0, 0, 0, 0.05);
  --glass-highlight: rgba(255, 255, 255, 0.8);
  --card-hover: rgba(0, 81, 255, 0.05);
}

/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition:
    background-color 0.5s ease,
    color 0.5s ease;
}

/* Background Effects */
.background-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 10s infinite alternate ease-in-out;
}

.orb-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--accent-primary), transparent 70%);
}

.orb-2 {
  bottom: -10%;
  right: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, var(--accent-secondary), transparent 70%);
  animation-delay: -5s;
}

.noise-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.07;
  mix-blend-mode: overlay;
}

/* Layout */
.container {
  width: 100%;
  max-width: 680px;
  padding: var(--spacing-lg) var(--spacing-sm);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  position: relative;
  z-index: 1;
}

/* Theme Toggle */
.theme-toggle {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s var(--ease-elastic);
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  background: var(--glass-highlight);
  box-shadow: 0 0 15px var(--accent-primary);
}

/* Profile Section */
.profile-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  animation: fadeInDown 0.8s ease-out;
}

.profile-img-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: var(--spacing-xs);
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.profile-status {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  background: #00ff88;
  border-radius: 50%;
  border: 3px solid var(--bg-color);
  box-shadow: 0 0 10px #00ff88;
}

.profile-name {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(
    135deg,
    var(--text-primary),
    var(--text-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0;
}

.profile-bio {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 80%;
  margin-bottom: var(--spacing-sm);
}

/* Links Section */
.links-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  width: 100%;
}

.link-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: var(--spacing-md); /* Taller buttons */
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center; /* Center vertically */
  justify-content: space-between; /* Space out content and icon */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s var(--ease-elastic);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.5s ease-out backwards;
}

/* Stagger Animations for Links */
.link-card:nth-child(1) {
  animation-delay: 0.1s;
}
.link-card:nth-child(2) {
  animation-delay: 0.2s;
}
.link-card:nth-child(3) {
  animation-delay: 0.3s;
}
.link-card:nth-child(4) {
  animation-delay: 0.4s;
}
.link-card:nth-child(5) {
  animation-delay: 0.5s;
}
.link-card:nth-child(6) {
  animation-delay: 0.6s;
}

.link-card:hover {
  transform: translateY(-4px) scale(1.02);
  background: var(--card-hover);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 40px -10px rgba(0, 243, 255, 0.2);
}

.link-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transform: translateX(-100%);
  transition: 0.5s;
}

.link-card:hover::before {
  transform: translateX(100%);
}

.link-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05); /* Subtle icon background */
  border-radius: 12px;
  color: var(--accent-primary);
  margin-right: var(--spacing-sm); /* Spacing between icon and text */
}

/* Center text container properly */
.link-content {
  flex-grow: 1; /* Take up available space */
  text-align: center; /* Center text */
  /* Counteract the icon width to visually center text in the card, optional but looks better */
  padding-right: 40px;
}

.link-title {
  font-weight: 600;
  font-size: 1.1rem;
  display: block;
}

/* Coming Soon State */
.link-card.coming-soon {
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
}

/* Badge Style */
.badge {
    position: absolute;
    right: var(--spacing-md); /* Align with card padding */
    background: var(--accent-secondary);
    color: var(--bg-color);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 0 10px var(--accent-secondary);
    /* margin-left removed as we are now absolute positioning */
}

/* Carousel Section */
.carousel-section {
  width: 100%;
  padding-bottom: var(--spacing-sm);
}

.carousel-track {
  display: flex;
  gap: var(--spacing-sm);
  width: 100%; /* Full width */
  justify-content: space-between;
}

.carousel-card {
  flex: 1; /* Distribute space evenly */
  min-width: 0; /* Allow shrinking if needed */
  height: 240px; /* Reduced height to look more like big buttons than portrait cards */
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm);
  text-decoration: none;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.carousel-card:hover {
  transform: scale(1.05);
  background: var(--glass-highlight);
  color: var(--text-primary);
  border-color: var(--accent-secondary);
}

.carousel-icon {
  font-size: 2rem;
  margin-bottom: var(--spacing-xs);
  color: var(--text-primary);
}

/* Footer */
.footer {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: auto;
  padding-bottom: var(--spacing-lg);
  opacity: 0.8;
}

#local-time {
  font-family: var(--font-heading);
  color: var(--accent-primary);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

/* Keyframes */
@keyframes float {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(20px, 40px);
  }
}

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

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

/* Mobile Optimizations */
@media (max-width: 480px) {
  .container {
    padding: var(--spacing-md);
  }

  .link-card {
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .profile-name {
    font-size: 1.75rem;
  }
}
