/* ================= CONTACT PAGE ================= */
* {
  box-sizing: border-box;
}

/* HERO */
.contact-hero {
  text-align: center;
  padding: 80px 20px 50px;
}

.contact-hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.contact-hero p {
  max-width: 700px;
  margin: auto;
  line-height: 1.7;
  color: #cccccc;
}

/* MAIN CONTAINER */
.contact-container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

/* CONTACT INFORMATION */
.contact-info,
.contact-form-container {
  background: #151515;
  padding: 35px;
  border-radius: 15px;
  border: 1px solid #292929;
}

.contact-info h2,
.contact-form-container h2 {
  margin-top: 0;
  font-size: 28px;
}

.contact-info>p {
  color: #bbbbbb;
  line-height: 1.7;
}

/* CONTACT ITEMS */
.contact-details {
  margin-top: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 25px;
}

.contact-item>span {
  font-size: 28px;
}

.contact-item h3 {
  margin: 0 0 5px;
}

.contact-item a {
  color: #bbbbbb;
  text-decoration: none;
}

.contact-item a:hover {
  color: white;
}

/* FORM */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px;
  background: #0d0d0d;
  color: white;
  border: 1px solid #333;
  border-radius: 8px;
  outline: none;
  font-size: 15px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #8a2be2;
  background: white;
  color: black;
}

.form-group textarea {
  resize: vertical;
}

/* SEND BUTTON */
.send-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 8px;
  background: #8a2be2;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.send-btn:hover {
  opacity: 0.85;
}

/* SUCCESS MESSAGE */
#formMessage {
  text-align: center;
  margin-top: 15px;
  color: #8a2be2;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 30px;
  border-top: 1px solid #292929;
  color: #999;
}

/* ================= CONTACT SCREEN ANIMATION ================= */

.contact-page {
  position: relative;
  min-height: 850px;
  overflow: hidden;
  padding-bottom: 100px;
}

/* BOTH SCREENS */

.contact-screen {
  position: absolute;
  inset: 0;

  width: 100%;
  min-height: 700px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateX(100px);

  transition:
    opacity 0.6s ease,
    transform 0.7s ease,
    visibility 0.7s ease;
}

/* ACTIVE SCREEN */

.contact-screen.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: translateX(0);
}

/* OLD SCREEN LEAVES LEFT */

.contact-screen.exit {
  opacity: 0;
  visibility: hidden;

  transform: translateX(-100px);
}

/* ================= SCREEN 1 ================= */

.contact-intro {
  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.intro-content {
  max-width: 750px;
  padding: 40px 20px;
}

.contact-label {
  display: inline-block;

  font-size: 13px;
  letter-spacing: 4px;
  font-weight: bold;

  color: #8a2be2;

  margin-bottom: 15px;
}


.intro-content h1 {
  font-size: clamp(42px, 7vw, 75px);
  margin: 0 0 25px;
}


.intro-content p {
  color: #bdbdbd;
  line-height: 1.8;
  font-size: 18px;
}


.intro-line {
  width: 70px;
  height: 3px;

  background: #8a2be2;

  margin: 30px auto;
}


.intro-small {
  font-size: 15px !important;
}


/* ================= ARROW ================= */

.arrow-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 75px;
  height: 75px;

  margin: 35px auto 12px;

  border-radius: 50%;
  border: 1px solid #8a2be2;

  background: #151515;
  color: white;

  font-size: 35px;

  cursor: pointer;

  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}


.arrow-btn:hover {
  transform: translateX(8px) scale(1.08);

  background: #8a2be2;

  box-shadow: 0 0 30px rgba(138, 43, 226, 0.5);
}


.arrow-text {
  display: block;

  color: #777;

  font-size: 13px;
}


/* ================= SCREEN 2 ================= */

.contact-form-screen {
  padding: 40px 5% 120px;
}


.form-layout {
  width: 90%;
  max-width: 1100px;

  margin: 30px auto 80px;

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 50px;
}


/* ================= BACK BUTTON ================= */

.back-btn {
  display: block;

  margin: 0 5%;

  padding: 10px 18px;

  border: 1px solid #333;
  border-radius: 8px;

  background: #151515;
  color: #bbb;

  cursor: pointer;

  transition: 0.3s ease;
}


.back-btn:hover {
  background: #8a2be2;
  color: white;

  transform: translateX(-5px);
}

/* =====================================================
   PORTFOLIO FOOTER
===================================================== */

.portfolio-footer {
    background: #090909;
    border-top: 1px solid #292929;
    margin-top: 80px;
    padding: 60px 6% 20px;
}


/* FOOTER CONTENT */

.footer-content {
    max-width: 1200px;
    margin: auto;

    display: grid;
    grid-template-columns:
        1.5fr
        1fr
        1fr
        1fr;

    gap: 50px;
}


/* FOOTER SECTIONS */

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.footer-section h3 {
    margin: 0 0 10px;
    font-size: 18px;
}


.footer-brand h2 {
    font-size: 28px;
    margin: 0 0 10px;
}


.footer-brand p {
    color: #999;
    line-height: 1.7;
    max-width: 280px;
}


.footer-section a {
    color: #999;
    text-decoration: none;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}


.footer-section a:hover {
    color: white;
    transform: translateX(5px);
}


/* =====================================================
   RATING
===================================================== */

.footer-rating {
    text-align: center;

    max-width: 500px;

    margin: 60px auto 40px;

    padding: 30px;

    border-top: 1px solid #292929;
    border-bottom: 1px solid #292929;
}


.footer-rating h3 {
    margin-bottom: 8px;
}


.footer-rating p {
    color: #888;
}


/* STARS */

.rating-stars {
    display: flex;

    justify-content: center;

    gap: 8px;

    margin: 20px 0;
}


.rating-stars button {
    border: none;

    background: transparent;

    color: #444;

    font-size: 32px;

    cursor: pointer;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


.rating-stars button:hover {
    color: #8a2be2;

    transform: scale(1.2);
}


/* SELECTED STARS */

.rating-stars button.selected {
    color: #8a2be2;

    transform: scale(1.1);
}


/* RATING MESSAGE */

#ratingMessage {
    min-height: 20px;

    color: #8a2be2;

    font-size: 14px;
}


/* =====================================================
   FOOTER BOTTOM
===================================================== */

.footer-bottom {
    max-width: 1200px;

    margin: 30px auto 0;

    padding-top: 20px;

    border-top: 1px solid #202020;

    display: flex;

    justify-content: space-between;

    gap: 20px;

    color: #666;

    font-size: 13px;
}


/* =====================================================
   RESPONSIVE FOOTER
===================================================== */

@media (max-width: 800px) {

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .footer-bottom {
        flex-direction: column;

        text-align: center;
    }

}


@media (max-width: 500px) {

    .portfolio-footer {
        padding: 45px 7% 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .footer-rating {
        margin-top: 45px;
    }

}

/* ================= FORM SCREEN ITEMS ================= */

.contact-form-screen.active .contact-info,
.contact-form-screen.active .contact-form-container {

  animation: formAppear 0.8s ease forwards;
}

.contact-form-screen.active .contact-form-container {
  animation-delay: 0.15s;
}


@keyframes formAppear {

  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

}


/* ================= MOBILE ================= */

@media (max-width: 800px) {

  .contact-page {
    min-height: 1050px;
  }

  .contact-screen {
    min-height: 1050px;
  }

  .form-layout {
    grid-template-columns: 1fr;

    width: 94%;

    gap: 30px;
  }

  .contact-form-screen {
    padding: 30px 0;
  }

  .back-btn {
    margin-left: 3%;
  }

}


@media (max-width: 500px) {

  .contact-page {
    min-height: 1150px;
  }

  .contact-screen {
    min-height: 1150px;
  }

  .intro-content h1 {
    font-size: 42px;
  }

  .intro-content p {
    font-size: 16px;
  }

  .form-layout {
    width: 94%;
  }

}

/* ================= RESPONSIVE ================= */
@media (max-width: 800px) {

  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact-hero h1 {
    font-size: 36px;
  }

}

@media (max-width: 500px) {

  .contact-container {
    width: 94%;
  }

  .contact-info,
  .contact-form-container {
    padding: 25px;
  }

  .contact-hero {
    padding-top: 50px;
  }

}