/* IMPORTS */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  font-family: "Poppins", sans-serif;
}

/* COLORS & THEME */
:root {
  --bg: #0d1117;
  --card: #161b22;
  --text: #ffffff;
  --subtext: #d3d3d3;
  --accent: #00eaff;
  --accent-soft: rgba(0, 234, 255, 0.3);
}

/* BASE */
body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

section {
  padding: 8rem 9%;
  min-height: 100vh;
}

/* HEADER */
.header {
  position: fixed;
  width: 100%;
  padding: 2rem 9%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(14, 17, 23, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 1000;
}

.logo {
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--accent);
}

.navbar a {
  margin-left: 3rem;
  font-size: 1.6rem;
  color: var(--subtext);
  transition: .4s;
}

.navbar a:hover,
.navbar a.active {
  color: var(--accent);
}

/* HOME */
.home {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-content h1 {
  font-size: 5rem;
}

.home-content p {
  font-size: 1.6rem;
  margin-top: 1.5rem;
  max-width: 450px;
  line-height: 1.7;
}

.role span {
  color: var(--accent);
}

.social-links {
  margin-top: 2.5rem;
}

.social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  margin-right: 1rem;
  color: var(--accent);
  font-size: 2rem;
  transition: .3s;
}

.social-links a:hover {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 20px var(--accent);
}

/* SHAPE */
.home-shape {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: linear-gradient(145deg, #00eaff44, #00eaff11);
  filter: blur(40px);
}

/* BUTTON */
.btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 3rem;
  font-size: 1.6rem;
  font-weight: 600;
  background: var(--accent);
  color: #000;
  border-radius: 50px;
  transition: .3s;
}

.btn:hover {
  box-shadow: 0 0 20px var(--accent);
}

/* ABOUT */
.about {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.about-content p {
  font-size: 1.7rem;
  line-height: 1.7;
}

.abstract-box {
  width: 350px;
  height: 350px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 0 40px var(--accent-soft);
}

/* SKILLS */
.skills-grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.skill-card {
  background: var(--card);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 234, 255, 0.1);
  transition: .3s;
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px var(--accent-soft);
}

.skill-card i {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* PROJECTS */
.projects {
  background: var(--bg);
  padding-bottom: 5rem;
}

.projects .heading {
  text-align: center;
  font-size: 4.5rem;
  margin-bottom: 4rem;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.project-box {
  background: var(--card);
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 1.5rem;
  border: 2px solid transparent;
  transition: 0.4s ease;
  box-shadow: 0 0 10px rgba(0, 238, 255, 0.1);
}

.project-box:hover {
  border-color: var(--accent);
  transform: translateY(-10px);
  box-shadow: 0 0 20px var(--accent-soft);
}

.project-box i {
  font-size: 4.5rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.project-box h3 {
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
}

.project-box p {
  font-size: 1.6rem;
  color: #ccc;
  margin-bottom: 2rem;
}

.project-box .btn {
  padding: 1rem 2.4rem;
}

/* Smaller image on project pages */
.project-img img.small-screenshot {
  width: 30vw;
  max-width: 300px;
  border-radius: 1.5rem;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(0, 238, 255, 0.2);
}

/* PROJECT DETAIL PAGES */
.project-detail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 4rem;
  padding: 10rem 9% 5rem;
  background: var(--bg);
  min-height: 100vh;
}

.project-img img {
  width: 40vw;
  max-width: 500px;
  border-radius: 1.5rem;
  object-fit: cover;
  box-shadow: 0 0 40px rgba(0, 238, 255, 0.3);
}

.project-content {
  max-width: 600px;
  color: #fff;
}

.project-content h2 {
  font-size: 4rem;
  margin-bottom: 2rem;
}

.project-content p {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.project-content h3 {
  font-size: 2rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.project-content ul {
  list-style: disc inside;
  margin-bottom: 2rem;
  color: #ccc;
}

.project-content ul li {
  margin-bottom: 0.8rem;
  font-size: 1.6rem;
}

.project-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 991px) {
  .project-detail {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10rem 5% 5rem;
  }

  .project-img img {
    width: 60vw;
  }

  .project-content {
    max-width: 90%;
  }

  .project-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .project-img img.small-screenshot {
    width: 50vw;
    max-width: 350px;
  }
}

@media (max-width: 520px) {
  html {
    font-size: 55%;
  }

  .project-img img {
    width: 80vw;
  }

  .project-img img.small-screenshot {
    width: 70vw;
  }

  .project-content h2 {
    font-size: 3rem;
  }

  .project-content h3 {
    font-size: 1.8rem;
  }

  .project-content p,
  .project-content ul li {
    font-size: 1.4rem;
  }
}

/* CONTACT */
.contact form {
  max-width: 700px;
  margin: auto;
}

.contact input,
.contact textarea {
  width: 100%;
  background: var(--card);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text);
  border: 2px solid transparent;
  transition: .3s;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
}

/* FOOTER */
.footer {
  padding: 2rem;
  text-align: center;
  font-size: 1.4rem;
  opacity: .7;
}

/* RESPONSIVE DESIGN & MOBILE MENU */
#menu-icon {
  font-size: 3.6rem;
  color: var(--accent); /* Changed to accent color for visibility */
  cursor: pointer;
  display: none; /* Hidden on Desktop */
  z-index: 1001;
}

@media (max-width: 768px) {
  #menu-icon {
    display: block; /* Forced visibility on Mobile */
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 4%;
    background: var(--bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: none; /* Keep hidden until toggled */
    transition: 0.3s ease;
  }

  /* This class will be toggled via JavaScript */
  .navbar.active {
    display: block;
  }

  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
    text-align: center;
  }
}