/* ==========================================================================
   RAVINDER SINGH — AI ENGINEER PORTFOLIO
   Design System: Futuristic Cyber-Glassmorphic Professional
   ========================================================================== */

:root {
  --bg-primary: #06070d;
  --bg-secondary: #0c0e17;
  --bg-card: rgba(14, 18, 28, 0.65);
  --bg-card-hover: rgba(18, 24, 38, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-subtle: rgba(0, 255, 213, 0.12);
  --border-focus: rgba(0, 255, 213, 0.45);
  --border-purple: rgba(162, 0, 255, 0.25);
  --accent-cyan: #00ffd5;
  --accent-cyan-dim: #00ccaa;
  --accent-purple: #9d4edd;
  --accent-blue: #3a86ff;
  --text-main: #f0f4f8;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 25px rgba(0, 255, 213, 0.18);
  --shadow-glow-purple: 0 0 30px rgba(157, 78, 221, 0.2);
  --transition-smooth: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Accessible interactive cursor behavior */
@media (hover: hover) and (pointer: fine) {
  body.has-custom-cursor {
    cursor: none;
  }
  body.has-custom-cursor a,
  body.has-custom-cursor button,
  body.has-custom-cursor input {
    cursor: none;
  }
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: transform 0.08s ease-out;
  display: none;
}

.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(0, 255, 213, 0.4);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9998;
  transition: transform 0.15s ease-out, width 0.25s, height 0.25s, background 0.25s, border-color 0.25s;
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .cursor, .cursor-follower {
    display: block;
  }
}

.cursor-follower.hover {
  width: 48px;
  height: 48px;
  background: rgba(0, 255, 213, 0.08);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 255, 213, 0.25);
}

.cursor.active {
  transform: translate(-50%, -50%) scale(0.6);
}

.cursor-follower.active {
  transform: translate(-50%, -50%) scale(1.15);
}

/* Background Atmosphere */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
}

.blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blobs .blob {
  position: absolute;
  width: 320px;
  height: 320px;
  filter: blur(100px);
  opacity: 0.18;
  border-radius: 50%;
  animation: floatOrb 18s infinite ease-in-out alternate;
}

.blob1 {
  top: 5%;
  left: 10%;
  background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
}

.blob2 {
  top: 45%;
  right: 10%;
  background: radial-gradient(circle, var(--accent-purple), transparent 70%);
  animation-delay: -6s;
}

.blob3 {
  bottom: 10%;
  left: 30%;
  background: radial-gradient(circle, #2563eb, transparent 70%);
  animation-delay: -12s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -35px) scale(1.1); }
  100% { transform: translate(-30px, 30px) scale(0.95); }
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  z-index: 10000;
  box-shadow: 0 0 10px rgba(0, 255, 213, 0.6);
  transition: width 0.1s ease-out;
}

/* Layout Utilities */
.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.section {
  padding: 90px 0;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.3rem;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.glow-text {
  color: var(--accent-cyan);
  text-shadow: 0 0 16px rgba(0, 255, 213, 0.4);
}

.divider-glow {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-purple), transparent);
  margin: 16px auto 0;
  border-radius: var(--radius-full);
}

.section-lead {
  max-width: 680px;
  margin: 16px auto 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  background: rgba(6, 7, 13, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 1000;
  padding: 14px 0;
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.logo h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.logo h1 span {
  color: var(--accent-cyan);
}

.logo .subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition-smooth);
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--accent-cyan);
  background: rgba(0, 255, 213, 0.05);
}

.nav-cta {
  background: rgba(0, 255, 213, 0.1) !important;
  color: var(--accent-cyan) !important;
  border: 1px solid var(--border-subtle);
  font-weight: 600 !important;
  margin-left: 10px;
}

.nav-cta:hover {
  background: rgba(0, 255, 213, 0.2) !important;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 255, 213, 0.25);
}

#menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--accent-cyan);
  padding: 5px;
}

/* HERO SECTION */
.hero {
  min-height: calc(100vh - 75px);
  display: flex;
  align-items: center;
  padding: 60px 0 80px;
  position: relative;
}

.hero .glass-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 60px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(14, 18, 28, 0.6) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  gap: 60px;
  position: relative;
  overflow: hidden;
}

.hero .glass-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 255, 213, 0.12), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-left {
  flex: 1.15;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 255, 213, 0.08);
  border: 1px solid rgba(0, 255, 213, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.hero-badge .status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-name {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  color: #ffffff;
  margin-bottom: 12px;
}

.hero-title-dynamic {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 600;
  min-height: 2.2rem;
  color: var(--accent-cyan);
  text-shadow: 0 0 15px rgba(0, 255, 213, 0.3);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.4rem;
  background: var(--accent-cyan);
  margin-left: 6px;
  animation: blink 0.9s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-subtext {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 35px;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), #00b4d8);
  color: #06070d;
  box-shadow: 0 4px 20px rgba(0, 255, 213, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 255, 213, 0.5);
  background: linear-gradient(135deg, #38ef7d, var(--accent-cyan));
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent-cyan);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  background: rgba(0, 255, 213, 0.1);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.hero-right {
  flex: 0.85;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-wrapper {
  position: relative;
  width: 320px;
  height: 380px;
}

.image-wrapper::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  opacity: 0.3;
  filter: blur(15px);
  z-index: 0;
  transition: var(--transition-smooth);
}

.image-wrapper:hover::before {
  opacity: 0.55;
  filter: blur(20px);
}

.hero-avatar {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.trophy-badge {
  position: absolute;
  bottom: -15px;
  right: -15px;
  background: rgba(14, 18, 28, 0.9);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #ffd700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 215, 0, 0.2);
  z-index: 2;
  backdrop-filter: blur(10px);
}

/* ABOUT SECTION */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
}

.about-card p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-card p strong {
  color: #ffffff;
  font-weight: 600;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.highlight-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition-smooth);
}

.highlight-box:hover {
  background: rgba(0, 255, 213, 0.04);
  border-color: var(--border-focus);
  transform: translateX(6px);
}

.highlight-icon {
  font-size: 1.8rem;
  color: var(--accent-cyan);
  line-height: 1;
}

.highlight-content h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.highlight-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* FEATURED PROJECTS SECTION */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.work-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.work-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-focus);
  background: var(--bg-card-hover);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 255, 213, 0.12);
}

.work-card:hover::after {
  opacity: 1;
}

.project-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.project-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-cyan);
}

.project-badge-pill {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(157, 78, 221, 0.15);
  color: #d8b4fe;
  border: 1px solid var(--border-purple);
}

.work-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.35;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.card-details-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 18px;
}

.detail-row {
  margin-bottom: 8px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.detail-row:last-child {
  margin-bottom: 0;
}

.detail-row strong {
  color: #e2e8f0;
}

.detail-row span {
  color: var(--text-muted);
}

.metrics-highlight {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 255, 213, 0.06);
  border: 1px solid rgba(0, 255, 213, 0.2);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-top: 8px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
  margin-top: auto;
}

.tag {
  background: rgba(0, 255, 213, 0.08);
  color: var(--accent-cyan);
  padding: 4px 10px;
  font-size: 0.72rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 255, 213, 0.18);
  font-weight: 500;
}

.card-actions {
  display: flex;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.card-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
}

.card-actions a.primary-link {
  background: rgba(0, 255, 213, 0.12);
  color: var(--accent-cyan);
  border-color: rgba(0, 255, 213, 0.3);
}

.card-actions a:hover {
  background: rgba(0, 255, 213, 0.2);
  color: #ffffff;
  border-color: var(--accent-cyan);
}

/* TECHNICAL SKILLS SECTION */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.skill-category-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 255, 213, 0.1);
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.skill-icon {
  font-size: 1.5rem;
  color: var(--accent-cyan);
}

.skill-header h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chip {
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 500;
  transition: var(--transition-smooth);
}

.skill-chip.featured {
  background: rgba(0, 255, 213, 0.08);
  color: var(--accent-cyan);
  border-color: rgba(0, 255, 213, 0.25);
  font-weight: 600;
}

.skill-chip:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 255, 213, 0.12);
  color: #ffffff;
  transform: translateY(-2px);
}

/* EXPERIENCE SECTION & TIMELINE */
.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding-left: 30px;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple), transparent);
}

.experience-item {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  transition: var(--transition-smooth);
}

.experience-item:hover {
  border-color: var(--border-focus);
  transform: translateX(6px);
  background: var(--bg-card-hover);
}

.exp-marker {
  position: absolute;
  top: 32px;
  left: -30px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-cyan);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.exp-title-block h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.exp-company {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.exp-location {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-left: 6px;
}

.exp-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.exp-content ul {
  list-style: none;
  padding-left: 0;
  margin: 16px 0;
}

.exp-content li {
  position: relative;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-left: 20px;
  line-height: 1.6;
}

.exp-content li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: bold;
}

/* RESEARCH, PUBLICATIONS & PATENTS */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.research-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.research-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-focus);
  background: var(--bg-card-hover);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 255, 213, 0.15);
}

.research-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.research-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid;
}

.research-status.published {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(0, 255, 213, 0.08);
}

.research-status.patent {
  color: #ffd700;
  border-color: #ffd700;
  background: rgba(255, 215, 0, 0.08);
}

.research-status.conference {
  color: #38bdf8;
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}

.research-year {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
}

.research-card h3 {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.4;
}

.research-venue {
  font-size: 0.88rem;
  color: #e2e8f0;
  margin-bottom: 10px;
  line-height: 1.5;
}

.research-venue strong {
  color: var(--accent-cyan);
}

.research-authors {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 18px;
  font-style: italic;
  line-height: 1.4;
}

.research-card .card-actions {
  margin-top: auto;
}

/* LEADERSHIP & CERTIFICATIONS */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.leadership-card,
.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.leadership-card:hover,
.cert-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
  background: var(--bg-card-hover);
}

.leadership-card h3,
.cert-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.leadership-role {
  color: var(--accent-cyan);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.leadership-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.cert-issuer {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.cert-learnings {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
}

.cert-learnings li {
  position: relative;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  padding-left: 14px;
}

.cert-learnings li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
}

.cert-action a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-decoration: none;
  background: rgba(0, 255, 213, 0.08);
  border: 1px solid rgba(0, 255, 213, 0.2);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.cert-action a:hover {
  background: rgba(0, 255, 213, 0.2);
  border-color: var(--accent-cyan);
}

/* Hackathons */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.achievement-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(20px);
  position: relative;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.achievement-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
}

.ach-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 6px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.achievement-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.achievement-card p {
  font-size: 0.88rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 4px;
}

.achievement-card .ach-date {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* CALL TO ACTION & CONTACT */
#call-to-action {
  background: linear-gradient(180deg, transparent, rgba(0, 255, 213, 0.03), transparent);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px 0;
}

.cta-box {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 50px 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card), 0 0 30px rgba(0, 255, 213, 0.08);
}

.cta-box h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
}

.cta-box p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 30px;
}

.contact-quick-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 25px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: #e2e8f0;
  font-size: 0.88rem;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.contact-pill:hover {
  background: rgba(0, 255, 213, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

/* FOOTER */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 35px 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.social-icons {
  display: flex;
  gap: 14px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-icons a:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(0, 255, 213, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(0, 255, 213, 0.25);
}

/* MODAL */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 7, 13, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 20px;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-focus);
  padding: 40px;
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 255, 213, 0.15);
  color: var(--text-main);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: var(--accent-cyan);
}

.contact-card-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

.contact-item:hover {
  background: rgba(0, 255, 213, 0.08);
  border-color: var(--accent-cyan);
  transform: translateX(4px);
}

.contact-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 255, 213, 0.12);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-meta span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-meta strong {
  font-size: 0.95rem;
  color: #ffffff;
}

/* SCROLL REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVENESS & ACCESSIBILITY */
@media (max-width: 1024px) {
  .hero .glass-wrapper {
    flex-direction: column-reverse;
    padding: 40px 30px;
    gap: 40px;
    text-align: center;
  }

  .hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-title-dynamic {
    justify-content: center;
  }

  .hero-ctas {
    justify-content: center;
  }

  .about-grid,
  .two-col-grid {
    grid-template-columns: 1fr;
  }

  .menu-icon {
    display: block;
  }

  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(6, 7, 13, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8);
  }

  #menu-toggle:checked ~ .nav {
    display: flex;
  }

  .nav a {
    padding: 12px 16px;
    font-size: 1rem;
    text-align: center;
  }

  .nav-cta {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .hero-name {
    font-size: 2.3rem;
  }

  .hero-title-dynamic {
    font-size: 1.25rem;
  }

  .image-wrapper {
    width: 240px;
    height: 290px;
  }

  .work-grid,
  .research-grid,
  .skills-grid,
  .cert-grid,
  .achievements-grid {
    grid-template-columns: 1fr;
  }

  .experience-timeline {
    padding-left: 20px;
  }

  .experience-item {
    padding: 20px;
  }

  .exp-marker {
    left: -26px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero .glass-wrapper {
    padding: 28px 16px;
    border-radius: var(--radius-md);
  }

  .hero-name {
    font-size: 1.85rem;
    word-break: break-word;
  }

  .hero-title-dynamic {
    font-size: 1.1rem;
    min-height: 1.8rem;
  }

  .hero-subtext {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-ctas .btn {
    width: 100%;
    text-align: center;
  }

  .image-wrapper {
    width: 190px;
    height: 230px;
  }

  .section {
    padding: 45px 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .modal-content {
    padding: 25px 18px;
  }

  .contact-item {
    padding: 10px 14px;
  }

  .cta-box {
    padding: 35px 18px;
  }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
