/* =========================================================
   SOFIA SILVA — ULTRA COQUETTE / NEOCITIES REWORK
   Inspired by sweet lolita blogs, lace layouts & pink webcore
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Quicksand:wght@400;500;600;700&family=Pixelify+Sans:wght@400;500&display=swap');

/* =========================================================
   RESET & CURSORES PERSONALIZADOS
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Quicksand', sans-serif;
  color: #735d68;
  overflow-x: hidden;
  
  /* Cursor normal para toda a página */
  cursor: url('images/cursor.png'), auto;

  /* Fundo Polka Dots (Bolinhas) */
  background-color: #ffe6f0; 
  background-image: 
    radial-gradient(#ffffff 15%, transparent 16%), 
    radial-gradient(#ffffff 15%, transparent 16%);
  background-size: 36px 36px;
  background-position: 0 0, 18px 18px;
}

/* Cursor POINTER para links e botões */

a, button, .cta-button, .menu-btn, .close-modal, .retro-close-btn, #guestbook-btn, input[type="submit"], input[type="button"], select, option, .ipod-wheel-container, .ipod-btn, .sticker-gif {
  cursor: url('images/pointer.png'), pointer !important;
}

/* Cursor CARET para caixas de texto e inputs */
input[type="text"], input[type="email"], input[type="password"], textarea {
  cursor: url('images/caret.png'), text !important;
}




::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #fffafb; border-left: 2px dashed #ffd4e4; }
::-webkit-scrollbar-thumb { background: #ffc9de; border-radius: 20px; border: 2px solid #fffafb; }
::-webkit-scrollbar-thumb:hover { background: #e6a3bc; }

/* =========================================================
   TYPOGRAPHY & CENTRAMENTO
========================================================= */
/* =========================================================
   EFEITO DE TECLA NOS SELOS
========================================================= */
.clickable-badge {
  cursor: url('images/pointer.png'), pointer !important;
  transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* O que acontece no momento exato do clique */
.clickable-badge:active {
  transform: translateY(4px) scale(0.95);
}
h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  color: #ae748b;
  text-align: center;
  letter-spacing: .5px;
}

h1 { font-size: 4rem; margin-bottom: 15px; }
h2 { font-size: 2.3rem; margin-bottom: 15px; }
h3 { font-size: 1.4rem; }

p, li {
  line-height: 1.9;
  font-size: 15px;
  text-align: center;
}

strong, b { color: #d88daa; }

a {
  text-decoration: none;
  color: #d48ca6;
  transition: .25s ease;
}

a:hover { color: #9d6d80; }

img { max-width: 100%; display: block; margin: 0 auto; }

/* =========================================================
   GLOBAL LAYOUT (TUDO CENTRADO)
========================================================= */

.container, .container1, .layout, header, .modern-footer {
  width: min(1120px, 92%);
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   NAVIGATION (LAÇOS E RENDA)
========================================================= */

nav.nav-slim {
  position: sticky;
  top: 35px;
  z-index: 9999;

  width: min(1120px, 92%);
  margin: 45px auto 55px auto;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 15px 30px;

  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  border-radius: 28px;

  border: 3px solid #ffd4e4;
  box-shadow: 
    0 0 0 5px #fff, 
    0 0 0 8px #ffe6f0, 
    0 18px 35px rgba(234, 182, 201, .28);
}

/* Laços com a tua imagem bow.png */
nav.nav-slim::before {
  content: "";
  position: absolute;
  top: -35px; 
  left: 0;
  width: 100%;
  height: 50px; 
  background-image: url('images/bow.png');
  background-repeat: repeat-x; 
  background-size: contain; 
  background-position: center bottom;
  pointer-events: none; 
  z-index: 10;
}

/* Decorative lace */
nav.nav-slim::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px dotted #f7dce6;
  border-radius: 18px;
  pointer-events: none;
}

/* Nav Sections */
.nav-left { flex: 1; display: flex; justify-content: flex-start; }
.nav-center { flex: 2; display: flex; justify-content: center; align-items: center; gap: 10px; }
.nav-right { flex: 1; display: flex; justify-content: flex-end; align-items: center; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 15px; /* ⬅️ A MAGIA AQUI: Isto empurra os botões um para longe do outro! */
}
/* Nav Buttons */
.nav-center a {
  font-family: 'Pixelify Sans', sans-serif;
  font-size: 14px;
  color: #aa7388;
  background: #fffafb;
  border-radius: 12px;
  
  border: 2px solid #f6dbe5;
  border-bottom: 4px solid #efbfd1;
  
  padding: 10px 18px;
  white-space: nowrap; 
  
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: .2s ease;
  z-index: 2;
}

.nav-center a:hover {
  transform: translateY(2px);
  border-bottom-width: 2px;
  background: #ffe7f0;
  color: #8c6173;
}

/* =========================================================
   HEADER IMAGE
========================================================= */

header img {
  width: 100%;
  border-radius: 28px;
  padding: 10px;
  background: #fff;
  border: 3px solid #ffd6e5;
  box-shadow: 
    0 0 0 6px #fff, 
    0 0 0 10px #ffe8f1, 
    0 18px 30px rgba(232, 180, 200, .2);
  margin-bottom: 45px;
}

/* =========================================================
   MAIN GRID E COLUNAS (AQUI ESTÁ A CORREÇÃO DO ESPAÇAMENTO!)
========================================================= */

.layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 45px; /* Espaço horizontal entre a coluna principal e a sidebar */
  margin-bottom: 50px;
}

.main-content, .sidebar {
  display: flex;
  flex-direction: column;
  gap: 40px; /* Isto obriga as caixas a terem sempre 40px de espaço vertical entre elas! */
}

/* =========================================================
   BOXES & CENTRAMENTO FORÇADO
========================================================= */

.box, .contact-container, .thanks-container, .service-box, .fun-metric {
  position: relative;
  background: #fffdfd;
  border-radius: 28px;
  border: 3px solid #ffd4e4;
  padding: 38px;
  
  box-shadow: 
    0 0 0 5px #fff, 
    0 0 0 9px #ffe9f2, 
    0 18px 35px rgba(232, 180, 200, .18);
  
  display: flex;
  flex-direction: column;
  align-items: center; 
  justify-content: center;
  text-align: center;
  
  overflow: hidden;
  transition: .3s ease;
}

/* Inside lace */
.box::before, .contact-container::before, .thanks-container::before, .service-box::before, .fun-metric::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px dotted #f5d7e2;
  border-radius: 18px;
  pointer-events: none;
}

/* Tiny hearts */
.box::after, .service-box::after, .fun-metric::after {
  content: "୨୧";
  position: absolute;
  top: 16px;
  right: 20px;
  color: #f0bfd1;
  font-size: 14px;
}

/* Floating hover */
.box:hover, .service-box:hover, .fun-metric:hover {
  transform: translateY(-5px);
}

/* Textos dentro das caixas */
.box p, .contact-container p { color: #76626c; text-align: center; }
.box h2, .contact-container h2 { margin-bottom: 15px; text-align: center; }

/* =========================================================
   SERVICES
========================================================= */

.service-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  width: 100%;
}

.service-box { background: #fffafb; padding: 25px; }

.service-box img {
  border-radius: 18px;
  border: 2px dashed #f3d8e2;
  margin-bottom: 18px;
}

/* =========================================================
   BUTTONS
========================================================= */

.cta-button, .back-button, .cv-button, #language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
  font-family: 'Pixelify Sans', sans-serif;
  letter-spacing: 1px;
  
  background: #fffafb;
  color: #aa7288 !important;
  border-radius: 14px;
  
  border: 2px solid #efbfd1;
  border-bottom: 5px solid #efbfd1;
  transition: .2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.cta-button:hover, .back-button:hover, .cv-button:hover, #language-toggle:hover {
  transform: translateY(3px);
  border-bottom-width: 2px;
  background: #ffe8f1;
}

.cta-button { padding: 14px 34px; font-size: 16px; margin-top: 20px; }
.back-button { padding: 12px 24px; }
.cv-button { padding: 10px 18px; }
#language-toggle { height: 42px; padding: 0 20px; z-index: 2; }

/* =========================================================
   SIDEBAR METRICS
========================================================= */

.fun-metric { padding: 35px 25px; }
.metric-num { font-family: 'Pixelify Sans', sans-serif; font-size: 36px; color: #d78ca8; line-height: 1.1; }
.metric-text { margin-top: 8px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #a27d8b; }

/* =========================================================
   SOCIALS
========================================================= */
.footer-bottom{
  margin-top: 25px;
}
.socials, .footer-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}

.socials a, .footer-socials a {
  width: 48px;
  height: 48px;
  aspect-ratio: 1/1;
  flex-shrink: 0;
  border-radius: 50%;
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  background: #fff;
  border: 2px dashed #f3d8e2;
  color: #c8849d;
  transition: .25s ease;
}

.socials a:hover, .footer-socials a:hover {
  transform: translateY(-5px) rotate(10deg);
  background: #ffe7f0;
  border-style: solid;
}

/* =========================================================
   FOOTER
========================================================= */

.modern-footer {
  position: relative;
  margin-top: 50px;
  padding: 70px 8% 30px;
  background: #fff;
  border-radius: 35px 35px 0 0;
  border-top: 3px dashed #f4d8e2;
  box-shadow: 0 -12px 30px rgba(234, 182, 201, .18);
}

.modern-footer::before {
  content: "✿ ⋆ ˚｡⋆ ୨୧ ⋆｡˚ ⋆ ✿";
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffe7f0;
  border: 2px solid #ffd4e4;
  border-radius: 30px;
  padding: 6px 16px;
  color: #efb4c9;
  font-family: 'Quicksand', sans-serif;
  letter-spacing: 2px;
}


.footer-links, .footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 45px;
  text-align: center;
}

/* Isto diz aos 3 blocos para crescerem e ocuparem o espaço disponível de forma igual */
.footer-brand, .footer-links, .footer-contact {
  flex: 1 1 250px; 
}
/* =========================================================
   PORTFOLIO & REELS
========================================================= */
/* =========================================
   COOKIE BANNER (AVISO)
========================================= */
.cookie-banner {
  position: fixed;
  bottom: -150%; /* Escondido fora do ecrã no início */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  background: #fffdfd;
  border: 3px solid #ffd4e4;
  border-radius: 25px;
  padding: 15px 25px;
  box-shadow: 0 0 0 6px #fff, 0 0 0 10px #ffe9f2, 0 15px 30px rgba(232, 180, 200, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 9999; /* Fica sempre por cima de tudo */
  transition: bottom 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Quando ganha a classe .show, ele sobe e aparece */
.cookie-banner.show {
  bottom: 30px;
}

.cookie-content {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
}

.cookie-content p {
  font-size: 14px;
  color: #8c6173;
  margin: 0;
  line-height: 1.5;
}

/* Para telemóveis, os itens ficam em coluna */
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}
.project-divider {
  font-family: 'Pixelify Sans', sans-serif;
  color: #e6a3bc;
  font-size: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.reel-cover-container {
  position: relative;
  overflow: hidden;
  max-width: 320px;
  margin: 25px auto;
  border-radius: 24px;
  background: #fff;
  padding: 7px;
  border: 2px solid #f4d5e1;
  box-shadow: 0 10px 20px rgba(232, 180, 200, .12);
}

.reel-img { border-radius: 18px; }

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #fff;
  background: rgba(255, 192, 218, .25);
  backdrop-filter: blur(3px);
}

/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.box, .service-box, .fun-metric, header img {
  animation: fadeUp .8s ease both;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {
  h1 { font-size: 2.7rem; }
  .layout { grid-template-columns: 1fr; gap: 40px; }
  
  nav.nav-slim {
    padding: 15px 20px;
    margin-top: 40px;
  }
  
  .nav-center { display: none; }
  
  .menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 26px;
    color: #a87b8d;
  }
  
  .box, .service-box, .fun-metric { padding: 25px; }
  .modern-footer { padding: 55px 8% 25px; }
}
/* =========================================================
   Y2K FEATURED PROJECTS
========================================================= */

.y2k-projects-box {
  position: relative;

  overflow: visible !important;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.95),
      rgba(255,244,248,0.96)
    );

  padding-top: 45px;
}

/* HEADER */

.y2k-header {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 16px;

  margin-bottom: 10px;
}

.y2k-header h2 {
  font-size: 2rem;

  text-shadow:
    0 0 8px rgba(255,192,222,0.4);
}

.y2k-star {
  width: 28px;
  image-rendering: pixelated;
}

.y2k-project-subtitle {
  font-size: 14px;

  opacity: 0.8;

  margin-bottom: 35px;

  font-family: 'Pixelify Sans', sans-serif;

  letter-spacing: 1px;
}

/* GRID */

.y2k-projects-grid {
  width: 100%;

  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(250px, 1fr));

  gap: 30px;
}

/* CARD */

.y2k-card {
  position: relative;

  background:
    linear-gradient(
      180deg,
      #fff,
      #fff7fb
    );

  border-radius: 26px;

  overflow: hidden;

  border:
    3px solid #ffd4e4;

  box-shadow:
    0 15px 35px rgba(236,188,207,0.18),
    inset 0 0 0 2px rgba(255,255,255,0.8);

  transition: 0.35s ease;

  text-decoration: none;
}

.y2k-card:hover {
  transform:
    translateY(-10px)
    rotate(-1deg)
    scale(1.02);

  box-shadow:
    0 25px 45px rgba(236,188,207,0.28);
}

/* BROWSER BAR */

.browser-bar {
  height: 34px;

  background:
    linear-gradient(
      180deg,
      #ffe4ee,
      #ffd7e6
    );

  display: flex;
  align-items: center;

  gap: 8px;

  padding-left: 14px;

  border-bottom:
    2px solid #f7cadb;
}

.browser-bar span {
  width: 10px;
  height: 10px;

  border-radius: 50%;

  background: white;

  border: 1px solid #f1b9cf;
}

/* STICKERS */

.sticker {
  position: absolute;

  top: 45px;
  right: 14px;

  width: 42px;
  height: 42px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: white;

  border: 2px solid #ffd3e2;

  box-shadow:
    0 5px 15px rgba(0,0,0,0.08);

  font-size: 18px;

  color: #d48ca6;

  z-index: 3;
}

.sticker-heart {
  transform: rotate(8deg);
}

.sticker-star {
  transform: rotate(-10deg);
}

.sticker-bow {
  transform: rotate(6deg);
}

/* IMAGE */

.y2k-card img {
  width: 100%;
  height: 220px;

  object-fit: cover;

  transition: 0.5s ease;
}

.y2k-card:hover img {
  transform: scale(1.06);
}

/* CONTENT */

.y2k-card-content {
  padding: 22px;
}

.pixel-label {
  display: inline-block;

  margin-bottom: 14px;

  padding: 6px 12px;

  border-radius: 999px;

  background: #fff0f6;

  border: 1px solid #f3cadb;

  font-size: 10px;

  letter-spacing: 2px;

  color: #be7f98;

  font-family: 'Pixelify Sans', sans-serif;
}

.y2k-card-content h3 {
  font-size: 1.7rem;

  margin-bottom: 10px;

  color: #a86e84;
}

.y2k-card-content p {
  font-size: 14px;

  line-height: 1.7;

  color: #76636d;
}

/* FOOTER DECO */

.projects-footer-decoration {
  margin-top: 35px;

  display: flex;
  justify-content: center;

  gap: 18px;

  color: #e7a8bf;

  font-size: 18px;
}

/* MOBILE */

@media (max-width: 768px) {

  .y2k-projects-grid {
    grid-template-columns: 1fr;
  }

  .y2k-card img {
    height: 240px;
  }

}
/* =========================================================
   CBOX / COMMENT BOX AESTHETIC
========================================================= */

.cbox-container {
  background: repeating-linear-gradient(
    45deg,
    #fffafb,
    #fffafb 10px,
    #ffe6f0 10px,
    #ffe6f0 20px
  );
  border: 3px solid #ffd4e4;
  border-radius: 20px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(232, 180, 200, .12);
  margin-top: 30px;
  position: relative;
}

.cbox-title {
  background: #ff8ab6;
  color: white;
  font-size: 22px;
  padding: 5px;
  border-radius: 12px;
  margin-bottom: 12px;
  text-shadow: 1px 1px 0px #d46b95;
  border: 2px solid #ffb3d1;
  letter-spacing: 1px;
}

.cbox-messages {
  background: rgba(255, 255, 255, 0.85);
  border: 2px dashed #f4d5e1;
  height: 180px;
  overflow-y: auto;
  text-align: left;
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 12px;
}

/* Scrollbar minúscula só para a cbox */
.cbox-messages::-webkit-scrollbar { width: 6px; }
.cbox-messages::-webkit-scrollbar-track { background: transparent; }
.cbox-messages::-webkit-scrollbar-thumb { background: #ffc9de; border-radius: 10px; }

.cbox-msg {
  border-bottom: 1px solid #ffe6f0;
  padding-bottom: 6px;
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.4;
}

.cbox-msg:last-child { border-bottom: none; margin-bottom: 0; }

.cbox-name { 
  color: #e85d96; 
  font-weight: 700; 
}

.cbox-time { 
  color: #f0a3c2; 
  float: right; 
  font-size: 11px; 
}

.cbox-text { 
  color: #a27d8b; 
  display: block; 
  margin-top: 2px; 
}

.cbox-input-area {
  background: rgba(255, 255, 255, 0.8);
  padding: 8px;
  border-radius: 12px;
  border: 2px solid #f4d5e1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cbox-input {
  width: 100%;
  border: 1px dashed #f4d5e1;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-family: 'Quicksand', sans-serif;
  color: #a27d8b;
  font-size: 13px;
  outline: none;
}

.cbox-input:focus { border-style: solid; border-color: #ff8ab6; }

.cbox-footer {
  font-size: 12px;
  color: #e85d96;
  margin-top: 15px;
  line-height: 1.5;
  background: rgba(255,255,255,0.7);
  padding: 10px;
  border-radius: 10px;
}
/* =========================================================
   GUESTBOOK MODAL (OVERLAY)
========================================================= */

.modal-overlay {
  display: none; /* Escondido por defeito */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 230, 240, 0.85); /* Fundo rosa translúcido */
  backdrop-filter: blur(5px);
  z-index: 100000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  width: 90%;
  max-width: 400px;
  position: relative;
  animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close-modal {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #ff8ab6;
  color: white;
  border: 2px solid #ffb3d1;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(232, 180, 200, 0.4);
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  transform: scale(1.1) rotate(90deg);
  background: #e85d96;
}

/* Efeito flutuante e de botão na cereja */
#guestbook-btn {
  cursor: url('images/pointer.png'), pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

#guestbook-btn:hover {
  transform: scale(1.08) rotate(3deg);
  filter: drop-shadow(0 10px 15px rgba(232, 180, 200, 0.6));
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
/* =========================================================
   MENU HAMBURGER & MOBILE DROPDOWN (CORREÇÃO)
========================================================= */

/* 1. Esconde o hambúrguer no PC e limpa o design feio do navegador */
.menu-btn {
  display: none;
  background: none !important;
  border: none !important;
  font-size: 26px;
  color: #a87b8d;
  cursor: pointer;
  outline: none;
  padding: 5px;
}

.menu-btn:hover {
  color: #d48ca6;
}

/* 2. Como a navegação se comporta em ecrãs pequenos (Telemóveis e Tablets) */
@media (max-width: 950px) {
  
  /* Faz aparecer o botão hambúrguer */
  .menu-btn {
    display: block; 
  }

  /* Transforma a barra de links num menu suspenso escondido */
  .nav-center {
    display: none; /* Escondido por defeito */
    position: absolute;
    top: 110%; /* Fica logo abaixo da barra principal */
    left: 0;
    width: 100%;
    
    background: #fffdfd;
    flex-direction: column; /* Links em lista vertical */
    gap: 15px;
    padding: 25px;
    
    border-radius: 25px;
    border: 3px solid #ffd4e4;
    box-shadow: 0 15px 30px rgba(232, 180, 200, 0.2);
    z-index: 1000;
  }

  /* Quando o JavaScript ativa o menu (ao clicar no hambúrguer) */
  .nav-center.active {
    display: flex;
    animation: menuSlideDown 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  }

  /* Animação fofa de entrada do menu */
  @keyframes menuSlideDown {
    from { 
      opacity: 0; 
      transform: translateY(-15px); 
    }
    to { 
      opacity: 1; 
      transform: translateY(0); 
    }
  }

  /* Ajusta os botões do menu para ficarem 100% da largura no telemóvel */
  .nav-center a {
    width: 100%;
    text-align: center;
  }
}
/* =========================================================
   IPOD WIDGET (CSS ART)
========================================================= */
.ipod-player {
  background: #f0f0f0; /* Plástico cinza clarinho do iPod */
  border-radius: 20px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: inset -2px -2px 6px rgba(0,0,0,0.1), inset 2px 2px 6px #fff, 0 5px 15px rgba(232, 180, 200, 0.4);
  border: 1px solid #d4d4d4;
  margin-top: 10px;
}

.ipod-screen {
  /* Fundo rosa com bolinhas brancas (Polka dots) */
  background-color: #ffe6f0;
  background-image: radial-gradient(#ffffff 2px, transparent 2px);
  background-size: 12px 12px;
  
  border: 3px solid #1a1518; /* Borda preta da imagem */
  border-radius: 10px;
  padding: 8px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.15);
}

.ipod-wheel-container {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}

.ipod-wheel {
  width: 100%;
  height: 100%;
  background: #fdfdfd;
  border-radius: 50%;
  box-shadow: inset 0 -2px 5px rgba(0,0,0,0.05), 0 2px 5px rgba(0,0,0,0.15);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ipod-wheel-center {
  width: 32px;
  height: 32px;
  background: #e6e6e6;
  border-radius: 50%;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.15);
}

.ipod-btn {
  position: absolute;
  color: #999;
  font-size: 11px;
  font-weight: bold;
  font-family: Arial, sans-serif;
}

.btn-menu { top: 6px; }
.btn-fw { right: 8px; font-size: 10px; }
.btn-rw { left: 8px; font-size: 10px; }
.btn-play { bottom: 8px; font-size: 10px; display: flex; gap: 3px; align-items: center; }
/* =========================================================
   CANETA DECORATIVA NOS CONTACTOS
========================================================= */
.caneta-decorativa {
  position: absolute;
  top: 43%;
  right: -155px;
  width: 350px;
  transform: rotate(-5deg);
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(5px 10px 15px rgba(232, 180, 200, 0.4));
  transition: transform 0.3s ease;
}

/* Ajuste para telemóveis para a caneta não desaparecer do ecrã */
@media (max-width: 788px) {
  .caneta-decorativa {
    display: none; /* Isto faz com que a caneta desapareça por completo no telemóvel! */
  }
}
/* =========================================================
   FOTO LATERAL (ESTILO WEBCORE)
========================================================= */
.about-intro-wrapper {
  display: flex;
  align-items: flex-end; /* Alinha a imagem e o texto pela base */
  gap: 15px; /* ⬅️ A MAGIA AQUI: Diminuí o gap de 30px para 15px para estares mais pertinho do texto */
}

.about-text-content {
  flex: 1; /* Faz o texto ocupar o espaço livre restante */
  padding-bottom: 20px;
}

.sofia-side-photo {
  width: 280px; /* Ajusta a largura consoante a tua foto! */
  height: auto;
  
  /* Estes valores negativos fazem a foto "sair" um bocadinho da caixa */
  margin-left: -30px;
  margin-bottom: -30px;
  
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(5px 5px 15px rgba(232, 180, 200, 0.4));
}

/* =========================================================
   ECRÃS ATÉ 970PX (A FOTO VAI PARA BAIXO E CENTRA)
========================================================= */
/* =========================================================
   ECRÃS ATÉ 1057PX (A FOTO VAI PARA BAIXO E CENTRA)
========================================================= */
@media (max-width: 1057px) {
  .about-intro-wrapper {
    flex-direction: column; /* Coloca em coluna */
    align-items: center; /* Centra os elementos */
    text-align: center; /* Centra o texto */
  }
  
  .sofia-side-photo {
    order: 2; /* Atira a imagem para baixo do texto */
    
    /* A MAGIA DO CENTRAMENTO: */
    align-self: center; 
    margin-left: auto;
    margin-right: auto;
    
    margin-bottom: -20px;
    margin-top: -50px;
    
    /* Aumentei-te um tiquinho! (Antes era 250px) */
    width: 290px; 
  }
  
  .about-text-content {
    order: 1; /* Garante que o texto fica em cima */
    padding-bottom: 0;
    width: 100%; /* Força a caixa de texto a ocupar o espaço todo para o centro não desviar */
  }
  
  /* Centra os selos (Selo Made by a Human, etc) */
  .about-text-content div {
    justify-content: center; 
  }
}
/* =========================================================
   POP-UP DO OLIVER (JANELA FLUTUANTE NO CANTO)
========================================================= */
.retro-window-corner {
  position: fixed;
  bottom: 20px; /* Distância do fundo do ecrã */
  left: 20px;   /* Distância da esquerda (podes mudar para right: 20px; se preferires na direita!) */
  width: 280px; /* Um bocadinho mais elegante para não ocupar muito ecrã */
  background: #fffafb;
  border: 2px solid #eebbcc;
  border-radius: 8px 8px 0 0;
  box-shadow: 4px 4px 0px rgba(238, 187, 204, 0.5), 0 10px 25px rgba(0,0,0,0.15);
  z-index: 9999; /* Fica sempre por cima */
  
  /* Animação inicial invisível e "escondida" para baixo */
  opacity: 0;
  transform: translateY(50px);
  visibility: hidden;
  /* Um efeitinho de mola muito suave */
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); 
}

/* Quando o JavaScript adiciona a classe 'show', ele desliza para cima */
.retro-window-corner.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.retro-titlebar {
  background: linear-gradient(to right, #f4c2d7, #f9e0eb);
  border-bottom: 2px solid #eebbcc;
  padding: 6px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 6px 6px 0 0;
}

.retro-title {
  font-family: 'Pixelify Sans', sans-serif;
  font-size: 16px;
  color: #8c5a6d;
  letter-spacing: 1px;
}

.retro-close-btn {
  background: #ffffff;
  border: 1px solid #d4a3b8;
  border-radius: 4px;
  color: #8c5a6d;
  font-family: 'Pixelify Sans', sans-serif;
  font-size: 14px;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 1px 1px 0px #d4a3b8;
  transition: all 0.2s ease;
}

.retro-close-btn:hover {
  background: #f9e0eb;
  transform: translateY(1px);
  box-shadow: none;
}

.retro-content {
  padding: 15px;
  text-align: center;
}

.oliver-img {
  width: 100%;
  max-width: 160px;
  border: 2px dashed #f4c2d7;
  border-radius: 12px;
  margin-bottom: 10px;
}

.oliver-text {
  font-family: 'Quicksand', sans-serif;
  font-size: 14px;
  color: #a27d8b;
  line-height: 1.4;
  margin: 0;
  font-weight: 500;
}

/* Responsividade: Como se comporta em telemóveis */
@media (max-width: 768px) {
  .retro-window-corner {
    bottom: 15px;
    left: 15px;
    right: 15px;
    width: auto; /* Ocupa a largura quase toda no telemóvel para não ficar estranho */
  }
}