body {
  background-color: #1a1b26;
  font-family: "Inter", sans-serif;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hypr-window {
  position: absolute;
  min-width: 200px;
  min-height: 150px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease-out, width 0.3s ease, height 0.3s ease,
    top 0.3s ease, left 0.3s ease;
  z-index: 10;
  display: flex;
  flex-direction: column;
}
.hypr-window.tiled {
  width: 100% !important;
  height: calc(100vh - 40px) !important;
  top: 40px !important;
  left: 0 !important;
  transform: none !important;
  transition: all 0.3s ease;
}

.hypr-window-header {
  cursor: grab;
  flex-shrink: 0; /* Prevent header from shrinking */
}

.hypr-window-header:active {
  cursor: grabbing;
}

/* General content area styling */
.hypr-content {
  flex: 1; /* Grow to fill available space */
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Default overflow handling */
  position: relative;
  min-height: 0; /* Critical for nested flex scrolling */
  background-color: rgba(17, 24, 39, 0.85) !important; /* Darker and more opaque */
  backdrop-filter: blur(20px); /* Stronger blur */
  -webkit-backdrop-filter: blur(20px);
}


.iframe-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  background-color: #1a1b26;
}

.hypr-content::-webkit-scrollbar {
  width: 8px;
}

.hypr-content::-webkit-scrollbar-thumb {
  background-color: #4a5568;
  border-radius: 4px;
}
.hypr-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.window-control-btn {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  padding: 0.25rem;
  transition: all 150ms ease-in-out;
  background-color: transparent;
  color: #d1d5db; /* Light gray icon */
  border: 1px solid transparent;
}

.window-control-btn:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.window-minimize:hover {
  color: #38bdf8; /* Sky blue for minimize */
  background-color: rgba(56, 189, 248, 0.1);
}

.window-maximize:hover {
  color: #4ade80; /* Green for maximize/tile */
  background-color: rgba(74, 222, 128, 0.1);
}

.window-close:hover {
  color: #f87171; /* Red for close */
  background-color: rgba(248, 113, 113, 0.1);
}

/* Hackertyper Window Specific Styles */
#window-hacker .hypr-content {
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  color: #00ff41; /* Bright Hacker Green */
  background-color: rgba(0, 0, 0, 0.9); /* Darker background for code */
  text-shadow: none;
  padding: 16px;
  overflow-y: auto; /* Allow scrolling */
  white-space: pre-wrap; /* Wrap text */
  word-break: break-all;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background-color: #00ff41;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

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

/* Projects Window Styles */
#window-projects .hypr-content {
  overflow-y: auto;
}

.project-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
