/* Reset default styles */
body {
  margin: 0;
  padding: 0;
  font-family: 'Courier New', Courier, monospace;
  overflow: hidden; /* Hide overflow to prevent scrolling */
  background-color: black; /* Set background color to black */
}

/* Define custom cursor */
.custom-cursor {
  cursor: url('./assets/cursor/pointer.png'), auto !important;
}

/* Terminal styles */
#terminal {
  position: fixed; /* Fixed position to keep it always visible */
  top: 50px; /* Adjust initial top position as needed */
  left: 50px; /* Adjust initial left position as needed */
  width: 600px; /* Fixed width */
  height: 320px; /* Fixed height */
  background-color: #1e1e1e; /* Terminal background color */
  color: #ffffff; /* Terminal text color */
  border-radius: 10px; /* Rounded corners */
  z-index: 1000; /* Ensure it's above other elements */
  border: 2px solid #4d4d4d; /* Terminal border color */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); /* Terminal shadow */
}

@media screen and (max-width: 600px) {
  /* Adjust styles for smaller screens, such as phones */
  #terminal {
      max-width: 90%; /* Increase width for smaller screens */
  }
}
/* Terminal header styles */
#terminal-header {
  background-color: #2d2d2d; /* Header background color */
  border-top-left-radius: 10px; /* Rounded corners for top left */
  border-top-right-radius: 10px; /* Rounded corners for top right */
  padding: 10px; /* Add padding */
  display: flex; /* Use flexbox for layout */
  justify-content: flex-start; /* Align buttons to the left */
  transition: background-color 0.3s; /* Smooth transition for background color */
}

/* Terminal header hover effect */
#terminal-header:hover {
  background-color: #333333; /* Darken header background on hover */
}

/* Terminal buttons styles */
#terminal-buttons {
  display: flex; /* Use flexbox for layout */
  gap: 10px; /* Add gap between buttons */
}

/* Individual terminal button styles */
.terminal-button {
  width: 15px; /* Adjust width as needed */
  height: 15px; /* Adjust height as needed */
  border-radius: 50%; /* Circular shape */
  cursor: pointer; /* Set cursor to pointer */
  transition: background-color 0.3s; /* Smooth transition for background color */
}

/* Terminal button hover effect */
.terminal-button:hover {
  background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent background on hover */
}

/* Close button styles */
#close-button {
  background-color: #FF5F57; /* Close button color */
}

/* Minimize button styles */
#minimize-button {
  background-color: #FFBD2E; /* Minimize button color */
}

/* Maximize button styles */
#maximize-button {
  background-color: #28CA42; /* Maximize button color */
}

/* Terminal content styles */
#terminal-content {
  padding: 20px; /* Add padding */
  height: calc(100% - 40px); /* Adjust for header height and padding */
  overflow-y: auto; /* Enable vertical scrolling if needed */
  user-select: none; /* Disable text selection */
}

/* Terminal text styles */
#terminal-text {
  margin: 0;
  padding: 0;
  font-size: 14px; /* Terminal text size */
  line-height: 1.5; /* Line height */
  overflow: hidden; /* Hide overflow */
  white-space: pre; /* Preserve spaces and line breaks for ASCII art */
}

/* Blurred IP address styling */
.blurred-ip {
  filter: blur(5px);
  transition: filter 0.3s ease;
  user-select: none;
}

.blurred-ip:hover {
  filter: blur(0px);
  transition: filter 0.3s ease;
  user-select: text;
}

.revealed-ip {
  filter: blur(0px);
  transition: filter 0.3s ease;
  user-select: text;
}
/* Video background styles */
#video-background {
  position: fixed; /* Fixed position to cover the entire viewport */
  top: 0;
  left: 0;
  width: 100vw; /* 100% of viewport width */
  height: 100vh; /* 100% of viewport height */
  z-index: -1; /* Behind other content */
}

/* Scan lines effect */
#video-background::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 2px);
  z-index: 1;
  pointer-events: none;
}

/* Video styles */
#myVideo {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover the entire viewport while maintaining aspect ratio */
  z-index: 0; /* Behind other content */
}

/* Intro overlay (dark screen during terminal) */
#intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #0e0e10; /* dark gray-black */
  z-index: 500; /* Above video, below terminal (1000) */
}

/* Positioning classes */
.top-left {
  top: 0;
  left: 0;
}

.top-right {
  top: 0;
  right: 0;
}

.bottom-left {
  bottom: 0;
  left: 0;
}

.bottom-right {
  bottom: 0;
  right: 0;
}

/* Blurred box styles */
#blurred-box {
  position: fixed;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  margin: auto; /* center even when transforms are applied by tilt */
  width: 380px; /* Fixed card width for consistent tilt */
  height: 220px; /* Square card */
  background-color: rgba(0, 0, 0, 0.5); /* 50% transparent black */
  border-radius: 15px; /* Rounded corners */
  border: 2px solid rgba(136, 136, 136, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  z-index: 999; /* Above other content */
  display: none; /* Initially hidden */
  padding: 24px; /* Add padding */
  text-align: center; /* Center text horizontally */
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Blurred box hover effect */
#blurred-box:hover {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6);
}

/* Profile picture styles */
#blurred-box img {
  width: 96px; /* Avatar size */
  height: 96px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 12px auto;
}

/* Avatar wrapper ensures badge overlay and keeps name below */
#avatar-wrapper {
  position: relative;
  display: block;
  width: 96px;
  margin: 0 auto 8px auto;
}

/* Links styles */
.links {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  z-index: 1001; /* Ensure icons are above the blurred box */
}

.links a {
  display: flex;
  align-items: center;
  margin: 0 10px;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
}

/* Link hover effect */
.links a:hover {
  color: #292931;
}

.links a i {
  margin-right: 5px;
  font-size: 24px;
}

/* Hover styles for links */
.links a:hover {
  text-decoration: underline;
}

/* User Description styles */

.user-description {
  margin-bottom: 20px; /* Adjust margin as needed */
}

.user-description p {
  margin: -5px; /* Remove default margin */
  padding: 0px; /* No padding */
  background: none; /* No background */
  color: #75797c44; /* Subtle grey */
  font-style: regular; /* Poetic vibe */
  font-size: small;
}

/* User description hover effect */
.user-description:hover p {
  background: none;
}

#avatar-frame {
  position: absolute; /* Overlay on top of the profile picture */
  top: 15%; /* Adjust to move it higher (e.g., reduce from 50% to 40%) */
  left: 50%; /* Center horizontally within #blurred-box */
  transform: translate(-50%, -50%); /* Adjust for proper centering */
  width: 15% ; /* Slightly larger than the profile picture */
  height: 20%; /* Slightly larger than the profile picture */
  z-index: 1000; /* Ensure it is above the profile picture */
  pointer-events: none; /* Prevent interaction with the frame */
  display: none; /* Initially hidden */
}

/* Username animation */
#username {
  display: block;
  margin-top: 6px;
}

.username-fade {
  animation: usernameFade 300ms ease;
}

@keyframes usernameFade {
  0% { opacity: 0; transform: translateY(2px); }
  100% { opacity: 1; transform: translateY(0); }
}