* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --glow-core:  rgba(215, 246, 255, 0.95);  
  --glow-mid:   rgba(135, 216, 255, 0.75);  
  --glow-outer: rgba( 80, 170, 255, 0.45);  
  --title-color: #f2fbff;
}

body {
  min-height: 100svh;
  font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  color: var(--title-color);
  background: url("backgroundport.jpg") center / cover no-repeat fixed #06152e;
}

.scene {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(18px, 4vw, 48px) clamp(14px, 5vw, 80px) 70px;
}

.title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: clamp(2px, 0.6vw, 6px);
  text-transform: uppercase;
  text-align: center;
  color: var(--title-color);
  text-shadow:
    0 2px 10px rgba(3, 15, 40, 0.9),
    0 0 25px rgba(140, 215, 255, 0.8);
  margin-bottom: clamp(28px, 6vh, 70px);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(42px, 7vw, 96px) clamp(38px, 6vw, 80px);
  width: 100%;
  max-width: 1400px;
}

.frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(190, 230, 255, 0.10);
  backdrop-filter: blur(2px);
  box-shadow:
    0 0  4px 2px var(--glow-core),
    0 0 18px 7px var(--glow-mid),
    0 0 42px 16px var(--glow-outer);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame:hover,
.frame:focus-visible {
  transform: translateY(-6px) scale(1.03);
  box-shadow:
    0 0  5px 3px var(--glow-core),
    0 0 26px 10px var(--glow-mid),
    0 0 60px 22px var(--glow-outer);
}

.frame span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 12px;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #eaf7ff;
  background: linear-gradient(transparent, rgba(4, 18, 45, 0.85));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.frame:hover span,
.frame:focus-visible span {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(46px, 10vw, 70px) clamp(40px, 9vw, 64px);
    max-width: 560px;
  }
}

@media (max-width: 420px) {
  .gallery {
    gap: 40px 34px;
  }
}

/* ---------------------------------------------------------------------------------*/
/* -------------------------------- TILL INFO.HTML ---------------------------------*/
/* ---------------------------------------------------------------------------------*/

.about, .contact {
  background: rgba(190, 230, 255, 0.10);
  backdrop-filter: blur(4px);
  border-radius: 6px;
  transform: translateX(10px);
  padding: 10px 10px;
}

.about h2, .contact h2 {
  margin-bottom: 12px;
  color: #fff;
  text-shadow: 0 0 10px var(--glow-mid);
}

.about, .contact {
  text-shadow: 0 0 6px rgb(0, 0, 0);
}

.top-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.back-button {
  align-self: flex-start;
  display: inline-flex;
  gap: 8px;
  padding: 12px 22px;

  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: none;
  color: var(--title-color);

  background: rgba(6, 21, 46, 0.75);
  border: 1px solid var(--glow-core);
  border-radius: 8px;
  backdrop-filter: blur(4px);

  box-shadow:
    0 0 8px var(--glow-mid),
    0 0 20px var(--glow-outer);

  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.back-button:hover,
.back-button:focus-visible {
  background: rgba(40, 95, 145, 0.85);
  box-shadow:
    0 0 12px var(--glow-core),
    0 0 28px var(--glow-mid);
}

.back-button:focus-visible {
  outline: 2px solid var(--title-color);
  outline-offset: 5px;
}

.translate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;

  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: none;
  color: var(--title-color);

  background: rgba(6, 21, 46, 0.75);
  border: 1px solid var(--glow-core);
  border-radius: 8px;
  backdrop-filter: blur(4px);

  box-shadow:
    0 0 8px var(--glow-mid),
    0 0 20px var(--glow-outer);

  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.translate:hover,
.translate:focus-visible {
  background: rgba(40, 95, 145, 0.85);
  box-shadow:
    0 0 12px var(--glow-core),
    0 0 28px var(--glow-mid);
}

.translate:focus-visible {
  outline: 2px solid var(--title-color);
  outline-offset: 5px;
}

/* ---------------------------------------------------------------------------------*/
/* ------------------------------------- RITA --------------------------------------*/
/* ---------------------------------------------------------------------------------*/

.drawing-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 20px;
}

#yta {
    max-width: 100%;
    height: auto;
    border: 2px solid var(--glow-core);
    box-shadow:
        0 0 8px var(--glow-mid),
        0 0 25px var(--glow-outer);
}

.buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------------------------------------------------------------------------------*/
/* ------------------------------------ FIGMA --------------------------------------*/
/* ---------------------------------------------------------------------------------*/

.frames-container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 4vw, 48px);
  width: 100%;
  margin: 0;
}

#desktop-frame {
  flex: 0 1 auto;
  width: min(400px, 45vw);
  aspect-ratio: 16 / 10;
}

#iphone-frame {
  flex: 0 1 auto;
  width: min(190px, 20vw);
  aspect-ratio: 9 / 19.5;
}