/* =============================
   GLOBAL SETTINGS
============================= */
body {
  margin: 0;
  font-family: Orbitron, sans-serif;
  color: #01ffee;
  overflow-x: hidden;
  font-weight: bold;
}

/* Universal text color override */
* {
  color: #01ffee !important;
}

/* =============================
   BACKGROUND VIDEO
============================= */
.video-background {
  position: fixed;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* =============================
   INTRO VIDEO
============================= */
#introVideoContainer {
  position: fixed;
  z-index: 9999;
  width: 100%;
  height: 100%;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
}

#introVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =============================
   HERO SECTION
============================= */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-box {
  text-align: center;
  background: rgba(0, 0, 0, 0.55);
  padding: 40px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 20px #01ffee80;
  animation: fadeIn 2s ease forwards;
  opacity: 0;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  box-shadow: 0 0 15px #01ffee;
}

/* =============================
   TITLES
============================= */
.glow-title {
  font-size: 2.6rem;
  text-shadow: 0 0 20px #01ffee;
  margin-bottom: 20px;
}

/* GLITCH EFFECT */
.glitch {
  position: relative;
  animation: glitch 1s infinite steps(2);
}

@keyframes glitch {
  0% { text-shadow: 2px 2px #01ffee; }
  20% { text-shadow: -2px -2px #a60000; }
  40% { text-shadow: 3px -3px #01ffee; }
  60% { text-shadow: -3px 3px #a60000; }
  80% { text-shadow: 3px 3px #01ffee; }
  100% { text-shadow: -3px -3px #a60000; }
}

/* =============================
   SOCIAL LINKS
============================= */
.social-links a {
  margin: 0 15px;
  font-size: 2rem;
  transition: 0.3s;
}

.social-links a:hover {
  transform: scale(1.3);
  color: #ffffff !important;
}

/* =============================
   SECTION / GLASS BOX
============================= */
.section {
  padding: 80px 40px;
  text-align: center;
}

.fade-up {
  opacity: 0;
  transform: translateY(60px);
  transition: 1.2s ease;
}

.glass-box {
  background: rgba(0, 0, 0, 0.65);
  padding: 30px;
  margin: 20px auto;
  border-radius: 15px;
  max-width: 800px;
  box-shadow: 0 0 15px #01ffee80;
}

/* =============================
   PROJECT GRID
============================= */
.project-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}

/* 3D PROJECT CARDS */
.project-card {
  width: 300px;
  background: rgba(0, 0, 0, 0.6);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 0 12px #01ffee60;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
}

.project-card:hover {
  transform: rotateY(15deg) rotateX(10deg) scale(1.08);
  box-shadow: 0 0 30px #01ffee;
}

/* =============================
   BUTTONS
============================= */
.btn-chat {
  display: inline-block;
  margin: 10px;
  background: #01ffee;
  color: #000 !important;
  padding: 12px 30px;
  border-radius: 10px;
  font-size: 1.2rem;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-chat:hover {
  background: #cc0000;
}

/* =============================
   INPUT / FORM FIELDS
============================= */
.input-box {
  width: 90%;
  padding: 12px;
  margin: 10px;
  border-radius: 10px;
  border: none;
  outline: none;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 0 10px #01ffee60;
}

#statusMsg {
  margin-top: 10px;
  font-size: 1.2rem;
  text-shadow: 0 0 10px #01ffee;
}

/* =============================
   BADGES
============================= */
.badge-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 30px;
}

.badge-card {
  background: rgba(0,0,0,0.65);
  padding: 20px;
  width: 260px;
  border-radius: 15px;
  text-align: center;
  border: 1px solid rgba(255,59,59,0.3);
  box-shadow: 0 0 25px #01ffee40;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
}

.badge-card:hover {
  transform: rotateX(10deg) rotateY(-10deg) scale(1.08);
  box-shadow: 0 0 40px #01ffee;
}

.badge-photo {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 20px #01ffee;
  margin-bottom: 15px;
}

/* =============================
   TRYHACKME CERTIFICATE CARDS
============================= */
.thm-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 30px;
}

.thm-card {
  background: rgba(0,0,0,0.65);
  padding: 15px;
  width: 260px;
  text-align: center;
  border-radius: 12px;
  border: 1px solid rgba(255,59,59,0.3);
  box-shadow: 0 0 25px #01ffee40;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
}

.thm-card:hover {
  transform: rotateX(8deg) rotateY(-8deg) scale(1.06);
  box-shadow: 0 0 40px #01ffee;
}

.thm-img {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 15px #01ffee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thm-img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px #01ffee;
}

/* =============================
   TERMINAL
============================= */
.ctf-terminal {
  background: #000;
  padding: 20px;
  border-radius: 10px;
  font-family: monospace;
  height: 250px;
  overflow-y: auto;
  box-shadow: 0 0 20px #01ffee50;
}

/* =============================
   FOOTER
============================= */
footer {
  text-align: center;
  padding: 18px;
  color: #01ffee90 !important;
}

/* =============================
   ANIMATIONS
============================= */
@keyframes fadeIn {
  to { opacity: 1; }
}


/* CTF Challenge Card */
.ctf-invite-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  background: rgba(0,0,0,0.65);
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 0 25px #ff3b3b60;
  border: 1px solid rgba(255,59,59,0.3);
  animation: fadeIn 1.5s ease forwards;
}

.ctf-invite-card h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  text-shadow: 0 0 15px #ff3b3b;
}

.ctf-invite-card p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  line-height: 1.5;
}

/* Centered CTF Button */
.btn-ctf {
  display: inline-block;
  padding: 14px 32px;
  background: #ff3b3b;
  color: #000 !important;
  border-radius: 10px;
  font-size: 1.2rem;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 0 15px #ff3b3b80;
  transition: 0.3s;
}

.btn-ctf:hover {
  background: #cc0000;
  box-shadow: 0 0 25px #ff3b3b;
}

/* Cyber particle container */
#cyberTrail {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 99998;
}

/* Particles */
.cyber-bit {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #00aaff;
  border-radius: 50%;
  box-shadow: 0 0 10px #00aaff, 0 0 20px #00ddff;
  opacity: 1;
  transform: scale(1);
  pointer-events: none;
  animation: cyberFade 0.6s linear forwards;
}

@keyframes cyberFade {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.8) translateY(-6px);
  }
  100% {
    opacity: 0;
    transform: scale(0.3) translateY(-12px);
  }
}
