/* ==========================
   RESET & BASIC STYLES
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: #f0f0f0;
  background-color: #0d1117;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==========================
   HERO / LANDING
========================== */
#hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #58a6ff;
  margin-bottom: 20px;
}

.hero-content h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #c9d1d9;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #c9d1d9;
}

.hero-buttons .btn,
.hero-buttons .btn-outline {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s;
  margin: 5px;
  cursor: pointer;
}

.hero-buttons .btn {
  background-color: #58a6ff;
  color: #fff;
}

.hero-buttons .btn:hover {
  background-color: #1f6feb;
}

.hero-buttons .btn-outline {
  border: 2px solid #58a6ff;
  color: #58a6ff;
  background: transparent;
}

.hero-buttons .btn-outline:hover {
  background-color: #58a6ff;
  color: #fff;
}

/* NAVIGATION */
.hero-nav {
  position: absolute;
  top: 20px;
  right: 50px;
  z-index: 2;
}

.hero-nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

.hero-nav ul li a {
  color: #c9d1d9;
  font-weight: 600;
  transition: color 0.3s;
}

.hero-nav ul li a:hover {
  color: #58a6ff;
}

/* ==========================
   SECTIONS
========================== */
.section {
  padding: 80px 0;
}

.section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  color: #58a6ff;
}

/* ==========================
   ABOUT
========================== */
.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: center;
  justify-content: center;
}

.about-left {
  flex: 1 1 300px;
  text-align: center;
}

.profile-pic {
  max-width: 250px;
  border-radius: 50%;
  border: 4px solid #58a6ff;
  transition: transform 0.3s, box-shadow 0.3s;
}

.profile-pic:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #58a6ff;
}

.about-right {
  flex: 2 1 400px;
}

.about-list {
  margin-top: 20px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.about-list li {
  background-color: #161b22;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s, background 0.3s;
}

.about-list li:hover {
  transform: translateY(-5px);
  background-color: #1f2937;
}

/* ==========================
   SKILLS
========================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

.skill-card {
  background-color: #161b22;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.skill-bar {
  height: 20px;
  background-color: #30363d;
  border-radius: 10px;
  margin-top: 10px;
  overflow: hidden;
}

.skill-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #58a6ff, #1f6feb);
  border-radius: 10px;
  transition: width 2s ease-in-out;
}

/* ==========================
   TIMELINE / RESUME
========================== */
.resume-section {
  margin-bottom: 50px;
}

.resume-list {
  list-style: none;
  padding-left: 0;
}

.resume-list li {
  padding: 10px 15px;
  margin-bottom: 10px;
  background-color: #161b22;
  border-radius: 10px;
  transition: transform 0.3s, background 0.3s;
}

.resume-list li:hover {
  transform: translateY(-3px);
  background-color: #1f2937;
}

.timeline {
  position: relative;
  margin: 20px 0;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: #58a6ff;
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 30px;
}

.timeline-item h4 {
  margin-bottom: 5px;
  color: #c9d1d9;
}

.timeline-item p {
  color: #8b949e;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 5px;
  width: 12px;
  height: 12px;
  background-color: #58a6ff;
  border-radius: 50%;
}

/* ==========================
   PROJECTS / PORTFOLIO
========================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.project-card {
  background-color: #161b22;
  padding: 25px;
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 15px 25px rgba(0,0,0,0.5);
}

/* ==========================
   CONTACT
========================== */
.contact-container {
  text-align: center;
}

.contact-buttons .btn,
.contact-buttons .btn-outline {
  display: inline-block;
  margin: 10px;
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.contact-buttons .btn {
  background-color: #58a6ff;
  color: #fff;
}

.contact-buttons .btn:hover {
  background-color: #1f6feb;
}

.contact-buttons .btn-outline {
  border: 2px solid #58a6ff;
  color: #58a6ff;
  background: transparent;
}

.contact-buttons .btn-outline:hover {
  background-color: #58a6ff;
  color: #fff;
}

/* ==========================
   FOOTER
========================== */
footer {
  background-color: #161b22;
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid #30363d;
}

.footer-socials {
  margin-top: 10px;
}

.footer-socials a {
  margin: 0 10px;
  color: #58a6ff;
  transition: color 0.3s;
}

.footer-socials a:hover {
  color: #1f6feb;
}

/* ==========================
   FADE-IN ANIMATION
========================== */
.section,
.project-card,
.timeline-item,
.skill-card,
.about-list li,
.resume-list li {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    align-items: center;
  }

  .hero-nav {
    top: 10px;
    right: 20px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }
}
