/* === CIRCUIT BOARD THEME CSS === */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Courier New', monospace;
  scroll-behavior: smooth;
}

body {
  background-color: #02070a;
  color: #00e6b8;
  overflow-x: hidden;
}

header {
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(2, 10, 15, 0.9);
  border-bottom: 1px solid #00e6b8;
  padding: 10px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.nav-left a {
  color: #00e6b8;
  text-decoration: none;
  margin-right: 20px;
  transition: color 0.3s ease;
}

.nav-left a:hover {
  color: #66fff5;
}

.nav-right h1 {
  color: #00e6b8;
  font-size: 20px;
  text-shadow: 0 0 8px #00e6b8;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* === TERMINAL TYPING SECTION === */
#terminal {
  padding-top: 100px;
  text-align: left;
  width: 80%;
  margin: 0 auto;
}

#console {
  background: rgba(0, 20, 20, 0.85);
  border: 1px solid #00e6b8;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 0 20px #00e6b8;
  font-size: 16px;
  min-height: 150px;
  color: #00e6b8;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 18px;
  background: #00e6b8;
  margin-left: 5px;
  animation: blink 1s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* === CONTENT SECTIONS === */
.section {
  text-align: center;
  min-height: 100vh;
  padding-top: 60px;
  color: #00e6b8;
  background: rgba(0, 0, 0, 0.3);
}

h2 {
  font-size: 28px;
  margin-bottom: 20px;
  text-shadow: 0 0 10px #00e6b8;
}

footer {
  text-align: center;
  padding: 20px;
  background: rgba(2, 10, 15, 0.9);
  border-top: 1px solid #00e6b8;
  color: #00e6b8;
}

/* === ABOUT SECTION === */
#about {
  color: #aef5e8;
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

#about h2 {
  text-align: center;
  color: #00e6b8;
  font-size: 2.4rem;
  margin-bottom: 2.5rem;
  text-shadow: 0 0 8px rgba(0, 230, 184, 0.7);
}

#about .intro-text {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #c3fff5;
}

/* --- Section Headings (Experience, Education, Skills) --- */
.about-section h3 {
  color: #00e6b8;
  border-bottom: 1px solid #00e6b8;
  padding-bottom: 0.6rem;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  text-shadow: 0 0 6px rgba(0, 230, 184, 0.5);
}

.about-section {
  margin-bottom: 3rem;
}

/* --- Cards (Experience, Education, Skills) --- */
.card {
  background: rgba(0, 25, 25, 0.7);
  border: 1px solid #00e6b8;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 0 10px rgba(0, 230, 184, 0.25);
  transition: transform 0.2s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(0, 230, 184, 0.5);
}

.card h4 {
  color: #66fff5;
  margin-bottom: 0.5rem;
}

.card em {
  color: #00c2a8;
}

/* === SKILLS & TECHNOLOGIES SECTION === */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* --- Sub-skill Categories (Programming, DevOps, etc.) --- */
.skill-card {
  background: rgba(0, 20, 20, 0.85);
  border: 1px solid #00e6b8;
  border-radius: 12px;
  padding: 1.3rem;
  position: relative;
  box-shadow: 0 0 15px rgba(0, 230, 184, 0.15);
  transition: all 0.3s ease;
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  background: linear-gradient(120deg, #00ff88, transparent, #00c6ff, transparent);
  z-index: -1;
  border-radius: 12px;
  animation: skillGlow 6s linear infinite;
  opacity: 0.4;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

/* --- Sub-Skill Category Titles --- */
.skill-card h4 {
  color: #00e6b8;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 8px rgba(0, 230, 184, 0.6);
  text-align: center;
  letter-spacing: 0.5px;
}

/* --- Individual Skills --- */
.skill-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-card li {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: #bfffd0;
  text-align: center;
  transition: color 0.3s ease;
}

.skill-card li:hover {
  color: #00ff88;
}

/* --- Glow Animation --- */
@keyframes skillGlow {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 400% 0;
  }
}


/* === PROJECTS GRID (Cyber Card Theme) === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 90%;
  max-width: 1100px;
  margin: 2rem auto;
}

.project-card {
  background: rgba(0, 30, 30, 0.8);
  border: 1px solid #00e6b8;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 0 20px rgba(0, 230, 184, 0.3);
  transition: transform 0.2s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(0, 230, 184, 0.6);
}

.project-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  color: #00e6b8;
}

.project-card h3 a {
  color: #00e6b8;
  text-decoration: none;
}

.project-card h3 a:hover {
  text-decoration: underline;
  color: #66fff5;
}

.project-card p {
  color: #aef5e8;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* === CERTIFICATIONS SECTION (PULSING CYBER GLOW THEME) === */
#certifications {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  color: #aef5e8;
  position: relative;
  overflow: hidden;
}

#certifications h2 {
  text-align: center;
  font-size: 2rem;
  color: #00e6b8;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 8px rgba(0, 230, 184, 0.6);
}

#certifications .intro-text {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  color: #c3fff5;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  justify-items: center;
}

/* === Animated Circuit Glow Keyframes === */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 10px rgba(0, 230, 184, 0.4), 0 0 20px rgba(0, 230, 184, 0.2);
    border-color: rgba(0, 230, 184, 0.5);
  }
  50% {
    box-shadow: 0 0 25px rgba(0, 255, 195, 0.8), 0 0 40px rgba(0, 230, 255, 0.5);
    border-color: rgba(0, 255, 195, 0.9);
  }
  100% {
    box-shadow: 0 0 10px rgba(0, 230, 184, 0.4), 0 0 20px rgba(0, 230, 184, 0.2);
    border-color: rgba(0, 230, 184, 0.5);
  }
}

.cert-card {
  background: radial-gradient(circle at top left, rgba(0, 40, 40, 0.9), rgba(0, 10, 10, 0.9));
  border: 1px solid rgba(0, 230, 184, 0.6);
  border-radius: 14px;
  padding: 1.5rem;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 0 15px rgba(0, 230, 184, 0.25);
  backdrop-filter: blur(6px);
  animation: pulseGlow 3s infinite ease-in-out;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(0, 255, 195, 0.6);
}

/* Optional inner glow overlay to simulate circuitry */
.cert-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  background: linear-gradient(
    130deg,
    rgba(0, 255, 195, 0.2),
    rgba(0, 230, 255, 0.05),
    rgba(0, 255, 195, 0.2)
  );
  opacity: 0.4;
  mix-blend-mode: screen;
  animation: shimmerFlow 8s infinite linear;
}

@keyframes shimmerFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.cert-card h3 {
  color: #66fff5;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.cert-card p {
  color: #b3fff0;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.cert-card a {
  display: inline-block;
  background: linear-gradient(135deg, #00e6b8, #0072ff);
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: background 0.3s, transform 0.2s;
  text-align: center;
}

.cert-card a:hover {
  background: linear-gradient(135deg, #00ffc3, #00a7e0);
  transform: scale(1.05);
}

@media (max-width: 700px) {
  #certifications {
    padding: 3rem 1.2rem;
  }
  .cert-card {
    max-width: 100%;
  }
}

/* === CYBER GLOW CIRCUIT LINES (FIXED VERSION) === */
#certifications {
  position: relative; /* ensures circuit traces position relative to this section */
  overflow: hidden;
}

.circuit-traces {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* above background, below cards */
  pointer-events: none;
}

.circuit-traces svg {
  width: 100%;
  height: 100%;
  position: absolute;
}

.trace {
  stroke: rgba(0, 255, 195, 0.12);
  stroke-width: 1.4;
  filter: drop-shadow(0 0 5px rgba(0, 255, 195, 0.3));
  stroke-dasharray: 6 14;
  stroke-dashoffset: 0;
  animation: traceFlow 8s linear infinite;
  opacity: 0;
  transition: opacity 1s ease;
}

#certifications:hover .trace {
  opacity: 1;
  animation: traceFlow 4s linear infinite, tracePulse 3s ease-in-out infinite;
}

/* flowing dash movement */
@keyframes traceFlow {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -300;
  }
}

/* glowing pulse */
@keyframes tracePulse {
  0%, 100% {
    stroke: rgba(0, 255, 195, 0.12);
  }
  50% {
    stroke: rgba(0, 255, 195, 0.45);
  }
}

.cert-card {
  position: relative;
  z-index: 2; /* ensures cards appear above glowing traces */
}


/* === CONTACT SECTION === */
.contact-section {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  color: #aef5e8;
  position: relative;
}

.contact-section h2 {
  text-align: center;
  font-size: 2rem;
  color: #00e6b8;
  margin-bottom: 1rem;
  text-shadow: 0 0 8px rgba(0, 230, 184, 0.6);
}

.contact-section .intro-text {
  text-align: center;
  margin-bottom: 3rem;
  color: #b3fff0;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  align-items: flex-start;
}

/* === LEFT SIDE CONTACT INFO === */
.contact-info {
  flex: 1;
  min-width: 260px;
  background: rgba(0, 20, 20, 0.85);
  border: 1px solid #00e6b8;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 0 15px rgba(0, 230, 184, 0.25);
  animation: pulseGlow 3s infinite ease-in-out;
}

.contact-info h3 {
  color: #66fff5;
  margin-bottom: 1rem;
}

.contact-info p {
  margin: 0.6rem 0;
  font-size: 0.95rem;
}

.contact-info a {
  color: #00e6b8;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-info a:hover {
  color: #66fff5;
  text-shadow: 0 0 8px #00e6b8;
}

/* === RIGHT SIDE FORM === */
.contact-form {
  flex: 1.3;
  min-width: 300px;
  background: rgba(0, 25, 25, 0.85);
  border: 1px solid #00e6b8;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  box-shadow: 0 0 20px rgba(0, 230, 184, 0.25);
  animation: pulseGlow 3s infinite ease-in-out;
}

.form-group {
  margin-bottom: 1.2rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: #66fff5;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #00e6b8;
  border-radius: 6px;
  background: rgba(0, 15, 15, 0.8);
  color: #aef5e8;
  font-size: 0.95rem;
  outline: none;
  transition: border 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: #00ffae;
  box-shadow: 0 0 10px rgba(0, 255, 195, 0.4);
}

/* === SUBJECT DROPDOWN === */
.contact-form select {
  appearance: none;
  background: rgba(0, 15, 15, 0.8) url('data:image/svg+xml;utf8,<svg fill="%2300e6b8" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center;
  background-size: 14px;
  cursor: pointer;
}

/* === SUBMIT BUTTON === */
.send-btn {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #00e6b8, #0072ff);
  border: none;
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease-in-out;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.send-btn:hover {
  background: linear-gradient(135deg, #00ffc3, #00a7e0);
  box-shadow: 0 0 15px rgba(0, 255, 195, 0.6);
  transform: scale(1.02);
}

/* === STATUS MESSAGE === */
.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #b7fff0;
  text-align: center;
  font-family: monospace;
}

/* === RESPONSIVE === */
@media (max-width: 800px) {
  .contact-container {
    flex-direction: column;
    align-items: stretch;
  }
  .contact-info, .contact-form {
    width: 100%;
  }
}

/* === FOOTER BASE SECTION === */
.footer-section {
  background: rgba(0, 10, 15, 0.95);
  border-top: 2px solid #00ffc8;
  padding: 3rem 2rem 1rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.15);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 2rem auto;
  color: #ffffff;
}

/* === GREEN TITLE CLASS === */
.footer-green {
  color: #00ff88;
  text-shadow: 0 0 10px #00ff88, 0 0 20px rgba(0, 255, 136, 0.5);
}

/* === ABOUT === */
.footer-about {
  flex: 1.2;
  min-width: 250px;
  text-align: left;
}

.footer-about h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.footer-about p {
  color: #e0e0e0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === LINKS & CONTACT === */
.footer-links,
.footer-contact {
  flex: 1;
  min-width: 220px;
  text-align: left;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* === VERTICAL BUTTONS (WHITE, LEFT-ALIGNED, NO UNDERLINES) === */
.footer-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}

.footer-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-link:hover {
  color: #00ffc8;
  text-shadow: 0 0 10px #00ffc8;
}

/* === COPYRIGHT === */
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  color: #d8d8d8;
  font-size: 0.9rem;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

/* === SUBTLE PULSE BORDER EFFECT === */
.footer-section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 2px solid rgba(255, 255, 255, 0.15);
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
  animation: footerPulse 6s ease-in-out infinite;
}

@keyframes footerPulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
  }
  50% {
    box-shadow: 0 0 18px rgba(0, 255, 136, 0.6);
  }
}

/* === RESPONSIVE FOOTER === */
@media (max-width: 850px) {
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-about, .footer-links, .footer-contact {
    width: 100%;
  }
}

/* === ADJUST SPACING BETWEEN HERO AND ABOUT === */
#home {
  min-height: 80vh; /* was 100vh, this brings next section closer */
  padding-top: 120px; /* keeps it centered while header overlaps slightly */
  padding-bottom: 2rem; /* tighten spacing */
}

#about {
  margin-top: -40px; /* overlap slightly to remove big gap */
}


/* === FLICKER EFFECT FOR NAME === */
#home h2 {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(0, 255, 180, 0.6);
  animation: nameFlicker 20s infinite;
  font-size: 2.0rem;
  font-weight: 550;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

/* Subtle terminal-like flicker effect */
@keyframes nameFlicker {
  0%, 18%, 20%, 22%, 25%, 53%, 55%, 100% {
    opacity: 1;
    text-shadow: 0 0 8px rgba(0, 255, 180, 0.6),
                 0 0 15px rgba(0, 255, 180, 0.4),
                 0 0 25px rgba(0, 255, 180, 0.2);
  }

  19%, 21%, 54% {
    opacity: 0.4;
    text-shadow: none;
  }

  23% {
    opacity: 0.7;
    text-shadow: 0 0 4px rgba(0, 255, 180, 0.3);
  }
}


