/* ==========================================
   Malay Joshi - Cybersecurity Developer CSS
   ========================================== */

:root {
  --bg: #030712;
  --bg-card: rgba(8, 12, 24, 0.75);
  --bg-card-hover: rgba(12, 20, 38, 0.85);
  --text: #f3f4f6;
  --muted: #9ca3af;
  --line: rgba(255, 255, 255, 0.08);
  --primary: #00f0ff;      /* Cyber Neon Cyan */
  --secondary: #00ff66;    /* Radioactive Green */
  --accent: #bd00ff;       /* Digital Purple */
  --warn: #ff9e00;         /* Alert Amber */
  --critical: #ff3b30;     /* Danger Red */
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary) 60%, var(--accent));
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  --font-sans: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Base resets & styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-sans);
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg);
}

body {
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

/* Background Cyber Grid & Scanline Effects */
.cyber-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.15) 50%
  );
  background-size: 100% 4px;
  pointer-events: none;
}

/* Ambient glow accents */
.page-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
  pointer-events: none;
  z-index: -1;
}
.glow-one {
  width: 450px;
  height: 450px;
  background: var(--primary);
  top: -150px;
  left: -100px;
}
.glow-two {
  width: 500px;
  height: 500px;
  background: var(--accent);
  bottom: 15%;
  right: -150px;
}
.glow-three {
  width: 400px;
  height: 400px;
  background: var(--secondary);
  top: 45%;
  left: 30%;
}

/* Typography & Links */
a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-muted {
  color: var(--muted);
}

/* Section Standard Layouts */
.section {
  padding: 120px 8% 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 50px;
  position: relative;
}
.section-heading.centered {
  text-align: center;
}
.section-heading span {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--primary);
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
}
.section-heading h2 {
  font-size: clamp(34px, 5.5vw, 56px);
  margin-top: 10px;
  color: #fff;
  line-height: 1.1;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 14px;
  font-weight: 700;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.primary-btn {
  background: var(--gradient);
  color: #030712;
  box-shadow: 0 10px 25px rgba(0, 240, 255, 0.25);
  font-weight: 700;
}
.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 240, 255, 0.45);
}
.ghost-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: #fff;
}
.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* Header & Navbar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.navbar {
  height: 80px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}
.logo span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-top: -2px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
}
.nav-cta {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  color: var(--primary);
  background: rgba(0, 240, 255, 0.05);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-cta:hover {
  background: var(--primary);
  color: #030712;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}
.menu-btn {
  display: none;
  font-size: 28px;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
  padding-top: 120px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  color: var(--primary);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 8px 16px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
}
.hero-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 35px;
  max-width: 600px;
}
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 40px;
}
.metric-box {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
}
.metric-box strong {
  display: block;
  font-size: 28px;
  color: #fff;
  font-family: var(--font-sans);
}
.metric-box span {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

/* INTERACTIVE CYBER TERMINAL WIDGET */
.hero-panel {
  display: flex;
  justify-content: center;
  align-items: center;
}
.terminal-card {
  width: 100%;
  max-width: 520px;
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 16px;
  overflow: hidden;
}
.terminal-card:hover {
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}
.terminal-header {
  height: 40px;
  background: rgba(4, 7, 18, 0.95);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}
.terminal-dots {
  display: flex;
  gap: 6px;
}
.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.close-dot { background: var(--critical); }
.minimize-dot { background: var(--warn); }
.expand-dot { background: var(--secondary); }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.system-status {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--secondary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}
.status-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.status-indicator-dot.online {
  background: var(--secondary);
  box-shadow: 0 0 8px var(--secondary);
  animation: pulse-glow 1.8s infinite;
}
.terminal-body {
  height: 300px;
  background: #020612;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  overflow-y: auto;
  color: #fff;
}
.terminal-line {
  margin-bottom: 4px;
}
.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.terminal-prompt {
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
}
.terminal-input-field {
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--secondary);
  width: 100%;
  font-family: var(--font-mono);
  font-size: 13px;
}
.terminal-quick-btns {
  padding: 12px 16px;
  background: rgba(4, 7, 18, 0.85);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.quick-label {
  font-size: 11px;
  color: var(--muted);
  margin-right: 4px;
  font-family: var(--font-mono);
}
.cmd-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--primary);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cmd-btn:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--primary);
}

/* ABOUT SECTION */
.about-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  align-items: stretch;
}
.about-card, .timeline-cyber {
  padding: 40px;
}
.about-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #fff;
}
.about-card p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 16px;
}
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}
.about-tags span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--primary);
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.15);
  padding: 6px 12px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.timeline-cyber {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 25px;
}
.timeline-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step-num {
  font-family: var(--font-mono);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid var(--primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.step-content h4 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 6px;
}
.step-content p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* SKILLS SECTION */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.skill-card-cyber {
  padding: 30px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.skill-card-cyber:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 255, 102, 0.35);
  box-shadow: 0 10px 30px rgba(0, 255, 102, 0.08);
}
.skill-card-cyber i {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 20px;
}
.skill-card-cyber:hover i {
  color: var(--secondary);
}
.skill-card-cyber h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 12px;
}
.skill-card-cyber p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}
.skill-meter {
  height: 4px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 99px;
  overflow: hidden;
}
/* VIEW MORE CONTAINER */
.view-more-container {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

/* OTHER FEATURED PROJECTS */
.featured-projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.project-feature {
  padding: 30px;
}
.project-feature:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 240, 255, 0.35);
}
.project-icon i {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 20px;
}
.project-feature h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 12px;
}
.project-feature p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.tech-stack span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 4px;
}
.project-feature a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  transition: transform 0.2s ease;
}
.project-feature a:hover {
  text-decoration: underline;
}
.highlight-card {
  border-color: rgba(189, 0, 255, 0.15);
}
.highlight-card:hover {
  border-color: rgba(189, 0, 255, 0.4);
  box-shadow: 0 10px 30px rgba(189, 0, 255, 0.08);
}
.highlight-card .project-icon i {
  color: var(--accent);
}

/* CERTIFICATIONS SECTION */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cert-card-cyber {
  padding: 30px;
}
.cert-card-cyber:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 240, 255, 0.3);
}
.cert-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.cert-top i {
  font-size: 36px;
  color: var(--primary);
}
.cert-status {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
}
.cert-status.progress {
  color: var(--warn);
  background: rgba(255, 158, 0, 0.08);
  border: 1px solid rgba(255, 158, 0, 0.25);
}
.cert-status.complete {
  color: var(--secondary);
  background: rgba(0, 255, 102, 0.08);
  border: 1px solid rgba(0, 255, 102, 0.25);
}
.cert-card-cyber h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 12px;
}
.cert-card-cyber p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* CONTACT SECTION */
.contact-shell {
  padding: 50px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.contact-text h2 {
  font-size: clamp(28px, 4vw, 42px);
  color: #fff;
  margin-bottom: 12px;
}
.contact-text p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

/* FOOTER */
.footer {
  padding: 40px 8%;
  border-top: 1px solid var(--line);
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}
.footer-socials {
  display: flex;
  gap: 12px;
}
.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.25s ease;
}
.footer-socials a:hover {
  background: var(--primary);
  color: #030712;
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* KEYFRAMES & ANIMATIONS */
@keyframes pulse-glow {
  0% { opacity: 0.6; box-shadow: 0 0 5px var(--secondary); }
  50% { opacity: 1; box-shadow: 0 0 15px var(--secondary); }
  100% { opacity: 0.6; box-shadow: 0 0 5px var(--secondary); }
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 100px;
    gap: 40px;
  }
  .hero-copy p, .hero-metrics {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-panel {
    width: 100%;
  }
  .about-layout {
    grid-template-columns: 1fr;
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-projects, .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-shell {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 35px;
  }
  .contact-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 6% 60px;
  }
  .navbar {
    padding: 0 6%;
  }
  .menu-btn {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(3, 7, 18, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transition: left 0.3s ease;
  }
  .nav-menu.show {
    left: 0;
  }
  .nav-cta {
    display: none;
  }
  .skills-grid, .featured-projects, .cert-grid {
    grid-template-columns: 1fr;
  }
  .footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}
