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

body {
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at 20% 30%, #0f172a, #020617);
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  min-width: 320px;
}

.container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  padding: 0 10px;
}

/* ================= GLOW BACKGROUND ================= */
body::before {
  content: "";
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgb(9, 154, 154), transparent);
  top: -200px;
  left: -200px;
  filter: blur(100px);
  animation: moveGlow 10s infinite alternate;
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 101, 161, 0.15), transparent);
  bottom: -200px;
  right: -200px;
  filter: blur(100px);
  animation: moveGlow 12s infinite alternate;
  z-index: -1;
}

@keyframes moveGlow {
  from { transform: translate(0, 0); }
  to { transform: translate(100px, 100px); }
}

.glow-text {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 4rem;
  color: #00ffff;
  text-shadow:
    0 0 5px #00ffff,
    0 0 10px #00ffff,
    0 0 20px #00ffff,
    0 0 40px #00ffff;
  position: relative;
  animation: moveGlow 3s linear infinite alternate;
}

/* ================= SECTION ================= */
.section {
  padding: 100px 20px;
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

/* ================= NAVBAR ================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  position: fixed;
  width: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.logo span {
  color: cyan;
}

nav {
  display: flex;
}

nav a {
  margin: 0 12px;
  color: #aaa;
  text-decoration: none;
  transition: 0.3s;
}

nav a:hover {
  color: cyan;
}

#themeToggle {
  background: none;
  border: 1px solid cyan;
  padding: 5px 10px;
  border-radius: 20px;
  color: cyan;
  cursor: pointer;
}

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

#particles {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.6;
}

.hero::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
  max-width: 100%;
  box-sizing: border-box;
}

.hero h1 span {
  color: cyan;
}

.typing {
  color: #9b5cff;
  margin: 10px 0;
}
.typing::after {
  content: '|';
  animation: blink 1.0s infinite;
  color: cyan;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

/* ================= BUTTONS ================= */
.btn {
  padding: 10px 20px;
  border-radius: 25px;
  background: linear-gradient(45deg, cyan, #9b5cff);
  border: none;
  cursor: pointer;
  color: white;
  margin: 5px;
  transition: 0.3s;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px cyan;
}

.btn.outline {
  background: transparent;
  border: 1px solid cyan;
}

.btn.small {
  padding: 6px 12px;
  font-size: 12px;
}

/* ================= CARDS ================= */
.card, .project-card {
  padding: 20px;
  margin: 10px;
  border-radius: 15px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  transition: 0.3s;
}

.card:hover, .project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 20px cyan;
}

/* ================= SKILLS ================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.skills-grid i {
  font-size: 32px;
  margin-bottom: 10px;
  color: cyan;
  transition: 0.3s;
}

.skills-grid .card:hover i {
  transform: scale(1.2);
  color: #9b5cff;
}

/* ================= PROJECTS ================= */
.projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.project-card {
  width: 260px;
  margin: 15px;
  padding: 20px;
  border-radius: 15px;
  background: rgba(255,255,255,0.05);
  transition: 0.3s;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 20px #9b5cff;
}

/* ================= TERMINAL ================= */
.terminal-box {
  background: #000;
  color: #00ff9f;
  padding: 20px;
  font-family: monospace;
  height: 220px;
  overflow-y: auto;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 0 15px #00ff9f;
}

/* ================= TIMELINE ================= */
.timeline-item {
  margin: 20px 0;
  padding: 15px;
  border-left: 3px solid cyan;
  text-align: left;
}

.timeline-item h3 {
  font-size: 1.2rem;
}

.timeline-item span {
  display: block;
  margin-bottom: 5px;
}

/* ================= PLAYWRIGHT ================= */
.test-box {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.step {
  padding: 10px 15px;
  border: 1px solid cyan;
  border-radius: 10px;
  opacity: 0.3;
  transition: 0.5s;
}

.step.active {
  opacity: 1;
  background: cyan;
  color: black;
  box-shadow: 0 0 10px cyan;
}

/* ================= MODAL ================= */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
}

.modal-content {
  background: #111;
  padding: 25px;
  margin: 8% auto;
  width: 60%;
  max-height: 80vh;
  border-radius: 10px;
  text-align: left;
  overflow-y: auto;
}

.close {
  float: right;
  cursor: pointer;
  font-size: 20px;
}

/* ================= FORM ================= */
.contact-form input,
.contact-form textarea,
.contact-form button {
  width: 100%;
  margin-bottom: 10px;
  padding: 12px;
  box-sizing: border-box;
  background: #111;
  border: none;
  color: white;
  border-radius: 5px;
}

/* ================= FOOTER ================= */
footer {
  text-align: center;
  padding: 20px;
  background: #000;
}

/* ================= LIGHT MODE ================= */
.light-mode {
  background: #f5f5f5;
  color: #000;
}

.light-mode .card,
.light-mode .project-card {
  background: #fff;
  color: #000;
}

/* ================= IMAGES ================= */
img {
  max-width: 100%;
  height: auto;
}

/* ================= RESPONSIVE MEDIA QUERIES ================= */
@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  /* Navbar */
  .navbar {
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
  }

  nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    margin-top: 10px;
  }

  nav a {
    margin: 5px 0;
    font-size: 1rem;
  }

  #themeToggle {
    margin-top: 10px;
    align-self: center;
  }

  /* Hero */
  .hero-content {
    padding: 20px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero h1 {
    font-size: 1.8rem;
    word-wrap: break-word;
  }

  .typing {
    font-size: 1rem;
  }

  .cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
    align-items: center;
  }

  .cta a.btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .project-card {
    width: 100%;
    margin: 10px 0;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-item h3 {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .glow-text {
    font-size: 2.5rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .typing {
    font-size: 0.9rem;
  }

  .cta {
    gap: 8px;
  }

  .cta a.btn {
    font-size: 0.9rem;
    padding: 10px;
  }
}
/* ================= PRO NAVBAR ================= */

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: cyan;
  display: block;
  transition: 0.3s;
}

/* Mobile Styles */
@media (max-width: 768px) {

  .menu-toggle {
    display: flex;
  }

  nav {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.95);
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease;
  }

  nav a {
    padding: 12px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  nav.active {
    max-height: 400px;
  }

  .navbar {
    padding: 10px 20px;
  }

  /* Hide normal nav by default */
  nav {
    display: flex;
  }

  /* Fix hero spacing */
  .hero {
    padding-top: 80px;
  }
}
/* ================= CONTACT INFO ================= */
.contact-info {
  margin-bottom: 30px;
  text-align: center;
}

.contact-info p {
  margin: 8px 0;
  font-size: 1rem;
  color: #ccc;
}

.contact-info i {
  margin-right: 8px;
  color: cyan;
}

.contact-info a {
  color: cyan;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}
/* ===== PLAYWRIGHT REAL SIMULATION ===== */

.test-container {
  margin-top: 20px;
}

.test-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.step {
  padding: 10px 15px;
  border: 1px solid cyan;
  border-radius: 10px;
  opacity: 0.3;
  transition: 0.4s;
}

.step.active {
  opacity: 1;
  background: cyan;
  color: black;
  box-shadow: 0 0 15px cyan;
}

.step.done {
  opacity: 1;
  background: #9b5cff;
  color: white;
}

.progress-bar {
  width: 80%;
  height: 8px;
  background: rgba(255,255,255,0.1);
  margin: 20px auto;
  border-radius: 10px;
  overflow: hidden;
}

.progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, cyan, #9b5cff);
  transition: width 0.4s;
}

.test-status {
  margin-top: 10px;
  color: cyan;
  font-family: monospace;
}