/* reset styles */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap");

* {
  color: inherit;
  margin: 0;
}

body {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
  cursor: default;
  overflow-x: hidden;
  overflow-y: hidden;
  /* Prevent scrolling globally */
  -webkit-overflow-scrolling: touch;
  position: fixed;
  width: 100%;
  height: 412px;
  max-height: 412px;
}

/* Only hide cursor on home page */
body.home-page {
  cursor: none;
}

/* Enhanced cursor for main interactive area */
.website-content {
  cursor: default;
}

/* Only hide cursor on home page */
body.home-page .website-content {
  cursor: none;
}

/* Custom cursor container */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 1px solid #1D1D1D;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

/* Unlocked state - static unfilled circle with subtle pulse */
.custom-cursor.unlocked {
  background: transparent;
  animation: subtlePulse 1s ease-in-out infinite;
}

.custom-cursor.unlocked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: #1D1D1D;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

@keyframes subtlePulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.25);
  }
}

/* Locked state - static filled circle */
.custom-cursor.locked {
  background: #1D1D1D;
}

.custom-cursor.locked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* Normal cursor for navigation and UI elements */
nav,
.language-selector,
button,
a {
  cursor: pointer !important;
}



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

a {
  text-decoration: none;
}

hr {
  border: 0;
  border-top: 1px dotted #efefef;
}

img {
  max-width: 100%;
}

h1 {
  color: #1D1D1D;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

a {
  color: rgb(239, 239, 239);
}

button {
  color: white;
  border: 0;
  background: none;
  border: 1px solid #1D1D1D;
  border-radius: 0px;
  padding: 0.2rem;
  height: 30px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: lighter;
}

.error {
  color: #d32752;
  border-color: #d32752;
  border-style: solid;
  margin: 0.5rem;
  padding: 0.2rem;
  border-radius: 0px;
  border-width: 1px;
}

.notification {
  color: rgb(239, 239, 239);
  border-color: rgb(239, 239, 239);
  border-style: solid;
  margin: 0.5rem;
  padding: 0.2rem;
  border-radius: 0px;
  border-width: 1px;
}

.card {
  display: block;
  padding: 0.2rem;
  border: 1px solid #ddd;
  box-shadow: 1px 3px 5px rgba(0, 0, 0, 0.1);
}

.card .card-title {
  font-size: 1rem;
  padding-bottom: 0.2rem;
  font-weight: bold;
}

.card .card-body {
  font-size: 1rem;
}

.card .card-body a {
  text-decoration: underline;
}

.header {
  padding: 0;
  margin: 0;
  text-decoration: none;
  list-style: none;
  box-sizing: border-box;
  height: 65px;
  width: 100%;
  border-bottom: 1px solid #1D1D1D;
}

.header ul {
  float: right;
  margin-right: 60px;
  white-space: nowrap;
}

.header ul li {
  display: inline-block;
  line-height: 65px;
  margin: 0 8px;
  vertical-align: top;
}

/* Consistent navigation item spacing */
.header ul li a[data-translate] {
  display: inline-block;
  min-width: 80px;
  text-align: center;
  margin: 0 10px;
}


#hometitle {
  margin-right: 800px;
  margin-left: 0;
  min-width: auto;
  text-align: left;
}


.header ul li a {
  position: relative;
  color: #1D1D1D;
  font-size: 14px;
  text-decoration: none;
  font-weight: 300;
}

.header ul li a::after {
  content: "";
  position: absolute;
  top: 50%;
  /* Position at the middle of the text vertically */
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #1D1D1D;
  transform: translateY(-50%) scaleX(0);
  /* Initial state: no width */
  transform-origin: bottom left;
  transition: transform 0.3s ease;
  /* Transition effect */
}

.header ul li a:hover::after {
  transform: translateY(-50%) scaleX(1);
  /* Final state: full width */
}

/* Language selector styles */
.language-selector {
  position: relative;
  display: inline-block;
  line-height: 65px;
  margin: 0 8px;
}

.language-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border: 1px solid #1D1D1D;
  z-index: 1000;
  min-width: 150px;
  margin-top: -2px;
}

.language-dropdown a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #1D1D1D;
  font-size: 12px;
  transition: background-color 0.3s ease;
  border-bottom: 1px dotted #ddd;
}

.language-dropdown a:last-child {
  border-bottom: none;
}

.language-dropdown a:hover {
  background-color: rgb(239, 239, 239);
}

.language-selector:hover .language-dropdown,
.language-dropdown:hover {
  display: block;
}

.left-portion {
  float: left;
  width: 92%;
}

.left-portion .top-part {
  height: 200px;
}

.left-portion .top-part .ricardo {
  height: 110px;
  width: 100%;
  align-items: center;
}

.left-portion .top-part .ricardo svg {
  width: 1300px;
  margin-top: 35px;
  margin-left: 20px;
  margin-bottom: -1000px;
}

.left-portion .right-part {
  height: 600px;
  width: 65%;
  float: right;
}

.left-portion .right-part .right-part-divider {
  height: 72%;
}

.left-portion .right-part h2 {
  color: #1D1D1D;
  margin-left: 20px;
  font-size: 100px;
  line-height: 80px;
  font-weight: 450;
  letter-spacing: -5px;
}

.left-portion .left-part {
  height: 600px;
  width: 35%;
  float: left;
}

.right-portion {
  position: fixed;
  top: 65px;
  right: 0;
  width: 8%;
  height: calc(100vh - 65px);
  box-sizing: border-box;
  border-left: 1px solid #1D1D1D;
  border-bottom: 1px solid #1D1D1D;
}

.slider-container {
  margin-top: 35px;
  width: 100px;
  /* Width of the slider */
  height: calc(92%);
  /* Height of the slider - full height minus top margin */
  position: relative;
  margin-left: 30px;
  user-select: none;
  /* Prevent text selection */
}

.slider-bar {
  width: 30px;
  /* Width of the bar */
  height: 100%;
  position: absolute;
  left: 30%;
  transform: translateX(-50%);
  border-radius: 0px;
  border: 1px solid #1D1D1D;
  overflow: hidden;
}

.slider-fill {
  width: 100%;
  background-color: #1D1D1D;
  position: absolute;
  bottom: 0;
}

.slider-handle {
  width: 50px;
  /* Width of the handle */
  height: 60px;
  /* Height of the handle */
  position: absolute;
  left: 29.5%;
  transform: translateX(-50%);
  /* Only shift horizontally */
  background-image: url("/media/doc3.png");
  /* Path to your figure image */
  background-size: cover;
  background-position: center;
  /* Center the image within the handle */
  cursor: pointer;
  /* Remove the initial bottom percentage to be set by JavaScript */
}

.left-part p1 {
  float: inline-end;
  margin-top: 125px;
  margin-right: 40px;
  margin-bottom: 14px;
  font-weight: 200;
  color: #1D1D1D;
  font-size: 14px;
  user-select: none;
  /* Prevent text selection */


}

.left-part svg {
  margin-left: 70px;
  width: 410px;
  height: auto;
}

.left-part svg #buttonCircle {
  fill: rgb(239, 239, 239);
  cursor: pointer;
}

.left-part svg #buttonCircle:hover {
  fill: #1D1D1D;
}

.right-spacer {
  height: 280px;
}

.window {
  margin-left: 27px;
  height: 125px;
  width: 290px;
  border: 1px solid #1D1D1D;
}

.window .window-handle {
  height: 20%;
  border-bottom: 1px solid #1D1D1D;
  background-color: rgb(239, 239, 239);
}

.window .window-handle img {
  margin-right: 6px;
  float: right;
  margin-top: 4px;
  height: 16px;
  width: auto;
}

.window .window-content h1 {
  margin-top: 20px;
  line-height: 25px;
  width: 115px;
  margin-left: 85px;
  font-size: 35px;
}

.window .window-content .buttons {
  margin: 0 15px;
}

.window .window-content .buttons button {
  width: 120px;
  margin-left: 5px;
  font-size: 15px;
  color: black;
  cursor: pointer;
  user-select: none;
  /* Prevent text selection */

}

.window-content h1 {
  user-select: none;

}

.window .window-content .buttons button:hover {
  background-color: rgb(239, 239, 239);
}

.o,
.l {
  /* Makes the inside of the letters transparent */
  stroke: black;
  /* Sets the color of the outline */
  stroke-width: 2;
  /* Sets the thickness of the outline */
  cursor: pointer;
  fill: black;
  fill-opacity: 0%;
}

.a {
  stroke: black;
  /* Sets the color of the outline */
  stroke-width: 2;
  /* Sets the thickness of the outline */
  cursor: pointer;
  fill-opacity: 100%;
  fill: white;
}

.o {
  line-height: 10px;
}

.tv-container {
  position: relative;
  width: fit-content;
}

.tv-container svg {
  position: relative;
  z-index: 1;
}

/* Hide custom cursor on navigation elements */
nav:hover .custom-cursor,
.language-selector:hover .custom-cursor,
button:hover .custom-cursor,
a:hover .custom-cursor {
  display: none;
}

.tv-screen {
  position: absolute;
  z-index: 0;
  top: -134.2px;
  /* Adjust based on the screen position */
  left: -316.6px;
  /* Adjust based on the screen position */
  scale: 19.6%;
  /* Adjust based on the screen size */
  pointer-events: none;
  transform-origin: center;
  /* Set origin to left for perspective skewing */
  transform: rotate(-1deg) perspective(1400px) rotateY(1.9deg) rotateX(-2.7deg) skewX(-1.5deg) skewY(-2.5deg);
  /* Tweak values for best fit */
  /* Adjust points to create trapezoidal shape */
}


.strikethrough {
  text-decoration: line-through;
  text-decoration-color: black;
  /* Optional: Red color for the line */
  text-decoration-thickness: 1px;
  /* Optional: Thickness for better visibility */
}

/* Default state with no strikethrough */
.no-strikethrough {
  text-decoration: none;
}

/* Blinking animation */
/* Blinking background animation */
@keyframes blink-background {
  0% {
    background-color: transparent;
    /* Default button color */
  }

  50% {
    background-color: #ececec;
    /* Blinking color */
  }

  100% {
    background-color: transparent;
  }
}

/* Apply the blinking background animation */
.blinking {
  animation: blink-background 1s infinite;
  /* 1-second cycle, repeating indefinitely */
}

#text {
  user-select: none;
  /* Prevent text selection */

}


/* Smaller font for long Japanese words */
#text.japanese-long-word {
  font-size: 85px !important;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet breakpoint (768px - 1024px) */
@media screen and (max-width: 1024px) {
  body {
    min-width: auto;
  }

  .header ul {
    margin-right: 20px;
  }

  #hometitle {
    margin-right: 400px;
  }

  .left-portion .top-part .ricardo svg {
    width: 900px;
    margin-left: 10px;
  }

  .left-portion .right-part h2 {
    font-size: 80px;
    margin-left: 15px;
  }

  .slider-container {
    margin-left: 15px;
  }
}

/* Mobile breakpoint (below 768px) */
@media screen and (max-width: 768px) {
  body {
    min-width: auto;
    font-size: 14px;
    overflow-y: hidden;
    /* Prevent vertical scrolling globally */
    -webkit-overflow-scrolling: touch;
    position: fixed;
    width: 100%;
    height: 100%;
  }

  /* Hide custom cursor on mobile */
  body.home-page {
    cursor: default;
  }

  body.home-page .website-content {
    cursor: default;
  }

  .custom-cursor {
    display: none;
  }

  /* Mobile header with hamburger menu */
  .header {
    height: 50px;
    padding: 0 15px;
    position: relative;
  }

  .header ul {
    position: fixed;
    top: 50px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 50px);
    background: white;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: left 0.3s ease;
    margin: 0;
    padding-top: 50px;
    z-index: 1000;
    border-top: 1px solid #1D1D1D;
  }

  .header ul.active {
    left: 0;
  }

  .header ul li {
    display: block;
    margin: 15px 0;
    line-height: normal;
  }

  .header ul li a {
    font-size: 16px;
    padding: 10px 20px;
    display: block;
  }

  #hometitle {
    display: none;
  }

  /* Hamburger menu button */
  .hamburger {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 25px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
  }

  .hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #1D1D1D;
    margin: 4px 0;
    transition: 0.3s;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  /* Mobile layout - vertical stacking */
  .container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  .website-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 15px;
    overflow-x: hidden;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .first-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: auto;
  }

  /* Hide the right sidebar completely on mobile */
  .right-portion {
    display: none;
  }

  /* Restructure left portion for mobile */
  .left-portion {
    width: 100%;
    float: none;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Name at the top */
  .left-portion .top-part {
    order: 1;
    height: auto;
    margin-bottom: 152px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }

  /* Hide the knob on mobile to prevent horizontal scrolling */
  #position-rotate-css-knob,
  .ui-knob,
  .ui-knob-indicator {
    display: none !important;
  }

  .left-portion .top-part .ricardo {
    height: auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .left-portion .top-part .ricardo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .left-portion .top-part .ricardo svg {
    width: 200%;
    left: 20px;
    top: 70px;
    position: fixed;
    max-width: 800px;
    margin: 0;
    height: auto;
    display: block;
    /* First line - show left half (ricardo + o) */
    clip-path: inset(0 53% 0 0);
  }

  /* Create duplicate for second line (almeida) */
  .left-portion .top-part .ricardo::after {
    content: '';
    width: 200%;
    position: fixed;
    right: 36px;
    top: 110px;
    max-width: 600px;
    height: 120px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3205.56 338.68'%3E%3Cg%3E%3Cpath d='M56.02,304.45V88.45h48v52.8l-5.2-6.8c2.8-7.47,6.53-14.27,11.2-20.4,4.67-6.13,10.4-11.2,17.2-15.2,5.2-3.2,10.87-5.7,17-7.5,6.13-1.8,12.47-2.93,19-3.4,6.53-.47,13.07-.3,19.6,.5v50.8c-6-1.87-12.97-2.5-20.9-1.9-7.93,.6-15.1,2.43-21.5,5.5-6.4,2.93-11.8,6.83-16.2,11.7-4.4,4.87-7.73,10.6-10,17.2-2.27,6.6-3.4,14.03-3.4,22.3v110.4H56.02Z' fill='black'/%3E%3Cpath d='M224.81,58.45V10.45h54.4V58.45h-54.4Zm0,246V88.45h54.4v216h-54.4Z' fill='black'/%3E%3Cpath d='M434.41,310.45c-22.4,0-41.6-5-57.6-15s-28.27-23.6-36.8-40.8c-8.53-17.2-12.8-36.6-12.8-58.2s4.43-41.4,13.3-58.6c8.87-17.2,21.37-30.73,37.5-40.6,16.13-9.87,35.2-14.8,57.2-14.8,25.47,0,46.83,6.43,64.1,19.3,17.27,12.87,28.3,30.43,33.1,52.7l-54.4,14.4c-3.2-11.2-8.77-19.93-16.7-26.2-7.93-6.27-16.9-9.4-26.9-9.4-11.47,0-20.87,2.77-28.2,8.3-7.33,5.53-12.73,13.07-16.2,22.6-3.47,9.53-5.2,20.3-5.2,32.3,0,18.8,4.17,34.03,12.5,45.7,8.33,11.67,20.7,17.5,37.1,17.5,12.27,0,21.6-2.8,28-8.4,6.4-5.6,11.2-13.6,14.4-24l55.6,11.6c-6.13,22.93-17.73,40.6-34.8,53-17.07,12.4-38.13,18.6-63.2,18.6Z' fill='black'/%3E%3Cpath d='M632.4,310.45c-15.47,0-28.57-2.97-39.3-8.9-10.73-5.93-18.87-13.87-24.4-23.8-5.53-9.93-8.3-20.9-8.3-32.9,0-10,1.53-19.13,4.6-27.4,3.07-8.27,8.03-15.57,14.9-21.9,6.87-6.33,16.1-11.63,27.7-15.9,8-2.93,17.53-5.53,28.6-7.8,11.07-2.27,23.6-4.43,37.6-6.5,14-2.07,29.4-4.37,46.2-6.9l-19.6,10.8c0-12.8-3.07-22.2-9.2-28.2-6.13-6-16.4-9-30.8-9-8,0-16.33,1.93-25,5.8-8.67,3.87-14.73,10.73-18.2,20.6l-49.2-15.6c5.47-17.87,15.73-32.4,30.8-43.6,15.07-11.2,35.6-16.8,61.6-16.8,19.07,0,36,2.93,50.8,8.8,14.8,5.87,26,16,33.6,30.4,4.27,8,6.8,16,7.6,24s1.2,16.93,1.2,26.8v132h-47.6v-44.4l6.8,9.2c-10.54,14.53-21.9,25.03-34.1,31.5-12.2,6.47-27.63,9.7-46.3,9.7Zm11.6-42.8c10,0,18.43-1.77,25.3-5.3,6.87-3.53,12.33-7.57,16.4-12.1,4.07-4.53,6.83-8.33,8.3-11.4,2.8-5.87,4.43-12.7,4.9-20.5,.47-7.8,.7-14.3,.7-19.5l16,4c-16.13,2.67-29.2,4.9-39.2,6.7-10,1.8-18.07,3.43-24.2,4.9-6.13,1.47-11.53,3.07-16.2,4.8-5.33,2.13-9.63,4.43-12.9,6.9-3.27,2.47-5.67,5.17-7.2,8.1-1.53,2.93-2.3,6.2-2.3,9.8,0,4.93,1.23,9.17,3.7,12.7,2.46,3.53,5.96,6.23,10.5,8.1,4.53,1.87,9.93,2.8,16.2,2.8Z' fill='black'/%3E%3Cpath d='M805.6,304.45V88.45h48v52.8l-5.2-6.8c2.8-7.47,6.53-14.27,11.2-20.4,4.67-6.13,10.4-11.2,17.2-15.2,5.2-3.2,10.87-5.7,17-7.5,6.13-1.8,12.47-2.93,19-3.4,6.53-.47,13.07-.3,19.6,.5v50.8c-6-1.87-12.97-2.5-20.9-1.9-7.93,.6-15.1,2.43-21.5,5.5-6.4,2.93-11.8,6.83-16.2,11.7-4.4,4.87-7.73,10.6-10,17.2-2.27,6.6-3.4,14.03-3.4,22.3v110.4h-54.8Z' fill='black'/%3E%3Cpath d='M1054,310.45c-19.87,0-37.27-5-52.2-15-14.93-10-26.57-23.6-34.9-40.8-8.33-17.2-12.5-36.6-12.5-58.2s4.23-41.57,12.7-58.7c8.47-17.13,20.37-30.63,35.7-40.5,15.33-9.87,33.33-14.8,54-14.8s37.8,5,51.8,15,24.6,23.6,31.8,40.8c7.2,17.2,10.8,36.6,10.8,58.2s-3.63,41-10.9,58.2c-7.27,17.2-18.1,30.8-32.5,40.8-14.4,10-32.33,15-53.8,15Zm8.8-48.4c12.13,0,21.83-2.73,29.1-8.2,7.27-5.47,12.5-13.13,15.7-23,3.2-9.87,4.8-21.33,4.8-34.4s-1.6-24.53-4.8-34.4c-3.2-9.87-8.3-17.53-15.3-23-7-5.47-16.17-8.2-27.5-8.2-12.13,0-22.1,2.97-29.9,8.9-7.8,5.93-13.57,13.87-17.3,23.8-3.73,9.93-5.6,20.9-5.6,32.9s1.8,23.17,5.4,33.1c3.6,9.93,9.13,17.83,16.6,23.7,7.47,5.87,17.07,8.8,28.8,8.8Zm49.6,42.4V156.45h-6.8V16.45h54.8V304.45h-48Z' fill='black'/%3E%3Cpath d='M1607.2,310.45c-15.47,0-28.57-2.97-39.3-8.9-10.73-5.93-18.87-13.87-24.4-23.8-5.53-9.93-8.3-20.9-8.3-32.9,0-10,1.53-19.13,4.6-27.4,3.07-8.27,8.03-15.57,14.9-21.9,6.87-6.33,16.1-11.63,27.7-15.9,8-2.93,17.53-5.53,28.6-7.8,11.07-2.27,23.6-4.43,37.6-6.5,14-2.07,29.4-4.37,46.2-6.9l-19.6,10.8c0-12.8-3.07-22.2-9.2-28.2-6.13-6-16.4-9-30.8-9-8,0-16.33,1.93-25,5.8-8.67,3.87-14.73,10.73-18.2,20.6l-49.2-15.6c5.47-17.87,15.73-32.4,30.8-43.6,15.07-11.2,35.6-16.8,61.6-16.8,19.07,0,36,2.93,50.8,8.8,14.8,5.87,26,16,33.6,30.4,4.27,8,6.8,16,7.6,24s1.2,16.93,1.2,26.8v132h-47.6v-44.4l6.8,9.2c-10.54,14.53-21.9,25.03-34.1,31.5-12.2,6.47-27.63,9.7-46.3,9.7Zm11.6-42.8c10,0,18.43-1.77,25.3-5.3,6.87-3.53,12.33-7.57,16.4-12.1,4.07-4.53,6.83-8.33,8.3-11.4,2.8-5.87,4.43-12.7,4.9-20.5,.47-7.8,.7-14.3,.7-19.5l16,4c-16.13,2.67-29.2,4.9-39.2,6.7-10,1.8-18.07,3.43-24.2,4.9-6.13,1.47-11.53,3.07-16.2,4.8-5.33,2.13-9.63,4.43-12.9,6.9-3.27,2.47-5.67,5.17-7.2,8.1-1.53,2.93-2.3,6.2-2.3,9.8,0,4.93,1.23,9.17,3.7,12.7,2.46,3.53,5.96,6.23,10.5,8.1,4.53,1.87,9.93,2.8,16.2,2.8Z' fill='black'/%3E%3Cpath d='M1784.39,304.45V10.45h54.4V304.45h-54.4Z' fill='black'/%3E%3Cpath d='M1898.39,304.45V88.45h48v71.6h6.8v144.4h-54.8Zm130.4,0v-127.6c0-14.27-3.37-25.37-10.1-33.3-6.73-7.93-16.04-11.9-27.9-11.9s-20.43,3.9-27.3,11.7c-6.87,7.8-10.3,17.9-10.3,30.3l-22.8-16c0-14.13,3.53-26.8,10.6-38,7.07-11.2,16.57-20.07,28.5-26.6,11.93-6.53,25.3-9.8,40.1-9.8,16.93,0,30.83,3.6,41.7,10.8,10.87,7.2,18.9,16.8,24.1,28.8,5.2,12,7.8,25.2,7.8,39.6v142h-54.4Zm130,0v-127.6c0-14.27-3.37-25.37-10.1-33.3-6.73-7.93-16.04-11.9-27.9-11.9-7.6,0-14.2,1.77-19.8,5.3-5.6,3.53-9.97,8.47-13.1,14.8-3.13,6.33-4.7,13.63-4.7,21.9l-22.8-15.2c0-14.8,3.5-27.87,10.5-39.2,7-11.33,16.4-20.17,28.2-26.5,11.8-6.33,24.9-9.5,39.3-9.5,24.67,0,43.3,7.3,55.9,21.9,12.6,14.6,18.9,33.7,18.9,57.3v142h-54.4Z' fill='black'/%3E%3Cpath d='M2365.58,310.45c-22.13,0-41.63-4.77-58.5-14.3-16.87-9.53-30.07-22.67-39.6-39.4-9.53-16.73-14.3-35.9-14.3-57.5,0-23.6,4.67-44.13,14-61.6,9.33-17.47,22.2-31.03,38.6-40.7,16.4-9.67,35.27-14.5,56.6-14.5,22.67,0,41.93,5.33,57.8,16,15.87,10.67,27.6,25.67,35.2,45,7.6,19.33,10.27,42.07,8,68.2h-53.8v-20c0-22-3.5-37.83-10.5-47.5-7-9.67-18.43-14.5-34.3-14.5-18.53,0-32.17,5.63-40.9,16.9-8.73,11.27-13.1,27.9-13.1,49.9,0,20.13,4.37,35.7,13.1,46.7,8.73,11,21.57,16.5,38.5,16.5,10.67,0,19.8-2.33,27.4-7,7.6-4.67,13.4-11.4,17.4-20.2l54.4,15.6c-8.13,19.73-20.97,35.07-38.5,46-17.54,10.93-36.7,16.4-57.5,16.4Zm-71.6-98.8v-40.4h143.2v40.4h-143.2Z' fill='black'/%3E%3Cpath d='M2512.38,58.45V10.45h54.4V58.45h-54.4Zm0,246V88.45h54.4v216h-54.4Z' fill='black'/%3E%3Cpath d='M2714.37,310.45c-19.87,0-37.27-5-52.2-15-14.93-10-26.57-23.6-34.9-40.8-8.33-17.2-12.5-36.6-12.5-58.2s4.23-41.57,12.7-58.7c8.47-17.13,20.37-30.63,35.7-40.5,15.33-9.87,33.33-14.8,54-14.8s37.8,5,51.8,15,24.6,23.6,31.8,40.8c7.2,17.2,10.8,36.6,10.8,58.2s-3.63,41-10.9,58.2c-7.27,17.2-18.1,30.8-32.5,40.8-14.4,10-32.33,15-53.8,15Zm8.8-48.4c12.13,0,21.83-2.73,29.1-8.2,7.27-5.47,12.5-13.13,15.7-23,3.2-9.87,4.8-21.33,4.8-34.4s-1.6-24.53-4.8-34.4c-3.2-9.87-8.3-17.53-15.3-23-7-5.47-16.17-8.2-27.5-8.2-12.13,0-22.1,2.97-29.9,8.9-7.8,5.93-13.57,13.87-17.3,23.8-3.73,9.93-5.6,20.9-5.6,32.9s1.8,23.17,5.4,33.1c3.6,9.93,9.13,17.83,16.6,23.7,7.47,5.87,17.07,8.8,28.8,8.8Zm49.6,42.4V156.45h-6.8V16.45h54.8V304.45h-48Z' fill='black'/%3E%3Cpath d='M2936.8,310.23c-15.47,0-28.57-2.97-39.3-8.9-10.73-5.93-18.87-13.87-24.4-23.8-5.53-9.93-8.3-20.9-8.3-32.9,0-10,1.53-19.13,4.6-27.4,3.07-8.27,8.03-15.57,14.9-21.9,6.87-6.33,16.1-11.63,27.7-15.9,8-2.93,17.53-5.53,28.6-7.8,11.07-2.27,23.6-4.43,37.6-6.5,8.2-1.21,16.89-2.5,26.06-3.87,0,0,.12,0,.11-.12-.91-8.86-3.97-15.62-8.76-20.31-6.13-6-16.4-9-30.8-9-8,0-16.33,1.93-25,5.8-8.67,3.87-14.73,10.73-18.2,20.6l-49.2-15.6c5.46-17.87,15.73-32.4,30.8-43.6,15.07-11.2,35.6-16.8,61.6-16.8,19.06,0,36,2.93,50.8,8.8,14.8,5.87,26,16,33.6,30.4,4.27,8,6.8,16,7.6,24,.8,8,1.2,16.93,1.2,26.8v132h-47.6s.02-26.54,.01-26.53c-8.59,10.12-17.69,17.73-27.31,22.83-12.2,6.47-27.63,9.7-46.3,9.7Zm11.6-42.8c10,0,18.43-1.77,25.3-5.3,6.87-3.53,12.33-7.57,16.4-12.1,4.07-4.53,6.83-8.33,8.3-11.4,2.8-5.87,4.43-12.7,4.9-20.5,.28-4.74,.48-9,.59-12.77,0,0,0-.04-.04-.03-8.95,1.51-16.63,2.85-23.05,4-10,1.8-18.07,3.43-24.2,4.9-6.13,1.47-11.53,3.07-16.2,4.8-5.33,2.13-9.63,4.43-12.9,6.9-3.27,2.47-5.67,5.17-7.2,8.1-1.54,2.93-2.3,6.2-2.3,9.8,0,4.93,1.23,9.17,3.7,12.7,2.47,3.53,5.97,6.23,10.5,8.1,4.53,1.87,9.93,2.8,16.2,2.8Z' fill='black'/%3E%3Cpath d='M1413.48,192.6c0,60.42-48.98,109.4-109.4,109.4s-109.4-48.98-109.4-109.4,48.98-109.4,109.4-109.4,109.4,48.98,109.4,109.4Zm-109.19-61.11c-33.14,0-60.01,26.87-60.01,60.01s26.87,60.01,60.01,60.01,60.01-26.87,60.01-60.01-26.87-60.01-60.01-60.01Z' fill='black'/%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
    /* Show right half (almeida) by clipping left side */
    clip-path: inset(0 0 0 47%);
  }

  /* TV in the middle */
  .left-portion .left-part {
    order: 2;
    width: 100%;
    height: auto;
    float: none;
    margin-bottom: 33px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .left-part p1 {
    order: 1;
    float: none;
    margin: 0 0 30px 0;
    text-align: center;
    font-size: 16px;
    max-width: 350px;
    line-height: 1.4;
    display: none;
    /* Hide description in mobile */
  }

  .left-part svg {
    order: 2;
    margin-right: 420px;
    width: 71%;
    max-width: 200px;
    height: auto;
  }

  /* Update TV screen positioning for mobile - properly positioned inside TV frame */
  .tv-screen {
    position: absolute;
    top: -134px;
    left: -316px;
    scale: 19.6%;
    transform: rotate(-1deg) perspective(1400px) rotateY(1.9deg) rotateX(-2.7deg) skewX(-1.5deg) skewY(-2.5deg);
  }

  /* Dynamic text above dialog */
  .left-portion .right-part {
    order: 3;
    width: 100%;
    height: auto;
    float: none;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .left-portion .right-part h2 {
    font-size: 70px;
    margin: 0 0px 0px 0px;
    text-align: center;
    line-height: 1;
    letter-spacing: -2px;
    order: 2;
    /* Changed from 1 to 2 - now appears after dialog */
  }

  /* Window dialog at the bottom */
  .left-portion .right-part .right-part-divider {
    height: auto;
    display: flex;
    justify-content: center;
    margin: 0;
    order: 1;
    margin-bottom: 20px;
    /* Changed from 2 to 1 - dialog now appears first */
  }

  .right-spacer {
    display: none;
  }

  .window {
    margin: 0 auto;
    width: 280px;
    height: 110px;
  }

  .window .window-content h1 {
    font-size: 28px;
    margin-top: 15px;
    width: auto;
    margin-left: 0;
    text-align: center;
  }

  .window .window-content .buttons {
    margin: 10px 15px;
    display: flex;
    justify-content: space-between;
  }

  .window .window-content .buttons button {
    width: 110px;
    margin: 0;
    font-size: 13px;
  }

  /* Language selector adjustments */
  .language-selector {
    line-height: 50px;
    margin: 0 3px;
  }

  .language-dropdown {
    right: -150px;
    min-width: 120px;
  }

  .language-dropdown a {
    font-size: 11px;
    padding: 6px 10px;
  }
}

/* Small mobile breakpoint (below 480px) */
@media screen and (max-width: 480px) {

  body {
    overflow-x: hidden;
    overflow-y: hidden;
    /* Prevent vertical scrolling */
    -webkit-overflow-scrolling: touch;
    position: fixed;
    width: 100%;
    height: 100%;
  }

  .website-content {
    overflow-x: hidden;
    overflow-y: hidden;
    /* Prevent vertical scrolling */
    max-width: 100vw;
    max-height: 100vh;
    /* Limit height to viewport */
    box-sizing: border-box;
  }

  .left-portion .top-part {
    overflow: hidden;
  }

  .left-portion .top-part .ricardo svg {
    margin-left: 0px;
    margin-top: 10px;
    max-width: 480px;
  }

  .left-part svg {
    max-width: 450px;
  }

  .left-portion .right-part h2 {
    font-size: 50px;
  }

  /* Adjust TV screen for smaller mobile */
  .tv-screen {
    top: -351px;
    left: -353px;
    scale: 16.5%;
  }

  .window {
    width: 280px;
    height: 120px;
    margin: 0 auto;
  }

  .window .window-content h1 {
    font-size: 24px;
  }

  .window .window-content .buttons button {
    width: 115px;
    font-size: 12px;
  }

  .header ul li a {
    font-size: 41px;
  }

  .header ul li {
    margin: 0 3px;
  }
}