/*
Theme Name: Fernan Mejuto Portfolio
Theme URI: https://fernanmejutovazquez.com
Author: Fernan Mejuto
Author URI: https://fernanmejutovazquez.com
Description: Personalized theme for Fernan Mejuto's Website
Version: 1.0
Text Domain: fernan-artist
*/

:root {
  --primary-color: rgb(248, 74, 242); /* Adjust to your brand color */
  --text-color: rgb(255, 255, 255);
  background: linear-gradient(
    to right,
    black 0%,
    black 50%,
    white 50%,
    white 100%
  );
}

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

html,
body {
  height: 100%;
  font-family: Lora;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
}

/* Layout */
.layout-container {
  display: flex;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

.left-column {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: 32px 32px 32px 32px;
  border: 5px solid white;
  position: fixed;
  height: 90%;
}

.right-column {
  width: 50%;
  margin-left: 50%;
  background-color: white;
  border-top: 5px solid black;
  border-bottom: 5px solid black;
  border-left: 5px solid black;
  border-right: 5px solid black;

  position: fixed;
  overflow-y: auto;
  height: 90%;
  scroll-behavior: smooth;
}

/* Header styles */
.header {
  margin-bottom: 2rem;
}

.logo {
  font-family: Rock Salt;
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.nav-menu {
  display: flex;
}
.nav-menu li {
  display: flex;
  align-items: center;
  list-style: none;
}
.tagline {
  display: flex;
  flex-direction: column;
  font-family: Lora;
  font-size: 1rem;
  color: white;
  font-weight: 400;
  margin-bottom: 5px;
}
.nav-menu button {
  background-color: transparent;
  border: 2px solid white;
  border-radius: 50%;
  margin-left: 10px;
  height: 20px;
}
.nav-menu button:hover {
  background-color: var(--primary-color);
  cursor: pointer;
  transform: scale(1.1);
}
.btn-menu img {
  display: flex;
  width: 100%;
  height: 100%;
}

/* CV section */

.cv {
  display: none;
  flex-direction: column;
  margin-left: 50%;
  width: 50%;
  background-color: white;
  border-top: 5px solid black;
  border-bottom: 5px solid black;
  border-left: 5px solid black;
  border-right: 5px solid black;
  color: black;
  position: fixed;
  overflow-y: auto;
  height: 90%;
  scroll-behavior: smooth;
  padding: 10px;
}

.cv-heading {
  width: 100%;
  height: min-content;
  border-top: 1px solid black;
  border-bottom: 1px solid black;
  padding-top: 5px;
  padding-bottom: 5px;
  font-family: rock salt;
  font-size: 0.8rem;
}
.info-cols {
  display: flex;
  flex-direction: row;
  font-size: 0.7rem;
  padding-top: 5px;
  padding-bottom: 5px;
}

.col-cv-1 {
  width: 25%;
  height: 100%;
  font-size: 0.8rem;
}
.col-cv-2 {
  width: 25%;
  height: 100%;
  font-size: 0.8rem;
  list-style: none;
}
.col-cv-2-line {
  border-left: 1px solid black;
  width: 25%;
}
.col-cv-3 {
  width: 50%;
  height: 100%;
  margin-left: 5px;
}
.col-cv-3 h4 {
  font-size: 0.8rem;
}
.info-cols a {
  color: #666;
}

.col-cv-3-project-wraper {
  border: 1px dashed black;
  padding: 5px;
  margin-bottom: 20px;
}
.project-services {
  padding-top: 13px;
}
.project-tech {
  padding-top: 13px;
}
/* Project styles */
/* --Project section-- */
.project {
  height: 89vh;
  display: flex;
  flex-direction: column;
}

/* Project 1st row */
.project-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100%;
}

.credits {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: rgb(95, 94, 94);
  font-size: 1rem;
}
.credits i {
  margin: 2px;
}
.media-container-2 {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  width: 100%;
}
.media-container-2 img {
  border: 2px solid black;
  object-fit: fill;
  max-width: 100%;
  max-height: 100%;
}

/* Project logo sections */

.project-title {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 10%;
  border-top: 5px solid black;
  border-bottom: 5px solid black;
  color: var(--primary-color);
  position: sticky;
  top: 0;
  background-color: white;
}
.project-title a {
  display: flex;

  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}
.project-title a:hover {
  background-color: rgb(226, 224, 224);
  transform: scale(1.05);
}
#ghassLogo {
  height: 250%;
}
#fernanLogo {
  height: 80%;
}
#caterinaLogo {
  text-decoration: none;
  color: black;
  font: Montserrat;
}
/* Project second row 2 */
.project-media-2 {
  display: flex;
  height: 50vh;
  width: 100%;
}
.project-media-2 img {
  padding: 10px;
}
.media2-container1 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-basis: 20%;
  flex-grow: 1;
  border-right: 2px solid black;
}
.media2-container1 img {
  object-fit: fill;
  padding: 30px;
}
.media2-container2 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-basis: 60%;
  flex-grow: 2;
  border-right: 2px solid black;
}
.media2-container3 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-basis: 20%;
  flex-grow: 1;
  border-right: 2px solid black;
  margin-right: 10px;
}
.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.project-link:hover {
  background-color: darken(var(--primary-color), 10%);
}

/* i-framer  section */

.spinner {
  display: none;
  position: absolute;
  top: 44%;
  left: 74%;

  justify-content: center;
  align-items: center;
  z-index: 1000;
  width: auto;
  margin: 0;
  background: none;
  z-index: 1000;
}
.loader {
  border: 6px solid #eee;
  border-top: 6px solid #f84af2;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Footer styles */
.footer {
  display: flex;
  flex-direction: column;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.social-links a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--primary-color);
}
.social-links button {
  color: white;
  border: none;
  background: none;
  padding: 0;
  font-family: Lora;
  font-size: 1rem;
  cursor: pointer;
}
.social-links button:hover {
  color: var(--primary-color);
}

.copyright {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #666;
}

/* Responsive design */

/* Main layout */
@media (max-width: 768px) {
  .layout-container {
    flex-direction: column;
  }

  .left-column {
    display: flex;
    width: 100%;
    position: relative;
    height: auto;
    padding: 1.5rem;
    background-color: black;
    font-size: 0.7rem;
  }

  .right-column {
    width: 100%;
    margin-left: 0;
    height: 100%;
    position: relative;
  }
  /* Header and footer */
  .header {
    margin-bottom: 0;
  }
  .header h1 {
    font-size: 1.2rem;
  }

  
  .tagline {
    font-size: 0.7rem;
  }
  .footer {
    padding-top: 10px;
  }
  footer .copyright {
    display: none;
  }
  .social-links button {
  font-size: 0.7rem;

  }



  /* Main section */

  .cv {
    position: relative;
    width: 100%;
    margin-left: 0px;
  }
  .project {
    height: 100%;
  }
  .spinner {
    top: 57%;
    left: 46%;
  }
}

/* Accessibility improvements */
a:focus,
button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Performance optimizations */
img {
  max-width: 100%;
  height: auto;
}
