/* Modern Web CSS for Abhishek M. Sharma's Portfolio */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Light Mode (Default) */
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-sidebar: #ffffff;
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent: #2563eb;         /* Vibrant Cobalt Blue */
  --accent-secondary: #0d9488; /* Professional Teal */
  --accent-light: #eff6ff;     /* Soft Blue Tint */
  --border-color: #e2e8f0;
  --card-border: rgba(226, 232, 240, 0.8);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --sidebar-width: 280px;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-theme {
  /* Dark Mode Toggle - Rich Charcoal Grey Theme */
  --bg-primary: #121214;
  --bg-secondary: #1a1a1e;
  --bg-sidebar: #161618;
  --bg-card: #222225;
  --text-primary: #f4f4f5;
  --text-secondary: #d4d4d8;
  --text-muted: #71717a;
  --accent: #3b82f6;         /* Vibrant Blue */
  --accent-secondary: #14b8a6; /* Vibrant Teal */
  --accent-light: rgba(59, 130, 246, 0.12);
  --border-color: #2a2a2e;
  --card-border: rgba(255, 255, 255, 0.06);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
}

/* Dark Mode Button Overrides */
body.dark-theme .btn-primary {
  background: #f4f4f5;
  color: #121214;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

body.dark-theme .btn-primary:hover {
  background: #ffffff;
  color: #121214;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
}

body.dark-theme .project-btn:hover {
  background-color: #f4f4f5;
  color: #121214;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: var(--transition);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

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

a:hover {
  color: var(--accent-secondary);
}

/* Page Layout */
#wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
  width: 100%;
}

/* Sidebar Navigation */
#sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 1.5rem 2.5rem 1.5rem;
  z-index: 100;
  transition: var(--transition);
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.sidebar-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  padding-left: 1rem;
}

.sidebar-logo .logo-dot {
  color: var(--accent);
}

body.dark-theme .sidebar-logo .logo-dot {
  color: var(--accent-secondary);
}

.avatar-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: var(--shadow-md);
  margin-bottom: 1rem;
  transition: var(--transition);
  margin-left: auto;
  margin-right: auto;
}

.avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#sidebar h1 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}

#sidebar .subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

#nav {
  width: 100%;
  margin-top: 1.5rem;
}

#nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

#nav a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.925rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

#nav a .icon {
  margin-right: 0.75rem;
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

#nav a:hover {
  color: var(--text-primary);
  background-color: var(--bg-secondary);
}

#nav a.active {
  color: var(--accent);
  background-color: var(--accent-light);
  font-weight: 700;
}

body.dark-theme #nav a.active {
  color: var(--accent-secondary);
  background-color: rgba(20, 184, 166, 0.1);
}

.sidebar-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}

/* Social Icons */
.icons {
  display: flex;
  gap: 0.85rem;
  list-style: none;
}

.icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.icons a:hover {
  background-color: var(--accent);
  color: #ffffff;
  transform: translateY(-3px);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.8rem;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* Main Content Area */
#main {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 0;
  min-width: 0;
  transition: var(--transition);
}

/* Mobile Sticky Header */
#mobile-header {
  display: none;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.25rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 101;
  box-shadow: var(--shadow-sm);
}

body.dark-theme #mobile-header {
  background-color: rgba(11, 15, 25, 0.95);
}

.header-main-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.mobile-social-bar {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 0.5rem;
}

.mobile-social-bar .icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.mobile-social-bar .icons a {
  color: var(--text-secondary);
  font-size: 1.15rem;
  transition: var(--transition);
}

.mobile-social-bar .icons a:hover {
  color: var(--accent);
}

#mobile-header .logo {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hamburger-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.35rem;
  cursor: pointer;
}

/* Overlay Navigation for Mobile */
#mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(10px);
  z-index: 200;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.dark-theme #mobile-nav-overlay {
  background-color: rgba(11, 15, 25, 0.96);
}

#mobile-nav-overlay.open {
  display: flex;
  opacity: 1;
}

.close-nav-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2.25rem;
  cursor: pointer;
}

#mobile-nav-overlay ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#mobile-nav-overlay a {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e2e8f0;
}

#mobile-nav-overlay a:hover {
  color: var(--accent);
}

/* Sections Styling */
section {
  padding: 6rem 4rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
  border-bottom: none;
}

.container {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

/* Section Typography & Titles */
section h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  color: var(--text-primary);
}

section h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 45px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  border-radius: 2px;
}

/* Intro Cover Section (Split Hero Layout - Space Optimized) */
#top {
  position: relative;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  padding: 8rem 4rem;
  min-height: 70vh;
}

body.dark-theme #top {
  background: linear-gradient(135deg, #121214 0%, #1a1a20 100%);
}

#top .container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--accent);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-avatar:hover {
  transform: scale(1.05);
}

body.dark-theme .hero-avatar {
  border-color: var(--accent-secondary);
}

#top h2.alt {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

body.dark-theme #top h2.alt {
  background: linear-gradient(135deg, #ffffff 40%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#top h2.alt::after {
  display: none;
}

.hero-lead {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  line-height: 1.4;
}

.hero-lead .highlight-primary {
  color: var(--accent);
  font-weight: 700;
}

.hero-lead .highlight-secondary {
  color: var(--accent);
  font-weight: 700;
}

.hero-location {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.hero-location i {
  color: var(--accent);
}

/* Tech Capsule Bar */
.tech-capsules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
}

.tech-capsule {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.95rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tech-capsule i {
  color: var(--accent-secondary);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #1e40af, #0ea5e9);
  color: #ffffff;
  box-shadow: 0 4px 14px 0 rgba(30, 64, 175, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(30, 64, 175, 0.3);
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}

/* Glassmorphic Profile Card (Hero Right - Sized & Centered) */
.hero-profile-card {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-lg);
  padding: 3rem 2.25rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
  max-width: 350px;
  width: 100%;
  margin-left: auto;
}

body.dark-theme .hero-profile-card {
  background-color: rgba(30, 41, 59, 0.6);
  border-color: rgba(51, 65, 85, 0.5);
}

.hero-profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.1), 0 15px 15px -5px rgba(0, 0, 0, 0.05);
}

.card-graphic-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.hero-profile-card:hover .card-graphic-icon {
  transform: rotate(10deg) scale(1.05);
  background-color: var(--accent);
  color: #ffffff;
}

.card-divider {
  width: 100%;
  height: 1px;
  background-color: var(--border-color);
  margin: 1.5rem 0;
}

.card-socials {
  width: 100%;
}

.card-socials .icons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.card-socials .icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.card-socials .icons a:hover {
  background-color: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
}

.hero-profile-card h3 {
  font-size: 1.45rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.hero-profile-card .card-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* About Section */
#about p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.about-highlight {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  margin-bottom: 3rem;
  box-shadow: var(--shadow-sm);
}

.about-highlight h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

/* Professional Experience & Education Grid Rows */
.resume-section-block {
  margin-top: 2rem;
  width: 100%;
}

.resume-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.resume-section-grid {
  display: grid;
  gap: 1.5rem;
  width: 100%;
}

.resume-section-grid.two-cols {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 3.5rem;
}

.resume-section-grid.three-cols {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 3.5rem;
}

.resume-section-grid.four-cols {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 3.5rem;
}

.resume-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              border-color 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.resume-card:hover {
  transform: translateY(-4px);
  border-color: var(--category-color);
  box-shadow: 0 10px 25px rgba(30, 64, 175, 0.08);
}

body.dark-theme .resume-card:hover {
  box-shadow: 0 10px 25px rgba(20, 184, 166, 0.06);
}

/* Category Styles */
.resume-card.full-time {
  --category-color: var(--accent);
  --category-color-light: var(--accent-light);
}

.resume-card.internship {
  --category-color: var(--accent-secondary);
  --category-color-light: rgba(13, 148, 136, 0.1);
}

.resume-card.education {
  --category-color: #f59e0b;
  --category-color-light: rgba(245, 158, 11, 0.1);
}

/* Card Inner Elements */
.resume-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  gap: 0.75rem;
}

.resume-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  flex-grow: 1;
}

.resume-card-date {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--category-color);
  background-color: var(--bg-secondary);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  flex-shrink: 0;
  white-space: nowrap;
  margin-top: 0.15rem;
}

.resume-card-org {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.resume-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Current block highlight style */
.resume-card.current {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(30, 64, 175, 0.06);
}

body.dark-theme .resume-card.current {
  border-color: var(--accent-secondary);
  box-shadow: 0 4px 20px rgba(20, 184, 166, 0.06);
}

.resume-card.current:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(30, 64, 175, 0.12);
}

body.dark-theme .resume-card.current:hover {
  box-shadow: 0 12px 30px rgba(20, 184, 166, 0.12);
}

.resume-card.current .resume-card-date {
  background-color: var(--accent);
  color: #ffffff;
}

body.dark-theme .resume-card.current .resume-card-date {
  background-color: var(--accent-secondary);
  color: var(--bg-sidebar);
}

.resume-badge {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background-color: var(--category-color-light);
  color: var(--category-color);
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.25rem;
}

body.dark-theme .resume-badge.full-time {
  background-color: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
}

/* Media Queries for responsive card columns */
@media screen and (max-width: 980px) {
  .resume-section-grid.three-cols {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
  
  .resume-section-grid.two-cols,
  .resume-section-grid.four-cols {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media screen and (max-width: 600px) {
  .resume-section-grid.three-cols,
  .resume-section-grid.two-cols,
  .resume-section-grid.four-cols {
    grid-template-columns: 1fr;
  }
}

/* Verbose Q&A Styling (Pic 3 Fix) */
.verbose-heading {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.verbose-heading span {
  font-style: italic;
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-muted);
}

.qa-block {
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

body.dark-theme .qa-block {
  background-color: var(--bg-card);
}

.qa-block:hover {
  transform: translateX(4px);
  border-color: var(--accent-light);
}

.qa-question {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qa-question::before {
  content: "Q:";
  font-weight: 800;
  color: var(--accent-secondary);
}

.qa-answer {
  color: var(--text-secondary);
  font-size: 1.025rem;
  line-height: 1.6;
}

/* Original Skills Grid Layout (Pic 4 Keep Content Intact) */
.feature-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  list-style: none;
  margin-top: 1.5rem;
}

.feature-icons li {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-icons li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  opacity: 0;
  transition: var(--transition);
}

.feature-icons li:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}

.feature-icons li:hover::before {
  opacity: 1;
}

.skill-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background-color: var(--bg-secondary);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-icons h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature-icons li span {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.feature-icons li span a {
  font-weight: 600;
  text-decoration: underline;
}

/* Projects Section */
.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.projects-header span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.project-card {
  background-color: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}

.project-img-wrapper {
  height: 160px;
  background-color: var(--bg-secondary);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-img-wrapper img {
  transform: scale(1.08);
}

.project-img-wrapper.placeholder-img {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(30, 64, 175, 0.05) 100%);
  border-bottom: 1px solid var(--border-color);
}

body.dark-theme .project-img-wrapper.placeholder-img {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(20, 184, 166, 0.05) 100%);
}

.placeholder-pattern {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.placeholder-pattern i {
  font-size: 2.5rem;
  color: #64748b; /* slate grey */
  opacity: 0.7;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              color 0.3s ease,
              opacity 0.3s ease;
}

body.dark-theme .placeholder-pattern i {
  color: #cbd5e1; /* lighter grey for dark mode */
  opacity: 0.75;
}

.project-card:hover .placeholder-pattern i {
  transform: scale(1.15) rotate(5deg);
  opacity: 0.95;
  color: #475569;
}

body.dark-theme .project-card:hover .placeholder-pattern i {
  color: #f1f5f9;
}

/* Color gradients for full banner header rectangles */
.project-img-wrapper.placeholder-img.bg-red {
  background: linear-gradient(135deg, #fee2e2 0%, #fca5a5 100%);
}

body.dark-theme .project-img-wrapper.placeholder-img.bg-red {
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
}

.project-img-wrapper.placeholder-img.bg-yellow {
  background: linear-gradient(135deg, #fef9c3 0%, #fde047 100%);
}

body.dark-theme .project-img-wrapper.placeholder-img.bg-yellow {
  background: linear-gradient(135deg, #713f12 0%, #854d0e 100%);
}

.project-img-wrapper.placeholder-img.bg-linkedin {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

body.dark-theme .project-img-wrapper.placeholder-img.bg-linkedin {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

.project-img-wrapper.placeholder-img.bg-green {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

body.dark-theme .project-img-wrapper.placeholder-img.bg-green {
  background: linear-gradient(135deg, #14532d 0%, #166534 100%);
}

.project-img-wrapper.placeholder-img.bg-black {
  background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
}

body.dark-theme .project-img-wrapper.placeholder-img.bg-black {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

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

.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.project-tag {
  background-color: var(--bg-secondary);
  color: var(--accent);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.project-date {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-left: auto;
  align-self: center;
  font-weight: 500;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  flex-grow: 1;
  line-height: 1.5;
}

.project-links {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  transition: var(--transition);
}

.project-btn:hover {
  background-color: var(--accent);
  color: #ffffff;
}

/* Blog Section */
.blog-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.blog-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 850px;
}

.blog-articles-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-article-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-secondary);
  font-weight: 600;
  transition: var(--transition);
}

.blog-article-item:hover {
  transform: translateX(5px);
  background-color: var(--accent-light);
  color: var(--accent);
}

body.dark-theme .blog-article-item:hover {
  background-color: var(--accent-light);
  color: #ffffff;
}

.blog-article-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.blog-article-item .academic-title {
  color: var(--text-primary) !important;
  font-size: 0.95rem !important;
  line-height: 1.4;
  white-space: normal; /* allow title wrapping */
}

.blog-article-item .academic-title i {
  color: var(--accent);
  margin-right: 0.35rem;
  font-size: 1rem;
  vertical-align: middle;
}

body.dark-theme .blog-article-item .academic-title i {
  color: var(--accent-secondary);
}

.blog-article-item .academic-badge {
  font-size: 0.6rem;
  background-color: rgba(30, 64, 175, 0.08);
  color: var(--accent);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.4rem;
}

body.dark-theme .blog-article-item .academic-badge {
  background-color: rgba(20, 184, 166, 0.15);
  color: var(--accent-secondary);
}

/* Contact Section */
.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.contact-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-text {
  min-width: 0;
  flex-grow: 1;
}

.contact-info-text h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.contact-info-text p {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.05rem;
  word-break: break-all;
  overflow-wrap: break-word;
}

.contact-socials-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  gap: 1rem;
}

.contact-socials-box h3 {
  font-size: 1.25rem;
}

.contact-socials-box .icons {
  justify-content: center;
  margin-top: 0.5rem;
}

/* Footer Section */
#footer {
  margin-left: var(--sidebar-width);
  padding: 2rem 4rem;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
}

/* Entrance Animations */
.scroll-reveal {
  opacity: 1;
  transform: none;
}

/* Responsive Breakpoints */
@media screen and (max-width: 980px) {
  #wrapper {
    flex-direction: column;
  }

  #sidebar {
    display: none;
  }
  
  #mobile-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  
  #main {
    margin-left: 0;
  }
  
  #footer {
    margin-left: 0;
    padding: 2rem 1.5rem;
  }
  
  section {
    padding: 4rem 1.5rem;
    min-height: auto;
  }
  
  #top {
    padding: 8.5rem 1.5rem 4rem 1.5rem;
    min-height: auto;
  }

  .hero-content {
    align-items: flex-start;
    text-align: left;
    max-width: 100%;
    margin: 0;
  }

  .hero-location {
    justify-content: flex-start;
  }

  .cta-buttons {
    justify-content: flex-start;
  }
  
  .hero-avatar {
    width: 100px;
    height: 100px;
    border-width: 3.5px;
    margin-bottom: 0.85rem;
    box-shadow: var(--shadow-md);
  }
  
  #top h2.alt {
    font-size: 2.5rem;
  }

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

  .skills-board {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  #top h2.alt {
    font-size: 2.25rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  section h2 {
    font-size: 1.75rem;
  }
}

/* Card Front/Console Swap Anim */
.card-front-content, .card-console-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.3s ease;
}

/* Console Styling */
.card-console-content {
  background-color: #0b0f19;
  border-radius: var(--radius-md);
  border: 1px solid #1e293b;
  width: 100%;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
  font-family: 'Courier New', Courier, monospace;
  overflow: hidden;
  align-items: stretch;
}

body.dark-theme .card-console-content {
  background-color: #020617;
  border-color: #334155;
}

.console-header {
  background-color: #1e293b;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border-bottom: 1px solid #334155;
  position: relative;
}

.console-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.console-header .dot.red { background-color: #ef4444; }
.console-header .dot.yellow { background-color: #eab308; }
.console-header .dot.green { background-color: #22c55e; }

.console-header .console-title {
  color: #94a3b8;
  font-size: 0.75rem;
  margin-left: 0.5rem;
  font-weight: 600;
}

.console-close-btn {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  margin-left: auto;
  padding: 0;
  display: flex;
  align-items: center;
  transition: transform 0.2s;
}

.console-close-btn:hover {
  transform: scale(1.2);
}

.console-body {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
  min-height: 200px;
}

.console-output {
  color: #22c55e;
  font-size: 0.75rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-all;
  flex-grow: 1;
  margin-bottom: 0.75rem;
}

.console-prompt {
  color: #38bdf8;
  font-weight: bold;
}

.console-sys {
  color: #94a3b8;
}

.console-cursor {
  display: inline-block;
  width: 6px;
  height: 12px;
  background-color: #22c55e;
  margin-left: 2px;
  animation: console-blink 1s step-end infinite;
  vertical-align: middle;
}

@keyframes console-blink {
  from, to { background-color: transparent }
  50% { background-color: #22c55e }
}

.console-actions {
  display: flex;
  gap: 0.35rem;
  border-top: 1px solid #1e293b;
  padding-top: 0.65rem;
  flex-wrap: wrap;
}

.console-cmd-btn {
  background-color: #1e293b;
  border: 1px solid #334155;
  color: #38bdf8;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.console-cmd-btn:hover {
  background-color: #22c55e;
  color: #0b0f19;
  border-color: #22c55e;
}
