/* --- Font setup --- */
@font-face {
  font-family: "Futura";
  src: url("Futura.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

/* --- Body --- */
body {
  font-family: "Futura", sans-serif;
  margin: 140px auto 40px;
  max-width: 1200px;
  line-height: 1.6;
  color: #ff8ae0;
  background-image: url("backgroundpink.jpg");
  background-position: center;
  background-attachment: fixed;
  background-size: cover;
  cursor: url("./icon_whole_1.cur"), auto;
  padding: 0 20px;
}

/* --- Header --- */
header h1 {
  font-size: 3em;
  margin: 0;
  color: #ff8ae0;
  text-align: left;
}

header p {
  font-size: 1.5em;
  margin: 5px 0 20px;
  color: #ff8ae0;
  text-align: left;
}

/* --- Navigation --- */
nav {
  margin-bottom: 20px;
}

nav a {
  display: block;
  text-decoration: none;
  margin: 8px 0;
  font-size: 1.2em;
  font-weight: bold;
  color: #ff8ae0;
  transition: color 0.2s ease, text-decoration 0.2s ease;
  padding: 8px 0;
}

nav a:hover,
nav a:focus {
  text-decoration: underline !important;
  color: #ffdaea !important;
  cursor: url("./icon_clicked_1.cur"), pointer !important;
}

/* --- Content section --- */
.content {
  display: flex;
  align-items: flex-start;
  font-size: 1em;
  margin-bottom: 20px;
  gap: 30px;
}

.text {
  flex: 3;
  color: #ff8ae0;
}

.avatar {
  flex: 1;
  text-align: center;
  min-width: 120px;
}

.avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 0.5px solid #ff8ae0;
}

/* --- Divider --- */
hr {
  margin: 25px 0;
  border: 0.5px solid #ff8ae0;
}

/* --- Footer --- */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 1em;
  color: #ff8ae0;
  gap: 20px;
}

footer div {
  margin: 5px 0;
}

footer span {
  font-weight: bold;
  color: #ff8ae0;
}

/* --- Clock Bar (UK / EST / Beijing) --- */
.clock-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1150px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999rem;
  padding: 0.6rem 1.2rem;
  font-family: "Futura", sans-serif;
  color: #ff8ae0;
  font-size: 1rem;
  letter-spacing: 0.05em;
  z-index: 100;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 8px rgb(235, 155, 214);
  border: 0.1px solid rgb(255, 255, 255);
}

.clock-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  color: #ff8ae0;
  font-weight: bold;
}

/* --- Marquee --- */
.marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 138, 224, 0.6);
  color: #ff8ae0;
  font-family: "Futura", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin: 80px 0 20px;
}

.marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-left 25s linear infinite;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ===== MOBILE RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
  body {
    margin: 160px auto 40px;
    padding: 0 15px;
  }

  /* Clock Bar - Mobile */
  .clock-bar {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    flex-direction: column;
    gap: 8px;
    padding: 0.8rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
  }

  .clock-item {
    justify-content: center;
    width: 100%;
  }

  /* Marquee - Mobile */
  .marquee {
    margin: 100px 0 20px;
    font-size: 0.9rem;
  }

  /* Header - Mobile */
  header h1 {
    font-size: 2.2em;
    line-height: 1.2;
  }

  header p {
    font-size: 1.2em;
    line-height: 1.4;
  }

  /* Navigation - Mobile */
  nav {
    margin: 25px 0;
  }

  nav a {
    font-size: 1.1em;
    padding: 10px 0;
    text-align: center;
    border-bottom: 0.5px solid rgba(255, 138, 224, 0.3);
  }

  /* Content Section - Mobile */
  .content {
    flex-direction: column-reverse;
    align-items: center;
    gap: 25px;
    text-align: center;
  }

  .text {
    flex: none;
    width: 100%;
    font-size: 1.1em;
    line-height: 1.7;
  }

  .avatar {
    flex: none;
  }

  .avatar img {
    width: 140px;
    height: 140px;
  }

  /* Footer - Mobile */
  footer {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  body {
    margin: 180px auto 30px;
    padding: 0 10px;
  }

  .clock-bar {
    top: 8px;
    padding: 0.7rem 0.8rem;
    font-size: 0.85rem;
  }

  header h1 {
    font-size: 1.8em;
  }

  header p {
    font-size: 1em;
  }

  .marquee {
    font-size: 0.8rem;
    margin: 110px 0 15px;
  }

  nav a {
    font-size: 1em;
  }

  .text {
    font-size: 1em;
  }

  .avatar img {
    width: 120px;
    height: 120px;
  }

  footer {
    font-size: 1em;
  }
}

/* Small height devices */
@media (max-height: 600px) {
  .clock-bar {
    position: relative;
    top: 0;
    margin-bottom: 20px;
  }
  
  body {
    margin-top: 40px;
  }
  
  .marquee {
    margin-top: 20px;
  }
}