* {
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

body {
  background: #1a1a1a;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
}

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

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--nav-bg);
  min-width: 200px;
  border-radius: 8px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-item:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  display: block;
  transition: background-color 0.3s;
}

.submenu a:hover {
  background: var(--nav-hover);
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.main-wrapper {
  flex: 1;
  padding-top: 80px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 200px);
}

.content-section {
  max-width: 1200px;
  margin: 2rem auto;
  width: 100%;
  padding: 0 1rem;
}

.about-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  margin-bottom: 2rem;
}

.profile-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid transparent;
  background: linear-gradient(#1a1a1a, #1a1a1a) padding-box,
    var(--gradient) border-box;
  display: block;
  margin: 0 auto;
}

.profile-section h2 {
  margin: 0;
  background: linear-gradient(45deg, #007bff, #00e1ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-size: 2.5rem;
  font-weight: bold;
}

.profile-bio {
  max-width: 600px;
  margin: 1rem auto;
  line-height: 1.6;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--gradient);
  transform: translateY(-2px);
}

.footer {
  background: var(--nav-bg);
  padding: 1rem;
  text-align: center;
  margin-top: auto;
}

.footer-text {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

@media (max-width: 320px) {
  .profile-image {
    width: 100px;
    height: 100px;
  }

  .profile-section h2 {
    font-size: 1.8rem;
  }

  .about-container {
    padding: 0.8rem;
  }

  .social-links {
    flex-direction: column;
    gap: 0.8rem;
  }

  .social-link {
    width: 100%;
    justify-content: center;
  }

  .profile-mini span {
    font-size: 0.9rem;
  }

  .footer-text {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .nav-content {
    padding: 0 0.5rem;
  }

  .profile-mini span {
    font-size: 1rem;
  }

  .profile-image {
    width: 110px;
    height: 110px;
  }

  .profile-section h2 {
    font-size: 2rem;
  }

  .profile-bio {
    font-size: 0.9rem;
    padding: 0 0.5rem;
  }

  .social-links {
    padding: 0 1rem;
  }

  .content-section {
    padding: 0 0.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .content-section {
    max-width: 90%;
  }

  .profile-section h2 {
    font-size: 2.2rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-item > a {
    padding: 0.5rem 0.8rem;
  }
}

@media (min-width: 1025px) and (max-width: 1366px) {
  .content-section {
    max-width: 95%;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .main-wrapper {
    padding-top: 60px;
  }

  .profile-section {
    gap: 0.5rem;
  }

  .profile-image {
    width: 80px;
    height: 80px;
  }

  .profile-section h2 {
    font-size: 1.8rem;
  }

  .social-links {
    margin-top: 0.5rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .social-link {
    padding: 0.8rem 1rem;
  }
}
