/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  background: linear-gradient(
      180deg,
      rgba(27, 31, 58, 0.8),
      rgba(36, 48, 87, 0.8)
    ),
    url("./images/background-image.jpg");
  background-size: cover;
  background-position: center;
  color: #f5faff;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
}

body.home {
  font-family: "Arial", sans-serif;
  background: url("./images/background-image.jpg");
  background-size: cover;
  background-position: center;
  color: #f5faff;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
}

.enter-link {
  position: absolute;
  left: 10%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #a4d8f0;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s, background 0.3s;
}

.enter-link:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: translateY(-50%) scale(1.1);
}

/* Monitor Container */
.monitor-container {
  display: grid;
  grid-template-columns: 1fr 4fr 1fr; /* Desktop layout: three columns */
  gap: 20px;
  width: 90%;
  align-items: center;
  perspective: 1000px;
}

/* Individual Monitor */
.monitor {
  background: #80cce0; /* Light gray for monitor frame */
  border: 4px solid #ffffff; /* Aqua blue border */
  border-radius: 15px;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  text-decoration: none;
  overflow: hidden;
}

/* Center Monitor */
#center-monitor {
  transform: translateZ(0) scale(1);
}

/* Left and Right Monitors */
#left-monitor {
  transform: rotateY(15deg);
  transition: transform 0.3s ease;
}

#right-monitor {
  transform: rotateY(-15deg);
  transition: transform 0.3s ease;
}

/* Hover Effects */
.monitor:hover {
  transform: scale(1.05);
}

#left-monitor:hover {
  transform: rotateY(10deg) scale(1.05);
}

#right-monitor:hover {
  transform: rotateY(-10deg) scale(1.05);
}

/* Screen Content */
.screen {
  width: 95%;
  height: 95%;
  background: linear-gradient(145deg, #a4d8f0, #f5faff);
  border-radius: 10px;
  display: flex;
  flex-direction: column; /* Stack elements vertically */
  align-items: center;
  padding: 20px;
  position: relative;
  box-shadow: inset 0px 4px 10px rgba(0, 0, 0, 0.1);
  color: #425dbf;
  overflow-y: auto; /* Enables scrolling if content overflows */
  /* Hide scrollbar for Firefox */
  scrollbar-width: none;
  /* Hide scrollbar for Internet Explorer and Edge */
  -ms-overflow-style: none;
}

.screen::-webkit-scrollbar {
  display: none;
}

/* Profile Picture Styling */
.profile-picture {
  width: 120px;
  height: 120px; /* Allows aspect ratio to remain consistent */
  max-width: 25%; /* Limits the size as a percentage of the parent container */
  max-height: 120px; /* Prevents the image from growing too tall */
  background-color: #80cce0; /* Matches the monitor frame color */
  border-radius: 12px; /* Rounded corners */
  overflow: hidden;
  border: 4px solid #80cce0; /* Aqua border */
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
}

/* Image Inside Profile Picture */
.profile-picture img {
  width: 100%; /* Ensures the image fits the container */
  height: 100%; /* Ensures the image fits the container */
  object-fit: cover; /* Maintains aspect ratio and fills the box */
}

/* Header Row: Profile Picture and Header */
.header-row {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
  margin-bottom: 20px;
}

/* About Me Header */
.about-header {
  position: absolute; /* Take it out of the flexbox flow */
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.8rem;
  color: #425dbf;
  margin: 0;
}

/* Main Content */
.about-content {
  font-size: 1rem;
  line-height: 1.6;
  color: #2e3f96;
  text-align: center;
  max-width: 80%;
}

/* Gallery Header */
.gallery-header {
  font-size: 1.8rem;
  color: #425dbf;
  margin-bottom: 20px;
  text-align: center;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 15px;
  width: 100%;
  max-width: 600px;
}

/* Gallery Items */
.gallery-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid #80cce0;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crops images to fit */
}

/* Glow Effect for Monitors */
.monitor.glow {
  box-shadow: 0 0 20px rgba(54, 255, 255, 0.7);
}

/* Lightbox Styles */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
}

/* Guestbook Form Styles */
#guestbook-form {
  width: 100%;
}

#guestbook-form input,
#guestbook-form textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  font-size: 1rem;
  border: 2px solid #80cce0;
  border-radius: 5px;
  background-color: #f0faff;
  color: #2e3f96;
}

#guestbook-form input::placeholder,
#guestbook-form textarea::placeholder {
  color: #a4d8f0;
  font-style: italic;
}

#guestbook-form input:focus,
#guestbook-form textarea:focus {
  border-color: #6ab1cf;
  outline: none;
}

#guestbook-form button {
  padding: 10px 15px;
  font-size: 1rem;
  background: #80cce0;
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}

#guestbook-form button:hover {
  background: #6ab1cf;
}

/* Guestbook Messages Styling */
#guestbook-messages {
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
  width: 90%;

  /* Hide scrollbar for Firefox */
  scrollbar-width: none;

  /* Hide scrollbar for Internet Explorer and Edge */
  -ms-overflow-style: none;
}

/* Hide scrollbar for Chrome, Safari, Opera */
#guestbook-messages::-webkit-scrollbar {
  display: none;
}

#guestbook-messages div {
  background: #e3f6fc;
  color: #2e3f96;
  margin-bottom: 10px;
  padding: 10px;
  border-bottom: 1px solid #ccc;
  border-radius: 5px;
}

/* Navigation Dots Container */
.navigation-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 20px;
  left: 0;
  width: 100%;
  gap: 10px;
  z-index: 100;
}

/* Individual Dots */
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc; /* Default color */
  display: inline-block;
  transition: background-color 0.3s;
  text-decoration: none;
}

/* Highlight Active Dot */
.dot.active {
  background-color: #80cce0; /* Highlight color */
}

.dot {
  position: relative;
}

.dot::after {
  content: attr(title);
  position: absolute;
  bottom: 150%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10;
}

.dot:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}
