/* ============================================
   PORTFOLIO — STYLE.CSS
   Electric Blue & Silver — Clean, Premium, Interactive
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --bg-primary: #060c18;
  --bg-secondary: #0c1424;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-tertiary: #94a3b8;
  --text-primary: #f1f5f9;
  --text-secondary: #64748b;
  --glow: rgba(59, 130, 246, 0.3);
  --glow-soft: rgba(59, 130, 246, 0.08);
  --glass-bg: rgba(12, 20, 36, 0.6);
  --glass-border: rgba(59, 130, 246, 0.08);
  --glass-border-hover: rgba(59, 130, 246, 0.2);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

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

a:hover {
  color: var(--accent-light);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

::selection {
  background: var(--accent);
  color: var(--bg-primary);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.preloader-text {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 4px;
  text-transform: uppercase;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Scroll Progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  z-index: 9999;
  transition: width 0.05s linear;
  box-shadow: 0 0 10px var(--glow);
}

/* ---------- Cursor Glow ---------- */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* ---------- Background Effects ---------- */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  animation: blobFloat 20s ease-in-out infinite;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-light);
  bottom: -10%;
  right: -10%;
  animation-delay: -7s;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: #1e40af;
  top: 50%;
  left: 50%;
  animation-delay: -14s;
}

@keyframes blobFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(60px, -40px) scale(1.05);
  }

  50% {
    transform: translate(-30px, 60px) scale(0.95);
  }

  75% {
    transform: translate(40px, 30px) scale(1.02);
  }
}

/* Noise overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 12, 24, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: transform var(--transition), background var(--transition);
}

.navbar.scrolled {
  background: rgba(6, 12, 24, 0.95);
  border-bottom-color: var(--glass-border-hover);
}

.navbar.nav-hidden {
  transform: translateY(-100%);
}

.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
  letter-spacing: 0.3px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
  border-radius: 1px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Sections Common ---------- */
.section {
  position: relative;
  z-index: 2;
  padding: 120px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light), var(--accent-tertiary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  padding: 120px 40px 80px;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

.hero-name {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 900;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-light) 50%, var(--accent-tertiary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -2px;
}

.hero-terminal {
  background: rgba(12, 20, 36, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 20px 28px;
  margin: 28px auto;
  max-width: 550px;
  text-align: left;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 15px;
  backdrop-filter: blur(10px);
}

.hero-terminal .terminal-header {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.hero-terminal .terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red {
  background: #ef4444;
}

.terminal-dot.yellow {
  background: #eab308;
}

.terminal-dot.green {
  background: #22c55e;
}

.terminal-line {
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.terminal-prompt {
  color: var(--accent);
}

.terminal-output {
  color: var(--text-primary);
  padding-left: 16px;
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 18px;
  background: var(--accent);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

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

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  box-shadow: 0 4px 24px var(--glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border-hover);
}

.btn-secondary:hover {
  background: var(--glass-bg);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

/* ---------- Logo Marquee ---------- */
.marquee-section {
  position: relative;
  z-index: 2;
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
  background: rgba(12, 20, 36, 0.3);
}

.marquee-track {
  display: flex;
  animation: marqueeScroll 25s linear infinite;
  width: max-content;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--transition);
  padding-right: 60px;
}

.marquee-item:hover {
  color: var(--accent-light);
}

.marquee-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ---------- About Section ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}

.about-text {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.9;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-card:last-child {
  grid-column: 1 / -1;
  max-width: calc(50% - 8px);
  justify-self: center;
}

.about-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}

.about-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.about-card-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.about-card-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.about-card-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Coursework */
.coursework-section {
  margin-top: 48px;
}

.coursework-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.coursework-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.coursework-tag {
  padding: 8px 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-light);
  transition: all var(--transition);
}

.coursework-tag:hover {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.08);
}

/* ---------- Experience Section ---------- */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 48px;
}

.experience-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}

.experience-item:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.experience-role-company {
  display: flex;
  flex-direction: column;
}

.experience-role {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.experience-company {
  font-size: 15px;
  color: var(--accent-light);
  font-weight: 500;
}

.experience-dates {
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-light);
  background: rgba(59, 130, 246, 0.1);
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  white-space: nowrap;
}

.experience-bullets {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.experience-bullets li {
  position: relative;
  padding-left: 24px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.experience-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 18px;
  line-height: inherit;
}

/* ---------- Skills Section ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.skill-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}

.skill-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.skill-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  border: 1px solid var(--glass-border);
}

.skill-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  padding: 6px 14px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--accent-tertiary);
  transition: all var(--transition);
}

.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

/* ---------- Projects Section ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.project-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px;
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
  transform-style: preserve-3d;
  perspective: 1000px;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59, 130, 246, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.project-date {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.project-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.project-subtitle {
  font-size: 14px;
  color: var(--accent-light);
  margin-bottom: 16px;
  font-weight: 500;
}

.project-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tech {
  padding: 4px 12px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--accent-light);
}

.project-arrow {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--accent);
  transition: all var(--transition);
}

.project-card:hover .project-arrow {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ---------- Project Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border-hover);
  border-radius: var(--radius);
  padding: 48px;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.98);
  transition: transform var(--transition);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  float: right;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
  color: #ef4444;
}

.modal-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text-primary);
  margin-top: 8px;
}

.modal-subtitle {
  color: var(--accent-light);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
}

.modal-date {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 24px;
}

.modal-bullets {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

.modal-bullets li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.modal-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.modal-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Certifications Section ---------- */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.cert-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cert-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.cert-issuer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 50px;
  width: fit-content;
}

.cert-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.cert-date {
  font-size: 13px;
  color: var(--text-secondary);
}

.cert-verify {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  transition: all var(--transition);
  margin-top: auto;
}

.cert-verify:hover {
  color: var(--accent-light);
  gap: 10px;
}

/* ---------- Certification Roadmap ---------- */
.roadmap {
  margin-top: 48px;
  position: relative;
  padding-left: 48px;
}

.roadmap::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-light), var(--glass-border));
  border-radius: 1px;
}

.roadmap-item {
  position: relative;
  margin-bottom: 40px;
}

.roadmap-dot {
  position: absolute;
  left: -38px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 12px var(--glow);
}

.roadmap-date {
  font-size: 12px;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.roadmap-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.roadmap-issuer {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ---------- Contact Section ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.contact-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
  text-decoration: none;
}

.contact-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 2px;
}

.contact-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 14px;
}

.footer span {
  color: var(--accent);
}

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stats {
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 20px;
  }

  .navbar {
    padding: 14px 20px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(6, 12, 24, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    transition: right var(--transition);
    border-left: 1px solid var(--glass-border);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 18px;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .hero-name {
    font-size: clamp(36px, 10vw, 56px);
  }

  .hero-terminal {
    font-size: 13px;
    padding: 16px 20px;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-number {
    font-size: 28px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-cards {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .modal-content {
    padding: 32px 24px;
    margin: 20px;
  }

  .modal-overlay {
    padding: 20px;
  }

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

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

  .cursor-glow {
    display: none;
  }
}

@media (max-width: 480px) {
  .about-cards {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   NEW ADDITIONS: SOC PORTFOLIO SECTIONS 
   ============================================ */

/* Hero Section Updates */
.hero-summary {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 16px auto 28px;
  line-height: 1.7;
}

.hero-summary strong {
  color: var(--accent-light);
  font-weight: 600;
}

/* Writeup Grid for Big Projects */
.writeup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 48px;
  align-items: start;
}

.writeup-content {
  display: flex;
  flex-direction: column;
}

/* Image Placeholders with Glassmorphism */
.image-wrapper {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 16px;
  backdrop-filter: blur(10px);
  transition: transform var(--transition);
}

.image-wrapper:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
}

.writeup-img {
  border-radius: var(--radius-sm);
  width: 100%;
  height: auto;
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.image-caption {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 12px;
  font-family: 'JetBrains Mono', monospace;
}

/* Technical Methodology Code Blocks */
.code-block-wrapper {
  background: rgba(6, 12, 24, 0.9);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all var(--transition);
}

.code-block-wrapper:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 8px 32px var(--glow-soft);
}

.code-header {
  background: rgba(12, 20, 36, 0.9);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
}

.code-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}

.code-header .dot.red { background: #ef4444; }
.code-header .dot.yellow { background: #eab308; }
.code-header .dot.green { background: #22c55e; }

.code-header .file-name {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.code-block-wrapper pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  background: transparent;
}

.code-block-wrapper code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .writeup-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
@media (max-width: 768px) {
  .hero-summary {
    font-size: 16px;
  }
}

/* ============================================
   AI TRIAGE ENGINE — PIPELINE DIAGRAM
   ============================================ */

.triage-stats-row {
  display: flex;
  gap: 16px;
}

.triage-stat-card {
  flex: 1;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  transition: all var(--transition);
}

.triage-stat-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
}

.triage-stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.triage-stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

.triage-pipeline {
  background: rgba(12, 20, 36, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.triage-pipeline::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.pipeline-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
}

.pipeline-node {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--glass-border-hover);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  position: relative;
  z-index: 2;
  transition: all var(--transition);
}

.pipeline-node:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.pipeline-node-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.pipeline-splunk .pipeline-node-icon {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.pipeline-splunk { border-color: rgba(34, 197, 94, 0.3); }

.pipeline-engine .pipeline-node-icon {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.pipeline-engine { border-color: rgba(59, 130, 246, 0.3); }

.pipeline-llm .pipeline-node-icon {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.pipeline-llm { border-color: rgba(168, 85, 247, 0.3); }

.pipeline-discord .pipeline-node-icon {
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.3);
}
.pipeline-discord { border-color: rgba(88, 101, 242, 0.3); }

.pipeline-hec .pipeline-node-icon {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
}
.pipeline-hec { border-color: rgba(234, 179, 8, 0.3); }

.pipeline-node-info {
  flex: 1;
}

.pipeline-node-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.pipeline-node-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.pipeline-node-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-light);
  border: 1px solid var(--glass-border);
  letter-spacing: 1.5px;
}

.pipeline-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 4px 0;
  position: relative;
}

.pipeline-arrow-line {
  width: 2px;
  height: 24px;
  background: linear-gradient(to bottom, var(--accent), rgba(59, 130, 246, 0.2));
  position: relative;
}

.pipeline-arrow-line::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--accent);
}

.pipeline-arrow-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.pipeline-outputs {
  display: flex;
  gap: 12px;
  width: 100%;
  align-items: center;
}

.pipeline-outputs .pipeline-node {
  flex: 1;
  padding: 12px 14px;
}

.pipeline-output-divider {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.pipeline-output-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  justify-content: center;
}

.pipeline-tag {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
}

.tag-red {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.tag-yellow {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: #fbbf24;
}

.tag-green {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.tag-blue {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

@media (max-width: 768px) {
  .triage-stats-row {
    flex-direction: column;
  }
  .pipeline-outputs {
    flex-direction: column;
  }
  .pipeline-output-divider {
    display: none;
  }
}

/* ============================================
   NATIVE SOC ARCHITECTURE DIAGRAM (NO IMAGES)
   ============================================ */

.architecture-diagram {
  background: rgba(12, 20, 36, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.architecture-diagram::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.diagram-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.subnet {
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 32px 24px 24px;
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.subnet-title {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--bg-secondary);
  padding: 0 10px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-secondary);
  letter-spacing: 1px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.node {
  background: var(--bg-primary);
  border: 1px solid var(--glass-border-hover);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 240px;
}

.node-kali {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.1);
}
.node-kali .node-icon { color: #ef4444; }

.node-windows {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

.node-splunk {
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.1);
}

.node-firewall {
  border-color: rgba(234, 179, 8, 0.4);
  padding: 12px 40px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: bold;
  color: #eab308;
  background: rgba(12, 20, 36, 0.9);
  border-radius: 50px;
  margin: 16px 0;
}

.node-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.node-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.node-ip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent-light);
  background: rgba(59, 130, 246, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}

.node-sub {
  font-size: 11px;
  color: var(--text-secondary);
  border-top: 1px solid var(--glass-border);
  padding-top: 8px;
  margin-top: 4px;
}

.diagram-branches {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 20px;
  margin-top: 20px;
}

.connection-arrow {
  text-align: center;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.connection-arrow.horizontal {
  flex-direction: row;
  flex: 1;
}

.arrow-line {
  width: 2px;
  height: 40px;
  background: repeating-linear-gradient(to bottom, var(--glass-border-hover) 0, var(--glass-border-hover) 6px, transparent 6px, transparent 10px);
}
.connection-arrow.attack .arrow-line {
  background: repeating-linear-gradient(to bottom, rgba(239, 68, 68, 0.5) 0, rgba(239, 68, 68, 0.5) 6px, transparent 6px, transparent 10px);
}

.horizontal .arrow-line {
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(to right, rgba(34, 197, 94, 0.5) 0, rgba(34, 197, 94, 0.5) 6px, transparent 6px, transparent 10px);
}

.arrow-head {
  border: solid var(--glass-border-hover);
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 4px;
  transform: rotate(45deg);
}
.connection-arrow.attack .arrow-head {
  border-color: rgba(239, 68, 68, 0.5);
}
.horizontal .arrow-head {
  transform: rotate(-45deg);
  margin-left: -6px;
  border-color: rgba(34, 197, 94, 0.5);
}

.arrow-label {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-secondary);
  background: var(--bg-primary);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--glass-border);
  position: absolute;
  z-index: 5;
  white-space: nowrap;
}
.connection-arrow.attack .arrow-label {
  color: #ef4444; border-color: rgba(239, 68, 68, 0.3);
}
.horizontal .arrow-label {
  top: -28px;
  color: #22c55e; border-color: rgba(34, 197, 94, 0.3);
}

/* ============================================
   NATIVE SPLUNK DASHBOARD CSS
   ============================================ */

.splunk-dashboard {
  background: #000;
  border: 1px solid #333;
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  text-align: left;
}
.splunk-header {
  background: #1e1e1e;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 2px solid #22c55e;
}
.splunk-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
}
.splunk-app {
  font-size: 13px;
  color: #a3a3a3;
  font-weight: 500;
}
.splunk-search-bar {
  display: flex;
  margin: 16px;
  background: #1e1e1e;
  border: 1px solid #444;
  border-radius: 4px;
}
.spl-query {
  flex: 1;
  padding: 12px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #e5e5e5;
  line-height: 1.6;
}
.spl-keyword {
  color: #22c55e;
  font-weight: 700;
}
.spl-search-btn {
  background: #333;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-left: 1px solid #444;
}
.splunk-results {
  padding: 0 16px 20px;
  overflow-x: auto;
}
.splunk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: #d4d4d4;
}
.splunk-table th {
  text-align: left;
  padding: 8px 12px;
  background: #1e1e1e;
  color: #a3a3a3;
  font-weight: 600;
  border-bottom: 1px solid #333;
}
.splunk-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #222;
  font-family: 'JetBrains Mono', monospace;
}
.splunk-table tbody tr:hover {
  background: #111;
}
.splunk-table td:nth-child(4) {
  color: #ef4444;
  font-weight: 700;
}

@media (max-width: 768px) {
  .diagram-branches {
    flex-direction: column;
  }
  .connection-arrow.horizontal {
    flex-direction: column;
    margin: 30px 0;
  }
  .horizontal .arrow-line {
    width: 2px;
    height: 40px;
    background: repeating-linear-gradient(to bottom, rgba(34, 197, 94, 0.5) 0, rgba(34, 197, 94, 0.5) 6px, transparent 6px, transparent 10px);
  }
  .horizontal .arrow-head {
    transform: rotate(45deg);
    margin-left: 0;
    margin-top: -6px;
  }
  .horizontal .arrow-label {
    top: auto; left: auto; position: relative; margin-bottom: 8px;
  }
}