* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  padding-top: 100px;
  background:
    radial-gradient(circle at 20% 40%, rgba(60, 231, 255, 0.15), transparent 60%),
    radial-gradient(circle at 80% 60%, rgba(124, 58, 237, 0.12), transparent 70%),
    #050B18;
  color: white;
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.top {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.top h1 {
  background: linear-gradient(90deg, #3CE7FF, #A367FF);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
}

.top h3 {
  color: #cbd5e1;
  font-weight: 200;
}

.container {
  display: grid;
  flex: 1; /* Pushes footer down */
  margin-bottom: 80px; /* Gap after content */
  grid-template-columns: 1fr 1fr;
  margin-top: 30px;
  padding: 0 80px;
  gap: 30px;
  align-items: stretch;
}

.left {
  display: flex;
  flex-direction: column;
  gap: 30px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 20px;
  height: 85vh;

}

.left h1 {
  color: white;
  font-weight: 500;
  font-size: 20px;
}

.left form label {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.left form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nameemail {
  display: flex;
  gap: 20px;
}

.nameemail label {
  flex: 1;
}

.left form .nameemail input {
  width: 100%;
}

.left input,
.left textarea {
  width: 100%;
  height: 50px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 15px;
  padding: 15px;
  color: white;
  font-family: 'poppins', sans-serif;
}

.left textarea {
  resize: none;
  height: 120px;
}

.left button {
  margin-top: 20px;
  width: 100%;
  height: 50px;
  background: linear-gradient(90deg, #3CE7FF, #A367FF);
  border: none;
  border-radius: 15px;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

button img {
  width: 18px;
  height: 18px;
}

.left button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(60, 231, 255, 0.3);
}

.right {
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 20px;
  height: 100%;
}

.contact {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 20px;
}

.email,
.location,
.availability {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.contact .icon {
  background: rgba(60, 231, 255, 0.1);
  width: 50px;
  height: 50px;
  flex-shrink: 0; /* Prevent icon from squashing on mobile */
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact .icon img {
  width: 24px;
  height: 24px;
}

.contact .title {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.title h2 {
  font-weight: 500;
  font-size: 16px;
}

.contact h1 {
  font-weight: 500;
  font-size: 20px;
  margin-bottom: 20px;
}

.contact p {
  color: #cbd5e1;
}

.email,
.location,
.availability {
  margin-bottom: 20px;
}

.resume a {
  text-decoration: none;
  color: black;
  font-weight: 500;
  font-size: 16px;
}

.resume .resume-btn {
  width: 100%;
  background-color: rgb(72, 252, 252);
  padding: 10px;
  border-radius: 15px;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;

}

.resume .resume-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(60, 231, 255, 0.25);
  box-shadow: 0 0 18px rgba(60, 231, 255, 0.12);
}

.textbox {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 20px;
  height: 200px;

}

.textbox h1 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
}

.textbox p {
  color: #cbd5e1;
  font-size: 14px;
  margin-bottom: 30px;
}

footer {
  width: 100%;
  height: 60px;
  margin-top: auto;
  background:
    radial-gradient(circle at 20% 40%, rgba(60, 231, 255, 0.15), transparent 60%),
    radial-gradient(circle at 80% 60%, rgba(124, 58, 237, 0.12), transparent 70%),
    #050B18;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #cbd5e1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  
}


.left,
.contact,
.textbox,
.top {
  opacity: 0;
  animation-fill-mode: forwards;
}

.left {
  animation: toright 1s ease forwards;
}

.contact {
  animation: toleft 1s ease forwards;
  animation-delay: 0.2s;
}

.textbox {
  animation: toleft 1s ease forwards;
  animation-delay: 0.4s;
}

.top {
  animation: fadedown 1s ease forwards;
}

@media (max-width: 1200px) {
  .container {
    padding: 0 40px;
  }
}

@media (max-width: 992px) {
  .container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 40px;
  }

  .left {
    height: auto;
  }

  .right {
    height: auto;
  }

  .textbox {
    height: auto;
  }
}

@media (max-width: 768px) {
  .top h1 {
    font-size: 28px;
    text-align: center;
  }

  .top h3 {
    font-size: 14px;
    text-align: center;
  }

  .nameemail {
    flex-direction: column;
  }

  .container {
    padding: 0 20px;
  }
}

@media (max-width: 576px) {
  body {
    padding-top: 80px;
  }

  .left,
  .contact,
  .textbox {
    padding: 16px;
  }

  .left h1,
  .contact h1 {
    font-size: 18px;
  }

  .left button {
    font-size: 14px;
  }

  .resume button {
    font-size: 14px;
  }

  footer {
    font-size: 13px;
  }
}