@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Ms+Madi&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nixie+One&display=swap");

:root {
  --primary-color: #000000;
  --secondary-color: #ffffff;
  --primary-font-family: "Nunito", sans-serif;
  --secondary-font-family: "Ms Madi", sans-serif;
  --spacing: 35px;
  --transition-speed: 0.3s;
}

html {
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--primary-color);
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--primary-color);
  animation: fadeIn 1.5s ease-out;
  overflow-x: hidden;
}

.index_header {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

body > header > nav {
  color: var(--secondary-color);
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing);
  font-family: var(--primary-font-family);
  font-size: 20px;
}

body > header > nav > ul {
  display: flex;
  gap: var(--spacing);
  margin-left: 50px;
  margin-top: 50px;
}

#inicio {
  font-family: Nixie One, sans-serif;
  margin-right: 100px;
  font-size: 30px;
  transition: text-shadow var(--transition-speed) ease;
}

#inicio:hover {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

ul {
  list-style-type: none;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
  position: relative;
}

body > header > nav > ul > li > a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--secondary-color);
  transition: width var(--transition-speed) ease;
}

body > header > nav > ul > li > a:hover::after {
  width: 100%;
}

img {
    transition: transform 0.3s ease;
    max-width: 100%;
}

h1 {
  font-family: var(--secondary-font-family);
  font-size: 150px;
  color: var(--secondary-color);
  margin-left: 100px;
  margin-bottom: 150px;
}

body > header > section > p {
  font-family: var(--primary-font-family);
  font-size: 20px;
  color: var(--secondary-color);
  margin-top: -120px;
}

.header-content {
  position: absolute;
  text-align: center;
}

h2 {
  font-family: var(--primary-font-family);
  color: var(--secondary-color);
  font-size: 50px;
  text-align: center;
}

.columns {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: var(--spacing);
  margin: var(--spacing);
  margin-top: 150px;
  margin-bottom: 150px;
}

.columns .about {
  max-width: 350px;
  width: 100%;
  padding: var(--spacing);
  border-radius: 12px;
  box-sizing: border-box;
  border: var(--secondary-color) 1px solid;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.columns .about:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.icon-about {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
}

body > main > div > section > p {
  font-family: var(--primary-font-family);
  color: var(--secondary-color);
  font-size: 20px;
  text-align: center;
}

#body_color{
  background-color: #181818;
}

footer {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: var(--spacing);
  text-align: center;
  align-items: center;
  font-family: var(--primary-font-family);
}

.footer-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

.social-icon {
  width: 25px;
  height: 25px;
  transition: transform 0.2s ease;
}

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

#page_4_body {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
  grid-auto-rows: 500px;
  gap: var(--spacing);
  padding: var(--spacing);
}

#page_4_body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(255,255,255,0.1);
}

.p_page_4 {
  font-family: var(--primary-font-family);
  color: var(--secondary-color);
  font-size: 20px;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 100px;
}

.p_page_3 {
  font-family: var(--primary-font-family);
  color: var(--secondary-color);
  font-size: 20px;
  text-align: center;
  margin-top: 20px;
}

.rrss-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

.social-icon-rrss {
  margin-top: auto;
  margin-bottom: auto;
  width: 200px;
  height: 200px;
  padding: 100px;
  transition: transform var(--transition-speed) ease, filter var(--transition-speed) ease;
}

.social-icon-rrss:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
}

.youtube_video {
  border-radius: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 50px;
  width: 80%;
  height: 900px;
  max-width: 100%;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 50px;
  color: var(--secondary-color);
  font-family: var(--primary-font-family);
}

input,
textarea {
  width: 300px;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid var(--secondary-color);
  font-family: var(--primary-font-family);
  background-color: transparent;
  color: var(--secondary-color);
  transition: all var(--transition-speed) ease;
}

input:focus,
textarea:focus {
  outline: none;
  background-color: rgba(255,255,255,0.1);
  box-shadow: 0 0 10px rgba(255,255,255,0.3);
  transform: scale(1.02);
}

button {
  padding: 20px;
  border-radius: 5px;
  border: none;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-family: var(--primary-font-family);
  cursor: pointer;
  margin-bottom: 100px;
  margin-top: 20px;
  transition: all var(--transition-speed) ease;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
}

.columns .project {
  max-width: 350px;
  width: 100%;
  padding: var(--spacing);
  border-radius: 12px;
  box-sizing: border-box;
  border: var(--secondary-color) 1px solid;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; 
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.columns .project > p {
  margin-top: auto;
  padding: 0 10px;
}

.columns .project > img,
.columns .project .slider-container {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

h2.h2_project {
  font-family: var(--primary-font-family);
  color: var(--secondary-color);
  font-size: 32px;
  text-align: center;
  margin-bottom: 20px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  line-height: 1.1;
}

.columns .project:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.about_page_1 {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--spacing);
}

.p_page_1 {
  font-family: var(--primary-font-family);
  color: var(--secondary-color);
  font-size: 20px;
  text-align: justify;
  margin-right: 100px;
  margin-left: 100px;
  margin-top: 10px;
  max-width: 2000px;
}

.about_text_1 {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-top: 100px;
}

.rocket_logo {
  width: 500px;
  height: 500px;
  margin-bottom: 100px;
  margin-left: 100px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

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

img:hover {
  transform: scale(1.05);
}

#menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  padding: 10px;
  z-index: 100;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 5px;
  transition: all 0.3s ease;
}

@media (max-width: 1100px) {
  
  .hamburger {
    display: flex;
    margin-bottom: 10px;
  }

  body > header > nav {
    flex-direction: column;
    gap: 10px;
  }
  
  body > header > nav > ul {
    display: none; 
    margin-left: 0;
    margin-top: 10px;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
  }

  #menu-toggle:checked ~ ul {
    display: flex;
    animation: fadeIn 0.5s;
  }

  #menu-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 8px);
  }
  #menu-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
  }
  #menu-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -8px);
  }

  h1 {
    font-size: 80px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 50px;
    text-align: center;
    padding: 0 10px;
  }

  .header-content {
    width: 100%;
    left: 0;
    position: absolute;
  }

  body > header > section > p {
    margin-top: -30px;
    text-align: center;
    padding: 0 20px;
  }
  
  #inicio {
    margin-right: 0;
  }

  .columns {
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
    margin-bottom: 50px;
  }

  .columns .about, 
  .columns .project {
    width: 90%;
    max-width: 500px;
    margin-bottom: 30px;
    height: auto;
    min-height: auto;
  }

  .about_page_1 {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 20px;
  }

  .rocket_logo {
    margin: 0 0 30px 0;
    width: 200px;
    height: 200px;
  }

  .about_text_1 {
    margin-top: 0;
  }

  .p_page_1 {
    margin-left: 0;
    margin-right: 0;
    padding: 0 20px;
  }

  #page_4_body {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: auto;
    padding: 10px;
  }

  .rrss-content {
    flex-direction: column;
    gap: 40px;
  }

  .social-icon-rrss {
    padding: 20px;
    width: 150px;
    height: 150px;
  }

  .youtube_video {
    height: auto;
    aspect-ratio: 16/9;
  }

  form {
    width: 90%;
    margin: 0 auto;
  }
  
  input, textarea {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 15px;
  }

  button {
    width: 100%;
  }
}

.slider-container {
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.slider-track {
  display: flex;
  width: 300%;
  height: 100%;
  animation: slide 12s infinite ease-in-out;
}

.slider-track img {
  width: 33.33%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-showcase {
  display: flex;
  justify-content: center;
  margin: 50px auto 100px auto;
  padding: 0 20px;
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
}

.video-showcase video {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
  display: block;
}

@keyframes slide {
  0% { margin-left: 0; }
  30% { margin-left: 0; }
  
  35% { margin-left: -100%; }
  65% { margin-left: -100%; }
  
  70% { margin-left: -200%; }
  95% { margin-left: -200%; }
  
  100% { margin-left: 0; }
}