/* Global Body and Typography */
body {
  background-color: #121212;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  padding: 20px;
  animation: fadeInBody 2s ease-in;
}

#back_to_top{
    position: fixed;
    bottom: 50px;
    right: 30px;
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center; 
    border-radius: 50%;    
    text-decoration: none;    
    transition: background-color 0.3s, transform 0.3s;
}

#back_to_top:hover{
    transform: scale(1.1)
    
}


@keyframes fadeInBody {
  from { opacity: 0; }
  to { opacity: 1; }
}

h1 {
  text-align: center;
  color: #00ffff;
  margin-bottom: 20px;
}

.typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid #00ffff;
  width: 0;
  margin: auto;
  animation: typing 3s steps(30, end) forwards, blink 0.7s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 260px; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

.hero-text p {
  text-align: center;
  margin: 10px auto;
  max-width: 800px;
  color: #00ffff;
  text-shadow: 0 0 2px #00ffff, 0 0 6px #00ffff;
  animation: fadeInText 1.5s ease-in both;
}

@keyframes fadeInText {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Image Row and Cards */
.image-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 140px;
  flex-wrap: wrap;
  margin-top: 60px;
}

.image-card {
  text-align: center;
  width: 250px;
}

.image-card img {
  width: 140%;
  border-radius: 15px;
  box-shadow: 0 0 15px #00ffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-card img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px #00ffff;
}

.image-card p {
  margin-top: 10px;
  font-size: 16px;
  color: #ffffff;
  text-shadow: 0 0 5px #00ffff;
}

/* Navigation */
nav {
  margin-bottom: 30px;
  text-align: center;
}

.nav-links a {
  margin: 0 10px;
  text-decoration: none;
  color: #00ffff;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  text-shadow: 0 0 10px #00ffff;
}

/* Experience Page Styles */
.experience-item {
  margin-bottom: 60px;
}

/* Neon glow & transition for paragraphs inside experience-item */
.experience-item p {
  color: #00ffff;
  text-shadow:
    0 0 5px #00ffff,
    0 0 10px #00ffff,
    0 0 20px #00ffff,
    0 0 40px #00ffff;
  transition: color 0.4s ease, text-shadow 0.4s ease;
  margin-top: 12px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  opacity: 0;
  animation: fadeInText 1.5s ease-in forwards;
  animation-delay: 0.3s;
}

.experience-item p:hover {
  color: #00ffff;
  text-shadow:
    0 0 10px #00ffff,
    0 0 20px #00ffff,
    0 0 40px #00ffff,
    0 0 80px #00ffff;
}

.experience-images {
  display: flex;
  justify-content: center;
  gap: 40px; /* Increased gap for better spacing */
  margin-top: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px; /* Increased bottom margin */
}

.experience-images img {
  width: 400px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-images img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px #00ffff;
}

/* Video button */
.toggle-video-btn {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  font-size: 16px;
  background-color: #00ffff;
  border: none;
  border-radius: 8px;
  color: #000;
  cursor: pointer;
  box-shadow: 0 0 10px #00ffff;
  transition: background-color 0.3s ease;
}

.toggle-video-btn:hover {
  background-color: #00dddd;
}

/* Video container */
.experience-video {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 40px;
}

.experience-video video {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 20px #00ffff;
}
/* Responsive for smaller screens (mobile/tablet) */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .typewriter {
    width: 180px; /* Adjust typing effect width */
  }

  .hero-text p,
  .experience-item p {
    max-width: 100%;
    font-size: 1rem;
    margin: 8px 10px;
  }

  .image-row,
  .experience-images {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
  }

  .image-card {
    width: 90vw; /* almost full width */
  }
}


@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  .typewriter {
    width: 150px;
    font-size: 1rem;
  }

  .image-card img {
    width: 100%; /* Fit container */
  }

  .image-card {
    width: 100%;
    padding: 0 10px;
  }

  .experience-images img {
    width: 90vw;
  }

  .toggle-video-btn {
    width: 90%;
    font-size: 1rem;
  }

  .hero-text p {
    font-size: 0.95rem;
    padding: 0 10px;
  }

  nav .nav-links a {
    display: block;
    margin: 10px 0;
  }
}
