
/* === Base === */

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: white;
  background: linear-gradient(135deg, #1d1d1d 50%, #222222 50%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

ul, li {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color:transparent;outline:none;border:0px solid;
}

/* === Top bar navigation === */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
  display: flex;
  align-items: center;
  padding-left: 1em;
  z-index: 10;
}

.top-bar ul {
  display: flex;
  gap: 1.4em;
}

.top-bar li {
  position: relative;
}

/* Circular color bullets */
.top-bar a {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ff6666;
  transition: transform 0.25s ease;
}

/* each bullet color */
/* Default vivid bullets */
.top-bar li:nth-child(1) a { background-color: gold; }
.top-bar li:nth-child(2) a { background-color: red; }
.top-bar li:nth-child(3) a { background-color: dodgerblue; }
.top-bar li:nth-child(4) a { background-color: lime; }
.top-bar li:nth-child(5) a { background-color: white; }

/* On hover → softer pastel colors */
.top-bar li:nth-child(1) a:hover { background-color: #f8e4a2; } /* soft gold */
.top-bar li:nth-child(2) a:hover { background-color: #f5a3a3; } /* pastel red */
.top-bar li:nth-child(3) a:hover { background-color: #a3c8f5; } /* pastel blue */
.top-bar li:nth-child(4) a:hover { background-color: #a3f5b1; } /* pastel green */
.top-bar li:nth-child(5) a:hover { background-color: #ddd; }     /* soft white */
.top-bar li:nth-child(6) a { background-color: #cc66ff; }

/* Hover scaling */
.top-bar a:hover {
  transform: scale(1.4);
}

/* === Popup card below bullets === */
.top-bar li::after {
  content: attr(data-label);
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  opacity: 0;
  padding: 0.8em 1.2em;
  border: 1px solid #444;
  border-radius: 4px;
 
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  pointer-events: none;
  transform-origin: top center;
  z-index: 999;
  /*********************************/
  background-color: #999; color: #111;
  max-width: 90vw;
  /* ✨ Add smooth transitions for color and background */
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    background-color 0.6s ease,
    color 0.4s ease;
}

/* --- Edge protection --- */
.top-bar li:first-child::after {
  left: 0;
  transform: translateX(0) scale(0.8);
  transform-origin: top left;
}

.top-bar li:last-child::after {
  right: 0;
  left: auto;
  transform: translateX(0) scale(0.8);
  transform-origin: top right;
}

/* Hover to show label + color change */
.top-bar li:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);/****************************/
  background-color: #333; /* from dark gray to light */
  color: #CCC; /* from white to dark text */
}

.top-bar li:first-child:hover::after {
  transform: translateX(0) scale(1);
}

.top-bar li:last-child:hover::after {
  transform: translateX(0) scale(1);
}
 
 
 
 
 

/* === Left nav (mobile only) === */
nav {
  display: none;
  background: #1d1d1d;
  width: 100%;
  text-transform: uppercase;
}

nav a {
  display: block;
  width: 100%;
  padding: 1em;
  text-align: center;
  border-bottom: 1px solid #333;
}

nav a:hover {
  background: #222;
}

/* === Center content === */
.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 100px);
  text-align: center;
}






.square {
  position: relative;
  width: clamp(8%, 8em, 12%);
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: linear-gradient(
    270deg,
    red, orange, yellow, lime, cyan, blue, violet, red
  );
  background-size: 400% 400%;
  animation: rainbowFlow 8s linear infinite;
  overflow: hidden;
}

/* === Animated border (mirrored flow) === */
.square::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 6px;
  border-radius: inherit;
  background: inherit;
  background-size: inherit;
  /* Reverse animation direction: opposite flow */
  animation: rainbowFlow 8s linear infinite reverse;
  
  /* Mask to show only border area */
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: 1; transform: scaleX(-1); /* horizontally flipped gradient */
}


/*************************************************************************

Alternative: “Mirrored reflection” look (flip instead of reverse)

If you want the visual gradient mirrored, not just the animation direction, try:

.square::before {
  ...
  transform: scaleX(-1); /* horizontally flipped gradient */
}
*/
/* === Inner frosted glass core === */
.square::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: calc(10px - 6px);
  background: rgba(30, 30, 30, 0.4);
  backdrop-filter: blur(8px) brightness(1.2);
  -webkit-backdrop-filter: blur(8px) brightness(1.2);
  box-shadow:
    inset 0 0 10px rgba(255, 255, 255, 0.1),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
  z-index: 2;
}

/* === Rainbow animation === */
@keyframes rainbowFlow {
  0%   { background-position: 100% 0%; }
  25%  { background-position: 0% 0%; }
  50%  { background-position: 0% 100%; }
  75%  { background-position: 100% 100%; }
  100% { background-position: 100% 0%; }
}







h1 {
  font-size: 2.8rem;
  letter-spacing: .6em;
  margin-top: 2.5em;
  font-family: 'DeliciousHandrawn-Regular', 'Josefin', Oswald, Arial, sans-serif;
  font-weight: 300;
  text-transform: uppercase; 
  color: #AAA;
  text-shadow: 1px 1px 0px black, -1px -1px 1px #CCC;
}



/* === Foo ooter === *//* === Footer === */
footer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 2em 0;
  background: transparent;
  box-sizing: border-box;
}

/* === Footer Container === */
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  width: 90%;
  max-width: 1000px;
  text-align: center;
  color: #CCC;
}

/* === Footer Items === */
.footer-container div {
  flex: 1 1 200px;
  max-width: 14rem;
  padding: 0.5em;
  border-right: 1px solid #CCC;
  box-sizing: border-box;
}

.footer-container div:last-child {
  border-right: none;
}

.footer-container p {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  font-family: Josefin, Roboto, Arial, sans-serif;
}

.footer-container p:first-line {
  font-weight: 600;
  font-size: 0.9rem;
}

/* === Links === */
.footer-container p a,
.footer-container p a:visited {
  color: #CCC;
  text-decoration: none;
}

.footer-container p a:hover {
  color: #FF4;
}
.footer-container div:nth-child(1) p  { margin-top:10px  !important;}
.footer-container div:nth-child(2) p { margin-top:2px  !important;}
.footer-container div:nth-child(3) p  { padding-top:0px  !important;}


.mail::before {
  content: "\2709";
  display: inline-block;
  font-size: 1.2em;
  margin-right: 0.3em;
}

/* === Responsive Layout === */
@media (max-width: 768px) {
  footer {
    padding: 1.5em 0;
  }

  .footer-container {
    flex-direction: column; /* stack vertically */
    align-items: center;
    text-align: center;
  }

  .footer-container div {
    width: 100%;
    max-width: 100%;
    border: none;
    border-bottom: 1px solid #CCC;
    padding: 1em 0;
  }

  .footer-container div:last-child {
    border-bottom: none;
  }
}