html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: #111;
  color: #eee;
  font-family: 'DejaVu Sans Mono', 'Liberation Mono', 'Menlo', 'Consolas', 'Monaco', monospace;
  overflow: hidden;
}
body {
  min-height: 100vh;
  width: 100vw;
  overflow: hidden;
  cursor: none;
}
.container {
  display: flex;
  height: calc(100vh - 3.2rem - 2.2rem);
  width: 100vw;
  overflow: hidden;
  box-sizing: border-box;
  padding-bottom: 0;
}
.profile-card {
  background: radial-gradient(circle at 0% 0%, #232323 0%, #232323 40%, #111 100%);
  color: #00ff66;
  flex: 4;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  border-right: 2px solid #008040;
  overflow: auto;
}
.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 32px 0 #000a;
  border: 3px solid rgba(0,255,102,0.18);
  display: block;
  filter: grayscale(100%);
  max-width: 100%;
  max-height: 100%;
}

.image-frame {
  position: relative;
  width: 320px;
  background: #2a2a2a;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  margin-bottom: 1.2rem;
  border: 2px solid #444;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-frame.minimized {
  transform: scale(0.7);
  opacity: 0.6;
}

.window-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  padding: 0 4px;
}

.window-button {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: black;
  font-family: 'DejaVu Sans Mono', 'Liberation Mono', 'Menlo', 'Consolas', 'Monaco', monospace;
  line-height: 1;
}

.close-button {
  background: #ff5f56;
}

.close-button:hover {
  background: #ff4444;
  transform: scale(1.1);
}

.minimize-button {
  background: #ffbd2e;
}

.minimize-button:hover {
  background: #ffaa00;
  transform: scale(1.1);
}

.image-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  width: 100%;
  height: 380px;
}

.shutter {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 10;
  pointer-events: none;
}

.shutter-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  background: #111;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 11;
}

.shutter-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  background: #111;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 11;
}

.shutter.closing .shutter-top {
  height: 50%;
}

.shutter.closing .shutter-bottom {
  height: 50%;
}

.shutter.closed .shutter-top {
  height: 50%;
}

.shutter.closed .shutter-bottom {
  height: 50%;
}

.shutter.opening .shutter-top {
  height: 0;
}

.shutter.opening .shutter-bottom {
  height: 0;
}
.profile-name {
  font-size: 2rem;
  margin: 0.5rem 0 0.2rem 0;
  color: #00ff66;
}
.profile-title {
  font-size: 1.1rem;
  color: #33ffcc;
  margin-bottom: 1rem;
}
.site-header {
  width: 100%;
  background: #181818;
  color: #00ff66;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem 0 0.7rem 2.5rem;
  border-bottom: 2px solid #008040;
  margin-bottom: 0.2rem;
}
.header-name {
  font-size: 1.8rem;
  margin: 0;
  color: #00ff66;
  letter-spacing: 1px;
  text-align: left;
}
.header-title {
  font-size: 1.15rem;
  color: #fff;
  margin-top: 0.2rem;
  letter-spacing: 0.5px;
  text-align: left;
}
.header-contacts {
  position: absolute;
  right: 2.5rem;
  top: 1.2rem;
  display: flex;
  gap: 1.7rem;
  align-items: center;
}
.header-icon img {
  width: 20px;
  height: 20px;
  display: block;
  filter: brightness(0) invert(1) grayscale(0.1) contrast(100);
  transition: filter 0.2s, transform 0.2s;
}
.header-icon:hover img {
  filter: brightness(0) invert(1) grayscale(0.1) contrast(100) drop-shadow(0 0 4px #00ff66);
  transform: scale(1.12);
}
.terminal-section {
  flex: 6;
  display: flex;
  flex-direction: column;
  background: #111;
  min-width: 0;
  overflow: hidden;
  justify-content: flex-start;
}
.nav-bar {
  display: flex;
  gap: 1.2rem;
  padding: 0.7rem 2rem 0.5rem 2rem;
  border-bottom: 1px solid #222;
  justify-content: center;
  align-items: center;
  margin-top: -0.3rem;
}
.nav-link {
  color: #00ff66;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}
.nav-link:hover {
  color: #33ffcc;
}
.terminal {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 2rem 2rem 1rem;
  background: #181818;
  border-radius: 0 0 8px 8px;
  margin: 0 2rem 2rem 0;
  box-shadow: 0 0 20px #000a;
  min-width: 0;
  overflow: auto;
  font-size: 1rem;
  line-height: 1.4;
}
.terminal-output {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #eee;
  line-height: 1.4;
  scrollbar-width: thin;
  scrollbar-color: #00ff66 #222;
}
.terminal-output::-webkit-scrollbar {
  width: 10px;
}
.terminal-output::-webkit-scrollbar-thumb {
  background: #00ff66;
  border-radius: 8px;
  border: 2px solid #181818;
}
.terminal-output::-webkit-scrollbar-track {
  background: #222;
  border-radius: 8px;
}
.terminal-output a,
.terminal-output a:visited,
.terminal-output a:active {
  color: #3399ff;
  text-decoration: underline;
}
.terminal-input-line {
  display: flex;
  align-items: center;
  font-size: 1rem;
  line-height: 1.4;
}
.terminal-prompt {
  color: #3399ff;
  margin-right: 0.5rem;
}
#terminal-input {
  background: transparent;
  border: none;
  outline: none;
  color: #1aff80;
  font-size: 1rem;
  font-family: inherit;
  width: 80%;
  caret-color: #1aff80;
  position: relative;
  z-index: 1;
  line-height: 1.4;
}
.typed-cmd {
  color: #1aff80;
}
.typing-cursor {
  display: inline-block;
  width: 0.7em;
  background: transparent;
  color: #00ff66;
  font-weight: bold;
  animation: blink-cursor 1s steps(1) infinite;
}
@keyframes blink-cursor {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.site-footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #181818;
  color: #00ff66;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 2.5rem;
  font-family: 'DejaVu Sans Mono', 'Liberation Mono', 'Menlo', 'Consolas', 'Monaco', monospace;
  font-size: 1rem;
  border-top: 2px solid #008040;
  z-index: 1000;
  box-sizing: border-box;
}
.footer-left {
  color: #00ff66;
  text-align: left;
  flex: 1 1 0;
}
.footer-right {
  color: #33ffcc;
  font-variant-numeric: tabular-nums;
  text-align: right;
  flex: 1 1 0;
}
/* Custom Cursor */
body {
  cursor: none;
}
a, button, input, .nav-link, .terminal-input-line, .terminal-output {
  cursor: none !important;
}
a:hover, button:hover, input:hover, .nav-link:hover {
  cursor: none !important;
}
.cursor-dot {
  width: 8px;
  height: 8px;
  background: #00ff66;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
}
.cursor-dot-outline {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.3s ease;
}
@media (max-width: 900px) {
  .container {
    flex-direction: column;
    min-height: 100vh;
    width: 100vw;
  }
  .profile-card {
    width: 100%;
    min-width: 0;
    flex: none;
    height: auto;
    max-height: 300px;
    border-right: none;
    border-bottom: 1px solid #222;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem;
    overflow: hidden;
  }
  .profile-img {
    width: 100px;
    height: 120px;
    margin-bottom: 0;
    margin-right: 1rem;
  }
  .site-footer {
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
  }
  .container {
    padding-bottom: 64px;
  }
} 

/* CRT Switch-off Animation */
.crt-overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.4s;
  opacity: 0;
}

.crt-overlay::before,
.crt-overlay::after {
  content: '';
  position: absolute;
  width: 100vw;
  height: 50vh;
  background: #00ff66;
  box-shadow: 0 0 32px 8px #00ff66;
  transition: height 0.5s cubic-bezier(.4,2,.6,1), opacity 0.5s cubic-bezier(.4,2,.6,1);
  opacity: 1;
  left: 0;
  pointer-events: none;
}

.crt-overlay::before { top: 0; }
.crt-overlay::after { bottom: 0; }

.crt-overlay.shrink::before,
.crt-overlay.shrink::after {
  height: 0;
  opacity: 0;
}

.crt-overlay.opacity-1::before,
.crt-overlay.opacity-1::after {
  height: 0;
  opacity: 0;
}

.crt-overlay.opacity-1 {
  background: #000;
} 