@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap");

:root {
  --primary-color: #ca2daf;
  --primary-color-dark: #880972;
  --secondary-color: #ca8a04;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --extra-light: #faf5ff;
  --max-width: 1300px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--extra-light);
}

/* HERO */
.hero {
  background-color: var(--extra-light);
}
.hero .section__container {
  min-height: 100vh;
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
  display: flex;
  align-items: center;
  /* justify-content: space-between; */
  justify-content: top;
  gap: 4rem;
}
.content { display: flex; flex-direction: column; justify-content: center; max-width: 600px; }
.subtitle { letter-spacing: 2px; color: var(--text-light); font-weight: 600; margin-bottom: 0.5rem; }
.title { font-size: 3.3rem; font-weight: 700; line-height: 4rem; margin-bottom: 1rem; color: var(--text-dark); }
.title span { color: var(--primary-color); }
.description { line-height: 1.75rem; color: var(--text-light); margin-bottom: 2rem; font-size: 1.1rem; }
.action__btns { display: flex; gap: 1rem; }
.action__btns button { font-size: 1rem; font-weight: 600; letter-spacing: 1.5px; padding: 1rem 2rem; outline: none; border-radius: 5px; cursor: pointer; transition: all 0.3s; }
.hire__me { background-color: var(--primary-color); color: #fff; border: 2px solid var(--primary-color); }
.hire__me:hover { background-color: var(--primary-color-dark); border-color: var(--primary-color-dark); }
.portfolio { background-color: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); }
.portfolio:hover { background-color: var(--primary-color); color: #fff; }
.image { display: grid; place-items: center; }
.image img { width: min(25rem,90%); border-radius: 50%; animation: colorCycle 4s infinite; }
@keyframes colorCycle { 0% { filter: grayscale(0%);} 50% { filter: grayscale(100%);} 100% { filter: grayscale(0%);} }

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  animation-name: fadeIn;
  animation-duration: 0.4s
}

@keyframes fadeIn {
  from {opacity: 0}
  to {opacity: 1}
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 40px;
  border: none;
  width: 90%;
  max-width: 400px;
  text-align: center;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  position: relative;
  animation-name: slideIn;
  animation-duration: 0.4s
}

@keyframes slideIn {
  from {top: -300px; opacity: 0}
  to {top: 0; opacity: 1}
}

.close {
  color: #aaa;
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
  transition: 0.3s;
}
.close:hover,
.close:focus {
  color: #333;
  text-decoration: none;
  cursor: pointer;
}
.modal-content h2 {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  font-weight: 700;
}
.modal-content input {
  width: 100%;
  padding: 15px 20px;
  margin-bottom: 20px;
  display: inline-block;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-sizing: border-box;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.modal-content input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(202, 45, 175, 0.2);
  outline: none;
}
.modal-content button {
  background-color: var(--primary-color);
  color: white;
  padding: 15px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  font-size: 1.1rem;
  font-weight: 600;
  transition: background-color 0.3s;
}
.modal-content button:hover {
  background-color: var(--primary-color-dark);
}
.error-message {
  color: #d9534f;
  background-color: #f2dede;
  border: 1px solid #ebccd1;
  padding: 10px;
  border-radius: 5px;
  margin-top: 15px;
  display: none; /* Initially hidden */
}

/* MEDIA QUERIES */
@media (max-width:750px){
  .hero .section__container { flex-direction: column; text-align:center; padding: 2rem 1rem; gap: 2rem;}
  .content { order: 2; }
  .image { order: 1; }
  .image img { width: 60%;}
  .title { font-size: 2.5rem; line-height: 3rem; }
}
