body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: url('background.gif') no-repeat center center/cover;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rectangle {
  width: 600px; 
  height: 420px;
  border-radius: 20px; 
  background: rgba(255, 255, 255, 0.1); 
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.avatar-section {
  display: flex;
  align-items: center;
  padding: 12px; 
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.avatar {
  width: 110px;
  height: 110px; 
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  margin-right: 12px; 
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info {
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.name {
  font-size: 32px; 
  font-weight: bold;
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6);
  margin: 0;
}

.description {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.9);
  margin: 5px 0 0;
  display: flex;
  align-items: center;
}

.bio-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin: 10px 0 0;
  font-style: italic;
}

.links-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  width: 100%;
  max-width: 400px;
}

.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.link-card:hover::before {
  left: 100%;
}

.link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.link-card i {
  font-size: 24px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.link-card span {
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.link-card:hover i {
  transform: scale(1.2);
}

.youtube:hover {
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.3), rgba(255, 0, 0, 0.1));
  border-color: #ff0000;
}

.instagram:hover {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.3), rgba(225, 48, 108, 0.1));
  border-color: #e1306c;
}

.twitter:hover {
  background: linear-gradient(135deg, rgba(29, 161, 242, 0.3), rgba(29, 161, 242, 0.1));
  border-color: #1da1f2;
}

.github:hover {
  background: linear-gradient(135deg, rgba(36, 41, 46, 0.3), rgba(36, 41, 46, 0.1));
  border-color: #24292e;
}

.discord:hover {
  background: linear-gradient(135deg, rgba(114, 137, 218, 0.3), rgba(114, 137, 218, 0.1));
  border-color: #7289da;
}

.portfolio:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  border-color: #ffffff;
}

.footer-text {
  text-align: center;
  margin-top: 10px;
  padding: 8px 15px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
}

.footer-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.8s;
}

.footer-text:hover::before {
  left: 100%;
}

.footer-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-icon {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: all 0.3s ease;
}

.footer-text:hover .footer-icon {
  transform: scale(1.1);
  opacity: 1;
}

.separator {
  color: rgba(255, 255, 255, 0.5);
  margin: 0 4px;
  font-weight: 300;
}

.achievement:hover {
  background: linear-gradient(45deg, #e5e5e5, #ffffff);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

.cursor {
  font-weight: bold;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .rectangle {
    width: 90%;
    height: auto;
    min-height: 420px;
  }
  
  .links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .avatar {
    width: 80px;
    height: 80px;
  }
  
  .name {
    font-size: 24px;
  }
  
  .description {
    font-size: 18px;
  }
}

.portfolio-page {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 40px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.back-btn:hover {
    opacity: 1;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: background 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox.active {
    background: rgba(0, 0, 0, 0.92);
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
    transform: scale(0.7);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.35s ease;
}

.lightbox.active img {
    transform: scale(1);
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 2.4rem;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10000;
}

.lightbox.active .lightbox-close {
    opacity: 0.85;
    transform: scale(1);
}

.lightbox-close:hover {
    opacity: 1;
    transform: scale(1.15);
}

.view-counter {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.3px;
}

.mute-btn {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 99999;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.mute-btn:hover {
    background: rgba(0, 0, 0, 0.75);
    transform: scale(1.07);
}

.mute-btn.muted {
    background: rgba(0, 0, 0, 0.7);
}

#enter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#enter-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.enter-text {
    color: white;
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    animation: pulse 2s ease-in-out infinite;
    user-select: none;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}