:root {
  --bg-dark: #0f111a;
  --bg-light: #1e2233;
  --text-light: #e0e0e0;
  --accent-color: #7f5af0;
  --accent-hover: #a36cff;
  --highlight: #bb86fc;
  --cursor-size: 18px;
  --cursor-hover-size: 50px;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden;
  cursor: none;
  transition: background 0.3s ease, color 0.3s ease;
}

body.light-mode {
  --bg-dark: #f2f2f2;
  --bg-light: #fff;
  --text-light: #111;
  background: var(--bg-dark);
  color: var(--text-light);
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--cursor-size);
  height: var(--cursor-size);
  background: var(--accent-color);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  z-index: 9999;
  box-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color);
}

.cursor-hover {
  width: var(--cursor-hover-size);
  height: var(--cursor-hover-size);
  background: transparent;
  border: 2px solid var(--accent-hover);
  box-shadow: 0 0 30px var(--accent-hover);
}

/* Ripple effect */
.ripple {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--accent-hover);
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(8);
    opacity: 0;
  }
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 3rem;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
  transition: all 0.3s ease;
}

/* Glowing button */
.glow-button {
  border: 2px solid var(--accent-color);
  padding: 6px 18px;
  border-radius: 30px;
  color: var(--accent-color);
  background: transparent;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
}

.glow-button::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle, var(--accent-hover), transparent);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0.4;
  transition: transform 0.5s ease;
  z-index: -1;
  border-radius: 50%;
}

.glow-button:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

.glow-button:hover {
  color: #0f0f0f;
  background: var(--accent-color);
  box-shadow: 0 0 20px var(--accent-color), 0 0 40px var(--accent-hover);
}

/* Glitch Effect */
.glitch-text {
  position: relative;
  color: var(--accent-color);
  font-weight: bold;
  letter-spacing: 1px;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(href);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--highlight);
  clip-path: polygon(0 0, 100% 0, 100% 20%, 0 20%);
  animation: glitch 2s infinite alternate-reverse;
}

@keyframes glitch {
  0% { transform: translate(0); opacity: 1; }
  20% { transform: translate(-2px, 2px); opacity: 0.8; }
  40% { transform: translate(2px, -1px); opacity: 0.9; }
  60% { transform: translate(-1px, -2px); opacity: 0.95; }
  80% { transform: translate(1px, 1px); opacity: 0.85; }
  100% { transform: translate(0); opacity: 1; }
}

/* Intro Section */
.intro {
  background: linear-gradient(135deg, #292e4e, #2a2e4f);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(127, 90, 240, 0.5);
  margin-bottom: 4rem;
  transition: transform 0.3s ease;
  perspective: 1000px;
}

.intro h1 {
  font-size: 2.7rem;
  margin-bottom: 1rem;
}

.typing {
  background: linear-gradient(90deg, var(--accent-color), var(--highlight));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  font-size: 2.8rem;
}

/* Terminal Section */
.code-section {
  display: flex;
  justify-content: center;
}

.terminal {
  background: #1e1e2e;
  border-radius: 10px;
  max-width: 600px;
  width: 100%;
  overflow: hidden;
  font-family: monospace;
  box-shadow: 0 0 30px rgba(127, 90, 240, 0.4);
}

.terminal-header {
  background: #2c2c3c;
  padding: 0.5em 1em;
  display: flex;
  gap: 0.4em;
}

.terminal-header .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.code-content {
  padding: 1.5em;
  color: #ccc;
  font-size: 0.95rem;
}

.code-content .string { color: #bb86fc; }
.code-content .var { color: #7f5af0; }
.code-content .keyword { color: #ff6e6e; }
.code-content .func { color: #62d2ff; }

/* Footer */
footer {
  margin-top: 4rem;
  color: #888;
  font-size: 0.9rem;
}

footer a {
  color: var(--accent-color);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--bg-light);
  color: var(--text-light);
  border: none;
  padding: 0.6em 0.9em;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: 0 0 10px rgba(127, 90, 240, 0.3);
  z-index: 1000;
}

/* Easter Egg Modal */
.easter-egg-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.easter-egg-modal.show {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: #1e1e2e;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 0 40px rgba(127,90,240,0.5);
  color: #fff;
}

.modal-content button {
  margin-top: 1.5rem;
  background: var(--accent-color);
  border: none;
  color: white;
  padding: 0.7em 1.2em;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.modal-content button:hover {
  background: var(--accent-hover);
}
