/* Reset + Base */
body {
  margin: 0;
  background-color: #000;
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Header */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  z-index: 10;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #bbb;
  font-size: 14px;
  transition: color 0.3s ease;
  
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeInNav 0.6s ease forwards;
}
nav a:nth-child(1) { animation-delay: 0.3s; }
nav a:nth-child(2) { animation-delay: 0.4s; }
nav a:nth-child(3) { animation-delay: 0.5s; }
nav a:nth-child(4) { animation-delay: 0.6s; }

@keyframes fadeInNav {
  to {
    opacity: 1;
  }
}

nav a:hover {
  color: #b36aff;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 18px;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.logo-text {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.8;
  transition: all 0.3s ease;
  z-index: 1;
  position: relative;
}

.logo:hover .logo-text {
  opacity: 1;
  color: #b36aff;
  transform: translateX(2px);
}

.logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(179, 106, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.logo:hover::before {
  left: 100%;
}

.logo:hover {
  background-color: rgba(179, 106, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(179, 106, 255, 0.2);
}

.triangle {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 18px solid #b36aff;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.logo:hover .triangle {
  animation: spin 1.2s linear infinite;
  filter: drop-shadow(0 0 8px rgba(179, 106, 255, 0.6));
  transform: scale(1.1);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { 
    box-shadow: 0 0 0 0 rgba(179, 106, 255, 0.4);
  }
  50% { 
    box-shadow: 0 0 0 8px rgba(179, 106, 255, 0);
  }
}

.logo {
  animation: pulse 2s infinite;
}

/* Mobile responsive - hide home text on small screens */
@media (max-width: 768px) {
  .logo-text {
    display: none;
  }
  
  .logo {
    padding: 8px;
  }
}

/* Main content layout */
.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* align items starting from top */
  padding: 300px 20px 60px; /* <--- increase top padding here */
  gap: 40px;
  box-sizing: border-box;
}


/* Card */
.card {
  background-color: #111;
  padding: 30px 40px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 0 20px rgba(128, 0, 128, 0.3);
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.card h1 {
  font-size: 22px;
  margin: 0 0 10px;
  color: #fff;
  text-shadow: 0 0 6px rgba(255, 0, 255, 0.1);
}

.location {
  font-size: 14px;
  color: #b36aff;
  margin: 0;
}

.bio {
  font-size: 13px;
  color: #aaa;
  margin-top: 10px;
}

/* Card animation */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Social icons */
.socials {
  text-align: center;
  font-size: 0;
}

.socials a {
  font-size: 24px;
  color: #b36aff;
  margin: 0 12px;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.socials a:hover {
  color: #fff;
  transform: scale(1.1);
}

/* Tech stack */
.tech-stack {
  text-align: center;
  max-width: 90%;
}

.tech-stack h2 {
  color: #888;
  font-size: 18px;
  margin-bottom: 20px;
}

.tech-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}

.tech-icons img {
  width: 40px;
  height: 40px;
  filter: grayscale(100%) brightness(80%);
  opacity: 0;
  transform: scale(0.9);
  animation: fadeInScale 0.6s ease forwards;
  transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}

.tech-icons img:hover {
  transform: scale(1.1);
  opacity: 1;
  filter: grayscale(0%) brightness(100%);
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.tech-icons img:nth-child(1) { animation-delay: 0.1s; }
.tech-icons img:nth-child(2) { animation-delay: 0.2s; }
.tech-icons img:nth-child(3) { animation-delay: 0.3s; }
.tech-icons img:nth-child(4) { animation-delay: 0.4s; }
.tech-icons img:nth-child(5) { animation-delay: 0.5s; }
.tech-icons img:nth-child(6) { animation-delay: 0.6s; }
.tech-icons img:nth-child(7) { animation-delay: 0.7s; }
.tech-icons img:nth-child(8) { animation-delay: 0.8s; }
.tech-icons img:nth-child(9) { animation-delay: 0.9s; }
.tech-icons img:nth-child(10) { animation-delay: 1.0s; }
.tech-icons img:nth-child(11) { animation-delay: 1.1s; }
.tech-icons img:nth-child(12) { animation-delay: 1.2s; }



/* Keyframes */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInNav {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
