/* Base colors - matte charcoal dark mode */
:root {
  --bg: #1e1e1c;
  --text: #e5e4e0;
  --accent: #bfaea2;
  --mono: 'Fira Code', monospace;
  --sans: 'Inter', sans-serif;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 40px;
  font-family: var(--mono);
  font-size: 0.95rem;
  z-index: 1000; /* bump this higher */
  position: relative; /* necessary for the nav-links dropdown to position correctly */
}

.logo {
  font-weight: bold;
  letter-spacing: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
}

.nav-links a.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hero Section - index.html */
.hero {
  position: relative;
  min-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: 60px 20px 60px;
  gap: 20px;
  z-index: 1;
  overflow: hidden;
}

.orbs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none; /* This makes sure orbs don't block any clicks */
}

.hero-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-family: var(--mono);
  letter-spacing: -1px;
}

.hero-text p {
  font-size: 1.1rem;
  max-width: 600px;
  opacity: 0.85;
  font-family: var(--mono);
  margin-bottom: 30px;
}

.cta-btn {
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: bold;
  background-color: transparent;
  color: var(--text);
  border: 1.5px solid var(--text);
  border-radius: 6px;
  text-decoration: none;
  font-family: var(--mono);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  overflow: hidden;
}

.cta-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--text);
  transition: left 0.3s ease;
  z-index: -1;
}

.cta-btn:hover::before {
  left: 0;
}

.cta-btn:hover {
  color: var(--bg);
  transform: translateY(-2px);
}

/* Orbs (shared on all pages) */
.orbs {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(60px);
  z-index: 0;
}

.orb-1 { width: 200px; height: 200px; top: 10%; left: 15%; opacity: 0.25; }
.orb-2 { width: 150px; height: 150px; bottom: 20%; right: 10%; opacity: 0.15; }
.orb-3 { width: 100px; height: 100px; top: 40%; right: 25%; opacity: 0.12; }
.orb-4 { width: 250px; height: 250px; bottom: -100px; left: -100px; opacity: 0.2; }
.orb-5 { width: 90px; height: 90px; top: 25%; right: 10%; opacity: 0.12; }
.orb-6 { width: 140px; height: 140px; bottom: 15%; right: 5%; opacity: 0.22; }

/* PROJECTS PAGE — Card layout (if you ever go back to it) */
.projects-page {
  position: relative;
  padding: 100px 40px;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.project-section {
  display: flex;
  flex-direction: column;
  gap: 120px;
}

/* Project Card Split Layout */
.project-card {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.project-img {
  flex: 1 1 45%;
  max-width: 500px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.project-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.project-info {
  flex: 1 1 45%;
}

.project-info h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.project-info p {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 12px;
}

.tech {
  font-family: var(--mono);
  font-size: 0.85rem;
  opacity: 0.6;
}

/* DESKTOP MODE - for projects.html */
.desktop-area {
  position: relative;
  min-height: 100vh;
  padding: 60px;
  display: flex;
  flex-direction: column;
  gap: 60px;
  z-index: 1;
}

.project-row {
  margin-bottom: 0;
}

.row-title {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 30px;
  padding-left: 10px;
}

.folder-row {
  display: flex;
  flex-direction: row;
  gap: 40px; /* adjust this */
  flex-wrap: wrap;
  padding-left: 10px;
}

/* Folder Styling */
.folder {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: transform 0.1s ease;
}

.folder:hover {
  transform: scale(1.02);
}

.folder-icon {
  width: 80px;
  height: 60px;
  background: #d8c99b; /* pixel folder beige */
  position: relative;
  box-shadow: 2px 2px 0 #000; /* pixel shadow */
  outline: 1px solid #000;
}

.folder-icon::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 4px;
  width: 30px;
  height: 10px;
  background: #e8d9ac;
  outline: 1px solid #000;
}

.folder-label {
  margin-top: 6px;
  font-size: 0.75rem;
  font-family: var(--mono);
  color: var(--text);
  background-color: var(--bg);
  padding: 2px 4px;
  border: 1px solid #444;
  box-shadow: 2px 2px 0 #000;
  margin-top: 8px;
}

/* Windows */
.window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  max-width: 1200px;
  min-width: 80vw;          /* 👈 force width even if empty */
  height: 90vh;             /* 👈 always take up height */
  max-height: 90vh;
  min-height: 90vh;         /* 👈 ensures height even with no content */
  background: rgba(30, 30, 28, 0.95);
  border: 1px solid #444;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  display: none;
  flex-direction: column;
  z-index: 2000;
  overflow-y: auto;
}

.desktop-area.blurred {
  filter: blur(6px) brightness(0.6);
  pointer-events: none; /* prevents clicks on blurred elements */
}

.window-header {
  position: sticky;
  top: 0;
  z-index: 10;

  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2a2a27;
  padding: 12px 16px;
  border-bottom: 1px solid #444;
  border-radius: 8px 8px 0 0;
}

.window-title {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--accent);
}

.close-btn {
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
}

.window-content {
  padding: 30px;
  font-size: 0.95rem;
  font-family: var(--mono);
  color: var(--text);
  text-align: left;

  max-width: 700px;
  margin: 0 auto;
}

.window-content img {
  width: 100%;
  border-radius: 6px;
  margin-top: 10px;
}

/* Misc */
.eclaire {
  width: 400px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .desktop-area {
    padding: 40px 20px;
    gap: 40px;
  }

  .folder-row {
    justify-content: center;
  }


  .project-card {
    flex-direction: column;
    gap: 40px;
  }

  .project-info, .project-img {
    flex: 1 1 100%;
  }

  .project-info h2 {
    font-size: 1.6rem;
  }

  .folder-row {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .row-title {
    text-align: center;
  }
}

/* Terminal About Page */
.terminal-mode main.terminal {
  font-family: var(--mono);
  padding: 80px 40px;
  max-width: 800px;
  margin: auto;
  color: var(--text);
  font-size: 0.95rem;
}

.terminal-output p {
  margin: 12px 0;
  line-height: 1.6;
}

.prompt {
  color: var(--accent);
}

.terminal-output ul {
  margin-left: 20px;
  list-style-type: none;
  padding: 0;
}

.terminal-output ul li {
  margin-bottom: 6px;
  position: relative;
  padding-left: 1em;
}

.terminal-output ul li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.typed-line {
  margin: 10px 0;
}

.blinking-cursor {
  display: inline-block;
  width: 10px;
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.terminal-output {
  background-color: #1a1a19;
  border: 1px solid #333;
  padding: 40px;
  border-radius: 8px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 1;
  overflow-y: auto; /* ✅ this allows vertical scrolling */
  max-height: 80vh;  /* ✅ makes sure it doesn't overflow the screen */
}

/* Optional: subtle scanline effect */
.terminal-output::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 2;
}

.prompt {
  color: var(--accent);
}

.command-text {
  color: #78dce8; /* Light cyan, techy */
}

.output-text {
  color: #b0f7b0; /* Pale green */
}

.terminal-input {
  display: flex;
  align-items: center;
  font-family: var(--mono);
  margin-top: 10px;
}

.terminal-input .prompt {
  color: var(--accent);
  margin-right: 8px;
}

#commandInput {
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.95rem;
  outline: none;
  width: 100%;
}

.contact-section {
  min-height: calc(100vh - 120px); /* Adjust based on actual nav height */
  display: flex;
  justify-content: center;
  align-items: flex-start; /* align to top instead of full center */
  padding: 20px 20px 60px;
  margin-top: 40px; /* smaller manual space after nav */
  text-align: left;
  position: relative;
  z-index: 1;
}

.terminal-style {
  font-family: var(--mono);
  max-width: 600px;
  width: 100%;
  padding: 40px;
  border: 1px solid #444;
  border-radius: 8px;
  background-color: rgba(30, 30, 28, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.terminal-style .prompt {
  color: var(--accent);
}

.terminal-style .command-text {
  color: #78dce8;
}

.terminal-style .output-text {
  color: var(--text);
  margin: 8px 0;
}

.terminal-style a {
  color: var(--accent);
  text-decoration: none;
}

.terminal-style a:hover {
  text-decoration: underline;
}

.preview-box {
  margin-top: 20px;
  background-color: rgba(255, 255, 255, 0.03);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
  
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

body {
  cursor: url('assets/cursor.png'), auto;
}

.window-content ul.tech-list {
  padding-left: 20px;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text);
}

.window-content ul.tech-list li {
  margin-bottom: 6px;
  list-style: "– ";
}

.nav-toggle {
  display: none; /* will be shown in media query */
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;

  position: relative; /* ✅ necessary for z-index */
  z-index: 1001;       /* ✅ make sure it sits above orbs/nav */
}

.nav-toggle span {
  display: block;
  height: 2px;
  background-color: var(--text);
  border-radius: 1px;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex; /* ✅ shows the hamburger on mobile */
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: var(--bg);
    position: absolute;
    top: 80px;
    right: 40px;
    padding: 20px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    z-index: 1000; /* ✅ above content, but under toggle */
  }

  .nav-links.active {
    display: flex;
  }
}

@media (max-width: 600px) {
  .window {
    width: 95vw;
    min-width: unset;
    max-width: 95vw;
    height: 85vh;
    min-height: unset;
    max-height: 85vh;
    border-radius: 8px;
    padding: 0;
  }

  .window-content {
    padding: 20px;
    max-width: 100%;
    margin: 0 auto;
    font-size: 0.9rem;
  }

  .window-header {
    padding: 10px 14px;
  }


  
}

.preview-box a img {
  transition: transform 0.2s ease;
}

.preview-box a:hover img {
  transform: scale(1.02);
}