@import url('https://fonts.googleapis.com/css2?family=Epilogue:wght@400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Epilogue', sans-serif;
  background: linear-gradient(to right, #f8f9fa, #ffffff);
  color: #2d2d2d;
  line-height: 1.6;
}

/* ========== HEADER ========== */
header {
  width: 100%;
  height: 80px;
  padding: 0 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #9b9191;
  background-color: #fff;
}

.logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

nav ul li a {
  text-decoration: none;
  color: #263238;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a.active,
nav ul li a:hover {
  color: #007bff;
}

#menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
}

.menu-icon img {
  width: 30px;
  height: 30px;
}

/* ========== MAIN SECTIONS ========== */
.about-me {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 40px;
  background-color: #ffffff;
}

.about-img img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-text {
  max-width: 600px;
  text-align: center;
}

.about-text h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 18px;
  margin-bottom: 15px;
}

.about-text .btn {
  display: inline-block;
  background-color: #007bff;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.about-text .btn:hover {
  background-color: #0056b3;
}

/* ========== SKILLS ========== */
.skills {
  padding: 60px 20px;
  background-color: #f8f9fa;
  text-align: center;
}

.skills h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: #2d2d2d;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.skills-grid div {
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.skills-grid div:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.skills-grid i {
  font-size: 32px;
}

/* Individual colors */
.fa-html5 { color: #e34c26; }
.fa-css3-alt { color: #264de4; }
.fa-js { color: #f0db4f; }
.fa-git-alt { color: #f1502f; }
.fa-github { color: #171515; }
.fa-react { color: #61dafb; }
.fa-bootstrap { color: #7952b3; }
.fa-mobile-alt { color: #444; }

/* ========== TIMELINE ========== */
.timeline {
  padding: 60px 20px;
  text-align: center;
  background-color: #ffffff;
}

.timeline h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.timeline ul {
  list-style: none;
  padding-left: 0;
  max-width: 700px;
  margin: 0 auto;
}

.timeline li {
  margin-bottom: 15px;
  font-size: 17px;
}

/* ========== VISION ========== */
.vision {
  padding: 60px 20px;
  background-color: #f8f9fa;
  text-align: center;
}

.vision h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.vision p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 18px;
}

/* ========== FOOTER ========== */
footer {
  background-color: #ffffff;
  padding: 30px 20px;
  border-top: 1px solid #ccc;
  margin-top: 50px;
  text-align: center;
}

.footer-container p {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.footer-container .social {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-container .social a {
  font-size: 22px;
  color: #333;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-container .social a:hover {
  color: #007bff;
  transform: scale(1.2);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  header {
    padding: 0 20px;
    position: relative;
  }

  .menu-icon {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    background-color: #ffffff;
    width: 100vw;
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 20px 0;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  #menu-toggle:checked + .menu-icon + nav {
    display: flex;
  }

  .about-me {
    flex-direction: column;
  }

  .about-text {
    text-align: center;
  }
}
/* Reveal on scroll */
.reveal {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: all 0.8s ease;
}
section, .skills, .timeline, .vision, .projects-section, .contact-section {
  opacity: 0;
  transform: translateY(40px);
}

/* Project Modal */
.img-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}
.img-modal img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
}
.img-modal .close {
  position: absolute;
  top: 20px; right: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}
