/* ===========================
   VARIABLES
   =========================== */
:root {
  --dark-green: #012622;
  --deep-teal: #003B36;
  --deep-purple: #59114D;
  --magenta: #AB498C;
  --cream: #F2E7C9;
}

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

html, body {
  height: 100%;
  cursor: url('Images/cursorwindowsfixed.png'), auto;
  width: 100%;
  font-family: "Courier New", monospace;
  overflow-x: hidden;
}

/* ===========================
   BACKGROUND & CRT
   =========================== */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("Images/rainforest.jpg") no-repeat center center fixed;
  background-size: cover;
  z-index: -3;
}

/* CRT scanline effect using repeating-linear-gradient */
/* Source: CodePen, https://codepen.io/AllThingsSmitty/pen/YzjvGgL */
.crt {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.6) 0px,
      rgba(255, 255, 255, 0.6) 1px,
      rgba(0, 0, 0, 0.1) 3px,
      rgba(0, 0, 0, 0) 3px
    );
  box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.6);
  animation: crt-flicker 2.5s infinite;
}

@keyframes crt-flicker {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.25; }
}

/* ===========================
   NAVBAR
   =========================== */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  list-style: none;
  display: flex;
  justify-content: center;
  background-color: var(--deep-purple);
  border-bottom: 2px solid var(--magenta);
  z-index: 100;
}

.nav-bar li {
  flex: 1;
  text-align: center;
}

.nav-bar li a {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  font-size: 1.2em;
  color: var(--cream);
  transition: background-color 0.3s, text-shadow 0.3s;
}

.nav-bar li a:hover {
  background-color: var(--magenta);
  text-shadow: 0 0 8px var(--cream);
}

/* ===========================
   MAIN CONTENT CONTAINER
   =========================== */
.content-container {
  position: relative;
  min-height: 100vh;
  max-width: 50vw;
  margin: 0px auto;
  background-color: var(--cream);
  border-left: 2px solid var(--deep-teal);
  border-right: 2px solid var(--deep-teal);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  padding: 20px 30px;
  z-index: 20;
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
  text-align: center;
  margin-top: 5vh;
  padding: 0 10px; /* small padding for small screens */
}

.glowing-text {
  font-family: "Times New Roman", serif;
  font-size: clamp(2.5rem, 8vw, 6rem); /* responsive font size */
  line-height: 1.2;
  padding-top: 2vh;
  text-align: center;
  color: #d424b4;
  text-shadow:
    0 0 5px var(--magenta),
    0 0 15px var(--magenta),
    0 0 30px var(--deep-purple);
  animation: glow-flicker 2s infinite ease-in-out;
}

/* Responsive font sizing using clamp() */
.intro {
  text-align: center;
  font-size: clamp(1rem, 4vw, 1.4rem); /* responsive text */
  margin-top: 15px;
  color: var(--deep-teal);
}

/* Optional: slightly reduce hero spacing on small devices */
@media (max-width: 600px) {
  .hero {
    margin-top: 3vh;
  }
  .glowing-text {
    padding-top: 1vh;
  }
}

/* ===========================
   PERSONAL TEXT
   =========================== */
.personal-text {
  font-size: 1.2em;
  line-height: 1.8em;
  color: var(--dark-green);
  margin-top: 40px;
}

.personal-text h2 {
  font-family: "Times New Roman", serif;
  font-size: 2em;
  padding-top:50px;
  color: var(--deep-purple);
  margin-bottom: 10px;
}

/* ===========================
   FLOATING WINDOW AREA
   =========================== */
.window-area {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
}

/* windows style */
.image-window {
    position: absolute;
    background-color: #C0C0C0; /* Classic windows gray */
    border: 2px solid #fff;
    border-right-color: #808080;
    border-bottom-color: #808080;
    box-shadow: none;
    font-family: "MS Sans Serif", "Courier New", monospace;
    pointer-events: auto;
    user-select: none;
    width: auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-window.dragging {
    opacity: 0.9;
    cursor: move;
}

/* title bar */
.window-title {
    background: #000080; /* dark blue title bar */
    color: white;
    font-size: 0.85em;
      padding: 4px 6px;
     display: flex;
     justify-content: space-between;
     align-items: center;
     border-bottom: 2px solid #808080;
     cursor: move;
}

.image-window.inactive .window-title {
    background: #808080; /* inactive */
    color: #E0E0E0;
}

.window-title-text {
     pointer-events: none;
     font-weight: bold;
}

/* close button*/
.window-close {
     background: #C0C0C0;
     border: 2px solid #fff;
     border-right-color: #404040;
      border-bottom-color: #404040;
      width: 18px;
      height: 18px;
      text-align: center;
      line-height: 16px;
     font-weight: bold;
      color: black;
     cursor: pointer;
     font-family: monospace;
}

.window-close:hover {
     background: #FF0000;
    color: white;
}

/* Window image */
.window-image {
     display: block;
     max-width: 250px;
     padding: 8px;
     background-color: white;
     border: 2px solid #fff;
     border-right-color: #808080;
     border-bottom-color: #808080;
}

/* ===========================
   MOBILE STYLES (Max-width 600px)
   =========================== */
@media (max-width: 600px) {
  /* Content container */
    .content-container {
        max-width: 90vw;
        padding: 15px;
    }



    .nav-bar li {
        width: 100%;
        text-align: left;
    }

    .nav-bar li a {
        font-size: 1em;
        padding: 10px;
    }

  /* Hero text */
    .hero {
        margin-top: 3vh;
    }
    .glowing-text {
        font-size: clamp(2rem, 10vw, 4rem); /* more responsive font size */
        padding-top: 1vh;
    }

  /* Windows for mobile */
    .image-window {
        width: 30vw; /* smaller windows for mobile */
        max-width: 250px; /* limit max width for the fit */
        height: auto;
    }

    .window-image {
        max-width: 100px; /* smaller images inside the window */
        max-height: 100px; /* keep the images*/
    }
   }

