@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

/* =========================
   Base Styles
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #00c3ff;
  --text-color: #727171;
}

html {
  font-size: 10px;
}

body {
  max-width: 1440px;
  padding: 0 4rem;
  margin: 0 auto;
  background: #070707;
  color: white;
  font-family: Inter, sans-serif;
}

a {
  color: white;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  margin-top: 2rem;
  padding: 1.5vh 2vh;
  font-size: 1.6rem;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  border: 0;
  border-radius: 2vh;
  background-image: linear-gradient(to right, #ff105f, #ffad06);
  box-shadow: 0 1% 4% rgba(0, 0, 0, .6);
}

button:hover {
  color: black;
  text-align: center;
}

button:active {
  opacity: 0.8;
}

/* =========================
   Typography
========================= */
.title {
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary-color);
}

.description {
  margin-top: 1rem;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 2;
  color: var(--text-color);
}

.first-name {
  display: block;
  margin-bottom: -0.8rem;
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 200;
  color: white;
  text-transform: uppercase;
}

.last-name {
  display: block;
  font-size: clamp(2.5rem, 15vw, 7rem);
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
}

.profile-title {
  margin-bottom: 0.8em;
  font-size: 2rem;
  font-weight: 400;
  color: #bfc3c9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =========================
   Layout
========================= */

.grid-container {
  display: grid;
}

.profile-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 3rem;
  margin-top: 2rem;
}

.profile-description {
  max-width: 80%;
  font-size: 1.6rem;
  line-height: 2;
  color: var(--text-color);
}

.profile-photoImg {
  order: 2;
}

.drawing-photo {
  border-radius: 6px;
  display: flex;
}

.profile-info {
  order: 1;
}

.icon-container {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 2rem;
  padding-bottom: 4rem;
  width: 100%;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.2s;
}

.social-icon:hover {
  transform: scale(1.7);
}

/* =========================
   Animations
========================= */
.fly-in {
  opacity: 0;
  transform: translateX(-60px);
  animation: flyInLeft 0.8s ease-out forwards;
}

@keyframes flyInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.float {
  animation: updown 3s linear infinite;
}

@keyframes updown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10%);
  }
}

/* =========================
   Sections
========================= */
/* About */
.about-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
  padding-top: 6rem;
}

.about-photo {
  width: 350px;
  height: 350px;
  border-radius: 8px;
  object-fit: cover;
}

.about-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.about-me-description {
  line-height: 1.8;
}

/* Skills */
.skill-container {
  padding-top: 6rem;
}

.skill-items {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.logo-icon {
  width: 96px;
  height: 96px;
  margin-top: 2rem;
  border-radius: 12px;
  object-fit: cover;
  vertical-align: middle;
}
.logo-icon:hover {
  transform: scale(1.5);
  transition: transform 0.3s;
}

/* Projects */
.project-container {
  padding-top: 6rem;
}

/* Resume Modal */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  z-index: -1;
  transition: all 0.3s ease-in-out;
}

.modal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 2px rgba(0, 0, 0, .3);
}

.modal.open {
  opacity: 1;
  z-index: 1;
}

.resume-img {
  width: 100%;
  height: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.closeModal {
  margin: 0;
  display: inline-block;
  justify-content: center;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  z-index: 100;
  width: 20%;
}

.download-link{
  width: 100%;
  padding: 2rem;
  background: var(--primary-color);
}

.download-link:hover {
  background: #a100ff;
}

/* =========================
   Contact
========================= */
.contact-title {
  font-size: 24px;
  text-align: center;
  background-image: linear-gradient(#af0dd8, #d3d1d8);
  color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.contact-container{
  display: flex;
  align-items: center;
  justify-content: center; 
  margin-top: 8rem;
}

.contact-box {
  width: 700px;
  border-color: #a100ff;
  background-color: rgb(56, 56, 56);
  padding-top: 2rem;
  padding-left: 4rem;
  padding-right: 4rem;
  padding-bottom: 2rem;
  border-radius: 20px;
}

.contact-form 
{
  grid-template-columns: 1fr 1fr;
  display: grid;
  gap: 2rem;
}

.contact-form div {
  display: flex;
  flex-direction: column;
}

.contact-form textarea {
  grid-column: span 2;
}

.contact-form input, .contact-form textarea {
  border-radius: 10px;
  padding: 1rem;
}

.submit-button{
  margin: 0;
  background-image: linear-gradient(to right, #bc37dd, #27077e);
  border-radius: 1; 
  margin-bottom: 1rem;
  grid-column: 1 / -1;
}

.contact-form label {
    font-size: 14px;
    margin-bottom: 2px;
    margin-left: 8px;
}

/* Footer */
.copyright {
  padding: 2rem 0;
  font-size: 1.2rem;
  text-align: center;
}

/* =========================
   Responsive
========================= */
@media screen and (max-width: 768px) {
  .profile-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .modal-inner{
    width: 80%;
  }

  .about-container{
    display: grid;
    grid-template-columns: 1fr;
  }
  
  .profile-info {
    order: 2;
  }
  .profile-photoImg {
    order: 1;
  }
  .profile-description {
    max-width: 100%;
  }
}
