
:root {
  --light-background: white;
  --dark-background: #05006A;  
  --highlight: #FF9100;
  --card-bg: var(--dark-background);
  --card-text: var(--light-background);
  --card-title: var(--highlight);
  --gradient: linear-gradient(to bottom, #2eadff, #3d83ff, #7e61ff);
  --body-background: var(--dark-background);
  --body-text-color: var(--light-background);
  --notibody-text-color: #FFFFFF;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Ubuntu', sans-serif;
  transition: background-color 0.3s, color 0.3s;
  color: var(--body-text-color);
  background-color: var(--body-background);
}

.light {
  --card-bg: #f0f0f0;
  --card-text: #333;
  --card-title: var(--highlight);
  --body-background: var(--light-background);
  --body-text-color: #333;
  --notibody-text-color: #333;
  color: var(--body-text-color);
  background-color: var(--body-background);
}


h1, h2, h3, h4, h5 {
  font-family: 'SUSE Sans', sans-serif;
  color: var(--card-title);
}

section h2 {
  padding-left: 20px;
}

section {
  margin-bottom: 150px; /* Increased from 100px to 150px for more spacing */
}

#logo-menu-container {
  position: fixed;
  top: 10px;
  left: 20px;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#logo {
 
  border-radius: 50%;
  background-color: var(--highlight); 
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  color: white;
}

#logo i {
  font-size: 40px;
}

.menu {
  font-size: 16px;
    line-height: 1.6;
    color: var(--body-text-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    list-style: none;
    margin-top: 0px;
    min-width: 220px;
    box-sizing: border-box;
}


.menu a {
  text-decoration: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

.menu .link {

  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 24px;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
  width: 100%;
  box-sizing: border-box;
}

.menu .link::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--highlight);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.menu .link svg {
  width: 14px;
  height: 14px;
  fill: var(--body-text-color);
  transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.menu .item {
  position: relative;
  

  width: 100%;
}



.menu .item .submenu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 16px 16px;
  border: 1px solid var(--highlight);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1;
  pointer-events: none;
  background-color: var(--card-bg);
  box-sizing: border-box;
}

.menu .item:hover .submenu,
.menu .item.open .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  border-top: transparent;
}

.menu .item:hover .link,
.menu .item.open .link {
  color: var(--card-text);
  border-radius: 16px 16px 0 0;
}

.menu .item:hover .link::after,
.menu .item.open .link::after {
  transform: scaleX(1);
  transform-origin: right;
}

.menu .item:hover .link svg,
.menu .item.open .link svg {
  fill: var(--card-text);
  transform: rotate(-180deg);
}

.submenu .submenu-item {
  width: 100%;
  transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.submenu .submenu-link {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  width: 100%;
  position: relative;
  text-align: left;
  transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
  color: var(--body-text-color);
  gap: 8px;
  box-sizing: border-box;
}

.submenu .submenu-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  transform: scaleX(0);
  width: 100%;
  height: 100%;
  background-color: var(--highlight);
  z-index: -1;
  transform-origin: left;
  transition: transform 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.submenu .submenu-link:hover:before {
  transform: scaleX(1);
  transform-origin: right;
}

.submenu .submenu-link:hover {
  color: var(--card-text);
}

.main-content {
  margin-top: 100px;
  margin-left: 240px; /* Ensure this is not pushing content out of the viewport */
  overflow: hidden;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #05006A;
  color: white;
}

.intro-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: left;
  max-width: 1200px;
  width: 100%;
  padding: 0px;
}



.video-container {
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-container iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .intro-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .intro-text {
    margin-right: 0;
    margin-bottom: 40px;
  }

  .video-container iframe {
    height: 300px;
  }
}

#floating-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.circle {
  position: absolute;
  border-radius: 50%;
  background-color: transparent;
  border: 2px solid var(--highlight);
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
}

.notification {
  position: relative;
  max-width: 100%;
  padding: 1rem;
  background: var(--card-bg);
  border-radius: 1rem;
  overflow: hidden;
  font-family: 'Ubuntu', sans-serif;
  font-size: 16px;
  word-wrap: break-word;
  z-index: 2;
  margin: 20px;
  color: var(--card-text);
  height: auto;  /* Let it adjust based on content */
  overflow: visible; /* Ensure overflow is visible */
}

.notification:before {
  position: absolute;
  content: "";
  inset: 0.0625rem;
  border-radius: 0.9375rem;
  background: var(--light-background);
  opacity: 0.1;
  z-index: 1;
}

.notification:after {
  position: absolute;
  content: "";
  width: 0.25rem; /* Slim vertical line */
  inset: 1rem auto 1rem 0.5rem; /* Adjusts positioning */
  border-radius: 0.125rem;
  background: linear-gradient(to top, #D9C2FF, #05006A, #D9C2FF); /* Bottom-to-top gradient */
  background-size: 300% 300%;
  z-index: 1;
  opacity: 1;
  animation: gradient 3s infinite linear;
  transition: opacity 0.3s ease; /* Smooth transition on hover */
}

.notification:hover:after {
  opacity: 0; /* Fully fade out when hovering */
}

@keyframes gradient {
  0% {
    background-position: 50% 100%; /* Start at the bottom */
  }
  50% {
    background-position: 50% 0%; /* Transition to the top */
  }
  100% {
    background-position: 50% 100%; /* Loop back to the bottom */
  }
}

.content-container {
  display: flex;
  align-items: center;    /* Centers items vertically */
  justify-content: center; /* Centers items horizontally */
  flex-wrap: wrap;         /* Allows items to wrap on smaller screens */
  max-width: 1200px;
  margin: 0 20px;
}

.content-container.reverse {
  flex-direction: row-reverse;
}

.content-container .notification {
  flex: 1 1 300px;
}

.content-container .image-placeholder {
  flex: 1 1 300px;
  margin: 20px;
  border: #FF9100;
  
  border-radius: 1rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.content-container .image-placeholder img {
  width: 100%;
  object-fit: cover;
  border-radius: 1rem;
 
}


/* Extra small screens (max-width: 576px) */
@media (max-width: 576px) {
  .content-container .image-placeholder {
    flex: 1 1 100%;  /* Full width for images on very small screens */
    margin: 5px 0; /* Tight margin for very small screens */
  }
  
  .content-container .image-placeholder img {
    object-fit: contain; /* Ensures image is not cropped */
  }
}

@media (max-width: 768px) {
  #logo-menu-container {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 101;
  }
  .content-container {
    flex-direction: column;
  }

  .content-container.reverse {
    flex-direction: column;
  }

  .main-content {
    margin-top: 80px;
    margin-left: 0;
  }
}

.intro-container {
  display: flex;
  justify-content: space-between;
  align-items: left;
  max-width: 1200px;
  width: 100%;
  height: auto;
  padding: 40px;
  position: relative;
  overflow: hidden;
  
}

.intro-text {
  flex: 1 1 100%;
  margin-right: 0px;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.5s, transform 0.5s;
}

.video-container {
  position: absolute;
  max-width: 1200px;
  width: 100%;
  margin: auto auto; /* Center the container horizontally */
  overflow: hidden; /* Prevents overflow of iframe */
  border-radius: 1rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
 
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100; /* Make sure it stays behind the iframe */
  object-fit:cover; /* Ensures the content (video or thumbnail) is fully visible */
}



@media (max-width: 768px) {
  .intro-container {
  flex-direction: column;
  align-items: center;
  }
  .video-container {
  width: 70%;
  max-width: 460px;
  }
  .intro-text {
  text-align: center;
  margin-top: 2rem;
  }
  }


  @media (max-width: 576px) {
  .intro-container {
  flex-direction: column;
  align-items: center;
  }
  .video-container {
  
  max-width: 50%;
  }
  .intro-text {
  margin-top: 1.5rem;
  position: static;
  transform: none;
  }


  }@media (max-width: 768px) {
  .intro-container {
 
  align-items: center;
  }
  .video-container {
  width: 100%;
  max-width: 400px; /* Limit the max width to contain the video aspect ratio */
  }
  .intro-text {
  text-align: left;
  margin-top: 2rem;
  }
  }

  @media (max-width: 768px) {
    .intro-text {
      animation: none !important; /* Disable any animations */
      transition: none !important;
      opacity: 100%;
    }
  }

.video-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0));
  z-index: 1;
}

.intro-container:hover .video-container iframe {
  transform: scale(1);
}

.intro-container:hover .intro-text {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1200px) {
  .intro-container {
    flex-direction: column-reverse;
    padding: 20px;
    margin-top: 30%;
  }
  
  .intro-text, .video-container {
    flex-basis: 70%;
    margin: 0px ;
    text-align: left;
  }

  .video-container iframe {
    height: 300px;
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-up {
  from { transform: translateY(50px); }
  to { transform: translateY(0); }
}

.intro-container.loaded .intro-text {
  animation: fade-in 0.5s ease-out forwards,
             slide-up 0.5s ease-out forwards;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.language-buttons {
  position: fixed;
  top: 10px;
  right: 80px;
  display: flex;
  gap: 10px;
  z-index: 3;
}

.language-buttons button {
  background: none;
  border: none;
  color: var(--body-text-color);
  font-size: 18px;
  cursor: pointer;
}

.language-buttons button:hover {
  color: var(--highlight);
}

#theme-toggle {
  position: fixed;
  top: 10px;
  right: 20px;
  background: none;
  border: none;
  color: var(--body-text-color);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 3;
}

#theme-toggle:hover {
  color: var(--highlight);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  background-color: var(--card-bg);
  color: var(--card-text);
  margin-top: 40px;
}

.footer-container .social-icons {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-container .social-icon {
  color: var(--card-text);
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--highlight);
  transition: background-color 0.3s, fill 0.3s;
}

.footer-container .social-icon:hover {
  background-color: var(--card-text);
}

.footer-container .social-icon svg {
  fill: var(--body-text-color);
  width: 24px;
  height: 24px;
  transition: fill 0.3s;
}

.footer-container .social-icon:hover svg {
  fill: var(--highlight);
}

#contact {
  margin-top: 60px; /* Same spacing as other sections */
}


/* Logo container styles */
#logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 220px; /* Adjust the container width */
  height: 100px; /* Adjust the container height */
  background: none; /* Remove any background color */
  overflow: visible; /* Ensure the SVG is not clipped */
  padding: 0;
}

/* Ensure SVG scales properly */
#logo svg {
  display: block;
  width: 100%; /* Make SVG adapt to the container size */
  height: 100%; /* Keep aspect ratio within the container */
}

/* Base styles for the span element */
span {
  position: relative;
  display: inline-block;
  vertical-align: top;
  color: transparent; /* Initially transparent */
  white-space: nowrap;
  font-size: 14px;
  line-height: 2em;
  overflow: hidden;  /* Ensures content is clipped within the bounds */
  text-align: left;
  width: 100%;
  margin-left: -18px;
  margin-top: -10px;
}

/* Before pseudo-element for the animation effect */
span:before {
  content: 'Hello';  /* Placeholder content */
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  color: #FF9100;  /* Initially, the text will be white */
  overflow: hidden;
  text-indent: 0;
  white-space: nowrap; /* Prevents wrapping */
  animation: glitchLoop 2s infinite;  /* Loop the glitch animation endlessly */
}

/* Endless glitch animation for the text */
@keyframes glitchLoop {
  0% {
    content: '4@,3SAscAi;9,bT4';
  }
  10% {
    content: '$R6?4dSj{qS<7Yh7';
  }
  20% {
    content: '+BDs73f;[u3^4Lgg';
  }
  30% {
    content: '{qS<7Yh7+BDs73f;';
  }
  50% {
    content: 'Ai;9,bT4$R6?4dSj';
  }
  60% {
    content: '[o3^4LggAi;9,bT4';
  }
  70% {
    content: 'qoj4BWy-?4dSj{qS';
  }
  80% {
    content: 'GonQ5Tye4LggAi;s';
  }
  90% {
    content: 'Go3d4<yecAi;9,bT';
  }
  100% {
    content: '';  /* Empty so it resets, glitching endlessly */
  }
}

/* Hover effect: Stop glitch and reveal "Menú" */
span:hover:before {
  animation: revealMenú 1s forwards;  /* Transition to the word "Menú" */
}



















.container {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  flex-wrap: wrap;  /* Allow items to wrap on smaller screens */
}

.header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap; /* Ensure header items wrap if space is too tight */
}

.footer {
  padding: 20px;
  background-color: #f1f1f1;
  text-align: center;
}



/* Media queries for smaller screens */

/* For larger screens, the layout might stay as is, but ensure overflow is controlled */
@media (max-width: 1200px) {
  .container {
      flex-direction: column;
      padding: 15px;
  }
  .footer {
      text-align: center;
  }
}

/* Medium-sized devices (tablets and smaller laptops) */
@media (max-width: 992px) {
  .container {
      padding: 15px;
  }
  .footer {
      font-size: 14px;
  }
}



  /* General layout adjustments for smaller screens */
  .intro-container {
    display: flex;
    flex-direction: column;
    padding: 40px 10px;
  }



  .intro-text h1 {
    font-size: 2.5rem;
  }

  .intro-text h2 {
    font-size: 1.5rem;
  }


/* Very small screens (smartphones, iPhone X and below) */
@media (max-width: 576px) {
  body {
      font-size: 14px;  /* Adjust font size */
  }

  .container {
      padding: 10px;
  }

  .logo {
      font-size: 1.5rem;
  }

  .footer {
      font-size: 12px;
  }

  


}

/* Extra small screens (e.g., iPhone 5 and very small devices) */
@media (max-width: 375px) {
  .container {
    padding: 5px;
  }

  .menu {
    flex-direction: column;
    gap: 5px;
  }

  .logo {
    font-size: 1.2rem;
  }

  .footer {
    font-size: 10px;
    padding: 8px;
  }
}
  