/* ===== Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== Global Dark Theme ===== */
body {
  background: #111; 
  color: #eee;
  line-height: 1.6;
}

/* ===== Navbar ===== */
header {
  background: #1f1f1f;
  padding: 15px 40px;
}
nav ul {
  display: flex;
  justify-content: flex-end;
  list-style: none;
}
nav ul li {
  margin-left: 25px;
}
nav ul li a {
  color: #eee;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}
nav ul li a:hover,
nav ul li a.active {
  color: #00bcd4;
}

/* ===== Home Section ===== */
.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}
.home img.profile-pic {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid #00bcd4;
}
.home h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #fff;
}
.home h1 span {
  color: #00bcd4;
}
.home p {
  font-size: 1.2rem;
  max-width: 700px;
  margin-top: 15px;
  color: #ddd;
  line-height: 1.8;
}

/* ===== Skills Page ===== */
.skills {
  text-align: center;
  padding: 60px 20px;
}
.skills h1 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #00bcd4;
}
.skills-container {
  max-width: 700px;
  margin: 0 auto;
}
.skill {
  display: flex;
  align-items: center;
  background: #1e1e1e;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  transition: transform 0.2s ease;
}
.skill:hover {
  transform: scale(1.02);
}
.skill img {
  width: 50px;
  height: 50px;
  margin-right: 15px;
}
.skill-info {
  flex: 1;
  text-align: left;
}
.skill-info p {
  margin-bottom: 8px;
  font-weight: bold;
  color: #fff;
}
.progress {
  background: #333;
  border-radius: 10px;
  overflow: hidden;
  height: 12px;
}
.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #00bcd4, #673ab7);
  border-radius: 10px;
}

/* ===== Projects Page ===== */
.projects {
  text-align: center;
  padding: 60px 20px;
}
.projects h1 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #00bcd4;
}
.project-category {
  margin-bottom: 50px;
}
.project-category h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #fff;
}
.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.project-card {
  background: #1e1e1e;
  padding: 20px;
  border-radius: 10px;
  text-align: left;
  transition: transform 0.2s ease;
}
.project-card:hover {
  transform: scale(1.05);
}
.project-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}
.project-card h3 {
  color: #00bcd4;
  margin-bottom: 10px;
}
.project-card p {
  color: #ccc;
  font-size: 0.95rem;
  margin-bottom: 15px;
}
.project-card a {
  text-decoration: none;
  background: #00bcd4;
  color: #fff;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background 0.3s ease;
}
.project-card a:hover {
  background: #673ab7;
}

/* ===== Contact Page ===== */
.contact {
  text-align: center;
  padding: 60px 20px;
}
.contact h1 {
  font-size: 2.5rem;
  color: #00bcd4;
  margin-bottom: 15px;
}
.contact p {
  color: #ccc;
  margin-bottom: 40px;
}
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.contact-card {
  background: #1e1e1e;
  padding: 25px;
  border-radius: 10px;
  transition: transform 0.2s ease;
}
.contact-card:hover {
  transform: translateY(-5px);
}
.contact-card i {
  font-size: 2rem;
  color: #00bcd4;
  margin-bottom: 10px;
}
.contact-card h3 {
  margin-bottom: 8px;
  color: #fff;
}
.contact-card p, .contact-card a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.95rem;
}
.contact-card a:hover {
  color: #00bcd4;
}

/* ===== Footer ===== */
footer {
  background: #1f1f1f;
  color: #aaa;
  text-align: center;
  padding: 15px;
  margin-top: 30px;
  font-size: 0.9rem;
}

/* ===== Scroll to Top Button ===== */
#scrollToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  background-color: #00bcd4;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: none;
  transition: background 0.3s;
}
#scrollToTopBtn:hover {
  background-color: #008c9e;
}

/* ===== Hamburger Menu ===== */
.menu-toggle {
  display: none;
  font-size: 2rem;
  color: #00bcd4;
  cursor: pointer;
}

/* ===== Responsive Design ===== */

/* Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
  header {
    background: transparent;
    padding: 10px 20px;
  }

  .home h1 {
    font-size: 2rem;
  }
  .home p {
    font-size: 1rem;
    max-width: 90%;
  }
  .skills-container {
    max-width: 90%;
  }
  .skill img {
    width: 40px;
    height: 40px;
  }
  .progress {
    height: 10px;
  }
  .project-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* Mobiles (max-width: 768px) */
@media (max-width: 768px) {
  header {
    background: transparent;
    padding: 8px 15px;
  }

  /* Home */
  .home img.profile-pic {
    width: 180px;
    height: 180px;
  }
  .home h1 {
    font-size: 1.6rem;
  }
  .home p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* Skills */
  .skill {
    flex-direction: column;
    align-items: flex-start;
  }
  .skill img {
    margin-bottom: 10px;
  }
  .skill-info {
    text-align: left;
    width: 100%;
  }

  /* Projects */
  .project-list {
    grid-template-columns: 1fr;
  }
  .project-card {
    text-align: center;
  }
  .project-card img {
    max-width: 100%;
  }

  /* Contact */
  .contact-info {
    grid-template-columns: 1fr;
  }
  .contact-card i {
    font-size: 1.5rem;
  }
  .contact-card h3 {
    font-size: 1rem;
  }
  .contact-card p {
    font-size: 0.85rem;
  }

  /* Navbar */
  .menu-toggle {
    display: block;
  }
  nav ul {
    display: none;
    flex-direction: column;
    background: #1f1f1f;
    position: absolute;
    top: 60px;
    left: 20px;
    width: 200px;
    border-radius: 8px;
    padding: 10px 0;
  }
  nav ul.show {
    display: flex;
  }
  nav ul li {
    margin: 10px 0;
    text-align: center;
  }
}

/* Small Phones (max-width: 480px) */
@media (max-width: 480px) {
  header {
    background: transparent;
    padding: 5px 10px;
  }

  .home img.profile-pic {
    width: 140px;
    height: 140px;
  }
  .home h1 {
    font-size: 1.3rem;
  }
  .home p {
    font-size: 0.85rem;
  }
  .skills h1,
  .projects h1,
  .contact h1 {
    font-size: 1.5rem;
  }
}