
/* =================== GLOBAL RESET =================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  scroll-behavior: smooth;
  list-style: none;
}

:root {
  --primary-gradient: linear-gradient(to right, rgb(255, 0, 255), rgb(0, 157, 255));
}

/* =================== HEADER =================== */
header {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 3rem;
  z-index: 1000;
  flex-wrap: wrap;
  text-align: center;
}

.job-title {
  word-break: break-word;
  overflow-wrap: break-word;
}

.logo {
  color: white;
  font-size: 1.3rem;
  font-weight: 600;
  white-space: nowrap;
  transition: 0.3s ease-in-out;
}

.logo:hover {
  transform: scale(1.1);
}

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

.nav-links.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 4.5rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.95);
  padding: 1rem;
  border-radius: 1rem;
  z-index: 999;
  width: 80%;
  max-width: 300px;
  text-align: right;
}

li a {
  position: relative;
  color: white;
  font-weight: 300;
}

li a::before {
  position: absolute;
  content: '';
  width: 0;
  left: 0;
  height: 5px;
  top: 25px;
  border-radius: 1rem;
  transition: 0.3s ease-in-out;
  background: var(--primary-gradient);
}

li a:hover::before {
  width: 100%;
}

.visit-btn {
  padding: 0.8rem 1.5rem;
  border-radius: 3rem;
  border: none;
  font-weight: 500;
  font-size: 1rem;
  color: white;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.3s ease-in-out;
  background: var(--primary-gradient);
}

.visit-btn:hover {
  background: linear-gradient(to right, rgb(0, 157, 255), rgb(255, 0, 255));
  transform: scale(1.03);
}

#menu-icon {
  font-size: 2rem;
  display: none;
  position: absolute;
  top: 1.2rem;
  right: 2rem;
  z-index: 1001;
}

/* =================== SECTIONS =================== */
section {
  min-height: 100vh;
  padding: 8rem 12%;
  width: 100%;
  position: relative;
}

.about {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.about img {
  width: 30vw;
  border-radius: 50%;
  max-width: 100%;
  height: auto;
  display: block;
}

.info-box {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.info-box h3 {
  font-size: 1.8rem;
  font-weight: 500;
  opacity: 0.8;
}

.info-box h1,
.info-box h2 {
  font-size: 3rem;
  font-weight: 600;
}

.info-box h2,
.info-box span {
  background: var(--primary-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.info-box span {
  font-size: 2rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  white-space: nowrap;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  transform: scale(1.03);
  opacity: 0;
  transform: translateY(30px);
  animation: btnGroupFadeIn 0.8s ease-out 0.3s forwards;
}

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

.btn {
  border-radius: 3rem;
  padding: 0.5rem 1.5rem;
  border: 2px solid black;
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
  background: var(--primary-gradient);
  transition:
    opacity 0.3s ease-in-out,
    background 0.3s ease-in-out,
    transform 0.3s ease-in-out;
}

.btn:hover {
  opacity: 0.7;
  transform: scale(1.05);
  background: linear-gradient(to right, rgb(255, 0, 255), rgb(0, 157, 255));
}

.socials {
  display: flex;
  gap: 2rem;
}

.socials i {
  font-size: 2.5rem;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.socials i:hover {
  transform: scale(1.1);
  color: rgb(0, 157, 255);
}

.section-title {
  text-align: center;
  font-size: 4rem;
  font-weight: 600;
  margin-bottom: 3rem;
}

.experience-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
}

.experience img {
  width: 24vw;
  border-radius: 3rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.grid-card {
  border: 2px solid black;
  border-radius: 3rem;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: baseline;
  justify-content: flex-start;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

.grid-card:hover {
  transform: scale(1.02);
  background-color: black;
  color: white;
}

.grid-card i {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.grid-card span {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  background: var(--primary-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

::-webkit-scrollbar {
  width: 20px;
}

::-webkit-scrollbar-track {
  background-color: rgb(219, 219, 219);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #009dff, #ff00ff);
}

.input-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2rem;
  margin-top: 5rem;
}

.input-box input {
  border-radius: 3rem;
  border: 2px solid black;
  padding: 2rem 8rem;
  font-size: 3rem;
}

.input-box input::placeholder {
  font-size: 3rem;
}

.input-box i {
  font-size: 4rem;
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translate(50%, -50%);
}

footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

footer ul {
  display: flex;
  align-items: center;
  gap: 3rem;
}

footer ul li a {
  color: black;
  font-weight: 600;
}

.copyright {
  font-weight: 300;
  margin-top: 2rem;
}

/* =================== MOBILE FIXES =================== */
@media (max-width: 768px) {
  header {
  padding: 1rem 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

section:first-of-type {
  padding-top: 10rem; /* Push content below menu */
}


  .nav-links {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 4.5rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.95);
  padding: 1rem;
  border-radius: 1rem;
  width: 80%;
  max-width: 300px;
  z-index: 999;
  text-align: right;
}

.nav-links.active {
  display: flex;
}

  #menu-icon {
  font-size: 2rem;
  display: block;
  position: fixed; /* Changed from absolute */
  top: 1rem;
  right: 1.5rem;
  z-index: 1001;
  color: white;
  cursor: pointer;
}

  .about img {
    width: 60vw;
  }

  .info-box h1,
  .info-box h2 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .experience-info {
    flex-direction: column;
    gap: 2rem;
  }

  .grid-card {
    width: 100%;
  }

  .input-box input {
    padding: 1rem 2rem;
    font-size: 1.5rem;
  }

  .input-box input::placeholder {
    font-size: 1.5rem;
  }

  footer ul {
    flex-direction: column;
    gap: 1rem;
  }

  section {
    padding: 6rem 5%;
  }
}
