@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #030712;
  --bg-dots: rgba(31, 41, 55, 0.3);
  --card-bg: rgba(17, 24, 39, 0.55);
  --card-border: rgba(59, 130, 246, 0.12);
  --card-border-hover: rgba(6, 182, 212, 0.4);
  --text: #f9fafb;
  --muted: #9ca3af;
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-purple: #8b5cf6;
  --glow-cyan: rgba(6, 182, 212, 0.15);
  --glow-blue: rgba(59, 130, 246, 0.15);
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Fira Code', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
    linear-gradient(var(--bg-dots) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-dots) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- HEADER & NAVIGATION --- */
.site-header {
  background: rgba(3, 7, 18, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

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

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--accent-cyan);
}

.system-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-family: var(--font-mono);
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 4px 10px;
  border-radius: 99px;
  color: var(--accent-green);
}

.status-pulse {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.8s infinite;
  box-shadow: 0 0 6px var(--accent-green);
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 10px var(--accent-green); }
  100% { transform: scale(0.9); opacity: 0.6; }
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

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

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  border-radius: 99px;
}

/* --- HERO SECTION --- */
.hero {
  padding: 100px 0 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 40%, #a5f3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #030712;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.2);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(6, 182, 212, 0.35);
  filter: brightness(1.15);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(6, 182, 212, 0.3);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.profile-container {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 24px;
  padding: 4px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  box-shadow: 0 20px 50px rgba(6, 182, 212, 0.15);
}

.profile-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 20px;
  background: var(--bg);
}

.floating-badge {
  position: absolute;
  bottom: -15px;
  right: -15px;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border-hover);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.badge-text {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
}

.badge-sub {
  font-size: 9px;
  color: var(--muted);
}

/* --- BENTO GRID SECTION --- */
.bento-section {
  padding: 40px 0 60px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.06), 0 0 1px 1px rgba(6, 182, 212, 0.2) inset;
}

/* Bento Spans */
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

/* Bento Content Details */
.card-header {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.card-subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

/* CARD A: ABOUT ME */
.about-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}
.about-card p:last-child {
  margin-bottom: 0;
}

/* CARD B: TECH STACK */
.tech-groups {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tech-group h4 {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--accent-blue);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text);
  transition: all 0.25s ease;
}
.tag-chip:hover {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.3);
  color: var(--accent-cyan);
}

/* CARD C: DIGITAL TWIN SIMULATOR */
.twin-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.twin-simulation {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  height: 180px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.twin-canvas {
  width: 100%;
  height: 100%;
}
.twin-telemetry {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-green);
  background: rgba(3, 7, 18, 0.7);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  pointer-events: none;
}
.twin-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.control-row label {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--muted);
  min-width: 80px;
}
.control-row input[type="range"] {
  flex: 1;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}
.control-val {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  min-width: 50px;
  text-align: right;
}

/* CARD D: COMMAND-LINE SHELL */
.shell-container {
  background: rgba(3, 7, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  height: 250px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.shell-bar {
  background: rgba(17, 24, 39, 0.9);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.shell-dots {
  display: flex;
  gap: 6px;
}
.shell-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.shell-dot.red { background: #ef4444; }
.shell-dot.yellow { background: #eab308; }
.shell-dot.green { background: #22c55e; }
.shell-title {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}
.shell-content {
  flex: 1;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  overflow-y: auto;
  color: var(--text);
}
.shell-line {
  margin-bottom: 6px;
}
.shell-prompt {
  color: var(--accent-cyan);
}
.shell-output {
  color: var(--muted);
  white-space: pre-wrap;
}
.shell-input-line {
  display: flex;
  align-items: center;
  gap: 4px;
}
.shell-input-elem {
  background: transparent;
  border: none;
  color: var(--accent-green);
  font-family: var(--font-mono);
  font-size: 12px;
  outline: none;
  flex: 1;
}
.shell-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.shell-chip {
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.shell-chip:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.4);
}

/* CARD E: EDUCATION */
.edu-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
}
@media (max-width: 768px) {
  .edu-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.edu-col {
  display: flex;
  flex-direction: column;
}
.edu-section-title {
  font-family: var(--font-display);
  color: var(--accent-blue);
  margin-top: 16px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.edu-col:first-child .edu-section-title {
  margin-top: 0;
}
.edu-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.edu-item {
  border-left: 2px solid rgba(59, 130, 246, 0.2);
  padding-left: 14px;
}
.edu-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}
.edu-item h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}
.edu-item p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* --- PROJECTS SECTION --- */
.section-header-block {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
}
.section-kicker {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
}

.projects {
  padding: 60px 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-image-container {
  height: 160px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
}
.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .project-image {
  transform: scale(1.05);
}


.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-border-hover);
  box-shadow: 0 16px 40px rgba(6, 182, 212, 0.08), 0 0 1px 1.5px rgba(6, 182, 212, 0.2) inset;
}

.project-main h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.project-main p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.project-tag {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 16px;
}

.project-link {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-cyan);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.project-link:hover {
  color: var(--text);
}

/* --- PUBLICATIONS & CERTIFICATIONS --- */
.publications {
  padding: 60px 0;
}

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pub-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.pub-card:hover {
  border-color: var(--card-border-hover);
  background: rgba(17, 24, 39, 0.7);
}

.pub-main h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.pub-info {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pub-tag {
  background: rgba(16, 185, 129, 0.08);
  color: var(--accent-green);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

/* --- CONTACT SECTION --- */
.contact {
  padding: 60px 0 100px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.06);
}

.contact-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--accent-cyan);
  transition: all 0.3s ease;
}

.contact-card:hover .contact-icon-wrapper {
  background: var(--accent-cyan);
  color: #030712;
  box-shadow: 0 0 15px var(--accent-cyan);
}

.contact-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}

.contact-val {
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}

/* --- FOOTER --- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 32px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  background: rgba(3, 7, 18, 0.9);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

/* --- ACADEMIC METRICS CARD --- */
.metrics-card {
  display: flex;
  flex-direction: column;
}
.metrics-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  justify-content: center;
}
.metric-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 10px 14px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.metric-item:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(4px);
}
.metric-val {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2px;
}
.metric-label {
  font-size: 10px;
  color: var(--muted);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Color Themes for Metrics */
.metric-item.highlight-cyan {
  border-left: 3px solid var(--accent-cyan);
}
.metric-item.highlight-cyan .metric-val {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}
.metric-item.highlight-green {
  border-left: 3px solid var(--accent-green);
}
.metric-item.highlight-green .metric-val {
  color: var(--accent-green);
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}
.metric-item.highlight-blue {
  border-left: 3px solid var(--accent-blue);
}
.metric-item.highlight-blue .metric-val {
  color: var(--accent-blue);
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}
.metric-item.highlight-purple {
  border-left: 3px solid var(--accent-purple);
}
.metric-item.highlight-purple .metric-val {
  color: var(--accent-purple);
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

/* --- RESPONSIVENESS --- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero h1 {
    font-size: 34px;
  }
  .hero-actions {
    justify-content: center;
  }
  .bento-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .span-4, .span-5, .span-6, .span-7, .span-8, .span-12 {
    grid-column: span 6;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .span-4, .span-5, .span-6, .span-7, .span-8, .span-12 {
    grid-column: span 1;
  }
  .pub-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .pub-card .btn {
    width: 100%;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(3, 7, 18, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }
  nav.mobile-open {
    opacity: 1;
    pointer-events: auto;
  }
  nav.mobile-open a {
    font-size: 20px;
    transform: translateY(0);
    opacity: 1;
  }
}

/* --- HERO TYPING INTRO DYNAMICS --- */
.typing-cursor {
  color: var(--accent-cyan);
  font-weight: 700;
  animation: blink-cursor 0.8s step-end infinite;
  margin-left: 2px;
  display: inline-block;
}
@keyframes blink-cursor {
  from, to { color: transparent }
  50% { color: var(--accent-cyan) }
}

/* --- SKILLS SECTION --- */
.skills-section {
  padding: 60px 0;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}
.skills-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.skills-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.06), 0 0 1px 1px rgba(6, 182, 212, 0.2) inset;
}
.skills-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}
.skills-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}
.skills-card-header h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.skills-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.skills-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.skill-level-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--accent-blue);
}
.skills-list li:hover .skill-level-badge {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.4);
  color: var(--accent-cyan);
}

/* --- LIGHTBOX TRIGGER ZOOM --- */
.cursor-zoom {
  cursor: zoom-in;
  position: relative;
}
.image-overlay-hint {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(3, 7, 18, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: var(--accent-cyan);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
}
.project-image-container:hover .image-overlay-hint {
  opacity: 1;
}

/* --- LIGHTBOX MODAL --- */
.lightbox-modal {
  display: flex;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-content {
  margin: auto;
  display: block;
  max-width: 85%;
  max-height: 80%;
  border-radius: 12px;
  border: 1px solid rgba(6, 182, 212, 0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: var(--muted);
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.2s ease;
}
.lightbox-close:hover {
  color: var(--accent-cyan);
}
.lightbox-caption {
  position: absolute;
  bottom: 40px;
  text-align: center;
  width: 100%;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* --- PUBLICATIONS EXTENSIONS --- */
.pub-abstract {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 10px;
  margin-bottom: 16px;
}
.pub-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
@media (max-width: 768px) {
  .pub-actions {
    flex-direction: column;
    width: 100%;
  }
}

/* --- BLOG & NOTES SECTION --- */
.blog-section {
  padding: 60px 0;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-border-hover);
  box-shadow: 0 16px 40px rgba(6, 182, 212, 0.08), 0 0 1px 1.5px rgba(6, 182, 212, 0.2) inset;
}
.blog-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.blog-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.blog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 16px;
}
.blog-meta {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
}
.blog-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-cyan);
  font-family: var(--font-display);
}

/* --- BLOG MODAL READING PANELS --- */
.blog-modal {
  display: flex;
  position: fixed;
  z-index: 2100;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.blog-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.blog-modal-content {
  background: var(--matrix-panel);
  border: 1px solid var(--matrix-border);
  width: 1100px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--matrix-shadow);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog-modal.active .blog-modal-content {
  transform: translateY(0);
}
@media (max-width: 600px) {
  .blog-modal-content {
    padding: 24px;
    border-radius: 16px;
    max-width: 95%;
    max-height: 90%;
  }
  .blog-article h2 {
    font-size: 20px;
  }
  .blog-article-meta {
    margin-bottom: 16px;
  }
}
.blog-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: var(--muted);
  font-size: 28px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.blog-modal-close:hover {
  color: var(--accent-cyan);
}
.blog-article {
  font-family: var(--font-sans);
  line-height: 1.7;
}
.blog-article h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}
.blog-article-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
  display: block;
}
.blog-article p {
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--muted);
}
.blog-article h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--text);
}
.blog-article ul {
  margin-left: 20px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}
.blog-article li {
  margin-bottom: 6px;
}
.blog-article code {
  font-family: var(--font-mono);
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text);
}

/* --- CV RESUME BUTTON --- */
.cv-btn {
  padding: 14px 28px;
  font-size: 15px;
  box-shadow: 0 4px 24px rgba(6, 182, 212, 0.25);
  border: 1px solid var(--accent-cyan);
}
.cv-btn:hover {
  box-shadow: 0 8px 32px rgba(6, 182, 212, 0.45);
}

/* ===== UPGRADE v2.0 — PREMIUM ANIMATIONS & EFFECTS ===== */

/* --- PAGE LOAD ANIMATION --- */
.page-loading .site-header,
.page-loading .hero {
  opacity: 0;
  transform: translateY(-20px);
}

body:not(.page-loading) .site-header {
  animation: fadeSlideDown 0.6s ease forwards;
}

body:not(.page-loading) .hero {
  animation: fadeSlideDown 0.8s 0.15s ease forwards;
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- SCROLL REVEAL SYSTEM --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Stagger delays for grid children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger > .reveal:nth-child(7) { transition-delay: 0.48s; }
.reveal-stagger > .reveal:nth-child(8) { transition-delay: 0.56s; }

/* --- HERO PROFILE FLOATING --- */
.profile-container {
  animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* --- HERO PROFILE ANIMATED GRADIENT BORDER --- */
.profile-container {
  background: linear-gradient(var(--rotate-angle, 135deg), var(--accent-cyan), var(--accent-purple), var(--accent-blue), var(--accent-green));
  background-size: 300% 300%;
  animation: heroFloat 4s ease-in-out infinite, gradientRotate 6s linear infinite;
}

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

/* --- HERO H1 SHIMMER --- */
.hero h1 {
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #a5f3fc 25%,
    #ffffff 50%,
    #c4b5fd 75%,
    #ffffff 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 4s ease-in-out infinite;
}

@keyframes shimmerText {
  0%, 100% { background-position: -200% center; }
  50% { background-position: 200% center; }
}

/* --- SCROLL DOWN INDICATOR --- */
.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-indicator svg {
  animation: scrollChevron 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes scrollChevron {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(4px); }
}

/* --- SECTION DIVIDERS --- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.3), rgba(139, 92, 246, 0.3), transparent);
  margin: 0;
  border: none;
}

/* --- SKILL PROGRESS BARS --- */
.skill-progress-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 110px;
}

.skill-progress-bar {
  width: 70px;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.skill-progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  width: 0;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.3);
}

.skill-progress-fill.animated {
  /* width set by JS */
}

.skill-level-text {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  color: var(--accent-blue);
  white-space: nowrap;
}

/* --- HAMBURGER MENU BUTTON --- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  z-index: 201;
  transition: all 0.3s ease;
}

.hamburger:hover {
  border-color: var(--accent-cyan);
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

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

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

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

@media (max-width: 600px) {
  .hamburger {
    display: flex;
  }
}

/* --- TAG & BADGE HOVER GLOW --- */
.project-tag:hover {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  transition: all 0.25s ease;
}

.metric-item:hover {
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.08);
}

/* --- HERO SECTION RELATIVE POSITIONING FOR SCROLL INDICATOR --- */
.hero {
  position: relative;
  padding-bottom: 80px;
}

/* --- MOBILE NAV LINK ANIMATION --- */
@media (max-width: 600px) {
  nav a {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  nav a:nth-child(1) { transition-delay: 0.05s; }
  nav a:nth-child(2) { transition-delay: 0.1s; }
  nav a:nth-child(3) { transition-delay: 0.15s; }
  nav a:nth-child(4) { transition-delay: 0.2s; }
  nav a:nth-child(5) { transition-delay: 0.25s; }
  nav a:nth-child(6) { transition-delay: 0.3s; }
}

/* --- CERTIFICATES GALLERY --- */
.certificates-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.certificate-card {
  background: rgba(17, 24, 39, 0.4);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.certificate-card:hover {
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(6, 182, 212, 0.1);
}

.certificate-image-container {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 Aspect Ratio */
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.certificate-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.certificate-image-container:hover .certificate-image {
  transform: scale(1.05);
}

/* BLOG MODAL RESPONSIVE STYLES */
.blog-article {
  max-width: 850px;
  margin: 0 auto;
}

.blog-article img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 30px 0;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
