@font-face {
  font-family: "Typo Round";
  src: url("./fonts/Typo_Round_Regular_Demo.otf") format("opentype");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Typo Round", sans-serif;
  min-height: 100vh;
  background-image: url("./images/windows_xp_14.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 2rem;
  overflow-x: hidden;
}

/* Custom Cursor (No bubble tracking) */
*, *::before, *::after {
  cursor: url("cursor.cur"), auto !important;
}
a, button, input {
  cursor: url("cursor.cur"), auto !important;
}

/* =========================================================
   TOP BAR: Logo & Settings with Solar Flare
========================================================= */
.top-bar {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
  margin-bottom: 1rem;
}

/* =========================================================
   TOP BAR: Logo
========================================================= */
.logo-title {
  grid-column: 2;
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-align: center;
  /* Filter stays on the parent container */
  filter: drop-shadow(0 2px 0px #ffffff)
          drop-shadow(0 3px 8px rgba(0, 70, 130, 0.45));
}

/* Apply gradient & clipping directly to each individual animated letter */
.logo-title .char {
  display: inline-block;
  background: linear-gradient(
    180deg,
    #e9ecee 0%,
    #d1d9de 28%,
    #c8d5dcba 52%,
    #eff1f2 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #0575b3; /* Fallback for browsers that don't support text clipping */

  animation: float 2.4s ease-in-out infinite alternate;
  animation-delay: calc(var(--char-index, 0) * -0.4s);
}

.logo-title .char:nth-child(2n) {
  animation-name: float-alt;
}

@keyframes float {
  from { transform: translate(2%, -6%) rotate(-1deg); }
  to { transform: translate(-2%, 4%) rotate(2.5deg); }
}

@keyframes float-alt {
  from { transform: translate(0%, -4%) rotate(-1deg); }
  to { transform: translate(2%, 7%) rotate(2.5deg); }
}

/* Settings button with Solar Flare overlay */
.settings-wrapper {
  grid-column: 3;
  justify-self: end;
  position: relative;
  display: flex;
  align-items: center;
}

.solar-flare {
  position: absolute;
  top: -75px;
  right: -60px;
  width: 230px;
  height: 200px;
  pointer-events: none;
  mix-blend-mode: screen; /* Strips black background cleanly */
  opacity: 0.95;
  z-index: 1;
}

.settings-link {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  color: #0b3b5b;
  padding: 0.45rem 1.1rem;
  border-radius: 30px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(215, 238, 255, 0.45) 50%,
    rgba(195, 228, 255, 0.7) 100%
  );
  backdrop-filter: blur(8px);
  border-top: 1px solid #fff;
  border-bottom: 1px solid rgba(135, 185, 220, 0.8);
  box-shadow: 0 4px 12px rgba(0, 60, 110, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.settings-link:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 16px rgba(0, 110, 200, 0.3);
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}
.hamburger-icon span {
  display: block;
  height: 2px;
  background: #0b3b5b;
  border-radius: 2px;
}

/* =========================================================
   SONG BAR (Music Note Progress)
========================================================= */
.song-bar-container {
  width: 100%;
  max-width: 900px;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.song-track {
  position: relative;
  height: 38px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.track-line {
  position: absolute;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.track-progress {
  position: absolute;
  left: 0;
  width: 0%;
  height: 5px;
  background: linear-gradient(90deg, #3ab4e8, #72d244);
  border-radius: 4px;
}

.note-thumb {
  position: absolute;
  left: 0%;
  transform: translate(-50%, -2px);
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  transition: transform 0.1s ease;
}

.note-img {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.note-thumb:hover {
  transform: translate(-50%, -4px) scale(1.1);
}

.note-thumb.playing .note-img {
  animation: notePulse 0.8s ease-in-out infinite alternate;
}

@keyframes notePulse {
  from { transform: scale(1); }
  to { transform: scale(1.15) rotate(5deg); }
}

.song-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f9f9f9;
  text-shadow: 0 1px 0 rgba(164, 159, 159, 0.8);
  margin-top: 4px;
}

/* =========================================================
   WINDOWS GRID: Video Windows
========================================================= */
.windows-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  width: 100%;
  max-width: 1100px;
  margin-bottom: 2rem;
}

.window-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.xp-window {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 30, 60, 0.35);
}

.window-frame-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.window-inner {
  position: absolute;
  top: 31px;    /* Sits just below the XP frame title bar */
  left: 5px;    /* Inside left border */
  right: 5px;   /* Inside right border */
  bottom: 5px;  /* Inside bottom border */
  background: #000;
  overflow: hidden;
  z-index: 1;
}

.window-inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Controls Under Windows */
.window-controls {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  justify-content: center;
}

/* =========================================================
   FRUTIGER AERO GLASS PILL BUTTONS
========================================================= */
.aero-btn {
  flex: 1;
  max-width: 210px;
  display: inline-block;
  padding: 0.7rem 1.25rem;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0b3b5b;
  text-align: center;
  text-decoration: none;
  border-radius: 30px;
  user-select: none;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.5) 45%,
    rgba(215, 238, 255, 0.4) 50%,
    rgba(195, 228, 255, 0.7) 100%
  );
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);

  border-top: 1.5px solid rgba(255, 255, 255, 0.95);
  border-left: 1px solid rgba(255, 255, 255, 0.6);
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1.5px solid rgba(135, 185, 220, 0.65);

  box-shadow: 
    0 4px 12px rgba(0, 60, 110, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    inset 0 -2px 3px rgba(70, 150, 220, 0.2);

  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
}

.aero-btn:hover:not(:disabled) {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(235, 250, 255, 0.65) 48%,
    rgba(168, 225, 255, 0.65) 52%,
    rgba(120, 205, 255, 0.85) 100%
  );
  color: #032d47;
  transform: translateY(-2px);
  box-shadow: 
    0 8px 18px rgba(0, 120, 215, 0.25),
    inset 0 1px 2px rgba(255, 255, 255, 1);
}

.aero-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.aero-btn:disabled {
  opacity: 0.5;
  filter: grayscale(40%);
  cursor: not-allowed !important;
}

/* =========================================================
   BOTTOM AREA: AI Feedback & Vector 
========================================================= */
.bottom-area {
  position: relative;
  width: 100%;
  max-width: 1100px;
  display: flex;
  align-items: flex-end;
  margin-top: 1rem;
}

.vector-accent {
  position: absolute;
  left: -40px;
  bottom: -20px;
  width: 190px;
  height: auto;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 6px 12px rgba(0, 80, 140, 0.25));
}

.feedback-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 90px;
  margin-left: 90px; /* Leaves space for the vector swirl */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2rem;
  border-radius: 20px;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.75) 0%,
    rgba(255, 255, 255, 0.45) 45%,
    rgba(220, 240, 255, 0.5) 100%
  );
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);

  border-top: 2px solid rgba(255, 255, 255, 0.95);
  border-left: 1.5px solid rgba(255, 255, 255, 0.6);
  border-right: 1.5px solid rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid rgba(135, 185, 220, 0.7);

  box-shadow: 
    0 10px 25px rgba(0, 50, 100, 0.18),
    inset 0 1px 2px rgba(255, 255, 255, 0.95);
}

.feedback-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0b3b5b;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 860px) {
  .windows-grid {
    grid-template-columns: 1fr;
  }
  .bottom-area {
    flex-direction: column;
    align-items: center;
  }
  .feedback-panel {
    margin-left: 0;
  }
  .vector-accent {
    position: static;
    margin-bottom: -30px;
  }
}