/* --- CSS VARIABLES & RESET --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #00ff88;
  --secondary: #0066ff;
  --dark: #0a0e27;
  --darker: #050814;
  --text: #e0e0e0;
  --accent: #ff0080;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--darker);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- BACKGROUND ANIMATION --- */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(0, 255, 136, 0.1);
  animation: float-up linear infinite;
}

@keyframes float-up {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }

  20% {
    opacity: 0.5;
  }

  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

/* --- NAVIGATION --- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(10, 14, 39, 0.3);
  /* Transparent initially */
  border-bottom: 1px solid rgba(0, 255, 136, 0.05);
  transition: all 0.3s ease;
}

nav.scrolled {
  padding: 1rem 5%;
  background: rgba(10, 14, 39, 0.95);
  border-bottom: 1px solid rgba(0, 255, 136, 0.2);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary);
}

/* Mobile Menu Toggle */
.menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

/* --- SECTIONS --- */
section {
  min-height: 100vh;
  padding: 6rem 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.section-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- HERO --- */
.hero {
  position: relative;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--secondary),
    var(--accent)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient 3s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradient {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.hero h2 {
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(224, 224, 224, 0.8);
  margin-bottom: 2rem;
}

/* --- BUTTONS --- */
.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--darker);
  box-shadow: 0 5px 25px rgba(0, 255, 136, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(0, 255, 136, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--darker);
  transform: translateY(-3px);
}

/* --- ABOUT & STATS --- */
.about-content {
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: rgba(224, 224, 224, 0.9);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.stat-card {
  background: rgba(0, 255, 136, 0.05);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 136, 0.2);
  transition: all 0.3s ease;
  text-align: center;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* --- SKILLS --- */
.skills-container {
  max-width: 1200px;
  width: 100%;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.skill-category {
  background: rgba(0, 255, 136, 0.05);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 136, 0.2);
  transition: all 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(0, 255, 136, 0.1);
}

.skill-category h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.skill-item {
  margin-bottom: 1rem;
}

.skill-name {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.skill-bar {
  height: 8px;
  background: rgba(0, 255, 136, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 10px;
  width: 0;
  /* JS will animate this */
  transition: width 1.5s cubic-bezier(0.1, 0.5, 0.5, 1);
}

/* --- EXPERIENCE --- */
.experience-container {
  max-width: 1000px;
  width: 100%;
}

.timeline {
  position: relative;
  padding-left: 50px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  height: 100%;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  background: rgba(0, 255, 136, 0.05);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 136, 0.2);
  transition: all 0.3s ease;
}

.timeline-item:hover {
  transform: translateX(10px);
  border-color: var(--primary);
  background: rgba(0, 255, 136, 0.1);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -47px;
  top: 2rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--darker);
  border: 3px solid var(--primary);
  box-shadow: 0 0 10px var(--primary);
  z-index: 2;
}

.timeline-date {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.timeline-company {
  color: var(--secondary);
  margin-bottom: 1rem;
  font-style: italic;
}

.timeline-description ul {
  list-style-position: inside;
  margin-top: 1rem;
  color: rgba(224, 224, 224, 0.8);
}

.timeline-description li {
  margin-bottom: 0.5rem;
}

/* --- PROJECTS --- */
.projects-container {
  max-width: 1200px;
  width: 100%;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: rgba(0, 255, 136, 0.05);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 136, 0.2);
  transition: all 0.3s ease;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(0, 255, 136, 0.2);
}

.project-content {
  padding: 2rem;
}

.project-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.project-card p {
  color: rgba(224, 224, 224, 0.8);
  margin-bottom: 1.5rem;
  min-height: 3rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: rgba(0, 102, 255, 0.2);
  color: var(--secondary);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid rgba(0, 102, 255, 0.3);
}

/* --- CONTACT --- */
.contact-container {
  max-width: 800px;
  width: 100%;
  text-align: center;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.contact-item {
  background: rgba(0, 255, 136, 0.05);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 136, 0.2);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

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

.contact-item a:hover {
  color: var(--primary);
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.social-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 255, 136, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  text-decoration: none;
  border: 1px solid rgba(0, 255, 136, 0.3);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary);
  color: var(--darker);
  transform: translateY(-5px);
}

/* --- FOOTER --- */
footer {
  text-align: center;
  padding: 2rem;
  background: var(--darker);
  border-top: 1px solid rgba(0, 255, 136, 0.1);
  margin-top: auto;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero h2 {
    font-size: 1.3rem;
  }

  .menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--darker);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(0, 255, 136, 0.2);
  }

  .nav-links.active {
    right: 0;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 4rem 5%;
  }

  .timeline {
    padding-left: 30px;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-item::before {
    left: -37px;
  }
}

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

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

  40% {
    transform: translateX(-50%) translateY(-20px);
  }

  60% {
    transform: translateX(-50%) translateY(-10px);
  }
}

.scroll-indicator::before {
  content: "↓";
  font-size: 2rem;
  color: var(--primary);
}
