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

:root {
  --text-color: #ffffff;
  --bg-color: #0f1729; /* Darker navy blue like in the image */
  --card-bg: #1a2234; /* Card background color */
  --card-border: rgba(255, 255, 255, 0.1);
  --glow-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
  --rainbow-gradient: linear-gradient(90deg, 
    #ff3366, 
    #ff6633, 
    #ffcc33, 
    #33ff66, 
    #33ccff, 
    #3366ff, 
    #cc33ff);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-color);
  background-size: cover;
  color: var(--text-color);
  line-height: 1.6;
  width: 100%;
  overflow-x: hidden;
  padding-top: 80px; /* Add padding to prevent navbar overlap */
}

::selection {
  background-color: #ffffff;
  color: var(--bg-color);
}

.background {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: -1;
  background-color: var(--bg-color);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(26, 34, 52, 0.8);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.navbar-logo:hover {
  text-shadow: var(--glow-shadow);
}

.navbar-links {
  display: flex;
  gap: 25px;
  list-style: none;
}

.navbar-link {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.navbar-link:hover {
  opacity: 1;
  text-shadow: var(--glow-shadow);
}

.bio-container {
  text-align: center;
  width: 100%;
  max-width: 600px; /* Increased width */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  transition: opacity 0.5s ease, transform 0.5s ease;
  margin: 20px auto;
}

.profile-card {
  background: var(--card-bg);
  padding: 30px 20px;
  width: 100%;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--card-border);
}

.banner {
  width: 100%;
  height: 80px;
  background: var(--card-bg); /* Exact same color as the card */
  position: absolute;
  top: 0;
  left: 0;
}

.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 40px auto 10px; /* Reduced bottom margin */
  z-index: 2;
  position: relative;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.name {
  font-size: 2.5rem;
  margin: 5px 0; /* Reduced margins */
  font-weight: 700;
  text-align: center;
  background: var(--rainbow-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow 8s linear infinite;
  background-size: 200% 100%;
}

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

.bio {
  font-size: 1rem;
  margin: 10px auto; /* Reduced margins */
  color: rgba(255, 255, 255, 0.8);
  max-width: 90%;
  text-align: center;
  min-height: 80px;
  position: relative;
  display: inline-block;
}

/* Typing effect will be applied to this element */
.bio-typing {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid white;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: white }
}

.social-links-container {
  margin-top: 15px; /* Reduced margin */
  width: 100%;
}

.social-links-header {
  font-size: 1.2rem;
  margin-bottom: 10px; /* Reduced margin */
  color: var(--text-color);
  font-weight: 600;
}

.social-icons-container {
  margin: 10px 0; /* Reduced margins */
}

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

.social-icon {
  font-size: 1.8rem;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
}

.social-icon:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.tooltip {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  white-space: nowrap;
}

.social-icon:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

/* Tech stack card with sliding animation */
.tech-stack {
  background: var(--card-bg); /* Exact same color as the card and banner */
  border-radius: 15px;
  padding: 20px;
  margin: 15px auto; /* Reduced margins */
  width: 100%; /* Full width of the container */
  position: relative;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  height: 120px;
}

.tech-slider {
  display: flex;
  position: absolute;
  transition: transform 0.5s ease;
  left: 0;
  width: max-content;
}

.tech-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  margin: 0 10px;
  transition: all 0.3s ease;
}

.tech-icon i, 
.tech-icon img {
  font-size: 2.5rem;
  width: 40px;
  height: 40px;
  object-fit: contain;
  color: var(--text-color);
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.tech-icon:hover i, 
.tech-icon:hover img {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
  transform: scale(1.1);
}

.tech-icon p {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.9;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.custom-icon {
  width: 40px;
  height: 40px;
}

#enter-screen {
  position: fixed;
  width: 100%;
  height: 100vh;
  background: rgba(15, 23, 41, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
}

#enter-text {
  font-size: 1.4rem;
  padding: 15px 30px;
  background: transparent;
  border: none;
  color: var(--text-color);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 1px;
}

#enter-text:hover {
  text-shadow: var(--glow-shadow);
}

/* Status card styling like in the image */
.status-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 15px;
  margin: 15px auto;
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: 90%;
}

.status-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.status-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.status-username {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
}

.status-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
  .profile-card {
    padding: 25px 15px;
  }
  
  .name {
    font-size: 2rem;
  }
  
  .social-icons {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .profile-img {
    width: 100px;
    height: 100px;
  }
  
  .name {
    font-size: 1.8rem;
  }
  
  .bio {
    font-size: 0.9rem;
  }
/* Particle Background Effect (requires JS) */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}
