/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #111128;
  --bg-card: #1a1a3e;
  --accent: #00f0ff;
  --accent2: #7b2fff;
  --accent3: #ff2d95;
  --text: #e0e0ff;
  --text-muted: #8888bb;
  --glow: 0 0 20px rgba(0, 240, 255, 0.3);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== PARTICLES ===== */
.bg-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: floatUp 6s infinite;
}

@keyframes floatUp {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 0.7; }
  90% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-10vh) scale(1.5); }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(123, 47, 255, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(0, 240, 255, 0.1) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.glitch {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent2), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glitchPulse 3s ease-in-out infinite;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glitch::before {
  animation: glitch1 3s infinite;
  clip-path: inset(20% 0 30% 0);
}

.glitch::after {
  animation: glitch2 3s infinite;
  clip-path: inset(60% 0 5% 0);
}

@keyframes glitch1 {
  0%, 90%, 100% { transform: translate(0); }
  92% { transform: translate(-3px, 1px); }
  94% { transform: translate(3px, -1px); }
}

@keyframes glitch2 {
  0%, 90%, 100% { transform: translate(0); }
  93% { transform: translate(2px, 2px); }
  95% { transform: translate(-2px, -2px); }
}

@keyframes glitchPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin: 20px 0 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn {
  display: inline-block;
  padding: 14px 35px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cta-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--glow), 0 10px 30px rgba(123, 47, 255, 0.3);
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4); }
  50% { box-shadow: 0 0 0 15px rgba(0, 240, 255, 0); }
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
  position: relative;
}

.section-dark {
  background: var(--bg-secondary);
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 50px;
}

.section-title .icon {
  font-size: 2rem;
  margin-right: 10px;
}

/* ===== CARDS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 35px 25px;
  text-align: center;
  border: 1px solid rgba(0, 240, 255, 0.08);
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
  opacity: 0;
  transform: translateY(40px);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--glow);
  border-color: rgba(0, 240, 255, 0.25);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--accent);
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== SKILLS ===== */
.skills-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.skill-name {
  font-weight: 600;
  font-size: 1rem;
}

.skill-level {
  color: var(--accent);
  font-weight: 700;
}

.skill-bar {
  width: 100%;
  height: 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.skill-fill.animated {
  width: var(--target-width);
}

/* ===== GEAR ===== */
.gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
}

.gear-card {
  background: var(--bg-card);
  border-radius: 18px;
  padding: 30px 20px;
  text-align: center;
  border: 1px solid rgba(123, 47, 255, 0.1);
  transition: transform 0.4s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}

.gear-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, rgba(123, 47, 255, 0.08), transparent 30%);
  animation: gearSpin 5s linear infinite;
  opacity: 0;
  transition: opacity 0.3s;
}

.gear-card:hover::before {
  opacity: 1;
}

.gear-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(123, 47, 255, 0.2);
}

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

.gear-img {
  font-size: 3.5rem;
  margin-bottom: 15px;
  position: relative;
}

.gear-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--accent2);
  position: relative;
}

.gear-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 15px;
  position: relative;
}

.price-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent2), var(--accent3));
  color: #fff;
  padding: 5px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  position: relative;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 50px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2), var(--accent3));
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s, transform 0.6s;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-marker {
  position: absolute;
  left: -38px;
  top: 5px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.timeline-content {
  background: var(--bg-card);
  padding: 25px;
  border-radius: 16px;
  border: 1px solid rgba(0, 240, 255, 0.08);
}

.timeline-content h3 {
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== TIPS ===== */
.tips-container {
  max-width: 650px;
  margin: 0 auto;
  position: relative;
  min-height: 200px;
}

.tip-card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.5s, transform 0.5s;
  pointer-events: none;
}

.tip-card.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

.tip-quote {
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 600;
  text-align: center;
  padding: 25px 30px;
  background: var(--bg-card);
  border-radius: 20px;
  border-left: 4px solid var(--accent);
}

.tip-author {
  text-align: center;
  margin-top: 15px;
  color: var(--accent2);
  font-weight: 700;
}

.tip-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.tip-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.tip-btn:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

.tip-dots {
  display: flex;
  gap: 8px;
}

.tip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.tip-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* ===== CTA SECTION ===== */
.section-cta {
  background: linear-gradient(135deg, rgba(123, 47, 255, 0.1), rgba(0, 240, 255, 0.05));
  text-align: center;
}

.cta-content h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.cta-outline:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 30px 20px;
  border-top: 1px solid rgba(0, 240, 255, 0.08);
}

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

.footer-sub {
  margin-top: 5px;
  font-size: 0.8rem !important;
  opacity: 0.6;
}

/* ===== CONFETTI ===== */
.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  z-index: 9999;
  animation: confettiFall 2.5s ease-out forwards;
  pointer-events: none;
}

@keyframes confettiFall {
  0% { opacity: 1; transform: translateY(-10vh) rotate(0deg); }
  100% { opacity: 0; transform: translateY(105vh) rotate(720deg); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 20px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .glitch {
    font-size: 2.2rem;
  }

  .tip-quote {
    font-size: 1.1rem;
    padding: 20px;
  }

  .timeline {
    padding-left: 40px;
  }
}