/* ======================
   MODERN PORTFOLIO 2025
   ====================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #e6cf78;
  --primary-dark: #c0a062;
  --accent: #00eaff;
  --accent-glow: rgba(0, 234, 255, 0.4);
  --bg-dark: #0a0a0f;
  --bg-card: rgba(15, 15, 25, 0.8);
  --text: #ffffff;
  --text-muted: #a0a0b0;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --radius: 20px;
  --radius-sm: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animated Background - Optimized for performance */
.bg-animation {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg-dark);
}

.bg-animation::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 0, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 234, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(230, 207, 120, 0.06) 0%, transparent 40%);
  /* Removed animation for better performance */
}

@keyframes bgFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, 2%) rotate(1deg); }
  66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  transition: var(--transition);
}

header.scrolled {
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Rowdies', sans-serif;
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--text);
}

.logo span { color: var(--primary); }

nav ul {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: var(--transition);
}

nav a:hover {
  color: var(--text);
  background: var(--glass);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
}

.hero-content {
  max-width: 900px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero h1 {
  font-family: 'Rowdies', sans-serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary) 0%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

/* Hero Social Links */
.hero-socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-socials a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}

.hero-socials a:hover {
  transform: translateY(-5px) scale(1.1);
  border-color: var(--primary);
  background: var(--primary);
}

.hero-socials svg {
  width: 20px;
  height: 20px;
  fill: var(--text-muted);
  transition: var(--transition);
}

.hero-socials a:hover svg {
  fill: #000;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #000;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(230, 207, 120, 0.3);
}

.btn-secondary {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid var(--glass-border);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 20px; }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* SECTIONS */
section {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Rowdies', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}


/* QUOTE */
.quote-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  position: relative;
}

.quote-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 150px;
  font-family: Georgia, serif;
  color: var(--primary);
  opacity: 0.1;
}

.quote-text {
  font-size: 1.5rem;
  font-style: italic;
  color: #22ff00;
  margin-bottom: 1rem;
}

.quote-author {
  color: var(--primary);
  font-weight: 600;
}

/* COUNTDOWN - DaisyUI Style */
.countdown-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
}

.countdown-title {
  font-family: 'Rowdies', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.countdown {
  display: inline-flex;
  position: relative;
}

.countdown > span {
  height: 5rem;
  width: 4rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.countdown > span::before {
  content: attr(style);
  content: var(--value);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rowdies', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 2px 8px rgba(230, 207, 120, 0.3);
}

.countdown > span::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.countdown-item .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

/* Life countdown variant */
.life-countdown .countdown > span::before {
  color: #ff4757;
  text-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

.life-countdown .countdown > span {
  background: linear-gradient(145deg, rgba(255, 71, 87, 0.15), rgba(255, 71, 87, 0.05));
  border-color: rgba(255, 71, 87, 0.2);
}

/* Hover effects */
.countdown-item:hover .countdown > span {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(230, 207, 120, 0.2);
  transition: all 0.3s ease;
}

.life-countdown:hover .countdown > span {
  border-color: #ff4757;
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.2);
}

/* Responsive countdown */
@media (max-width: 600px) {
  .countdown > span {
    height: 4rem;
    width: 3.2rem;
  }
  
  .countdown > span::before {
    font-size: 2rem;
  }
  
  .countdown-grid {
    gap: 0.75rem;
  }
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 2rem 1rem;
  text-align: center;
  transition: var(--transition);
}

.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 234, 255, 0.15);
}

.skill-card i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.skill-card .skill-name {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ACHIEVEMENTS */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.achievement-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.achievement-card:hover {
  border-color: var(--accent);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0 30px var(--accent-glow);
}

.achievement-card img {
  width: 100px;
  height: 100px;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

.achievement-card h3 {
  font-size: 1.1rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Disable float animation to prevent lag */
.achievement-card img {
  width: 100px;
  height: 100px;
  margin-bottom: 1rem;
  /* animation: float 3s ease-in-out infinite; - removed for performance */
  transition: transform 0.3s ease;
}

.achievement-card:hover img {
  transform: translateY(-8px);
}

/* STATS */
.stats-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.stats-grid img {
  border-radius: var(--radius-sm);
  transition: var(--transition);
  max-width: 100%;
}

.stats-grid img:hover {
  transform: translateY(-5px);
  filter: brightness(1.1);
}

/* CONTACT */
.contact-container {
  max-width: 600px;
  margin: 0 auto;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 3rem;
}

.contact-info {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-info h3 {
  font-family: 'Rowdies', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-info a {
  color: var(--primary);
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition);
}

.contact-info a:hover { color: var(--accent); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  color: var(--text);
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

.form-input::placeholder { color: var(--text-muted); }

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 207, 120, 0.1);
}

textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  background: var(--primary);
  color: #000;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* FOOTER */
footer {
  padding: 4rem 2rem;
  text-align: center;
  border-top: 1px solid var(--glass-border);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-link {
  width: 50px;
  height: 50px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  text-decoration: none;
}

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

/* Individual social link colors */
.social-link[aria-label="GitHub"]:hover {
  background: #333;
  border-color: #333;
}

.social-link[aria-label="LinkedIn"]:hover {
  background: #0077b5;
  border-color: #0077b5;
}

.social-link[aria-label="HackerRank"]:hover {
  background: #2ec866;
  border-color: #2ec866;
}

.social-link[aria-label="Email"]:hover {
  background: #ea4335;
  border-color: #ea4335;
}

.social-link svg {
  width: 24px;
  height: 24px;
  fill: var(--text);
  transition: var(--transition);
}

.social-link:hover svg {
  fill: #fff;
}

.social-link img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  transition: var(--transition);
}

.social-link:hover img { filter: brightness(0) invert(1); }

.footer-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-text .heart {
  color: #ff4757;
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* SCROLL TOP */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(230, 207, 120, 0.4);
}

.scroll-top-btn svg {
  width: 24px;
  height: 24px;
  fill: #000;
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  header { padding: 1rem; }
  .menu-toggle { display: block; }
  
  nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    padding: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
  }
  
  nav.open { transform: translateY(0); opacity: 1; }
  nav ul { flex-direction: column; gap: 0.5rem; }
  nav a { display: block; text-align: center; }
  
  .hero { padding: 6rem 1rem 3rem; }
  .timer-block { padding: 1rem 1.5rem; min-width: 80px; }
  .timer-block span { font-size: 2.5rem; }
  section { padding: 4rem 1rem; }
  .contact-card { padding: 2rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ======================
   ADVANCED FEATURES 2025
   ====================== */

/* Custom Cursor */
.cursor {
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.15s ease, opacity 0.15s ease;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
}

.cursor.hover {
  transform: translate(-50%, -50%) scale(1.5);
  background: rgba(230, 207, 120, 0.1);
}

.cursor-trail {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.3;
  transform: translate(-50%, -50%);
}

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 10001;
  transition: width 0.1s ease;
}

/* Music Player */
.music-player {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

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

.music-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.music-btn:hover {
  transform: scale(1.1);
}

.music-btn svg {
  width: 18px;
  height: 18px;
  fill: #000;
}

.music-info {
  display: flex;
  flex-direction: column;
}

.music-title {
  font-size: 0.75rem;
  color: var(--text);
  font-weight: 500;
}

.music-status {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.volume-slider {
  width: 60px;
  height: 4px;
  -webkit-appearance: none;
  background: var(--glass-border);
  border-radius: 2px;
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
}

/* Visualizer bars */
.visualizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
}

.visualizer span {
  width: 3px;
  background: var(--primary);
  border-radius: 1px;
  animation: visualize 0.5s ease infinite alternate;
}

.visualizer span:nth-child(1) { height: 30%; animation-delay: 0s; }
.visualizer span:nth-child(2) { height: 60%; animation-delay: 0.1s; }
.visualizer span:nth-child(3) { height: 40%; animation-delay: 0.2s; }
.visualizer span:nth-child(4) { height: 80%; animation-delay: 0.3s; }
.visualizer span:nth-child(5) { height: 50%; animation-delay: 0.4s; }

.music-player.paused .visualizer span {
  animation: none;
  height: 20%;
}

@keyframes visualize {
  to { height: 100%; }
}

/* Page Transition */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.page-transition.active {
  opacity: 1;
  pointer-events: all;
}

.page-transition .loader {
  width: 50px;
  height: 50px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Particles */
.particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: floatParticle 15s infinite linear;
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.theme-btn:hover {
  border-color: var(--primary);
  transform: scale(1.1);
}

.theme-btn.active {
  background: var(--primary);
  border-color: var(--primary);
}

/* Light Theme */
body.light-theme {
  --bg-dark: #f5f5f7;
  --bg-card: rgba(255, 255, 255, 0.9);
  --text: #1a1a2e;
  --text-muted: #666680;
  --glass: rgba(0, 0, 0, 0.03);
  --glass-border: rgba(0, 0, 0, 0.1);
}

body.light-theme .bg-animation::before {
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 0, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 180, 200, 0.08) 0%, transparent 50%);
}

/* Typing Animation */
.typing-text {
  overflow: hidden;
  border-right: 3px solid var(--primary);
  white-space: nowrap;
  animation: typing 3s steps(30) forwards, blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  50% { border-color: transparent; }
}

/* Easter Egg - Konami Code */
.easter-egg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 100001;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
}

.easter-egg.active {
  display: flex;
  animation: fadeIn 0.5s ease;
}

.easter-egg h2 {
  font-family: 'Rowdies', sans-serif;
  font-size: 3rem;
  background: linear-gradient(135deg, #ff0080, #7928ca, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow 2s linear infinite;
}

@keyframes rainbow {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.easter-egg p {
  color: var(--text-muted);
  font-size: 1.2rem;
}

.easter-egg .close-btn {
  background: var(--primary);
  color: #000;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.easter-egg .close-btn:hover {
  transform: scale(1.05);
}

/* Confetti */
.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  z-index: 100002;
  pointer-events: none;
}

/* Filter Buttons */
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--text);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #000;
}

/* Project card filter animation */
.project-card.hidden {
  display: none;
}

.project-card.show {
  animation: fadeInUp 0.5s ease;
}

/* Tooltip */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 100;
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-10px);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .cursor, .cursor-dot, .cursor-trail { display: none; }
  .music-player { 
    bottom: 5rem; 
    left: 1rem;
    padding: 0.4rem 0.75rem 0.4rem 0.4rem;
  }
  .music-info { display: none; }
  .volume-slider { width: 40px; }
  .theme-toggle { display: none; }
}

@media (pointer: coarse) {
  .cursor, .cursor-dot, .cursor-trail { display: none; }
}
