/* ============================================================
   styles.css — Cyberpunk Futuristic Portfolio
   ============================================================ */

/* ----------------------------------------------------------
   1. CSS Custom Properties
   ---------------------------------------------------------- */
:root {
  --bg-primary:    #0a0a0f;
  --bg-secondary:  #0f0f1a;
  --bg-tertiary:   #1a1a2e;
  --accent-cyan:   #00d4ff;
  --accent-purple: #7b2fff;
  --accent-pink:   #ff006e;
  --text-primary:  #e0e0ff;
  --text-secondary:#8888aa;
  --glass-bg:      rgba(255, 255, 255, 0.05);
  --glass-border:  rgba(255, 255, 255, 0.1);
  --glass-shadow:  0 8px 32px rgba(0, 0, 0, 0.5);
  --gradient-primary:   linear-gradient(135deg, #00d4ff, #7b2fff);
  --gradient-secondary: linear-gradient(135deg, #7b2fff, #ff006e);
  --gradient-tri:       linear-gradient(135deg, #00d4ff, #7b2fff, #ff006e);
  --font-main: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --section-padding: 100px 0;
  --container-max: 1200px;
  --nav-height: 70px;
}

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

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-main);
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: var(--font-main);
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  color: var(--text-primary);
}

section {
  scroll-margin-top: var(--nav-height);
}

/* ----------------------------------------------------------
   3. Scrollbar
   ---------------------------------------------------------- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-cyan);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

/* ----------------------------------------------------------
   4. Layout Utilities
   ---------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  padding: 4px 14px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  background: rgba(0, 212, 255, 0.05);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }

/* ----------------------------------------------------------
   5. Gradient Text Utility
   ---------------------------------------------------------- */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 50%, var(--accent-pink) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
}

/* ----------------------------------------------------------
   6. Glass Card Utility
   ---------------------------------------------------------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: var(--glass-shadow);
}

/* ----------------------------------------------------------
   7. Buttons
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::after {
  opacity: 0.08;
  background: #fff;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(0, 212, 255, 0.45);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent-cyan);
  border: 1.5px solid var(--accent-cyan);
}

.btn-outline:hover {
  background: rgba(0, 212, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
  transform: translateY(-2px);
}

/* ----------------------------------------------------------
   8. Navigation
   ---------------------------------------------------------- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background 0.4s ease, box-shadow 0.4s ease;
  animation: slideInNav 0.6s ease forwards;
}

#navbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05),
              0 4px 24px rgba(0, 0, 0, 0.4);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo a {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 8px;
  position: relative;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  background: none;
  border: none;
  transition: var(--transition);
}

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

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ----------------------------------------------------------
   9. Hero Section
   ---------------------------------------------------------- */
#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-primary);
}

#particles {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(123, 47, 255, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(0, 212, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  letter-spacing: 1px;
  animation: fadeInDown 0.7s ease 0.1s both;
}

.hero-name {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 18px;
  animation: fadeInUp 0.7s ease 0.25s both;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  margin-bottom: 12px;
  min-height: 2em;
  animation: fadeInUp 0.7s ease 0.4s both;
}

.hero-subtitle .typed-wrapper {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent-cyan);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 36px;
  animation: fadeInUp 0.7s ease 0.55s both;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.7s both;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 1px;
  animation: fadeIn 1s ease 1.2s both;
}

.scroll-arrow {
  width: 26px;
  height: 26px;
  border-right: 2px solid var(--accent-cyan);
  border-bottom: 2px solid var(--accent-cyan);
  transform: rotate(45deg);
  animation: float 1.6s ease-in-out infinite;
}

/* ----------------------------------------------------------
   10. About Section
   ---------------------------------------------------------- */
#about {
  background: var(--bg-secondary);
  padding: var(--section-padding);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

/* Profile card */
.profile-card {
  padding: 36px;
  text-align: center;
}

.profile-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  position: relative;
  animation: glowPulse 3s ease-in-out infinite;
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.profile-role {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 24px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.stat-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 14px 8px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 3px;
  line-height: 1.3;
}

.profile-links {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.profile-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.profile-link:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.08);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.2);
}

/* About right column */
.about-right h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.about-description {
  color: var(--text-secondary);
  margin-bottom: 36px;
  font-size: 0.97rem;
}

/* Timeline */
.timeline {
  position: relative;
  margin-bottom: 44px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple), transparent);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 30px;
}

.timeline-dot {
  position: absolute;
  left: 4px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-cyan);
  border: 2px solid var(--bg-secondary);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
  z-index: 1;
}

.timeline-item:nth-child(2) .timeline-dot { background: var(--accent-purple); box-shadow: 0 0 8px rgba(123, 47, 255, 0.5); }
.timeline-item:nth-child(3) .timeline-dot { background: var(--accent-pink);   box-shadow: 0 0 8px rgba(255, 0, 110, 0.5);  }

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  margin-bottom: 3px;
}

.timeline-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.timeline-org {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Tech stack grid */
.tech-stack-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  transition: var(--transition);
  cursor: default;
}

.tech-badge:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.06);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.15);
  transform: translateY(-2px);
}

.tech-badge i {
  font-size: 0.9rem;
}

/* ----------------------------------------------------------
   11. Projects Section
   ---------------------------------------------------------- */
#projects {
  background: var(--bg-primary);
  padding: var(--section-padding);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: var(--glass-shadow);
  padding: 0;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s ease;
  transform-style: preserve-3d;
}

.project-card:hover {
  transform: translateY(-8px) rotateX(3deg);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
}

.project-card-top {
  height: 4px;
  background: var(--gradient-primary);
}

.project-card-video-top {
  height: 160px;
  overflow: hidden;
  position: relative;
}

.project-card-video-top video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card:nth-child(2) .project-card-top { background: var(--gradient-secondary); }
.project-card:nth-child(3) .project-card-top { background: linear-gradient(135deg, var(--accent-pink), var(--accent-cyan)); }
.project-card:nth-child(4) .project-card-top { background: var(--gradient-secondary); }
.project-card:nth-child(5) .project-card-top { background: var(--gradient-primary); }
.project-card:nth-child(6) .project-card-top { background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink)); }

.project-card-body {
  padding: 26px;
}

.project-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  transition: var(--transition);
}

.project-card:nth-child(2) .project-icon,
.project-card:nth-child(4) .project-icon {
  background: rgba(123, 47, 255, 0.1);
  border-color: rgba(123, 47, 255, 0.2);
  color: var(--accent-purple);
}

.project-card:nth-child(3) .project-icon,
.project-card:nth-child(6) .project-icon {
  background: rgba(255, 0, 110, 0.1);
  border-color: rgba(255, 0, 110, 0.2);
  color: var(--accent-pink);
}

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

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

.project-desc {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 18px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.project-links {
  display: flex;
  gap: 10px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}

.project-link:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.06);
}

/* ----------------------------------------------------------
   12. Skills Section
   ---------------------------------------------------------- */
#skills {
  background: var(--bg-secondary);
  padding: var(--section-padding);
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.skill-bars-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.skill-bar-item {
  width: 100%;
}

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.skill-name {
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.skill-percent {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-cyan);
}

.skill-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  border-radius: 6px;
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.skill-bar-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  opacity: 0;
  transition: opacity 0.3s 1.2s;
}

/* Width is set via JS: fill.style.width = bar.getAttribute('data-level') */

.skill-bar-item.animate .skill-bar-fill::after {
  opacity: 1;
}

/* Technologies badge cloud */
.tech-cloud-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-cloud-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  min-width: 70px;
  font-size: 0.73rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  cursor: default;
  transition: var(--transition);
}

.tech-cloud-item i {
  font-size: 1.4rem;
  color: var(--accent-cyan);
  transition: var(--transition);
}

.tech-cloud-item:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  background: rgba(123, 47, 255, 0.07);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(123, 47, 255, 0.15);
}

.tech-cloud-item:hover i {
  color: var(--accent-purple);
}

/* ----------------------------------------------------------
   13. Research Section
   ---------------------------------------------------------- */
#research {
  background: var(--bg-primary);
  padding: var(--section-padding);
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.research-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 28px;
  transition: var(--transition);
}

.research-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.08);
  transform: translateY(-4px);
}

.research-type {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-purple);
  padding: 3px 10px;
  border: 1px solid rgba(123, 47, 255, 0.3);
  border-radius: 12px;
  background: rgba(123, 47, 255, 0.06);
  margin-bottom: 14px;
}

.research-title {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.research-meta {
  font-size: 0.82rem;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  font-family: var(--font-mono);
}

.research-abstract {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.research-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.research-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(255, 0, 110, 0.08);
  border: 1px solid rgba(255, 0, 110, 0.2);
  color: var(--accent-pink);
}

.research-links {
  display: flex;
  gap: 10px;
}

.research-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}

.research-link:hover {
  color: var(--accent-pink);
  border-color: var(--accent-pink);
  background: rgba(255, 0, 110, 0.06);
}

/* ----------------------------------------------------------
   14. Resume Section
   ---------------------------------------------------------- */
#resume {
  background: var(--bg-secondary);
  padding: var(--section-padding);
}

.resume-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.resume-viewer {
  width: 100%;
  height: 820px;
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--bg-tertiary);
}

.resume-viewer iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ----------------------------------------------------------
   15. Contact Section
   ---------------------------------------------------------- */
#contact {
  background: var(--bg-secondary);
  padding: var(--section-padding);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.contact-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 36px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--accent-cyan);
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-item:hover .contact-icon {
  background: rgba(0, 212, 255, 0.14);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.2);
}

.contact-item-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 2px;
  font-family: var(--font-mono);
}

.contact-item-value {
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.contact-item:hover .contact-item-value {
  color: var(--accent-cyan);
}

.social-row {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-btn:hover {
  color: var(--accent-purple);
  border-color: var(--accent-purple);
  background: rgba(123, 47, 255, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(123, 47, 255, 0.2);
}

/* Contact Form */
.contact-form {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 7px;
  font-family: var(--font-mono);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 0.92rem;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(136, 136, 170, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group textarea {
  min-height: 130px;
}

.form-error {
  display: none;
  font-size: 0.76rem;
  color: var(--accent-pink);
  margin-top: 5px;
  font-family: var(--font-mono);
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: var(--accent-pink);
  box-shadow: 0 0 0 3px rgba(255, 0, 110, 0.1);
}

.form-group.has-error .form-error {
  display: block;
}

.btn-submit {
  width: 100%;
  padding: 13px;
  border-radius: 8px;
  font-size: 0.97rem;
  font-weight: 600;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 212, 255, 0.3);
}

.btn-submit:active {
  transform: translateY(0);
}

/* Form success message */
.form-success {
  display: none;
  text-align: center;
  padding: 20px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 10px;
  color: var(--accent-cyan);
  font-size: 0.95rem;
  margin-top: 16px;
  animation: fadeInUp 0.4s ease;
}

.form-success.show {
  display: block;
}

/* ----------------------------------------------------------
   15. Footer
   ---------------------------------------------------------- */
footer {
  background: var(--bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand .footer-logo {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 280px;
  line-height: 1.65;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-social a:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.07);
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 0.86rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-col ul a:hover {
  color: var(--accent-cyan);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

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

.footer-made {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* ----------------------------------------------------------
   16. Section Background Variants
   ---------------------------------------------------------- */
.bg-grid {
  position: relative;
}

.bg-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

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

/* ----------------------------------------------------------
   18. Responsive: 992px
   ---------------------------------------------------------- */
@media (max-width: 992px) {
  :root {
    --section-padding: 80px 0;
  }

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

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

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

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

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ----------------------------------------------------------
   19. Responsive: 768px (mobile nav triggers here)
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 1rem;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ----------------------------------------------------------
   20. Responsive: 576px
   ---------------------------------------------------------- */
@media (max-width: 576px) {
  :root {
    --section-padding: 64px 0;
  }

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

  .hero-cta .btn {
    width: 220px;
    justify-content: center;
  }

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

  .contact-form {
    padding: 24px 20px;
  }

  .resume-viewer {
    height: 600px;
  }
}
