
/* Center the entire browser on the page */
body {
  background-color: black;
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.overlay-text.credits {
  position: absolute;
  top: 160%;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 18px;
}

/* Main browser container */
.browser {
  width: 80%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  border: 2px solid white;
  position: relative;
  border-radius: 8px;
  background-color: #111;
  overflow: hidden;
}

/* Browser top bar */
.browser-top-bar {
  width: 100%;
  height: 10%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0;
  border-bottom: 2px solid white;
  justify-content: space-between;
}

/* Tabs */
.tabs {
  display: flex;
  flex: 1;
  gap: 0;
  height: 100%;
}

.tab {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 1px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
  height: 100%;
  cursor: pointer;
}

.tab:first-child {
  border-left: none;
}

.tab:last-child {
  border-right: 1px solid white;
}

.tab:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Browser control circles */
.controls {
  display: flex;
  gap: 6px;
  margin-left: 6px;
  margin-right: 6px;
}

.circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.red {
  background-color: #ff5f57;
}

.yellow {
  background-color: #ffbd2e;
}

.green {
  background-color: #28c840;
}

/* Browser toolbar */
.browser-toolbar {
  width: 100%;
  height: 8%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-bottom: 2px solid white;
}

.browser-toolbar button {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid white;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.browser-toolbar button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.browser-toolbar button:last-child {
  margin-right: 20px;
}

.browser-toolbar .link-box {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid white;
  border-radius: 12px;
  padding: 2px 10px;
  color: white;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  white-space: nowrap;
  flex: 1;
  margin: 0 6px;
  overflow: hidden;
}

/* Browser content */
.browser-content {
  position: relative;
  width: 100%;
  height: 40%;
}

.home-content {
  height: 82%;
}

.listing-content {
  height: 82%;
  overflow-y: auto;
  overflow-x: hidden;

  /* Hide scrollbar but keep scrolling */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.listing-content::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbars inside popups while keeping scrolling */
.popup {
  position: absolute;
  top: 25%;
  left: 5%;
  right: 5%;
  bottom: 15%;
  background-color: #ccc;
  border: 1px solid white;
  border-radius: 12px;
  padding: 20px;
  color: black;
  text-align: center;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  display: none;
  z-index: 10;
  overflow-y: auto;
  overflow-x: hidden;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

.popup::-webkit-scrollbar {
  display: none;
}

.popup.show {
  display: block;
}

.popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background-color: #ff5f57;
  border: none;
  border-radius: 50%;
  color: white;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
}

.popup-close:hover {
  background-color: #ff3b30;
}

/* Content boxes */
.box {
  position: absolute;
  width: 80px;
  height: 40px;
  top: calc(20% - 5px);
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  border: 1px solid white;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.box:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* About and Projects hover effects — white glow */
.overlay-text.about,
.overlay-text.projects {
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  transition: color 1s;
  cursor: pointer;
}

.overlay-text.about:hover,
.overlay-text.projects:hover {
  color: rgb(233, 188, 188);
}

/* Spinner */
.spinner {
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top: 2px solid white;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Background GIF */
.responsive-browser-image {
  position: absolute;
  top: calc(5% + 2px);
  left: 30%;
  transform: translateX(-50%);
  width: 43%;
  height: auto;
  z-index: 0;
}

/* GitHub Explorer */
.explorer {
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #c4c4c4;
  border-radius: 4px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
}

.header,
.row {
  display: grid;
  grid-template-columns: 40px 1fr 160px 120px;
  padding: 8px 10px;
  border-bottom: 1px solid #ddd;
}

.header div,
.row div {
  padding: 2px 6px;
  cursor: pointer;
  text-align: left;
}

.row:hover {
  background: #eaf3ff;
}

.arrow-toggle {
  transition: 0.2s;
}

.arrow-open {
  transform: rotate(90deg);
}

.readme-box {
  grid-column: 1 / 5;
  padding: 10px;
  background: #fafafa;
  border-top: 1px solid #ddd;
  display: none;
}

.readme-box img {
  max-width: 100%;
  height: auto;
}

.readme-box pre {
  background: #1e1e1e;
  color: #fff;
  padding: 8px;
  overflow-x: auto;
  border-radius: 4px;
}

/* Typing container */
.typing-container {
  font-family: monospace;
  font-size: 14px;
  color: black;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  width: 100%;
  display: block;
}

/* About text — white glow */
.about-text {
  position: absolute;
  top: 40%;
  right: 5%;
  z-index: 1;
  color: white;
  font-family: monospace;
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  width: 40%;
  text-align: left;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  cursor: default;
}

#typing-text {
  transform: translateY(-70px);
}

.about-text a,
.listing-text a {
  color: white;
  text-decoration: underline;
}

.about-text a:hover,
.listing-text a:hover {
  color: rgb(233, 188, 188);
}

/* Projects and Experience text — white glow */
.listing-text {
  padding: 12px 5%;
  color: white;
  font-family: monospace;
  font-size: 14px;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.listing-text p {
  margin: 0 0 18px;
}

.listing-text strong {
  font-weight: bold;
}

/* ==================================
   EXPERIENCE TIMELINE
   No boxes; soft white glow
   ================================== */

.experience-timeline {
  position: relative;
  margin: 16px 0 12px 8px;
  padding-left: 20px;
  border-left: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: -2px 0 5px rgba(255, 255, 255, 0.12);
}

.experience-item {
  position: relative;
  display: block;
  margin: 0 0 16px;
  padding: 4px 0;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  text-shadow: none;
}

.experience-item:last-child {
  margin-bottom: 0;
}

.experience-item:hover {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.experience-item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 14px;
  width: 9px;
  height: 9px;
  box-sizing: content-box;
  background: #111;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.experience-item h3 {
  margin: 0 0 4px;
  color: white;
  font-size: 14px;
  line-height: 1.4;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.experience-meta {
  margin-bottom: 5px;
  color: #c0c0c0;
  font-size: 11px;
  line-height: 1.5;
}

.experience-item p {
  margin: 0;
  color: #e0e0e0;
  font-size: 12px;
  line-height: 1.5;
}

/* Responsive layout */
@media (max-width: 600px) {
  .experience-timeline {
    margin-left: 5px;
    padding-left: 18px;
  }

  .experience-item,
  .experience-item:hover {
    padding: 4px 0;
    margin-bottom: 10px;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .experience-item::before {
    left: -27px;
  }

  .experience-item h3 {
    font-size: 12px;
  }

  .experience-meta {
    font-size: 10px;
  }

  .experience-item p {
    font-size: 11px;
  }
}
