/* === Base Reset & Background === */
body {
  margin: 0;
  font-family: 'Courier New', monospace;
  background: #0f1115 url('../images/circuit-bg.png') fixed center/cover;
  color: #e0e0e0;
  overflow-x: hidden;
}
/* === Welcome Frame === */
/* === Welcome Frame === */
.welcome {
  text-align: center;
  padding: 2rem;
  color: #00ffcc;
  font-size: 1.2rem;
  font-weight: 600;
  text-shadow: 0 0 5px #00ffcc55;
}

/* === Profile Image Centering === */
.welcome img {
  display: block;
  margin: 1rem auto;
  max-width: 150px;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ffcc55;
}

/* === Loader === */
.loader {
  position: fixed;
  inset: 0;
  background: #0f1115;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease;
}
.loader.fade-out {
  opacity: 0;
  pointer-events: none;
}
.typed-text {
  color: #00ffcc;
  font-size: 1.5rem;
  border-right: 2px solid #00ffcc;
  white-space: nowrap;
  overflow: hidden;
  animation: blink 0.8s infinite;
}
@keyframes blink {
  0%, 100% { border-color: transparent; }
  50% { border-color: #00ffcc; }
}

/* === Navbar === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #0a0a0a;
  border-bottom: 2px solid #00ffcc;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.logo {
  color: #00ffcc;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 2px;
}
.blink {
  animation: blink 1s steps(2, start) infinite;
}

/* Glowy hamburger/menu button (base styling) */
.menu-toggle {
  font-size: 1.5rem;
  color: #00ffcc;
  cursor: pointer;

  /* Glow box styling */
  border: 2px solid rgba(0,255,204,0.95); /* #00ffcc */
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  background: transparent;
  box-shadow: 0 0 12px rgba(0,255,204,0.28), 0 0 26px rgba(0,255,204,0.12) inset;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.18s ease, color 0.18s ease;
  display: none; /* keep hidden on wide screens; media query will show it */
  -webkit-font-smoothing: antialiased;
}
.menu-toggle:hover,
.menu-toggle:focus {
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(0,255,204,0.6), 0 0 30px rgba(0,255,204,0.18) inset;
  background: rgba(0,255,204,0.95);
  color: #0a0a0a;
}

/* === Nav Links === */
.nav-links {
  list-style: none;
  gap: 2rem;
}
.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  position: relative;
  transition: color 0.3s ease;
}
.nav-links li a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #00ffcc;
  transition: width 0.3s ease;
}
.nav-links li a:hover {
  color: #00ffcc;
}
.nav-links li a:hover::after {
  width: 100%;
}
#darkToggle {
  background: none;
  border: 1px solid #00ffcc;
  color: #00ffcc;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}
#darkToggle:hover {
  background: #00ffcc;
  color: #0a0a0a;
}

/* === Responsive Navbar === */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background: #0a0a0a;
    width: 200px;
    padding: 1rem;
    box-shadow: 0 0 10px #00ffcc55;
    border-left: 2px solid #00ffcc;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin-bottom: 1rem;
  }

  #darkToggle {
    margin-top: 1rem;
  }
}

@media (min-width: 769px) {
  .nav-links {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }
}


/* === Dark Mode === */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}
body.dark-mode .navbar {
  background-color: #1a1a1a;
}
body.dark-mode .nav-links {
  background-color: #1a1a1a;
}

/* === Hero Section === */
.hero {
  text-align: center;
  padding: 2rem;
}
.hero h1 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 2rem;
  color: #00ffcc;
  margin: 0;
}
.robot-icon {
  width: 30px;
  height: 30px;
  fill: #00ffcc;
  animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}
.hero p {
  margin: 5px 0;
  font-style: italic;
  color: #aaa;
}

/* === Main Content === */
main {
  padding: 30px;
  animation: fadeIn 1s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
section {
  margin-bottom: 40px;
  padding: 20px;
  border: 1px solid #00ffcc55;
  border-radius: 10px;
  background: #121417;
  box-shadow: 0 0 20px #00ffcc22;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
section:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px #00ffccaa, 0 0 10px #00ffcc55 inset;
}

/* === About Section === */
.about-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}
.about-text {
  flex: 1 1 300px;
}
.about-image {
  flex: 1 1 100%;
  display: flex;
  justify-content: center;  /* center horizontally */
}

.about-image img {
  width: clamp(150px, 40vw, 400px); 
  /* min 150px on tiny phones,
     ~40% of viewport width normally,
     max 400px on large monitors */
  height: auto; /* keep aspect ratio */
  border-radius: 10px;
  box-shadow: 0 0 10px #09ffd255;
  display: block;
}


/* === Fixed Width Container for Main Sections === */
.content-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}


/* === Skills Section === */
.skill {
  margin-bottom: 1.5rem;
}
.skill label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #00ffcc;
}
.bar {
  background: #222;
  border-radius: 5px;
  overflow: hidden;
  height: 20px;
  box-shadow: inset 0 0 5px #000;
  max-width: 400px;
}
.fill {
  height: 100%;
  background: linear-gradient(to right, #00ffcc, #0077ff);
  width: 0;
  transition: width 1.5s ease-in-out;
}


/* === Contact Section === */
.terminal-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.terminal-form label {
  color: #00ffcc;
  margin-bottom: 5px;
  font-weight: bold;
}
.terminal-form input,
.terminal-form textarea {
  width: 100%;
  background: #1a1a1a;
  color: #00ffcc;
  border: 1px solid #00ffcc;
  padding: 0.75rem;
  font-family: 'Courier New', monospace;
  margin-bottom: 1rem;
  resize: vertical;
}
.terminal-form button {
  background: #00ffcc;
  color: #0f1115;
  border: none;
  padding: 0.5rem 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}
.terminal-form button:hover {
  background: #0077ff;
  color: #fff;
}
.download-btn {
  display: inline-block;
  background: #00ffcc;
  color: #0f1115;
  padding: 0.6rem 1rem;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 0 10px #00ffcc55;
}
.download-btn:hover {
  background: #0077ff;
  color: #fff;
  transform: scale(1.05);
}
/* keep the glowy container (menu-toggle) — make sure this is the one providing the box */
.menu-toggle {
  font-size: 1.5rem;
  color: #00ffcc;
  cursor: pointer;

  border: 2px solid rgba(0,255,204,0.95); /* outer glowy box */
  padding: 0.35rem;                       /* small padding so anchor fits inside */
  border-radius: 8px;
  background: transparent;
  box-shadow: 0 0 12px rgba(0,255,204,0.28), 0 0 26px rgba(0,255,204,0.12) inset;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.18s ease, color 0.18s ease;
  display: none; /* controlled by your media queries below */
  position: relative;
  z-index: 1200; /* make sure it sits above the dropdown */
}

/* remove inner border/padding and let the anchor simply be the icon inside */
.menu-toggle > .back-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  border: none;             /* <- important: remove the duplicate border */
  background: transparent;
  color: inherit;
  text-decoration: none;
  border-radius: 6px;
  line-height: 1;
}

/* container hover (subtle) */
.menu-toggle:hover,
.menu-toggle:focus {
  transform: scale(1.06);
  box-shadow: 0 0 18px rgba(0,255,204,0.6), 0 0 30px rgba(0,255,204,0.18) inset;
  /* keep background subtle so inner anchor hover remains the "fill" effect */
  background: rgba(0,255,204,0.04);
}

/* inner anchor hover still gives the fill-in effect */
.menu-toggle > .back-arrow:hover {
  background: rgba(0,255,204,0.95);
  color: #0a0a0a;
  box-shadow: 0 0 14px rgba(0,255,204,0.35), inset 0 0 6px rgba(0,255,204,0.08);
}

/* mobile visibility + spacing tweaks (replace your existing .menu-toggle inside media query) */
@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;   /* show the back button/hamburger on small screens */
    align-items: center;
    justify-content: center;
    margin-right: 8px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 8px;            /* nudge dropdown slightly left so it doesn't butt up exactly at edge */
    width: 200px;
    padding: 1rem;
    box-shadow: 0 0 10px #00ffcc55;
    border-left: 2px solid #00ffcc;
    z-index: 1100;         /* below the menu-toggle so button stays tappable */
  }

  .nav-links.active { display: flex; }
}

.about-text p {
  font-size: clamp(1rem, 2vw + 0.5rem, 1.8rem);
  line-height: 1.6;
  color: #ccc;
}
#welcome h2 {
  font-size: clamp(1.5rem, 3vw + 0.5rem, 3rem);
  color: #00ffcc;
  margin-bottom: 1rem;
}
/* === Demo Video Section === */
.demo-video {
  text-align: center;
  margin-bottom: 3rem;
}
.video-wrapper {
  position: relative;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 20px #00ffcc55;
  margin-bottom: 1rem;
}
.video-wrapper video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.caption {
  font-size: 0.95rem;
  color: #aaa;
  font-style: italic;
  max-width: 700px;
  margin: 0 auto;
}

/* === Gallery Section === */
.gallery {
  margin-bottom: 3rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 15px #00ffcc33;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px #00ffccaa;
}
.image-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border: 2px solid #00ffcc;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
}
.image-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 0;
  text-align: center;
}


/* === Footer === */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #666;
  border-top: 1px solid #333;
  margin-top: 4rem;
}
/* === Resume Section === */
.resume-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px; /* keeps it neat on large monitors */
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 20px #00ffcc55;
}

.resume-wrapper iframe {
  width: 100%;
  height: 80vh; /* take up 80% of viewport height */
  border: none;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .resume-wrapper iframe {
    height: 70vh; /* slightly shorter on tablets/phones */
  }
}

@media (max-width: 480px) {
  .resume-wrapper iframe {
    height: 60vh; /* extra compact on very small screens */
  }
}
.resume-wrapper object {
  width: 100%;
  height: 100%;
}
.resume-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 20px #00ffcc55;
}



