/* Custom Visual Design System for Hari Maniesh P Portfolio */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg-deep: #040711;
  --bg-surface: #0a0f1d;
  --bg-card: rgba(15, 23, 42, 0.7);
  --bg-card-hover: rgba(23, 35, 60, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-cyan: rgba(0, 242, 254, 0.3);
  --border-gold: rgba(255, 183, 3, 0.35);

  --cyan: #00f2fe;
  --cyan-glow: rgba(0, 242, 254, 0.25);
  --teal: #2dd4bf;
  --blue: #3b82f6;
  --gold: #ffb703;
  --gold-glow: rgba(255, 183, 3, 0.25);
  --emerald: #10b981;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-sub: #64748b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
}

/* Custom Webkit Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cyan), var(--gold));
  border-radius: 4px;
}

/* 3D Canvas Background */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* Custom Interactive Dual Cursor */
#cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background-color: var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.15s, height 0.15s, background-color 0.15s;
  box-shadow: 0 0 12px var(--cyan);
}

#cursor-ring {
  position: fixed;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(0, 242, 254, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out, width 0.2s, height 0.2s, border-color 0.2s;
}

body.hovered #cursor-dot {
  width: 14px;
  height: 14px;
  background-color: var(--gold);
  box-shadow: 0 0 16px var(--gold);
}

body.hovered #cursor-ring {
  width: 52px;
  height: 52px;
  border-color: rgba(255, 183, 3, 0.6);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 6vw;
  background: rgba(4, 7, 17, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: padding 0.3s ease;
}

.navbar.scrolled {
  padding: 0.9rem 6vw;
  background: rgba(4, 7, 17, 0.94);
  border-bottom-color: rgba(0, 242, 254, 0.15);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #040711;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 0 15px var(--cyan-glow);
}

.brand-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.brand-text span {
  color: var(--cyan);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--cyan);
  transition: width var(--transition-fast);
  box-shadow: 0 0 8px var(--cyan);
}

.nav-link:hover {
  color: var(--cyan);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold);
  background: rgba(255, 183, 3, 0.08);
  border: 1px solid var(--border-gold);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Base Layout Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 6vw;
}

section {
  padding: 7rem 0;
  position: relative;
}

.section-header {
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Fira Code', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

.section-tag::before {
  content: '//';
  color: var(--gold);
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* HERO SECTION */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--cyan);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid var(--border-cyan);
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-title .name-highlight {
  background: linear-gradient(135deg, #ffffff 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .role-sub {
  display: block;
  font-size: 0.65em;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.3rem;
  letter-spacing: -0.01em;
}

.hero-title .role-sub span {
  color: var(--gold);
}

.hero-description {
  font-size: 1.08rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 580px;
  margin-bottom: 2.25rem;
}

.hero-description strong {
  color: var(--text-main);
  font-weight: 500;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #00b4d8);
  color: #040711;
  box-shadow: 0 0 25px var(--cyan-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.45);
}

.btn-outline {
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-3px);
  background: rgba(0, 242, 254, 0.06);
}

.btn-gold {
  background: rgba(255, 183, 3, 0.1);
  color: var(--gold);
  border: 1px solid var(--border-gold);
}

.btn-gold:hover {
  background: var(--gold);
  color: #040711;
  transform: translateY(-3px);
  box-shadow: 0 0 25px var(--gold-glow);
}

/* Quick Metrics Bar */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: rgba(10, 15, 29, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(16px);
}

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

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-main);
}

.stat-number.cyan { color: var(--cyan); }
.stat-number.gold { color: var(--gold); }
.stat-number.teal { color: var(--teal); }

.stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-sub);
  margin-top: 0.25rem;
}

/* 3D Holographic Photo Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-3d-wrapper {
  position: relative;
  width: 320px;
  height: 380px;
  perspective: 1000px;
}

.photo-card-tilt {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(6, 11, 25, 0.9));
  border: 1px solid rgba(0, 242, 254, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px var(--cyan-glow);
  overflow: hidden;
  transition: transform 0.1s ease-out;
  transform-style: preserve-3d;
}

.photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: contrast(1.05) brightness(1.02);
  transition: transform 0.5s ease;
}

.photo-card-tilt:hover .photo-img {
  transform: scale(1.04);
}

.photo-overlay-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.photo-badge-cgpa {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(4, 7, 17, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.cgpa-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-sub);
}

.cgpa-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
}

.cgpa-badge-tag {
  font-family: 'Fira Code', monospace;
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  background: rgba(0, 242, 254, 0.1);
  color: var(--cyan);
  border-radius: 4px;
}

/* Floating Cyber Ring Accents */
.cyber-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px stroke rgba(0, 242, 254, 0.15);
  pointer-events: none;
  animation: float-spin 20s linear infinite;
}

.ring-1 {
  width: 420px;
  height: 420px;
  border: 1px dashed rgba(0, 242, 254, 0.2);
}

.ring-2 {
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255, 183, 3, 0.15);
  animation-direction: reverse;
  animation-duration: 28s;
}

@keyframes float-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* INTERACTIVE TERMINAL SECTION */
.terminal-section {
  background: linear-gradient(180deg, var(--bg-deep), var(--bg-surface));
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-window {
  background: #060913;
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 242, 254, 0.15);
  overflow: hidden;
  font-family: 'Fira Code', monospace;
}

.terminal-header {
  background: #0d1322;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 0.5rem;
}

.term-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.term-dot.red { background: #ef4444; }
.term-dot.yellow { background: #f59e0b; }
.term-dot.green { background: #10b981; }

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

.terminal-body {
  padding: 1.5rem;
  min-height: 320px;
  max-height: 450px;
  overflow-y: auto;
  font-size: 0.88rem;
  line-height: 1.7;
}

.term-line {
  margin-bottom: 0.5rem;
  word-break: break-word;
}

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

.term-cmd {
  color: var(--text-main);
}

.term-out {
  color: var(--text-muted);
  margin-left: 1rem;
}

.term-out.success { color: var(--teal); }
.term-out.highlight { color: var(--gold); }
.term-out.info { color: #60a5fa; }

.term-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.term-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--cyan);
  font-family: 'Fira Code', monospace;
  font-size: 0.88rem;
  flex: 1;
}

/* SKILLS SECTION */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.75rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  backdrop-filter: blur(12px);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-cyan);
  background: var(--bg-card-hover);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px var(--cyan-glow);
}

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

.skill-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid var(--border-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}

.skill-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

.skill-tag {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.skill-card:hover .skill-tag {
  border-color: rgba(0, 242, 254, 0.2);
  color: var(--text-main);
}

.skill-tag:hover {
  background: rgba(0, 242, 254, 0.15) !important;
  color: var(--cyan) !important;
  border-color: var(--cyan) !important;
}

/* PROJECTS SECTION */
.projects-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 242, 254, 0.1);
  box-shadow: 0 0 15px var(--cyan-glow);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: transform 0.15s ease-out, border-color 0.3s, box-shadow 0.3s;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--border-cyan);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px var(--cyan-glow);
}

.project-img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  background: #0d1527;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-banner-visual {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(0, 242, 254, 0.15) 0%, transparent 70%), #090e1c;
  position: relative;
}

.project-banner-icon {
  font-size: 3.5rem;
  color: var(--cyan);
  margin-bottom: 0.5rem;
  transition: transform 0.4s ease;
}

.project-card:hover .project-banner-icon {
  transform: scale(1.15) rotate(5deg);
}

.project-date-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: 'Fira Code', monospace;
  font-size: 0.7rem;
  padding: 0.25rem 0.75rem;
  background: rgba(4, 7, 17, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: 50px;
  backdrop-filter: blur(8px);
}

.project-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-desc {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.project-impact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.2);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  margin-bottom: 1.25rem;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.tech-badge {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.2rem 0.65rem;
  background: rgba(0, 242, 254, 0.08);
  color: var(--cyan);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 4px;
}

.project-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.btn-text-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition-fast);
  cursor: pointer;
}

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

/* EXPERIENCE & TRAINING SECTION */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--gold), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 3rem;
}

.timeline-marker {
  position: absolute;
  left: 11px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 3px solid var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  backdrop-filter: blur(12px);
  transition: all var(--transition-fast);
}

.timeline-card:hover {
  border-color: var(--border-cyan);
  transform: translateX(6px);
  background: var(--bg-card-hover);
}

.timeline-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.role-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.timeline-period {
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--gold);
  background: rgba(255, 183, 3, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  border: 1px solid var(--border-gold);
}

.company-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 0.85rem;
}

.timeline-body {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
}

/* CERTIFICATIONS MARQUEE & GRID */
.marquee-container {
  overflow: hidden;
  position: relative;
  padding: 1.5rem 0;
  background: rgba(10, 15, 29, 0.8);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 4rem;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: scroll-marquee 32s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.cert-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.6);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  border: 1px solid var(--border-subtle);
}

.cert-pill-badge {
  color: var(--gold);
  font-weight: 700;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
}

.cert-card:hover {
  border-color: var(--border-gold);
  background: rgba(255, 183, 3, 0.05);
  transform: translateY(-3px);
}

.cert-issuer {
  font-family: 'Fira Code', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.cert-title-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

/* ACHIEVEMENTS GRID */
.achieve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.achieve-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
}

.achieve-card:hover {
  border-color: var(--border-cyan);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

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

.achieve-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.achieve-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.6;
}

/* CONTACT SECTION */
.contact-section {
  text-align: center;
  background: radial-gradient(ellipse at bottom, rgba(0, 242, 254, 0.08) 0%, transparent 70%);
}

.contact-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 4rem 3vw;
  max-width: 950px;
  margin: 0 auto;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px var(--cyan-glow);
}

.contact-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin: 3rem 0;
}

.contact-link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  background: rgba(4, 7, 17, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.contact-link-item:hover {
  border-color: var(--cyan);
  background: rgba(0, 242, 254, 0.08);
  transform: translateY(-4px);
}

.contact-icon {
  font-size: 1.4rem;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.contact-lbl {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-sub);
}

.contact-val {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.2rem;
  word-break: break-all;
}

/* FOOTER */
footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-sub);
}

footer span {
  color: var(--cyan);
}

/* REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* MODAL OVERLAY */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 17, 0.85);
  backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px var(--cyan-glow);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.3);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-visual {
    order: -1;
  }

  .photo-3d-wrapper {
    width: 260px;
    height: 320px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .nav-mobile-toggle {
    display: block;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-item {
    padding-left: 40px;
  }

  .timeline-marker {
    left: 1px;
  }
}
