/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-left: #e3e7ec;
  --bg-left-accent: #f0f4f8;
  --bg-right: #0b0c10;
  --bg-dark-minimal: #08090c;
  --bg-light-theme: #f8fafc;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --text-light: #ffffff;
  --text-dim: #cbd5e1;
  --accent-cyan: #00f0ff;
  --accent-blue: #2563eb;
  --accent-green: #10b981;
  --terminal-bg: #0d1117;
  --terminal-header: #161b22;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Fira Code', monospace;
}

html {
  scroll-behavior: smooth;
}

section[id], footer[id] {
  scroll-margin-top: 90px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-right);
  color: var(--text-dark);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header & Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.navbar.scrolled {
  padding: 1.2rem 4rem;
  background: rgba(11, 12, 16, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.brand-logo:hover {
  transform: translateY(-2px);
}

.logo-icon-box {
  position: relative;
  width: 46px;
  height: 46px;
  background: #0f172a;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.brand-logo:hover .logo-icon-box {
  background: #000000;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25), 0 0 12px rgba(0, 240, 255, 0.3);
}

.logo-letter {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.45rem;
  color: #ffffff;
}

.logo-quantum-dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 7px;
  height: 7px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
}

.logo-wordmark {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.65rem;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  transition: color 0.3s ease;
}

.navbar.scrolled .logo-wordmark {
  color: var(--text-light);
}

.accent-number {
  color: #2563eb;
  background: linear-gradient(135deg, #00f0ff 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  transition: color 0.25s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-cyan);
}

.btn-contact {
  text-decoration: none;
  color: var(--text-light);
  border: 2.5px solid var(--text-light);
  border-radius: 50px;
  padding: 0.65rem 1.8rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-contact:hover, .btn-contact.active {
  background: var(--accent-cyan);
  color: #0b0c10;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.6rem;
  cursor: pointer;
}

/* SECTION 1: Split Hero Section */
.hero-split {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero-left-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-left) 0%, var(--bg-left-accent) 100%);
  z-index: 1;
}

.hero-right-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: var(--bg-right);
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 2;
}

.hero-container {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1400px;
  margin: auto;
  padding: 6rem 4rem 2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  height: 100%;
}

.hero-content-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
  padding-right: 2rem;
}

.greeting {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-name {
  font-family: var(--font-heading);
  font-size: 4.2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

/* Terminal Component */
.terminal-box {
  width: 100%;
  max-width: 540px;
  background: var(--terminal-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05);
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.terminal-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35), 0 0 15px rgba(0, 240, 255, 0.15);
}

.terminal-header {
  background: var(--terminal-header);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-buttons {
  display: flex;
  gap: 8px;
  z-index: 2;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.close { background: #ff5f56; }
.dot.minimize { background: #ffbd2e; }
.dot.maximize { background: #27c93f; }

.terminal-title {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #8b949e;
  font-weight: 500;
  pointer-events: none;
}

.terminal-body {
  padding: 1.25rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: #f0f6fc;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  line-height: 1.5;
}

.prompt-symbol {
  color: var(--accent-green);
  font-weight: 700;
  margin-right: 0.6rem;
}

.prompt-prefix {
  color: #cbd5e1;
  font-weight: 500;
  margin-right: 0.4rem;
}

.typewriter-text {
  color: var(--accent-cyan);
  font-weight: 600;
}

.cursor {
  display: inline-block;
  width: 9px;
  height: 1.2rem;
  background-color: var(--accent-cyan);
  margin-left: 3px;
  animation: blink 0.8s infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Social Buttons */
.social-links {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.5rem;
}

.social-icon-btn {
  width: 52px;
  height: 52px;
  background: #ffffff;
  color: var(--text-dark);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon-btn:hover {
  background: var(--text-dark);
  color: var(--text-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Right Side Image Showcase */
.hero-content-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-wrapper {
  position: relative;
  max-width: 380px;
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-backdrop-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, rgba(11, 12, 16, 0) 70%);
  border-radius: 30px;
  z-index: 1;
  pointer-events: none;
}

.profile-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(255, 255, 255, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.profile-img:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 240, 255, 0.25);
}


/* SECTION 2: About Me Section */
.about-minimal {
  position: relative;
  width: 100%;
  height: auto;
  min-height: auto;
  padding: 4.5rem 0 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-dark-minimal);
  overflow: hidden;
  perspective: 1000px;
}

.about-ambient-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 45%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  animation: pulseHalo 9s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes pulseHalo {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.4; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.8; }
}

.about-minimal-container {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Double Overlapping Square Box Header */
.about-square-box {
  position: relative;
  display: inline-block;
  border: 2px solid #ffffff;
  padding: 0.7rem 2.6rem;
  margin-bottom: 2rem;
  background: var(--bg-dark-minimal);
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.about-square-box::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 7px;
  width: 100%;
  height: 100%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  z-index: -1;
  pointer-events: none;
  transition: all 0.3s ease;
}

.about-square-box:hover::after {
  top: 10px;
  left: 10px;
  border-color: #ffffff;
}

.about-square-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 5px;
  color: #ffffff;
  text-transform: uppercase;
}

.about-mono-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 2.2rem 2.6rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

.about-mono-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 255, 255, 0.08);
}

.about-mono-lead {
  font-size: 1.02rem;
  color: #ffffff;
  line-height: 1.65;
  margin-bottom: 1rem;
  font-weight: 400;
}

.about-mono-body {
  font-size: 0.94rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1.6rem;
}

.about-mono-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.8rem;
}

.about-mono-tags span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.about-mono-tags span:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-2px);
}

.about-mono-btn-group {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
}

.btn-mono-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #000000;
  padding: 0.8rem 2.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
}

.btn-mono-primary:hover {
  background: var(--bg-left);
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.btn-mono-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #ffffff;
  padding: 0.8rem 2.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 1.5px;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.btn-mono-secondary:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-2px);
}


/* SECTION 3: Education Roadmap */
.education-roadmap-section {
  position: relative;
  width: 100%;
  height: auto;
  min-height: auto;
  padding: 4.5rem 0 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-right);
  overflow: hidden;
}

.education-roadmap-container {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.roadmap-layout-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.5rem;
}

.roadmap-row {
  width: 100%;
}

.row-up-cards, .row-down-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.roadmap-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.milestone-up {
  justify-content: flex-end;
}

.milestone-down {
  justify-content: flex-start;
}

/* 3D Dual-Sided Card Flip Container */
.card-flip-container {
  width: 100%;
  min-height: 120px;
  height: 120px;
  perspective: 1000px;
  cursor: pointer;
}

.card-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 120px;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.card-flip-container:hover .card-flip-inner,
.card-flip-container.flipped .card-flip-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Front Face */
.card-front {
  background: rgba(255, 255, 255, 0.03);
}

.card-flip-container:hover .card-front {
  border-color: rgba(255, 255, 255, 0.4);
}

/* Back Face (Revealed on 3D Flip) */
.card-back {
  background: rgba(15, 18, 28, 0.98);
  border: 1.5px solid var(--accent-cyan);
  transform: rotateY(180deg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 240, 255, 0.2);
}

.card-degree-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-cyan);
  font-weight: 700;
  margin-bottom: 0.3rem;
  letter-spacing: 0.5px;
}

.card-school-name {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.3;
}

.detail-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.4);
  margin-bottom: 0.35rem;
}

.detail-board {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.35;
}

/* Single-SVG Interconnection Canvas Row */
.row-wave-canvas {
  position: relative;
  height: 240px;
  display: flex;
  align-items: center;
  margin: -10px 0;
}

.roadmap-canvas-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Living Quantum Energy Pulse Flow (Diagonal Path) */
.quantum-pulse-line {
  stroke-dasharray: 200 1400;
  stroke-dashoffset: 1600;
  animation: quantumFlow 5s linear infinite;
  filter: drop-shadow(0 0 12px var(--accent-cyan));
}

@keyframes quantumFlow {
  0% { stroke-dashoffset: 1600; }
  100% { stroke-dashoffset: 0; }
}

/* SVG Stem Lines, Dots & Year Badges */
.svg-stem {
  transition: all 0.3s ease;
}

.svg-wave-dot {
  fill: #ffffff;
  stroke: rgba(11, 12, 16, 1);
  stroke-width: 3.5;
  filter: drop-shadow(0 0 12px #ffffff);
  transition: all 0.3s ease;
  cursor: pointer;
}

.svg-wave-dot:hover,
.svg-wave-dot.active {
  fill: var(--accent-cyan);
  filter: drop-shadow(0 0 22px var(--accent-cyan));
  r: 12;
}

.svg-badge-bg {
  fill: rgba(15, 18, 28, 0.96);
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 1;
}

.svg-badge-text {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  fill: #ffffff;
  letter-spacing: 0.5px;
}

/* Start & End Marker Styles */
.svg-endpoint-text {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  fill: #ffffff;
  letter-spacing: 1px;
}

.svg-endpoint-now {
  fill: #00f0ff;
}

/* Pulsing END (NOW) Ring Animation */
.end-point-pulse-ring {
  animation: endPulseRing 2s ease-in-out infinite;
  transform-origin: 970px 20px;
}

@keyframes endPulseRing {
  0%, 100% {
    r: 16;
    opacity: 0.6;
    stroke-width: 2;
  }
  50% {
    r: 22;
    opacity: 0.15;
    stroke-width: 1;
  }
}

.end-point-dot {
  animation: endDotGlow 2s ease-in-out infinite;
}

@keyframes endDotGlow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(0,240,255,0.8)); }
  50% { filter: drop-shadow(0 0 18px rgba(0,240,255,1)); }
}


/* SECTION 4: Research Experience & Publications (Dark Luxury Theme, Fluid Dynamic Content Height) */
.research-section-dark {
  position: relative;
  width: 100%;
  height: auto;
  min-height: auto;
  padding: 4.5rem 0 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-dark-minimal);
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: visible;
}

/* Top-Right Soft Glowing Cyan Orb with Drift Animation */
.research-bg-orb-top {
  position: absolute;
  top: -12%;
  right: -6%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, rgba(11, 12, 16, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  animation: orbDrift 10s ease-in-out infinite alternate;
}

/* Bottom-Left Soft Glowing Cobalt Orb with Drift Animation */
.research-bg-orb-bottom {
  position: absolute;
  bottom: -12%;
  left: -6%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(11, 12, 16, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  animation: orbDrift 12s ease-in-out infinite alternate-reverse;
}

@keyframes orbDrift {
  0% { transform: translate(0, 0) scale(0.95); opacity: 0.6; }
  100% { transform: translate(25px, 20px) scale(1.1); opacity: 0.95; }
}

/* Floating Quantum Particles Container */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
  animation: particleFloat 14s linear infinite;
}

.particle.p1 { width: 8px; height: 8px; top: 18%; left: 12%; animation-duration: 12s; }
.particle.p2 { width: 12px; height: 12px; top: 72%; left: 82%; animation-duration: 16s; animation-delay: 2s; }
.particle.p3 { width: 6px; height: 6px; top: 35%; left: 88%; animation-duration: 10s; animation-delay: 1s; }
.particle.p4 { width: 10px; height: 10px; top: 80%; left: 22%; animation-duration: 18s; animation-delay: 3s; }
.particle.p5 { width: 7px; height: 7px; top: 25%; left: 48%; animation-duration: 13s; animation-delay: 0.5s; }

@keyframes particleFloat {
  0% { transform: translateY(0) translateX(0) scale(1); opacity: 0.2; }
  50% { transform: translateY(-30px) translateX(15px) scale(1.3); opacity: 0.7; }
  100% { transform: translateY(-60px) translateX(-10px) scale(1); opacity: 0.2; }
}

.research-container {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Fluid Research Grid Layout */
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
}

.research-card-dark {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 2.2rem 2.4rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.research-card-dark::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #00f0ff, #2563eb);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.research-card-dark:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 30px rgba(0, 240, 255, 0.15);
}

.research-card-dark:hover::before {
  opacity: 1;
}

.research-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.research-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.5px;
}

.venue-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.research-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 1.2rem;
}

.research-card-body {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.7;
  font-weight: 400;
  text-align: justify;
}


/* ==========================================================================
   CUSTOM DISTINCT SECTION HEADINGS
   ========================================================================== */

/* Heading Style 1: Cyberpunk Obsidian Badge (About Me) */
.heading-cyber-badge {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2.8rem;
}

.heading-bracket-left, .heading-bracket-right {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-cyan);
  opacity: 0.7;
}

.heading-cyber-content {
  background: rgba(15, 18, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 2px solid var(--accent-cyan);
  padding: 0.6rem 2.2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.1);
}

.heading-sub-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  letter-spacing: 1.5px;
  margin-bottom: 0.15rem;
}

.heading-cyber-title {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
}


/* Heading Style 2: Timeline Milestone Node (Education Journey) */
.heading-timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.8rem;
  text-align: center;
}

.milestone-badge-glow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  letter-spacing: 1px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.heading-timeline-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 0.6rem;
}

.heading-timeline-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #00f0ff, #2563eb);
  border-radius: 2px;
}

.heading-timeline-title .accent-cyan {
  color: var(--accent-cyan);
}


/* Heading Style 3: Scientific Blueprint Matrix Frame (Research & Publications) */
.heading-blueprint-frame {
  background: rgba(18, 22, 34, 0.9);
  border: 1px dashed rgba(0, 240, 255, 0.4);
  padding: 0.7rem 2.5rem;
  margin-bottom: 2.8rem;
  position: relative;
  box-shadow: inset 0 0 15px rgba(0, 240, 255, 0.05);
}

.blueprint-tag-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.2rem;
}

.blueprint-code {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #94a3b8;
  letter-spacing: 1px;
}

.blueprint-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
}

.heading-blueprint-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 4.5px;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
}


/* Heading Style 4: Linux Terminal Window Command Bar (Featured Projects) */
.heading-terminal-bar {
  background: rgba(15, 18, 28, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.9rem 2.2rem;
  margin-bottom: 2.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  position: relative;
}

.terminal-dots {
  display: flex;
  gap: 0.4rem;
  position: absolute;
  left: 1.2rem;
  top: 1.1rem;
}

.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.t-dot.close { background: #ff5f56; }
.t-dot.min { background: #ffbd2e; }
.t-dot.max { background: #27c93f; }

.terminal-cmd {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.1rem;
}

.prompt-user {
  color: var(--accent-cyan);
  font-weight: 700;
}

.cmd-text {
  color: #e2e8f0;
}

.cmd-cursor {
  width: 7px;
  height: 14px;
  background: #27c93f;
  display: inline-block;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.heading-terminal-title {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
}


/* ==========================================================================
   SECTION 4.5: TECHNICAL SKILLS SECTION STYLES (Infinite Left-to-Right Marquee)
   ========================================================================== */
.skills-section-dark {
  position: relative;
  width: 100%;
  padding: 4.5rem 0 3.5rem;
  background-color: var(--bg-dark-minimal);
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.skills-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.035) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.skills-container {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skills-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1.2rem;
  margin-bottom: 3rem;
  text-align: center;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.skills-marquee-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.skills-track-right {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marqueeRight 30s linear infinite;
}

.skills-track-left {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marqueeLeft 30s linear infinite;
}

.skills-marquee-wrapper:hover .skills-track-right,
.skills-marquee-wrapper:hover .skills-track-left {
  animation-play-state: paused;
}

@keyframes marqueeRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

@keyframes marqueeLeft {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.skill-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.8rem;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
}

.skill-card:hover {
  transform: translateY(-4px) scale(1.04);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85), 0 0 22px rgba(255, 255, 255, 0.12);
}

.skill-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon {
  transform: scale(1.2) rotate(6deg);
}

.skill-name {
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.5px;
}

/* Icon custom brand accents */
.icon-python { color: #3776ab; }
.icon-js { color: #f7df1e; }
.icon-react { color: #61dafb; }
.icon-node { color: #68a063; }
.icon-cpp { color: #659ad2; }
.icon-php { color: #777bb4; }
.icon-mysql { color: #00758f; }
.icon-electron { color: #9feaf9; }
.icon-quantum { color: #a56eff; }
.icon-ml { color: #f37626; }
.icon-numpy { color: #4dabcf; }
.icon-arduino { color: #00979d; }
.icon-html { color: #e34f26; }
.icon-css { color: #264de4; }
.icon-git { color: #f05032; }
.icon-linux { color: #f34b7d; }

/* ==========================================================================
   SECTION 4.8: CERTIFICATES SECTION STYLES (Infinite Left-to-Right Marquee)
   ========================================================================== */
.certificates-section-dark {
  position: relative;
  width: 100%;
  padding: 4.5rem 0 3.5rem;
  background-color: var(--bg-dark-minimal);
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.certificates-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 950px;
  height: 450px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.035) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.certificates-container {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.certificates-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1.2rem;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* Infinite Auto-Scrolling Certificates Marquee Track for Main Landing Page */
.certificates-marquee-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  padding: 1.2rem 0;
  margin-bottom: 1rem;
}

.certificates-track {
  display: flex;
  gap: 1.8rem;
  width: max-content;
  animation: marqueeLeft 42s linear infinite;
}

.certificates-marquee-wrapper:hover .certificates-track {
  animation-play-state: paused;
}

.certificates-track .certificate-card {
  width: 340px;
  flex: 0 0 340px;
}

/* Certificates Interactive Grid & Cards */

/* Certificates Interactive Grid */

/* Certificates Interactive Grid */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  width: 100%;
  padding-bottom: 1rem;
}

@media (max-width: 1024px) {
  .certificates-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem;
  }
}

@media (max-width: 640px) {
  .certificates-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

.certificate-card {
  width: 100%;
  flex: none;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.35s ease, box-shadow 0.35s ease, opacity 0.3s ease;
  user-select: none;
  cursor: pointer;
}

.certificate-card.hide {
  display: none !important;
}

.certificate-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 255, 255, 0.08);
}

.cert-img-wrapper {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: #090a0f;
}

.cert-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s ease;
  opacity: 0.9;
  -webkit-user-drag: none;
  user-select: none;
}

.certificate-card:hover .cert-img {
  transform: scale(1.06);
  opacity: 1;
}

.cert-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 12, 16, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.1px;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cert-card-content {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: rgba(15, 18, 26, 0.4);
}

.cert-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.cert-issuer {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  line-height: 1.4;
}

.cert-issuer i {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.45);
}

.cert-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cert-date {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-cert-view {
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.95rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.btn-cert-view:hover {
  background: #ffffff;
  color: #0b0c10;
  border-color: #ffffff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   SECTION 5: PROJECTS SECTION STYLES (Luxury Monochrome Aesthetic)
   ========================================================================== */
.projects-section-dark {
  position: relative;
  width: 100%;
  height: auto;
  min-height: auto;
  padding: 4.5rem 0 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-dark-minimal);
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.projects-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.projects-container {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.projects-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1.2rem;
  margin-bottom: 3rem;
  text-align: center;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.projects-marquee-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  padding: 1.2rem 0;
}

.projects-track {
  display: flex;
  gap: 1.8rem;
  width: max-content;
  animation: marqueeRight 36s linear infinite;
}

.projects-marquee-wrapper:hover .projects-track {
  animation-play-state: paused;
}

/* Vertical Project Card styled for Marquee */
.project-card-vertical {
  width: 360px;
  flex: 0 0 360px;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  user-select: none;
}

.project-card-vertical::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.15));
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 10;
}

.project-card-vertical:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 255, 255, 0.08);
}

.project-card-vertical:hover::before {
  opacity: 1;
}

/* Image Header Container */
.project-img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #1a1e2b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.45s ease;
  -webkit-user-drag: none;
  user-select: none;
}

.project-card-vertical:hover .project-img {
  transform: scale(1.08);
}

.project-category-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(11, 12, 16, 0.92);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.28rem 0.7rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

/* Card Content Body */
.project-card-content {
  padding: 1.5rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: rgba(15, 18, 26, 0.4);
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

/* Strict 2-Line Text Clamp */
.project-body-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.55;
  min-height: 3.1em;
  height: auto;
  text-align: justify;
  margin-bottom: 1.1rem;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.tech-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  transition: all 0.25s ease;
}

.project-card-vertical:hover .tech-badge {
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

.btn-project-primary {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  background: #ffffff;
  color: #000000;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s ease;
}

.btn-project-primary:hover {
  background: #e2e8f0;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
}

.btn-project-secondary {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.45rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s ease;
}

.btn-project-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* Scroll Reveal & Staggered Animations */
.reveal-up {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Delay Helpers */
.delay-1.reveal-up.active { transition-delay: 0.05s; }
.delay-2.reveal-up.active { transition-delay: 0.2s; }
.delay-3.reveal-up.active { transition-delay: 0.35s; }
.delay-4.reveal-up.active { transition-delay: 0.5s; }

/* ==========================================================================
   SECTION 6: CONTACT & FOOTER SECTION STYLES (Luxury Obsidian Theme)
   ========================================================================== */
.footer-dark {
  position: relative;
  width: 100%;
  margin-top: auto;
  padding: 3.5rem 0 0;
  background-color: var(--bg-dark-minimal);
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.footer-bg-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 350px;
  background: radial-gradient(ellipse at bottom, rgba(255, 255, 255, 0.035) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.footer-container {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  justify-content: space-between;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
}

.footer-tagline {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 620px;
  margin: 1.5rem auto 2.2rem;
  line-height: 1.6;
  font-weight: 300;
}

.footer-social-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.footer-social-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 255, 255, 0.1);
}

.footer-bottom {
  width: 100%;
  padding: 1.1rem 1.5rem;
  background: rgba(0, 0, 0, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

.copyright-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
  letter-spacing: 0.5px;
}

/* 1-Second Smooth Footer Reveal Transition */
.footer-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.footer-reveal.active {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================================================
   RESPONSIVE MEDIA QUERIES — All Breakpoints
   ========================================================================== */

/* ---- BREAKPOINT: 1024px (Tablets Landscape / Small Laptops) ---- */
@media (max-width: 1024px) {
  /* Hero Section */
  .hero-container {
    grid-template-columns: 1fr;
    padding: 5rem 2rem 2rem;
    gap: 2.5rem;
    text-align: center;
    height: auto;
  }

  .hero-split,
  .about-minimal,
  .education-roadmap-section,
  .research-section-dark,
  .projects-section-dark {
    height: auto;
    min-height: auto;
    padding: 4.5rem 0 3rem;
  }

  .hero-content-left {
    align-items: center;
    padding-right: 0;
  }

  .hero-right-bg {
    width: 100%;
    height: 50%;
    top: auto;
    bottom: 0;
    clip-path: polygon(0 20%, 100% 0, 100% 100%, 0% 100%);
  }

  .image-wrapper {
    max-width: 300px;
  }

  /* Education Section */
  .row-up-cards, .row-down-cards {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .spacer-col {
    display: none;
  }

  .row-wave-canvas {
    display: none;
  }

  .card-flip-container {
    height: 120px;
    min-height: 120px;
  }

  .card-flip-inner {
    min-height: 120px;
  }

  /* Research Grid */
  .research-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- BREAKPOINT: 900px (Nav links overflow threshold) ---- */
@media (max-width: 900px) {
  /* Navbar — trigger mobile menu at 900px and ensure visible on mobile load */
  .navbar {
    padding: 1rem 1.5rem;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    background: rgba(11, 12, 16, 0.92);
    backdrop-filter: blur(16px);
  }

  .logo-wordmark {
    color: #ffffff;
  }

  .navbar.scrolled {
    padding: 0.85rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: rgba(11, 12, 16, 0.97);
    backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.8rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    padding: 3rem 1.5rem;
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-toggle {
    display: block;
    z-index: 250;
  }

  .nav-link {
    font-size: 1.1rem;
  }

  .btn-contact {
    margin-top: 0.5rem;
  }

  /* Research */
  .research-card-dark {
    padding: 1.8rem 1.6rem;
  }

  /* Hero name */
  .hero-name {
    font-size: 3.2rem;
  }

  .greeting {
    font-size: 1.5rem;
  }
}

/* ---- BREAKPOINT: 768px (Tablets Portrait / Large Phones) ---- */
@media (max-width: 768px) {
  /* Hero Section */
  .hero-container {
    padding: 4.5rem 1.2rem 1.5rem;
    gap: 2rem;
  }

  .hero-name {
    font-size: 2.5rem;
  }

  .greeting {
    font-size: 1.3rem;
  }

  .terminal-box {
    max-width: 100%;
  }

  .terminal-body {
    font-size: 1rem;
    padding: 1rem 1.1rem;
  }

  .terminal-title {
    font-size: 0.75rem;
  }

  .image-wrapper {
    max-width: 260px;
  }

  .social-icon-btn {
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
    border-radius: 12px;
  }

  .social-links {
    gap: 1rem;
  }

  /* Hero backgrounds */
  .hero-right-bg {
    clip-path: polygon(0 30%, 100% 0, 100% 100%, 0% 100%);
  }

  .research-section-dark {
    overflow: hidden;
  }

  /* Education Section — single column */
  .row-up-cards, .row-down-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .education-roadmap-container {
    padding: 3rem 1rem 1.5rem;
  }

  .card-flip-container {
    height: 110px;
    min-height: 110px;
  }

  .card-flip-inner {
    min-height: 110px;
  }

  .card-face {
    padding: 0.9rem 1rem;
  }

  .card-degree-title {
    font-size: 0.72rem;
  }

  .card-school-name {
    font-size: 0.92rem;
  }

  /* About Section */
  .about-minimal-container {
    padding: 3.5rem 1.2rem 1.5rem;
  }

  .about-mono-card {
    padding: 1.6rem 1.3rem;
  }

  .about-mono-lead {
    font-size: 0.95rem;
  }

  .about-mono-body {
    font-size: 0.88rem;
  }

  .about-mono-tags span {
    font-size: 0.72rem;
    padding: 0.35rem 0.75rem;
  }

  .about-mono-btn-group {
    flex-direction: column;
    width: 100%;
    gap: 0.9rem;
  }

  .btn-mono-primary, .btn-mono-secondary {
    width: 100%;
    padding: 0.8rem 1.5rem;
    text-align: center;
  }

  /* Section Headings */
  .about-square-title {
    font-size: 1.35rem;
    letter-spacing: 3px;
  }

  .about-square-box {
    padding: 0.6rem 1.8rem;
  }

  /* Research */
  .research-card-dark {
    padding: 1.5rem 1.3rem;
  }

  .research-card-title {
    font-size: 1.1rem;
  }

  .research-card-body {
    font-size: 0.88rem;
  }

  /* Certificates marquee cards */
  .certificate-card {
    width: 280px;
    flex: 0 0 280px;
  }

  .cert-img-wrapper {
    height: 155px;
  }

  /* Project marquee cards */
  .project-card-vertical {
    width: 290px;
    flex: 0 0 290px;
  }

  .project-img-wrapper {
    height: 170px;
  }

  /* Skills section */
  .skills-subtitle, .certificates-subtitle, .projects-subtitle {
    font-size: 0.92rem;
    margin-bottom: 2rem;
  }

  .skill-card {
    padding: 0.8rem 1.4rem;
    gap: 0.7rem;
  }

  .skill-icon {
    font-size: 1.3rem;
  }

  .skill-name {
    font-size: 0.9rem;
  }

  /* Footer */
  .footer-tagline {
    font-size: 0.95rem;
    margin: 1.2rem auto 1.8rem;
  }

  .footer-social-links {
    gap: 0.8rem;
  }

  .footer-social-btn {
    padding: 0.7rem 1.3rem;
    font-size: 0.88rem;
  }

  /* All sections padding */
  .hero-split,
  .about-minimal,
  .education-roadmap-section,
  .research-section-dark,
  .skills-section-dark,
  .certificates-section-dark,
  .projects-section-dark {
    padding: 3.5rem 0 2.5rem;
  }
}

/* ---- BREAKPOINT: 480px (Small Phones) ---- */
@media (max-width: 480px) {
  /* Hero Section */
  .hero-container {
    padding: 4rem 0.8rem 1.2rem;
    gap: 1.5rem;
  }

  .hero-name {
    font-size: 1.95rem;
    letter-spacing: -0.3px;
  }

  .greeting {
    font-size: 1.1rem;
  }

  .terminal-body {
    font-size: 0.88rem;
    padding: 0.85rem 0.9rem;
  }

  .terminal-title {
    font-size: 0.68rem;
  }

  .terminal-header {
    padding: 0.6rem 0.8rem;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .image-wrapper {
    max-width: 220px;
  }

  .social-icon-btn {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    border-radius: 11px;
  }

  .social-links {
    gap: 0.8rem;
  }

  /* Hero background */
  .hero-right-bg {
    height: 45%;
    clip-path: polygon(0 35%, 100% 0, 100% 100%, 0% 100%);
  }

  /* Section Headings */
  .about-square-title {
    font-size: 1.1rem;
    letter-spacing: 2px;
  }

  .about-square-box {
    padding: 0.5rem 1.2rem;
    margin-bottom: 1.5rem;
  }

  .about-square-box::after {
    top: 5px;
    left: 5px;
  }

  /* About Section */
  .about-minimal-container {
    padding: 2.5rem 0.8rem 1.2rem;
  }

  .about-mono-card {
    padding: 1.3rem 1rem;
    border-radius: 12px;
  }

  .about-mono-lead {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .about-mono-body {
    font-size: 0.82rem;
  }

  .about-mono-tags {
    gap: 0.5rem;
  }

  .about-mono-tags span {
    font-size: 0.68rem;
    padding: 0.3rem 0.6rem;
  }

  .btn-mono-primary, .btn-mono-secondary {
    font-size: 0.82rem;
    padding: 0.75rem 1.2rem;
    letter-spacing: 1px;
  }

  /* Education Section */
  .education-roadmap-container {
    padding: 2.5rem 0.8rem 1.2rem;
  }

  .card-flip-container {
    height: 105px;
    min-height: 105px;
  }

  .card-flip-inner {
    min-height: 105px;
  }

  .card-face {
    padding: 0.75rem 0.85rem;
    border-radius: 11px;
  }

  .card-degree-title {
    font-size: 0.68rem;
    margin-bottom: 0.2rem;
  }

  .card-school-name {
    font-size: 0.85rem;
  }

  .detail-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
  }

  .detail-board {
    font-size: 0.72rem;
  }

  /* Research */
  .research-container {
    padding: 0 0.8rem;
  }

  .research-card-dark {
    padding: 1.2rem 1rem;
    border-radius: 14px;
  }

  .research-card-title {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }

  .research-card-body {
    font-size: 0.82rem;
    line-height: 1.6;
  }

  .research-tag {
    font-size: 0.68rem;
  }

  .venue-pill {
    font-size: 0.62rem;
    padding: 0.2rem 0.55rem;
  }

  /* Skills */
  .skills-container, .certificates-container, .projects-container {
    padding: 0 0.8rem;
  }

  .skill-card {
    padding: 0.65rem 1rem;
    gap: 0.55rem;
    border-radius: 10px;
  }

  .skill-icon {
    font-size: 1.15rem;
  }

  .skill-name {
    font-size: 0.82rem;
  }

  .skills-marquee-wrapper {
    gap: 0.9rem;
  }

  .skills-track-right, .skills-track-left {
    gap: 1rem;
  }

  .skills-subtitle, .certificates-subtitle, .projects-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
  }

  /* Certificates */
  .certificate-card {
    width: 255px;
    flex: 0 0 255px;
  }

  .cert-img-wrapper {
    height: 140px;
  }

  .cert-card-content {
    padding: 1rem 1rem 0.9rem;
  }

  .cert-title {
    font-size: 0.92rem;
  }

  .cert-issuer {
    font-size: 0.75rem;
    margin-bottom: 0.8rem;
  }

  .cert-badge {
    font-size: 0.58rem;
    padding: 0.25rem 0.5rem;
  }

  .certificates-track {
    gap: 1.2rem;
  }

  /* Projects */
  .project-card-vertical {
    width: 260px;
    flex: 0 0 260px;
  }

  .project-img-wrapper {
    height: 150px;
  }

  .project-card-content {
    padding: 1.1rem 1.1rem 1.2rem;
  }

  .project-title {
    font-size: 0.98rem;
  }

  .project-body-clamp {
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
  }

  .tech-badge {
    font-size: 0.62rem;
    padding: 0.15rem 0.4rem;
  }

  .project-category-badge {
    font-size: 0.58rem;
    padding: 0.2rem 0.55rem;
  }

  .btn-project-primary, .btn-project-secondary {
    font-size: 0.72rem;
    padding: 0.4rem 0.8rem;
  }

  .projects-track {
    gap: 1.2rem;
  }

  /* Footer */
  .footer-dark {
    padding: 2.5rem 0 0;
  }

  .footer-content {
    padding: 0 0.8rem;
    margin-bottom: 1.8rem;
  }

  .footer-tagline {
    font-size: 0.88rem;
    margin: 1rem auto 1.5rem;
  }

  .footer-social-links {
    gap: 0.6rem;
  }

  .footer-social-btn {
    padding: 0.6rem 1.1rem;
    font-size: 0.82rem;
    border-radius: 10px;
    gap: 0.45rem;
  }

  .copyright-text {
    font-size: 0.78rem;
  }

  /* Navbar */
  .navbar {
    padding: 1rem 1rem;
  }

  .navbar.scrolled {
    padding: 0.8rem 1rem;
  }

  .logo-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .logo-letter {
    font-size: 1.2rem;
  }

  .logo-wordmark {
    font-size: 1.35rem;
  }

  .logo-quantum-dot {
    top: 7px;
    right: 7px;
    width: 6px;
    height: 6px;
  }

  /* All section padding compression */
  .hero-split,
  .about-minimal,
  .education-roadmap-section,
  .research-section-dark,
  .skills-section-dark,
  .certificates-section-dark,
  .projects-section-dark {
    padding: 2.8rem 0 2rem;
  }
}

/* ---- BREAKPOINT: 360px (Very Small Phones) ---- */
@media (max-width: 360px) {
  .hero-name {
    font-size: 1.65rem;
  }

  .greeting {
    font-size: 1rem;
  }

  .terminal-body {
    font-size: 0.8rem;
    padding: 0.75rem 0.7rem;
  }

  .about-square-title {
    font-size: 0.95rem;
    letter-spacing: 1.5px;
  }

  .about-square-box {
    padding: 0.45rem 1rem;
  }

  .certificate-card {
    width: 235px;
    flex: 0 0 235px;
  }

  .project-card-vertical {
    width: 240px;
    flex: 0 0 240px;
  }

  .image-wrapper {
    max-width: 190px;
  }
}

/* Full-Screen Pure Image Lightbox Modal with Luxury Split Entrance Animation */
.cert-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999999 !important; /* Absolute top layer covering fixed menu bar */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
  padding: 3rem 1.5rem 2rem;
}

.cert-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cert-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 5, 8, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  cursor: pointer;
  z-index: 1;
}

/* Outer Box Framing Layer - Entrance from LEFT to CENTER */
.cert-modal-container {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 84vh;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.05) 0%, rgba(12, 15, 23, 0.98) 85%);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.95), 0 0 45px rgba(255, 255, 255, 0.08);
  padding: 2.8rem 1.4rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(-120px) scale(0.94);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
}

.cert-modal.active .cert-modal-container {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Integrated X Close Button on Outer Layer */
.cert-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  outline: none;
}

.cert-modal-close:hover {
  background: #ffffff;
  color: #0b0c10;
  border-color: #ffffff;
  transform: rotate(90deg) scale(1.12);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.45);
}

.cert-modal-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Certificate Image - Entrance from RIGHT to CENTER */
.cert-modal-img {
  max-width: 100%;
  max-height: 72vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85);
  opacity: 0;
  transform: translateX(120px);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.08s, opacity 0.45s ease 0.08s;
}

.cert-modal.active .cert-modal-img {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 640px) {
  .cert-modal {
    padding: 2rem 0.8rem 1rem;
  }

  .cert-modal-container {
    max-width: 95vw;
    max-height: 82vh;
    padding: 2.5rem 0.8rem 0.8rem 0.8rem;
    border-radius: 16px;
    transform: translateX(-60px) scale(0.95);
  }

  .cert-modal-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .cert-modal-img {
    max-height: 70vh;
    transform: translateX(60px);
  }
}
