body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #000;
  color: #fff5e6;
}

#content-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(to bottom right, #001a00, #003300);
  z-index: -2;
}

/* Floating Nav */
.floating-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.8rem 1.5rem;
  background: transparent;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-link.active,
.mobile-link.active {
  color: #a0522d; /* Highlighted tab color */
}

/* 3-dot mobile toggle */
.nav-toggle {
  display: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  left: 1rem;
}

/* Mobile dropdown */
.mobile-nav {
  display: none;
  position: absolute;
  top: 3.2rem;
  left: 1rem;
  background-color: rgba(0, 0, 0, 0.85);
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid #00ff00;
}

.mobile-nav a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 0.5rem 0;
  font-weight: 600;
}

.mobile-nav a:hover {
  color: brown;
}

/* Mobile rules */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }
}

.box {
  background: rgba(60, 30, 10, 0.88);
  border: 2px solid #00ff00;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.5rem auto;
  box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #008000;
  max-width: 800px;
  animation: slideUp 0.8s ease-out, float 5s ease-in-out infinite;
  z-index: 1;
  position: relative;
  color: #fff5e6;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
/* Header with cyber background */
.cyber-header {
  height: 100vh;                /* Full screen height */
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: transparent;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* Keep particle canvas in the background */
#cyber-header-particles {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Ensure text floats above particles */
.cyber-header-content {
  position: relative;
  z-index: 1;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  color: #00ff00;
  text-shadow: 0 0 10px #00ff00;
}

.cyber-header-content h1 {
  font-size: 2.5rem;
  margin: 0;
  font-weight: bold;

  background: linear-gradient(to right, #00ff99, #00d8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}


.cyber-header-content p {
  font-size: 1.1rem;
  margin-top: 0.5rem;
  color: #00ffcc;
  text-shadow: 0 0 10px #00ffcc;
}

.tab-menu {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.tab-btn {
  width: 70px;
  height: 80px;
  background-color: transparent;
  border: 2px solid #00ff00;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #00ff00;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  gap: 5px;
}

.tab-btn img {
  width: 28px;
  height: 28px;
  filter: invert(70%) sepia(100%) saturate(400%) hue-rotate(80deg);
}

.tab-btn span {
  margin-top: 3px;
}

.tab-btn:hover,
.tab-btn.active {
  background-color: #00ff00;
  color: #000;
  box-shadow: 0 0 10px #00ff00;
}
.tab-btn:hover {
  animation: bounce 0.5s ease;
  background-color: #00ff00;
  color: #000;
  box-shadow: 0 0 10px #00ff00;
}

.tab-btn:hover img,
.tab-btn.active img {
  filter: invert(0%) brightness(0) contrast(100%);
}

#welcome-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: black;
  z-index: 9999;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}


#welcome-screen canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: black;
}

.welcome-text {
  z-index: 2;
  text-align: center;
}

#welcome-screen h1 {
  color: red;
  font-size: 4rem; /* adjust based on your base font (2x) */
  font-family: 'VT323', monospace; /* hacker-style font */
  text-shadow:
    0 0 5px red,
    0 0 10px red,
    0 0 20px #ff0000aa,
    0 0 40px #ff000055;
  animation: popIn 1s ease-out forwards, hackerHaze 1.5s infinite alternate;
  opacity: 0;
  transform: scale(0.5);
}

/* Pop in effect */
@keyframes popIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hacker hazing flicker effect */
@keyframes hackerHaze {
  0%   { text-shadow: 0 0 5px red; }
  50%  { text-shadow: 0 0 8px red, 0 0 12px #ff0000aa; }
  100% { text-shadow: 0 0 4px red, 0 0 20px #ff000055; }
}

/* Style the H2 */
#welcome-typing {
  font-size: 2rem;
  color: #00bfff; /* blue */
  font-family: 'Poppins', sans-serif;
  margin-top: 1rem;
}

/* Cursor effect */
#cursor {
  display: inline-block;
  color: #00bfff;
  font-weight: bold;
  animation: blink 0.7s steps(1) infinite;
  margin-left: 3px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Main content fade in */
#main-content {
  opacity: 0;
  transition: opacity 1s ease;
}

.about-box {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  margin: 1.5rem auto;
  background: rgba(60, 30, 10, 0.88);
  border: 2px solid #00ff00;
  border-radius: 10px;
  box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #008000;
  animation: slideUp 0.8s ease-out, float 5s ease-in-out infinite;
  color: #fff5e6;
  max-width: 1000px;
  box-sizing: border-box;
}

.about-container {
  display: flex;
  width: 100%;
  height: 100%;
}

.about-image {
  flex: 0 0 50%;
  height: 100%;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.about-right {
  flex: 0 0 50%;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-heading {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff5e6;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
  color: #fff5e6;
}

/* Responsive layout remains unchanged */
@media screen and (max-width: 768px) {
  .about-box {
    height: auto;
    padding: 1rem;
    margin: 1rem auto;
  }

  .about-container {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .about-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 1rem;
  }

  .about-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .about-right {
    width: 100%;
    max-width: 300px;
  }

  .about-text {
    padding: 1rem;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.6;
    word-break: break-word;
  }

  .reveal-btn {
    width: 100%;
    margin-top: 1rem;
    text-align: center;
  }

  .resume-btn {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 1rem auto 0;
  padding: 0.6rem 1rem;
  text-align: center;
  font-size: 1rem;
  background-color: #e60000;
  color: white;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  box-sizing: border-box;
  overflow: hidden;
  }
}

@keyframes bounce {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-5px); }
  50%  { transform: translateY(0); }
  70%  { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}
.emoji-icon {
  font-size: 1.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  justify-items: center;
  margin-top: 1rem;
}

.cert-card {
  display: block;
  width: 200px;
  padding: 1rem;
  background: rgba(20, 20, 20, 0.6);
  border: 2px solid #00ff00;
  border-radius: 8px;
  box-shadow: 0 0 10px #00ff00;
  text-align: center;
  transition: transform 0.3s ease;
  text-decoration: none; /* ✅ remove underline from <a> */
  color: inherit;         /* ✅ inherit text color */
}

.cert-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.cert-card:hover {
  transform: scale(1.05);
}

.cert-card p {
  font-size: 0.9rem;
  color: #fff5e6;
  margin: 0;
}

.edu-block {
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid #00ff00;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 8px #00ff00;
  animation: slideUp 0.8s ease-out;
}

.edu-block h3 {
  margin-bottom: 0.5rem;
  color: #00ffcc;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}

.edu-block h4 {
  margin: 0.25rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff5e6;
}

.edu-block p {
  margin: 0.2rem 0;
  color: #fff5e6;
  font-size: 0.9rem;
}

.edu-date {
  color: #ccc;
  font-style: italic;
}

.reveal-btn {
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background: black;
  color: #00ff00;
  border: 1px solid #00ff00;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;


.reveal-btn:hover {
  background-color: #00ff00;
  color: #000;
  box-shadow: 0 0 8px #00ff00;
}
.about-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-heading {
  margin: 0 0 0.5rem 0;
}
.info-message {
  background: rgba(0, 0, 0, 0.5);
  border: 2px dashed #00ff00;
  padding: 1rem;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 0 10px #00ff00;
}

#content-particles,
#cyber-header-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
  
.tryhackme-section {
  background: rgba(0, 30, 0, 0.6);
  border: 2px solid #00ff00;
  border-radius: 12px;
  max-width: 400px;
  margin: 2rem auto;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 0 10px #00ff00;
  animation: float 4s ease-in-out infinite;
  font-family: 'Poppins', sans-serif;
  color: #00ffcc;
}

.update-card {
  background: rgba(20, 20, 20, 0.6);
  border: 2px solid #00ff00;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 0 10px #00ff00;
  transition: transform 0.3s ease;
}

.update-card:hover {
  transform: scale(1.02);
}

.update-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: #00ff00;
}

.update-card small {
  display: block;
  color: #aaa;
  margin-bottom: 0.5rem;
}

.update-card p {
  color: #fff5e6;
  font-size: 0.95rem;
  margin: 0;
}
