/* ==========================================================================
   SAMRAT BABU JOSHI - PORTFOLIO STYLESHEET
   A modern, responsive, cybersecurity-themed pure CSS stylesheet.
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  --bg-dark: #070a12;
  --bg-card: #0e1526;
  --bg-card-alt: #131c31;
  --bg-terminal: #090e1a;
  
  --accent-cyan: #00f5d4;
  --accent-blue: #38bdf8;
  --accent-emerald: #10b981;
  --accent-purple: #a855f7;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  --border-subtle: rgba(56, 189, 248, 0.15);
  --border-highlight: rgba(0, 245, 212, 0.45);
  --glow-cyan: 0 0 25px rgba(0, 245, 212, 0.2);
  --glow-blue: 0 0 25px rgba(56, 189, 248, 0.2);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Code', 'Consolas', 'Courier New', monospace;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  /* Cyber subtle grid pattern */
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(0, 245, 212, 0.04) 0%, transparent 45%),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

/* --- Container & Layout --- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section.alt-bg {
  background: linear-gradient(180deg, rgba(14, 21, 38, 0.4) 0%, rgba(7, 10, 18, 0.6) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: 3.5rem;
  text-align: left;
}

.section-tag {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-size: 0.88rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.section-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), transparent);
  margin-top: 0.8rem;
  border-radius: var(--radius-full);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #00b4d8 100%);
  color: #070a12;
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 4px 18px rgba(0, 245, 212, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 245, 212, 0.4);
}

.btn-secondary {
  background: rgba(19, 28, 49, 0.7);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--accent-blue);
  color: var(--accent-cyan);
  background: rgba(30, 41, 68, 0.9);
  transform: translateY(-2px);
}

.btn-large {
  padding: 0.95rem 2.2rem;
  font-size: 1.05rem;
}

/* --- Navigation --- */
.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 18, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
}

.logo-bracket {
  color: var(--accent-blue);
}

.logo-accent {
  color: var(--accent-cyan);
}

.logo-tag {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 245, 212, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 245, 212, 0.3);
  margin-left: 0.3rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-links a {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
}

.nav-links a:hover {
  color: var(--accent-cyan);
}

.nav-cta {
  padding: 0.45rem 1.1rem !important;
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  color: var(--accent-cyan) !important;
  background: rgba(0, 245, 212, 0.05);
}

.nav-cta:hover {
  background: rgba(0, 245, 212, 0.18) !important;
  box-shadow: 0 0 12px rgba(0, 245, 212, 0.3);
}

/* --- Hero Section --- */
.hero-section {
  padding: 5rem 0 4rem;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-emerald);
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse-glow 1.8s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.95); opacity: 0.6; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); opacity: 0.6; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 10%, var(--accent-cyan) 60%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.22rem;
  font-weight: 500;
  color: var(--accent-blue);
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}

.quick-meta {
  display: flex;
  gap: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.meta-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* --- Terminal HUD --- */
.hero-terminal {
  background: var(--bg-terminal);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), var(--glow-cyan);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.hero-terminal:hover {
  border-color: var(--border-highlight);
}

.terminal-header {
  background: #0f172a;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-buttons {
  display: flex;
  gap: 6px;
  margin-right: 1rem;
}

.terminal-btn {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-btn.close { background-color: #ef4444; }
.terminal-btn.minimize { background-color: #f59e0b; }
.terminal-btn.maximize { background-color: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 1.25rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
}

.term-line {
  margin-bottom: 0.45rem;
}

.term-prompt {
  color: var(--accent-cyan);
  font-weight: 600;
}

.term-cmd {
  color: #ffffff;
}

.term-output {
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
  padding-left: 0.5rem;
}

.term-code-block {
  background: rgba(0, 0, 0, 0.35);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  margin: 0.3rem 0 0.85rem 0.5rem;
  border-left: 2px solid var(--accent-blue);
  font-size: 0.8rem;
}

.json-key { color: var(--accent-blue); }
.json-val { color: #fef08a; }
.json-number { color: #f472b6; }
.text-cyan { color: var(--accent-cyan) !important; }
.text-green { color: var(--accent-emerald) !important; }
.text-muted { color: var(--text-muted) !important; }

.cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background-color: var(--accent-cyan);
  vertical-align: middle;
  animation: blink 1s step-start infinite;
}

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

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.about-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  box-shadow: var(--glow-blue);
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.about-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.98rem;
  line-height: 1.7;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.check-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-size: 1.1rem;
  line-height: 1;
}

/* --- Credentials (Education & Certifications) --- */
.credentials-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 2.2rem;
}

.cert-card, .education-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.cert-card {
  border-color: rgba(0, 245, 212, 0.35);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.cert-card:hover, .education-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

.cert-badge-header {
  background: rgba(14, 21, 38, 0.95);
  padding: 0.9rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.badge-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.google-tag {
  background: rgba(0, 245, 212, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 245, 212, 0.4);
}

.edu-tag {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.cert-year {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.status-ongoing {
  color: var(--accent-emerald) !important;
  font-weight: 600;
}

.cert-body {
  padding: 2rem;
  flex-grow: 1;
}

.cert-icon-wrapper {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.cert-name {
  font-size: 1.45rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.cert-issuer, .cert-focus {
  font-size: 0.95rem;
  color: var(--accent-blue);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.cert-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 1.2rem 0;
}

.module-title {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}

.cert-modules {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cert-modules li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.module-bullet {
  color: var(--accent-cyan);
  font-weight: 700;
}

.edu-desc {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.edu-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

/* --- Skills Section --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.skill-category-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  box-shadow: var(--glow-cyan);
}

.cat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cat-icon {
  font-size: 1.9rem;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cat-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: block;
}

.skill-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tag-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  padding: 0.45rem 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tag-pill:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--accent-blue);
  color: #ffffff;
  transform: translateY(-2px);
}

.tag-pill.accent {
  background: rgba(0, 245, 212, 0.08);
  border-color: rgba(0, 245, 212, 0.25);
  color: var(--accent-cyan);
}

.tag-pill.accent:hover {
  background: rgba(0, 245, 212, 0.18);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 245, 212, 0.35);
}

.tag-pill.soft {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.25);
  color: #d8b4fe;
}

.tag-pill.soft:hover {
  background: rgba(168, 85, 247, 0.18);
  border-color: var(--accent-purple);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.35);
}

/* --- Career Interests --- */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}

.interest-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  position: relative;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.interest-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

.interest-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.interest-step {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.interest-card h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
}

.interest-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Contact Section --- */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  text-align: center;
}

.contact-intro {
  max-width: 620px;
  margin: 0 auto 2.8rem;
}

.contact-intro h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.contact-intro p {
  color: var(--text-secondary);
  font-size: 1.02rem;
}

.contact-items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.8rem;
}

.contact-tile {
  background: rgba(19, 28, 49, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-align: left;
  transition: all var(--transition-normal);
}

.contact-tile:not(.static):hover {
  transform: translateY(-3px);
  border-color: var(--accent-cyan);
  background: rgba(19, 28, 49, 0.95);
  box-shadow: 0 4px 20px rgba(0, 245, 212, 0.15);
}

.contact-icon {
  font-size: 1.8rem;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(0, 245, 212, 0.08);
  border: 1px solid rgba(0, 245, 212, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
  font-family: var(--font-mono);
}

.contact-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #05070d;
  padding: 2.2rem 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-cyan);
  display: block;
  margin-bottom: 0.3rem;
}

.sec-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.status-indicator {
  width: 7px;
  height: 7px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px var(--accent-emerald);
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-title {
    font-size: 2.4rem;
  }
  
  .about-grid, .credentials-grid {
    grid-template-columns: 1fr;
  }
  
  .interests-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-items-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: auto;
    padding: 1rem 0;
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

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

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

  .footer-content {
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
  }
  
  .contact-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.95rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .quick-meta {
    flex-direction: column;
    gap: 0.8rem;
  }
}
