/* FONT IMPORTS */
@import url(//cdn.rawgit.com/rtaibah/dubai-font-cdn/master/dubai-font.css);
@import url("https://fonts.googleapis.com/css2?family=Bruno+Ace&display=swap");

/* CSS VARIABLES */
:root {
  --highlight-yellow: #ffcd03;
  --grey: #f3f3f3;
  --dark-bg: #202026;
  --dark-card: #141218;
  --dark-form: #1b1923;
  --gradient-bg: linear-gradient(to bottom left, #000007 0%, #1f1b32 35%, #000007 60%, #1f1b32 80%, #000007 100%);
}

/* GLOBAL RESETS AND BASE STYLES */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: "Dubai-Regular", sans-serif;
  color: var(--grey);
  background: var(--gradient-bg);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* REUSABLE COMPONENTS */
.contact-btn {
  background-color: var(--highlight-yellow);
  border: 2px solid transparent;
  border-radius: 1.2rem;
  font-size: 1.7rem;
  padding: 0.8rem 2.2rem;
  color: #000;
  font-family: "Dubai-Regular", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
}

.background-img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

.background-img img {
  border-radius: 0 0 10rem 0;
  max-width: 100%;
  height: auto;
}

.contact-btn:hover {
  border-color: #fff;
  transform: translateY(-2px);
}

.h1-title-yellow {
  font-family: "Bruno Ace", sans-serif;
  color: var(--highlight-yellow);
  font-size: 6.2rem;
  margin: 0;
}

.h2-title {
  font-family: "Bruno Ace", sans-serif;
  font-size: 4rem;
}

.highlight-yellow-text {
  color: var(--highlight-yellow);
}

.text {
  font-size: 2.2rem;
  line-height: 1.6;
}

.section-header {
  font-family: "Bruno Ace", sans-serif;
  font-size: 5rem;
  margin-bottom: 8rem;
  position: relative;
  display: inline-block;
}

.section-header::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 10rem;
  height: 0.4rem;
  background-color: var(--highlight-yellow);
  border-radius: 5px;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 8rem;
  width: 100%;
  padding: 0 10rem;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
}

header .logo {
  height: 60%;
}

/* HOME SECTION */
.home {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 100vh;
  padding: 0 10rem;
  border-radius: 0 0 10rem 0;
  background-image: url("imgs/Capa.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.home-content {
  max-width: 50%;
}

.home-text {
  font-size: 1.8rem;
  line-height: 1.7;
  margin: 2rem 0 5rem 0;
}

/* ABOUT SECTION */
.about {
  padding: 10rem;
}

.about-content {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  max-width: 110rem;
  margin: 0 auto;
}

.about-content img {
  max-width: 5rem;
  margin-top: 1rem;
}

/* BANNER SECTION */
.banner {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 80vh;
  padding: 5rem 10rem;
  background-image: url("imgs/Cerebro.png");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}

.banner-content {
  width: 50%;
}

.banner-content h1 {
  font-family: "Bruno Ace", sans-serif;
  font-size: 6.2rem;
}

.banner-content h1 > span {
  font-family: "Bruno Ace", sans-serif;
}

.banner-content .text {
  margin: 2rem 0 5rem 0;
}

/* SERVICES SECTION (ACCORDION) */
.services {
  padding: 10rem;
  width: 100%;
}

.services-container {
  max-width: 100rem;
  margin: 0 auto;
}

.card {
  border-radius: 2.5rem;
  margin-bottom: 2rem;
  overflow: hidden;
  background: var(--dark-card);
  transition: all 0.3s ease;
}

.card.active {
  background: var(--highlight-yellow);
}

.card.active .title,
.card.active .text,
.card.active li {
  color: #000;
}

.card.active .card-header {
  border-bottom-color: #000;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 3rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.card-header .title {
  font-family: "Bruno Ace", sans-serif;
  font-size: 2.2rem;
  transition: color 0.3s ease;
}

.card-header .title span {
  font-size: 4.5rem;
  margin-right: 1rem;
  font-family: "Bruno Ace", sans-serif;
}
.toggle-btn {
  width: 42px;
  height: 42px;
  background: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease;
}

.toggle-btn .bar {
  position: absolute;
  width: 20px;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.toggle-btn .vertical {
  transform: rotate(90deg);
}

.card.active .toggle-btn .vertical {
  transform: rotate(180deg);
}
.card-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out, opacity 0.5s ease-out;
}

.card-content .text {
  font-size: 1.8rem;
  line-height: 1.7;
  padding: 0 3rem 0 3rem;
}

.card.active .card-content {
  max-height: 50rem;
  opacity: 1;
  padding: 2rem 3rem;
}

.service-list {
  font-size: 1.8rem;
  line-height: 1.6;
  text-align: left;
  list-style-position: outside;
  padding-left: 5rem;
  color: #000;
}

.service-list > li {
  font-family: "Dubai-Regular", sans-serif;
  margin-bottom: 0.5rem;
}

.card.active .card-content {
  color: #000;
}
/* CONTACT SECTION */
.contact-section {
  display: flex;
  gap: 8rem;
  align-items: center;
  padding: 8rem;
  max-width: 140rem;
  margin: 0 auto;
}

.contact-info {
  flex: 1;
}

.contact-info .subtitle {
  font-size: 1.8rem;
  margin: 0 0 1rem 0;
  font-family: "Bruno Ace", sans-serif;
}

.contact-info .main-heading {
  font-size: 4rem;
  color: var(--highlight-yellow);
  margin: 0 0 2.4rem 0;
  font-family: "Bruno Ace", sans-serif;
}

.contact-info .description {
  font-size: 2rem;
  line-height: 1.5;
}

.contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  padding: 4rem;
  background-color: var(--dark-form);
  border-radius: 2.5rem;
  max-width: 50rem;
}

.form-group label {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background-color: #fff;
  border: none;
  border-radius: 0.8rem;
  padding: 1.5rem;
  font-size: 1.6rem;
  font-family: "Dubai-Regular", sans-serif;
  color: #333;
}

.form-group textarea {
  resize: vertical;
  min-height: 12rem;
}

.submit-button {
  background-color: var(--highlight-yellow);
  color: #000;
  border: 2px solid transparent;
  padding: 1.5rem;
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.submit-button:hover {
  border-color: #fff;
  transform: translateY(-2px);
}

/* FOOTER */
.site-footer {
  background-color: var(--dark-bg);
  color: #c7c7c7;
  padding: 6rem 2rem;
}

.footer-container {
  max-width: 120rem;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo img {
  height: 4rem;
}

.social-icons a {
  background-color: #fff;
  color: #000;
  border-radius: 50%;
  width: 3.2rem;
  height: 3.2rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  margin-left: 1rem;
  font-size: 1.6rem;
  transition: transform 0.2s ease-in-out;
}

.social-icons a:hover {
  transform: scale(1.1);
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-contact {
  flex-basis: 50%;
}

.footer-contact h2 {
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 1.5rem;
  font-family: "Bruno Ace", sans-serif;
}

.footer-contact p {
  line-height: 1.6;
  font-size: 1.6rem;
}

.footer-newsletter {
  background-color: #000;
  padding: 3rem;
  border-radius: 0.8rem;
  flex-basis: 50%;
}

.footer-newsletter form {
  display: flex;
  gap: 1rem;
}

.footer-newsletter input[type="email"] {
  flex-grow: 1;
  padding: 1.5rem;
  border: 1px solid #444;
  background-color: #000;
  border-radius: 0.8rem;
  color: #fff;
  font-size: 1.6rem;
}

.footer-newsletter button {
  background-color: var(--highlight-yellow);
  color: #000;
  border: none;
  padding: 1.5rem 2.5rem;
  border-radius: 0.8rem;
  font-size: 1.6rem;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease-in-out;
}

.footer-newsletter button:hover {
  background-color: #e6b800;
}

.footer-divider {
  border: none;
  height: 1px;
  background-color: #444;
  margin: 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 3rem;
  font-size: 1.2rem;
  color: #888;
}

/* ------------------------- */
/* --- MEDIA QUERIES --- */
/* ------------------------- */

/* Large Desktops (1200px) */
@media (max-width: 1200px) {
  .home,
  .banner,
  .about,
  .services,
  .contact-section {
    padding-left: 6rem;
    padding-right: 6rem;
  }
  header {
    padding: 0 6rem;
  }
  .contact-section {
    gap: 4rem;
  }
}

/* Tablets (992px) */
@media (max-width: 992px) {
  html {
    font-size: 58%;
  }
  .home,
  .banner,
  .about,
  .services,
  .contact-section {
    padding: 8rem 4rem;
  }
  header {
    padding: 0 4rem;
  }
  .home-content {
    max-width: 60%;
  }
  .banner {
    background-position: right -10rem center;
  }
  .banner-content {
    width: 60%;
  }
  .contact-section {
    flex-direction: column;
    text-align: center;
  }
  .contact-form {
    width: 100%;
    max-width: 60rem;
  }
}

/* Small Tablets and Large Phones (768px) */
@media (max-width: 768px) {
  html {
    font-size: 55%;
  }
  body {
    text-align: center;
  }
  .section-header {
    margin-left: auto;
    margin-right: auto;
  }
  header {
    padding: 0 2rem;
  }
  .home {
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem;
    min-height: 80vh;
    border-radius: 0;
  }
  .home-content {
    max-width: 100%;
  }
  .about,
  .services {
    padding: 8rem 2rem;
  }
  .about-content {
    flex-direction: column;
    align-items: center;
  }
  .banner {
    background-image: none;
    min-height: auto;
    padding: 8rem 2rem;
  }
  .banner-content {
    width: 100%;
    text-align: center;
  }
  .footer-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-newsletter {
    width: 100%;
    max-width: 50rem;
  }
  .footer-newsletter form {
    flex-direction: column;
  }
}

/* Mobile Phones (576px) */
@media (max-width: 576px) {
  header {
    height: 6rem;
  }
  header .logo {
    height: 50%;
  }
  .contact-btn {
    font-size: 1.5rem;
    padding: 0.6rem 1.5rem;
  }
  .h1-title-yellow {
    font-size: 4.5rem;
  }
  .h2-title {
    font-size: 3rem;
  }
  .section-header {
    font-size: 4rem;
  }
  .card-header .title {
    font-size: 1.8rem;
  }
  .card-header .title span {
    font-size: 3.5rem;
  }
  .footer-top {
    justify-content: center;
  }
}
