:root {
  --bg-dark: #0a0011;
  --nav-bg: rgba(13, 0, 23, 0.95);
  --primary: #bb33ff;
  --primary-dark: #660066;
  --text: #e0e0e0;
  --text-dark: #a0a0a0;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-dark);
  color: var(--text);
  font-family: 'Orbitron', sans-serif;
  overflow: hidden;
  line-height: 1.6;
  height: 100vh;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(187, 51, 255, 0.2);
  border-top: 5px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

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

.loading-screen-text {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 500;
  margin-top: 10px;
}

.loading-progress {
  margin-top: 20px;
  color: var(--text-dark);
  font-size: 0.9rem;
}

/* Video Background */
.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.15;
  filter: blur(20px);
  transition: opacity 1s ease, filter 1s ease;
}

.bg-video.active {
  opacity: 0.3;
  filter: blur(5px);
}

/* Volume Controls */
.volume-controls {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  align-items: center;
  gap: 15px;
  background: rgba(13, 0, 23, 0.6);
  padding: 15px 20px;
  border-radius: 50px;
  z-index: 1000;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(187, 51, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.volume-controls.visible {
  display: flex;
  animation: slideIn 0.5s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(200px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.volume-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 22px;
  cursor: pointer;
  transition: all 0.3s;
  padding: 5px;
}

.volume-btn:hover {
  color: #ff33f7;
  transform: scale(1.1);
}

.volume-slider {
  width: 120px;
  height: 6px;
  -webkit-appearance: none;
  background: rgba(187, 51, 255, 0.2);
  border-radius: 5px;
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.volume-slider::-webkit-slider-thumb:hover {
  background: #ff33f7;
  transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.volume-slider::-moz-range-thumb:hover {
  background: #ff33f7;
  transform: scale(1.2);
}

/* View Counter */
.view-counter {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(13, 0, 23, 0.6);
  padding: 12px 20px;
  border-radius: 50px;
  z-index: 1000;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(187, 51, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  color: var(--text);
}

.view-counter i {
  color: var(--primary);
  font-size: 1.1rem;
}

.counter-number {
  color: var(--primary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  min-width: 60px;
  text-align: center;
}

.profile-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  color: var(--text);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 100;
  box-sizing: border-box;
  background: transparent;
}

.profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: transparent;
}

.profile-link {
  display: inline-block;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 0;
  margin: 0;
}

.profile-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  object-fit: cover;
  transition: all 0.3s ease;
}

.profile-link::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: -1;
}

.profile-link:hover::before {
  opacity: 0.2;
}

.profile-link:hover .profile-img {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(187, 51, 255, 0.6);
}

.site-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary), #ff33f7, var(--primary));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s linear infinite;
  letter-spacing: 0.1em;
}

.container {
  position: relative;
  max-width: 600px;
  width: 85%;
  margin: 0 auto;
  text-align: center;
  padding: 1.5rem 1.8rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(13, 0, 23, 0.4);
  backdrop-filter: blur(25px);
  border-radius: 24px;
  border: 1px solid rgba(187, 51, 255, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

#bg {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
}

.typewriter-text {
  font-family: 'Orbitron', sans-serif;
  display: inline-block;
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: .1em;
  font-size: 2rem;
  margin-bottom: 1.2rem;
  position: relative;
  font-weight: 700;
  z-index: 10;
}

.typewriter-text::after {
  content: '|';
  position: absolute;
  right: -0.5em;
  color: var(--primary);
  animation: cursor 1s infinite;
}

@keyframes cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.glow-name {
  color: var(--text);
  transition: all 0.3s ease;
}

.glow-name.animated {
  background: linear-gradient(90deg, var(--primary), #ff33f7, var(--primary));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s linear infinite;
  filter: drop-shadow(0 0 10px rgba(187, 51, 255, 0.5));
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.links {
  margin-top: 1.5rem;
  margin-bottom: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  z-index: 10;
  opacity: 0;
}

.links a {
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  font-size: 1.8rem;
  position: relative;
}

.links a i {
  transition: all 0.3s ease;
}

.links a:hover i {
  color: var(--primary);
  text-shadow: 0 0 20px rgba(187, 51, 255, 0.8);
  transform: translateY(-5px) scale(1.2);
}

.welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 0, 17, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.welcome-card {
  background: rgba(26, 26, 26, 0.95);
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(187, 51, 255, 0.2);
}

.terminal {
  font-family: 'Consolas', 'Monaco', monospace;
  background: transparent;
  color: #33ff33;
  border: none;
  padding: 0;
}

.terminal-header {
  background: #333;
  padding: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #444;
}

.terminal-buttons {
  display: flex;
  gap: 8px;
}

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

.terminal-button.close {
  background: #ff5f56;
}

.terminal-button.minimize {
  background: #ffbd2e;
}

.terminal-button.maximize {
  background: #27c93f;
}

.terminal-title {
  color: #ddd;
  font-size: 0.9rem;
}

.terminal-content {
  padding: 1rem;
  font-size: 0.95rem;
}

.terminal-line {
  margin-bottom: 1rem;
  line-height: 1.4;
}

.terminal-line.warning {
  color: #ff3333;
  font-weight: bold;
  padding: 0.5rem;
  background: rgba(255, 0, 0, 0.1);
  border-left: 3px solid #ff3333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-prompt {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prompt-symbol {
  color: #33ff33;
}

.terminal-button-command {
  background: transparent;
  border: none;
  color: #33ff33;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.terminal-button-command:hover {
  color: #66ff66;
  text-decoration: underline;
}

.main-content {
  position: relative;
  height: 100vh;
  transition: filter 0.5s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.content-blur {
  filter: blur(15px);
  pointer-events: none;
}

/* Footer */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.6rem;
  text-align: center;
  background: transparent;
  color: rgba(160, 160, 160, 0.5);
  font-size: 0.7rem;
  z-index: 50;
  font-family: 'Orbitron', sans-serif;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  opacity: 0.6;
}

.footer-heart {
  color: rgba(255, 51, 102, 0.7);
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.2);
  }
  50% {
    transform: scale(1);
  }
}

/* About Section */
.about-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1rem 0;
}

.about-block {
  background: rgba(13, 0, 23, 0.5);
  border: 1px solid rgba(187, 51, 255, 0.2);
  border-radius: 10px;
  padding: 0.8rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(100px);
}

.about-block.visible {
  opacity: 1;
  transform: translateX(0);
  animation: slideInFromRight 0.6s ease forwards;
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.about-block:hover {
  border-color: rgba(187, 51, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(187, 51, 255, 0.2);
}

.block-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.block-header i {
  font-size: 1rem;
}

/* Tech Stack */
.tech-icons {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.tech-icon {
  position: relative;
  font-size: 2.2rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tech-icon:hover {
  transform: scale(1.2) translateY(-5px);
  filter: drop-shadow(0 0 15px rgba(187, 51, 255, 0.6));
}

.tech-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13, 0, 23, 0.9);
  color: var(--primary);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-family: 'Orbitron', sans-serif;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  border: 1px solid rgba(187, 51, 255, 0.3);
}

.tech-icon:hover::after {
  opacity: 1;
}

/* Interests */
.interest-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.interest-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.8rem;
  background: rgba(187, 51, 255, 0.05);
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.interest-item:hover {
  background: rgba(187, 51, 255, 0.1);
  transform: translateX(5px);
}

.interest-item i {
  color: var(--primary);
  font-size: 0.95rem;
}

/* Status */
.status-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

.status-indicator {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 10px var(--primary);
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

/* Heartbeat for status heart */
.status-heart {
  display: inline-block;
  animation: heartbeat 1.5s ease-in-out infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .container {
    width: 90%;
    padding: 1.3rem 1.5rem;
  }

  .about-section {
    gap: 0.7rem;
  }

  .about-block {
    padding: 0.7rem;
  }

  .tech-icons {
    gap: 0.7rem;
  }

  .tech-icon {
    font-size: 2rem;
  }

  .block-header {
    font-size: 0.8rem;
  }

  .interest-item,
  .status-item {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
  }

  .typewriter-text {
    font-size: 1.6rem;
  }

  .links a {
    font-size: 1.5rem;
  }

  .volume-controls {
    bottom: 15px;
    right: 15px;
    padding: 12px 15px;
  }

  .volume-slider {
    width: 80px;
  }

  .view-counter {
    bottom: 15px;
    left: 15px;
    padding: 10px 15px;
    font-size: 0.75rem;
  }

  .counter-number {
    min-width: 50px;
  }

  .footer {
    font-size: 0.65rem;
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1.2rem 1rem;
  }

  .tech-icon {
    font-size: 1.8rem;
  }

  .block-header {
    font-size: 0.75rem;
  }

  .interest-item,
  .status-item {
    font-size: 0.7rem;
  }

  .typewriter-text {
    font-size: 1.3rem;
  }

  .links {
    gap: 1.5rem;
  }

  .links a {
    font-size: 1.3rem;
  }

  .volume-controls {
    bottom: 10px;
    right: 10px;
    padding: 10px 12px;
  }

  .view-counter {
    bottom: 10px;
    left: 10px;
    padding: 8px 12px;
    font-size: 0.7rem;
  }

  .footer {
    font-size: 0.6rem;
    padding: 0.4rem;
  }
}
