/* -------------------------------------------------------------
   Futuristic Cyber-Green Theme Stylesheet
   ------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@400;600;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Color Palette - Monochrome Cosmic B&W */
  --bg-dark-raw: 0, 0, 0; /* Pure black space background */
  --bg-dark: rgb(var(--bg-dark-raw));
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  
  --primary-raw: 255, 255, 255; /* Cosmic White */
  --primary: rgb(var(--primary-raw));
  --primary-glow: rgba(var(--primary-raw), 0.4);
  --primary-subtle: rgba(var(--primary-raw), 0.08);
  --primary-dim: #d1d5db;

  --accent-raw: 200, 200, 200; /* Cosmic Silver / Soft gray */
  --accent: rgb(var(--accent-raw));
  --accent-glow: rgba(var(--accent-raw), 0.25);

  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(255, 255, 255, 0.45);

  /* Fonts */
  --font-title: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}
/* Trail Canvas for Liquid Pixelization Cursor Effect */
#trail-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}
/* Sci-fi Background Grid & Ambient Glows */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px) 0 0 / 40px 40px;
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(var(--primary-raw), 0.03) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(var(--accent-raw), 0.03) 0%, transparent 45%);
  z-index: -1;
  pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: rgba(var(--primary-raw), 0.2);
  border-radius: 4px;
  border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--primary-raw), 0.5);
  box-shadow: 0 0 8px var(--primary);
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  letter-spacing: 1px;
}

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

/* Glowing Elements */
.glow-text {
  text-shadow: 0 0 10px var(--primary-glow);
  color: var(--primary);
}

.glow-text-accent {
  text-shadow: 0 0 10px var(--accent-glow);
  color: var(--accent);
}

/* Navigation Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(var(--bg-dark-raw), 0.75);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-normal);
}

header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), 0 1px 0 0 rgba(var(--primary-raw), 0.1);
  background: rgba(var(--bg-dark-raw), 0.9);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}

.logo-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--primary-subtle);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

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

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  position: relative;
  padding: 0.25rem 0;
  color: var(--text-muted);
}

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

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  text-shadow: 0 0 8px var(--primary-glow);
}

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

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--primary);
  box-shadow: 0 0 5px var(--primary-glow);
  transition: var(--transition-fast);
}

/* Main Content & Section Styling */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  position: relative;
  overflow: hidden;
  padding: 8rem 0 4rem 0;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

section > *:not(.section-canvas) {
  position: relative;
  z-index: 1;
}

.section-divider {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: 0;
  transition: border-color 0.8s ease, box-shadow 0.8s ease;
}

.section-divider.glow {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.35);
}

.section-header {
  margin-bottom: 3.5rem;
  position: relative;
}

.section-number {
  font-family: var(--font-mono);
  color: var(--primary);
  font-size: 1rem;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  text-transform: uppercase;
  display: inline-block;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

/* 1. Hero & About Me Section (First Section) */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-welcome {
  font-family: var(--font-mono);
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: block;
}

.hero-name {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.hero-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-family: var(--font-title);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-bio {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-primary {
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: 0 0 15px rgba(var(--primary-raw), 0.1);
}

.btn-primary:hover {
  background: var(--primary);
  color: var(--bg-dark);
  box-shadow: 0 0 25px var(--primary-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

/* Avatar / Sci-fi Frame */
.avatar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.avatar-frame {
  width: 320px;
  height: 320px;
  border-radius: 8px;
  border: 2px solid var(--border-subtle);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.avatar-frame::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: conic-gradient(
    transparent, 
    var(--primary), 
    transparent 30%, 
    transparent 50%, 
    var(--accent), 
    transparent 80%
  );
  animation: rotateGlow 8s linear infinite;
  z-index: 1;
}

.avatar-frame::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: var(--bg-dark);
  border-radius: 6px;
  z-index: 2;
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.avatar-content {
  position: absolute;
  inset: 6px;
  z-index: 10;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.pixelated-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.2) 50%, transparent 50%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.2));
  background-size: 100% 4px, 4px 100%;
  pointer-events: none;
  z-index: 5;
  mix-blend-mode: overlay;
}

.avatar-mono-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: grayscale(100%);
  opacity: 0.6;
  pointer-events: auto;
}

.avatar-color-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  pointer-events: none;
  opacity: var(--reveal-opacity, 0);
  -webkit-mask-image: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), black 0%, black var(--reveal-radius, 0px), transparent var(--reveal-radius-fade, 0px));
  mask-image: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), black 0%, black var(--reveal-radius, 0px), transparent var(--reveal-radius-fade, 0px));
}

/* Education details inside About Me */
.education-container {
  margin-top: 4rem;
  width: 100%;
}

.education-title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.education-title svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.education-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
  transition: var(--transition-normal);
  backdrop-filter: blur(4px);
}

.education-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 
    0 10px 30px rgba(255, 255, 255, 0.08), 
    0 0 15px rgba(255, 255, 255, 0.15),
    inset 0 0 15px rgba(255, 255, 255, 0.05);
}

.education-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--primary);
  border-radius: 8px 0 0 8px;
  transition: var(--transition-normal);
}

.education-card:hover::before {
  height: 100%;
}

.edu-year {
  font-family: var(--font-mono);
  color: var(--primary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  background: var(--primary-subtle);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 255, 102, 0.2);
}

.edu-degree {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.edu-college {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.edu-details {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* 2. Internship Experience Section */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background: var(--border-subtle);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

/* timeline configuration for single experience item */
.timeline.single-item::after {
  left: 0;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline.single-item .timeline-item {
  width: 100%;
  left: 0;
  padding-left: 35px;
  padding-right: 0;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  right: -8px;
  background-color: var(--bg-dark);
  border: 2px solid var(--primary);
  top: 25px;
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 10px var(--primary);
  transition: var(--transition-fast);
}

.timeline.single-item .timeline-item::after {
  left: -8px !important;
  right: auto !important;
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-item.right::after {
  left: -8px;
}

.timeline-content {
  padding: 2rem;
  background-color: var(--bg-card);
  position: relative;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(4px);
  transition: var(--transition-normal);
}

.timeline-item:hover .timeline-content {
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 
    0 10px 30px rgba(255, 255, 255, 0.08), 
    0 0 15px rgba(255, 255, 255, 0.15),
    inset 0 0 15px rgba(255, 255, 255, 0.05);
}

.timeline-item:hover::after {
  background-color: var(--primary);
  box-shadow: 0 0 15px var(--primary);
}

.timeline-date {
  font-family: var(--font-mono);
  color: var(--primary);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: block;
}

.timeline-role {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.timeline-company {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  display: block;
}

.timeline-bullets {
  list-style-type: none;
}

.timeline-bullets li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.timeline-bullets li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-family: var(--font-mono);
}

/* 3. Projects Section */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 10px var(--primary-subtle);
  background: var(--primary-subtle);
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(4px);
}

.project-card > *:not(.pixel-card-canvas) {
  position: relative;
  z-index: 2;
}

.pixel-card-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.project-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 
    0 10px 30px rgba(255, 255, 255, 0.08), 
    0 0 15px rgba(255, 255, 255, 0.15),
    inset 0 0 15px rgba(255, 255, 255, 0.05);
}

.project-card.hide {
  display: none;
}

.project-image-placeholder {
  height: 200px;
  background: linear-gradient(135deg, #121212 0%, #000000 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
}

.project-card:hover .project-image-placeholder {
  border-color: var(--primary);
}

.project-image-placeholder::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px) 0 0 / 20px 20px;
}

.project-icon {
  width: 60px;
  height: 60px;
  color: var(--primary);
  filter: drop-shadow(0 0 8px var(--primary-glow));
  z-index: 2;
  transition: var(--transition-normal);
}

.project-card:hover .project-icon {
  transform: scale(1.1) rotate(5deg);
  color: var(--accent);
  filter: drop-shadow(0 0 10px var(--accent-glow));
}

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

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(0, 255, 204, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 255, 204, 0.15);
}

.project-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-links {
  display: flex;
  gap: 1.25rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.project-link:hover {
  color: var(--primary);
  text-shadow: 0 0 8px var(--primary-glow);
}

.project-link svg {
  width: 18px;
  height: 18px;
}

/* 4. Skills Section */
.skills-intro {
  max-width: 600px;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.skills-category {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 2rem;
  backdrop-filter: blur(4px);
  transition: var(--transition-normal);
}

.skills-category:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 
    0 10px 30px rgba(255, 255, 255, 0.08), 
    0 0 15px rgba(255, 255, 255, 0.15),
    inset 0 0 15px rgba(255, 255, 255, 0.05);
}

.category-title {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(0, 255, 204, 0.15);
  padding-bottom: 0.5rem;
  text-shadow: 0 0 5px var(--accent-glow);
}

.category-title svg {
  width: 20px;
  height: 20px;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.skill-name {
  color: var(--text-main);
  font-weight: 500;
}

.skill-percent {
  color: var(--primary);
}

.skill-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.skill-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 0 8px var(--primary);
  width: 0; /* Animated dynamically by JS */
  border-radius: 3px;
  transition: width 1.5s cubic-bezier(0.1, 0.8, 0.25, 1);
}

/* 5. Contact Section */
.contact-message {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.contact-method-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem;
  border-radius: 8px;
  backdrop-filter: blur(4px);
  transition: var(--transition-fast);
}

.contact-method-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 
    0 10px 30px rgba(255, 255, 255, 0.08), 
    0 0 15px rgba(255, 255, 255, 0.15),
    inset 0 0 15px rgba(255, 255, 255, 0.05);
}

.contact-icon-wrapper {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-method-card:hover .contact-icon-wrapper {
  background: var(--primary);
  color: var(--bg-dark);
  box-shadow: 0 0 15px var(--primary);
}

.contact-icon-wrapper svg {
  width: 22px;
  height: 22px;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
}

.contact-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Footer Section */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
  text-align: center;
  background: rgba(3, 7, 18, 0.8);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-credits span {
  color: var(--primary);
}

/* Scroll reveal items initial states */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Responsive Media Queries */
@media (max-width: 992px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-welcome {
    justify-content: center;
  }

  .hero-title {
    justify-content: center;
  }

  .hero-bio {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .avatar-container {
    order: -1;
  }

  .education-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 6rem 0 3rem 0;
  }

  .hero-name {
    font-size: 2.75rem;
  }

  .hero-title {
    font-size: 1.4rem;
  }

  .nav-menu {
    position: fixed;
    top: 73px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 73px);
    background: rgba(var(--bg-dark-raw), 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 4rem 2rem;
    gap: 2.5rem;
    border-top: 1px solid var(--border-subtle);
    transition: var(--transition-normal);
    z-index: 99;
  }

  .nav-menu.open {
    left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  /* Timeline adjustments for mobile */
  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item.left, .timeline-item.right {
    left: 0;
  }

  .timeline-item::after {
    left: 22px !important;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* -------------------------------------------------------------
   Lanyard & Contact Layout Styles (Cosmic Black & White Theme)
   ------------------------------------------------------------- */

/* Two-column layout style for contact section */
.contact-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: flex-start;
  text-align: left;
  max-width: 1000px;
  margin: 0 auto;
}

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

/* Lanyard Container */
.lanyard-wrapper {
  position: relative;
  width: 280px;
  margin: 0 auto;
  perspective: 1000px; /* 3D tilt perspective */
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 100px; /* space for hanging strap */
}

/* Lanyard Strap / Ribbon */
.lanyard-strap {
  position: absolute;
  top: -100px;
  width: 14px;
  height: 220px;
  background: linear-gradient(to right, #111 0%, #333 50%, #111 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  z-index: 1;
  transform-origin: top center;
  pointer-events: none;
}

/* Metal Clip / Hook */
.lanyard-clip {
  position: absolute;
  top: 100px;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #bbb 0%, #555 100%);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  pointer-events: none;
}

/* The physical card badge */
.lanyard-card {
  width: 280px;
  height: 400px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.65), 
    0 0 15px rgba(255, 255, 255, 0.05),
    inset 0 0 12px rgba(255, 255, 255, 0.05);
  z-index: 3;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  cursor: grab;
  transform-origin: top center;
  /* Default slow sway animation when mouse is not active */
  animation: lanyardSway 7s ease-in-out infinite;
}

.lanyard-card:active {
  cursor: grabbing;
}

.lanyard-card-inner {
  height: 100%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Cosmic dots/stars background pattern for lanyard card */
.lanyard-card-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 150px 75px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 60px 240px, #fff, transparent),
    radial-gradient(1px 1px at 220px 320px, rgba(255,255,255,0.8), transparent);
  opacity: 0.35;
  pointer-events: none;
}

/* Lanyard Card Header */
.lanyard-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
}

.lanyard-badge-title {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 2px;
}

.lanyard-header-dots {
  display: flex;
  gap: 4px;
}

.lanyard-header-dots span {
  width: 4px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.lanyard-header-dots span:nth-child(1) {
  background-color: rgba(255, 255, 255, 0.6);
}

/* Avatar on Lanyard */
.lanyard-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.08);
  margin-top: 10px;
  background: #000;
}

.lanyard-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(110%);
}

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

/* Details */
.lanyard-details {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lanyard-name {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin: 6px 0 2px 0;
  letter-spacing: 0.5px;
}

.lanyard-role {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.lanyard-divider {
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 4px auto;
  opacity: 0.3;
}

.lanyard-tagline {
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 6px 0;
  font-style: italic;
  max-width: 200px;
}

.lanyard-constellation {
  width: 100%;
  height: 25px;
  margin: 2px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.minimal-constellation {
  width: 70px;
  height: 20px;
  opacity: 0.45;
}

.lanyard-footer {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 6px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-dim);
}

/* Sway keyframes */
@keyframes lanyardSway {
  0% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
  100% { transform: rotate(-2deg); }
}

@keyframes lanyardSwayMobile {
  0% { transform: rotate(-1deg); }
  50% { transform: rotate(1deg); }
  100% { transform: rotate(-1deg); }
}

/* Media Query tweaks for Lanyard responsiveness */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 3rem;
  }
  
  .lanyard-wrapper {
    padding-top: 50px;
  }
  
  .lanyard-strap {
    height: 160px;
    top: -90px;
  }
  
  .lanyard-clip {
    top: 60px;
  }
  
  .lanyard-card {
    animation: lanyardSwayMobile 8s ease-in-out infinite;
  }
}
