* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Outfit', sans-serif;
  background: #0e0e0e;
  color: #f0f0f0;
  overflow-x: hidden;
  width: 100%;
  height: 100%;
}

body {
  scroll-behavior: smooth;
}

.page-container {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100vh;
  width: 100%;
  position: relative;
  z-index: 1; /* Ensure content is above particles */
}

.page-container section {
  scroll-snap-align: start;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  position: relative;
  z-index: 2; /* Ensure sections are above particles */
}

.page-container section.active {
  opacity: 1;
  transform: translateY(0);
}

.avatar, .girtjinni-pic, .profile-pic {
  width: 180px;
  height: auto;
  border-radius: 50%;
  border: 4px solid #555;
  object-fit: cover;
  transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

.avatar:hover, .girtjinni-pic:hover, .profile-pic:hover {
  transform: scale(1.1);
  box-shadow: 0 0 35px #00bcd4;
  border-color: #00bcd4;
}

.girtjinni-pic {
  width: 280px;
  cursor: pointer;
}

.profile-pic {
  border-color: #00bcd4;
  box-shadow: 0 0 15px #00bcd4;
}

.profile-pic:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px #00bcd4;
}

.blender-thumb, .netflix-thumb {
  width: 300px;
  max-width: 90%;
  height: auto;
  border-radius: 20px;
  border: 4px solid #555;
  object-fit: cover;
  margin-bottom: 20px;
  cursor: pointer;
  transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

.blender-thumb:hover, .netflix-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 0 35px #00bcd4;
  border-color: #00bcd4;
}

.netflix-thumb {
  width: 360px;
  border-color: #00bcd4;
  box-shadow: 0 0 20px #00bcd4;
}

.netflix-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px #00bcd4;
}

h1 {
  font-size: 42px;
  color: #00bcd4;
  margin-top: 30px;
}

p.description {
  font-size: 20px;
  max-width: 700px;
  color: #bbb;
  margin-top: 20px;
}

.popup, .video-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup.show, .video-popup.show {
  visibility: visible;
  opacity: 1;
}

.compare-container {
  position: relative;
  width: 90vw;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  border: 5px solid #00bcd4;
  box-shadow: 0 0 30px #00bcd4;
}

.compare-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.compare-overlay {
  clip-path: inset(0 0 0 50%);
  z-index: 1;
}

.compare-slider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: #00bcd4;
  cursor: ew-resize;
  z-index: 2;
  transition: background 0.3s;
}

.popup .close-btn, .video-popup .close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  z-index: 10;
}

.video-popup .close-btn {
  top: 15px;
  right: 20px;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
}

.social-button {
  padding: 12px 20px;
  background: #1e1e1e;
  border-radius: 30px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-button:hover {
  background: #00bcd4;
  color: #000;
}

footer {
  font-size: 14px;
  color: #666;
  position: absolute;
  bottom: 20px;
  left: 20px;
  text-align: left;
  z-index: 3; /* Ensure footer is above other section content */
}

@media (max-width: 768px) {
  footer {
    font-size: 12px;
    bottom: 10px;
    left: 10px;
  }
}

.slider-icon {
  position: absolute;
  font-size: 32px;
  color: #00bcd4;
  pointer-events: none;
  user-select: none;
  opacity: 0.85;
}

.slider-icon.left {
  top: 50%;
  left: -28px;
  transform: translateY(-50%);
}

.slider-icon.right {
  top: 50%;
  right: -28px;
  transform: translateY(-50%);
}

#typed-container, .typed-box, .php-snippet {
  background: #0b0b0b;
  border: 3px solid #00bcd4;
  border-radius: 20px;
  padding: 16px 24px;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  color: #eee;
  max-width: 90%;
  margin: 40px auto 20px auto;
  box-shadow: 0 0 25px #00bcd4;
  white-space: nowrap;
  overflow-x: auto;
}

#typed-container {
  font-size: 18px;
  color: #00ffcc;
  margin-bottom: 25px;
  transition: transform 0.4s ease;
}

#typed-container:hover {
  transform: scale(1.05);
}

.typed-text {
  display: inline-block;
}

#typed-output {
  font-family: monospace;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #ccc;
  white-space: nowrap;
}

.keyword {
  color: #569cd6;
}

.func {
  color: #dcdcaa;
}

.string {
  color: #ce9178;
}

.var {
  color: #4ec9b0;
}

.translation-list {
  list-style: none;
  padding: 0;
  margin-top: 10px;
  color: #ccc;
  font-size: 1.2em;
}

.translation-list li {
  margin: 6px 0;
  transition: transform 0.3s ease, color 0.3s ease;
}

.translation-list li:hover {
  color: #00bcd4;
  transform: translateX(10px);
}

.video-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90vw;
  max-width: 1280px;
  flex-direction: row;
}

.video-box {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  border: 4px solid #00bcd4;
  box-shadow: 0 0 25px #00bcd4;
  background: #000;
}

.video-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.video-title {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  font-weight: bold;
  color: #00bcd4;
  text-shadow: 0 0 10px #00bcd4, 0 0 20px #00bcd4;
  background: rgba(0, 188, 212, 0.08);
  padding: 10px 24px;
  border-radius: 30px;
  z-index: 10000;
  white-space: nowrap;
}

.nav-icon {
  font-size: 50px;
  color: #00bcd4;
  text-shadow: 0 0 10px #00bcd4, 0 0 20px #00bcd4;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease;
}

.nav-icon:hover {
  transform: scale(1.2);
}

.nav-buttons .nav-icon.left {
  position: absolute;
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
}

.nav-buttons .nav-icon.right {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
}

.section {
  position: relative;
  z-index: 2; /* Ensure sections are above particles */
}

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.particles-js-canvas-el {
  filter: drop-shadow(0 0 8px #00bcd4);
}

.nav-dots, .nav-dots-left {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 14px;
  pointer-events: none;
}

.nav-dots {
  right: 30px;
}

.nav-dots-left {
  left: 30px;
}

.nav-dots .dot, .nav-dots-left .dot {
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
  pointer-events: auto;
}

.nav-dots .dot.active, .nav-dots-left .dot.active {
  background: #00bcd4;
  transform: scale(1.3);
  box-shadow: 0 0 10px #00bcd4;
}

@media (min-width: 769px) {
  .nav-dots {
    right: 40px;
  }
  .nav-dots-left {
    left: 40px;
  }
}

@media (max-width: 768px) {
  .nav-dots {
    right: 16px;
  }
  .nav-dots-left {
    left: 16px;
  }
  .nav-dots .dot, .nav-dots-left .dot {
    width: 7px;
    height: 7px;
  }
  .video-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .nav-buttons {
    display: flex;
    justify-content: center;
    gap: 40px;
  }
  .nav-buttons .nav-icon.left, .nav-buttons .nav-icon.right {
    position: static;
    transform: none;
    font-size: 40px;
  }
  .video-box {
    width: 100%;
    max-width: 90vw;
  }
  .video-title {
    font-size: 18px;
    padding: 8px 30px;
  }
  #typed-container, .typed-box, .php-snippet {
    font-size: 0.85rem;
    padding: 12px 16px;
    margin-top: 24px;
    margin-bottom: 12px;
    box-shadow: 0 0 15px #00bcd4;
  }
  #typed-output {
    font-size: 0.95rem;
    padding: 0 10px;
  }
  body.mobile h1 {
    font-size: 1.5rem;
    line-height: 1.9rem;
  }
  body.mobile .description {
    font-size: 0.85rem;
    line-height: 1.4rem;
    padding: 0 8px;
  }
  body.mobile .translation-rotator {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .netflix-thumb {
    width: 180px;
  }
  .translation-list {
    font-size: 1em;
  }
}

.mobile-section {
  margin-top: 30px;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(10px); }
  10% { opacity: 1; transform: translateY(0); }
  90% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-10px); }
}

.video-popup {
  transform: scale(0.8);
}
.video-popup.show {
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-dots .dot:hover, .nav-dots-left .dot:hover {
  background: rgba(0, 188, 212, 0.7);
  transform: scale(1.2);
}

.language-selector {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  font-size: 14px;
  user-select: none;
}

.language-selector .dropdown {
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.6);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  gap: 8px;
  box-shadow: 0 0 8px #00bcd4;
}

.language-selector .dropdown img {
  width: 24px;
  height: 16px;
  border-radius: 2px;
}

.language-selector .dropdown-list {
  margin-top: 6px;
  background: rgba(0,0,0,0.85);
  border-radius: 6px;
  list-style: none;
  padding: 6px 0;
  display: none;
  box-shadow: 0 0 10px #00bcd4;
  position: absolute;
  right: 0;
  top: 100%;
}

.language-selector .dropdown-list.show {
  display: block;
}

.language-selector .dropdown-list li {
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.language-selector .dropdown-list li:hover {
  background: #00bcd4;
  color: #000;
}

.language-selector .dropdown-list li img {
  width: 24px;
  height: 16px;
  border-radius: 2px;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
  .language-selector {
    top: 10px;
    right: 10px;
    font-size: 12px;
  }

  .language-selector .dropdown {
    padding: 4px 6px;
    gap: 4px;
    border-radius: 6px;
    box-shadow: 0 0 6px #00bcd4;
  }

  .language-selector .dropdown img {
    width: 20px;
    height: 14px;
  }

  .language-selector .dropdown span {
    font-size: 12px; /* Smaller language name in dropdown */
  }

  .language-selector .dropdown i {
    font-size: 12px; /* Smaller chevron icon */
  }

  .language-selector .dropdown-list {
    margin-top: 4px;
    padding: 4px 0;
    border-radius: 4px;
    box-shadow: 0 0 6px #00bcd4;
  }

  .language-selector .dropdown-list li {
    padding: 4px 8px;
    gap: 0; /* Remove gap since text is hidden */
  }

  .language-selector .dropdown-list li img {
    width: 20px;
    height: 14px;
  }

  .language-selector .dropdown-list li span {
    display: none; /* Hide language text in dropdown list */
  }
}


