/* Base Styles */
body {
  margin: 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #121212 100%);
  color: rgba(255, 255, 255, 0.92);
  font-family: 'Roboto', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.monitor-container {
  width: 90vw;
  max-width: 1200px;
  margin: 80px auto 40px;
  display: flex;
  flex-direction: column;
}

.monitor {
  background: linear-gradient(145deg, #1a1a1a 0%, #151515 100%);
  border-radius: 12px 12px 0 0;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    inset 0 0 15px rgba(0, 0, 0, 0.5),
    0 0 15px rgba(59, 105, 255, 0.1);
  overflow: hidden;
  border: 3px solid #2a2a2a;
  position: relative;
  height: 70vh;
  max-height: 800px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
}

.monitor::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
  border-radius: 9px;
}

.screen {
  position: relative;
  flex: 1;
  margin: 20px;
  border-radius: 8px;
  padding: 30px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    #000;
  overflow-y: auto;
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  min-height: 0;
}

/* Navigation Styles */
.menu-bar {
  background: linear-gradient(to right, #000 0%, #0f0f0f 50%, #000 100%);
  padding: 0 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(59, 105, 255, 0.1);
}

.menu-bar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 15px 0;
  gap: 15px;
}

.menu-bar a {
  display: inline-flex;
  align-items: center;
  padding: 12px 25px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Exo', sans-serif;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 4px;
  gap: 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.menu-bar a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b69ff 0%, #6d8cff 100%);
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.menu-bar a:hover,
.menu-bar a.active {
  color: #6d8cff;
  background-color: rgba(59, 105, 255, 0.1);
  text-shadow: 0 0 10px rgba(59, 105, 255, 0.5);
}

.menu-bar a:hover::after,
.menu-bar a.active::after {
  width: 60%;
}

/* Content Sections */
.content-section {
  display: none;
  animation: fadeIn 0.5s ease-out;
  height: 100%;
  flex-direction: column;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.content-section.active {
  display: flex;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 20px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 20px;
}

.category-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border-radius: 8px;
  padding: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(59, 105, 255, 0.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(2px);
}

.category-card:hover {
  transform: translateY(-5px);
  background: rgba(59, 105, 255, 0.1);
  box-shadow: 0 8px 25px rgba(59, 105, 255, 0.2);
  border-color: rgba(59, 105, 255, 0.3);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
  margin-top: 20px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 20px;
}

.project-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(59, 105, 255, 0.2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.project-card:hover {
  transform: translateY(-5px);
  background: rgba(59, 105, 255, 0.1);
  box-shadow: 0 8px 20px rgba(59, 105, 255, 0.25);
  border-color: rgba(59, 105, 255, 0.4);
}

.project-date {
  color: #7d8ba6;
  font-size: 0.9rem;
  margin-top: 10px;
  font-style: italic;
}

/* Detailed Content Sections */
.project-content {
  display: none;
  animation: slideUp 0.4s ease-out;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-content.active {
  display: flex;
  flex-direction: column;
}

.project-item {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-item iframe {
  flex: 1;
  border: none;
  background: white;
  min-height: 400px;
  width: 100%;
  border-radius: 4px;
}

.back-button {
  background: linear-gradient(90deg, #3b69ff 0%, #6d8cff 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(59, 105, 255, 0.3);
  font-weight: 500;
  align-self: flex-start;
}

.back-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(59, 105, 255, 0.4);
}

/* Monitor Stand */
.stand-system {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 500px;
  margin-top: -20px;
}

.stand-neck {
  width: 150px;
  height: 80px;
  background: linear-gradient(to bottom, #2a2a2a 0%, #1a1a1a 100%);
  border-radius: 0 0 5px 5px;
  transform: rotateX(40deg);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.3),
    inset 0 -5px 10px rgba(0, 0, 0, 0.5);
}

.stand-base {
  width: 350px;
  height: 25px;
  background: linear-gradient(to right, #151515 0%, #1a1a1a 50%, #151515 100%);
  border-radius: 6px;
  box-shadow:
    0 15px 30px rgba(0, 0, 0, 0.2),
    inset 0 0 10px rgba(0, 0, 0, 0.5);
  transform: rotateX(30deg);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(59, 105, 255, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 105, 255, 0.7);
}

#about-container {
  display: none;
}

#about-container.active {
  display: block;
}

#about-container iframe {
  width: 100%;
  height: 80vh;
  border: none;
  margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .monitor-container {
    margin-top: 60px;
    width: 95vw;
  }

  .monitor {
    height: 75vh;
    min-height: 400px;
  }

  .menu-bar ul {
    flex-wrap: wrap;
    gap: 10px;
  }

  .menu-bar a {
    padding: 10px 15px;
    font-size: 0.85rem;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .screen {
    padding: 20px;
    margin: 15px;
  }
}

@media (max-width: 480px) {
  .monitor {
    height: 80vh;
    min-height: 300px;
  }

  .stand-neck {
    width: 120px;
    height: 60px;
  }

  .stand-base {
    width: 250px;
  }
}