/* ==========================================================================
   PERSONAL PORTFOLIO - K. DHANUSH (236M1A0564)
   BVC College of Engineering | OTP Technologies & APSCHE Internship Review
   Tech Stack: Semantic HTML5, CSS3 (Box Model, Flexbox, Grid), JavaScript, Bootstrap principles
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & DESIGN SYSTEM TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Light Theme (Default) */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.88);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --text-on-accent: #ffffff;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-subtle: #dbeafe;
  --primary-rgb: 37, 99, 235;

  --secondary: #0284c7;
  --secondary-hover: #0369a1;

  --accent-gold: #f59e0b;
  --accent-gold-dark: #d97706;
  --accent-gold-subtle: #fef3c7;

  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-red: #ef4444;

  --border-color: #e2e8f0;
  --border-focus: #3b82f6;

  /* Typography */
  --font-family-base: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-mono: 'Fira Code', Menlo, Monaco, Consolas, monospace;

  /* Spacing (Box Model) */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2.5rem;
  --spacing-2xl: 4rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Elevation & Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.2);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Layout */
  --container-max-width: 1200px;
  --header-height: 72px;
}

/* Dark Theme Overrides */
[data-theme="dark"] {
  --bg-primary: #0a0f1d;
  --bg-surface: #111827;
  --bg-surface-alt: #1a2236;
  --bg-card: #141c2e;
  --bg-card-hover: #19243b;
  --bg-header: rgba(10, 15, 29, 0.88);

  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-light: #94a3b8;

  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-subtle: rgba(59, 130, 246, 0.15);
  --primary-rgb: 59, 130, 246;

  --secondary: #38bdf8;
  --secondary-hover: #7dd3fc;

  --border-color: #243049;
  --border-focus: #60a5fa;

  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 8px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 20px 30px -5px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.3);
}

/* --------------------------------------------------------------------------
   2. CSS RESET & BOX MODEL FOUNDATION (Slide 06)
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-size-adjust: 100%;
}

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

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

a:hover {
  color: var(--primary-hover);
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

code {
  font-family: var(--font-family-mono);
  font-size: 0.88em;
  background: var(--bg-surface-alt);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--primary);
  border: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   3. REUSABLE CONTAINER & LAYOUT HELPERS
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}

.section {
  padding-top: var(--spacing-2xl);
  padding-bottom: var(--spacing-2xl);
  position: relative;
}

.bg-alt {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--spacing-2xl) auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-sm);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-bottom: var(--spacing-sm);
  line-height: 1.25;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.link-highlight {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   4. BUTTONS & UI COMPONENTS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.4);
}

.btn-secondary {
  background-color: var(--bg-surface-alt);
  color: var(--text-main);
  border-color: var(--border-color);
}

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

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-subtle);
  color: var(--primary);
  transform: translateY(-2px);
}

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

.btn-outline-github:hover {
  background: var(--bg-surface-alt);
  color: var(--primary);
  border-color: var(--primary);
}

.btn-live {
  background-color: #10b981;
  color: #ffffff;
}

.btn-live:hover {
  background-color: #059669;
  color: #ffffff;
}

.icon-btn {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   5. HEADER & NAVBAR (FLEXBOX)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

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

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-main);
}

.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.35);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.2;
}

.logo-role {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Nav List (Flexbox) */
.main-nav {
  display: flex;
  align-items: center;
}

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

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2.5px;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

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

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Toggle Icons */
[data-theme="dark"] .dark-icon {
  display: none;
}
[data-theme="dark"] .light-icon {
  display: inline-block;
  color: var(--accent-gold);
}
:root:not([data-theme="dark"]) .dark-icon {
  display: inline-block;
  color: var(--primary);
}
:root:not([data-theme="dark"]) .light-icon {
  display: none;
}

/* Hamburger menu button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 40px;
  height: 40px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.nav-toggle.open .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.open .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. 01 HOME MODULE (HERO SECTION)
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: calc(var(--spacing-2xl) + 1rem);
  padding-bottom: var(--spacing-2xl);
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
  margin-bottom: var(--spacing-2xl);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-md);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.highlight-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
}

.bullet {
  color: var(--accent-gold);
  margin: 0 0.35rem;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
}

.hero-academic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
  font-size: 0.88rem;
  box-shadow: var(--shadow-sm);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
}

.meta-item i {
  color: var(--primary);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: var(--spacing-lg);
}

.hero-tech-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-top: var(--spacing-sm);
}

.pill-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-light);
  margin-right: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.tech-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

/* Hero Visual / Avatar Card */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-card-wrapper {
  position: relative;
}

.avatar-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.25) 0%, rgba(6, 182, 212, 0.1) 70%, transparent 100%);
  filter: blur(35px);
  z-index: 1;
}

.avatar-card {
  position: relative;
  z-index: 2;
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
}

.profile-img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  animation: float 4s ease-in-out infinite;
}

.badge-top-left {
  top: -10px;
  left: -25px;
}

.badge-bottom-right {
  bottom: -15px;
  right: -20px;
  animation-delay: -2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.floating-badge i {
  font-size: 1.35rem;
  color: var(--primary);
}

.badge-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.badge-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-light);
}

/* Quick Metrics Strip */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.metric-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 1.5rem;
}

.metric-number {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.metric-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   7. 02 ABOUT MODULE (GRID LAYOUT)
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.about-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  transition: all var(--transition-normal);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.card-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 1.6rem;
  margin-bottom: var(--spacing-md);
}

.bvc-crest {
  width: 44px;
  height: 44px;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.card-subtitle {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--spacing-md);
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: var(--spacing-md);
}

.academic-details-list {
  list-style: none;
  font-size: 0.88rem;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: var(--spacing-md);
}

.academic-details-list li {
  padding: 0.35rem 0;
  color: var(--text-muted);
}

.academic-details-list strong {
  color: var(--text-main);
}

.cert-info-box {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: auto;
  margin-bottom: var(--spacing-md);
  font-size: 0.85rem;
}

.cert-row {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  border-bottom: 1px dashed var(--border-color);
}

.cert-row:last-child {
  border-bottom: none;
}

.cert-row span {
  color: var(--text-light);
}

.cert-row strong {
  color: var(--text-main);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: var(--spacing-xs);
}

.objectives-pill-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: auto;
}

.obj-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  background: var(--bg-surface-alt);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}

.obj-pill i {
  color: var(--accent-green);
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   8. 03 SKILLS MODULE (GRID & CARDS)
   -------------------------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  transition: all var(--transition-normal);
}

.skill-category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--spacing-md);
}

.cat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  font-size: 1.4rem;
}

.html-icon { background: #fee2e2; color: #ef4444; }
.css-icon  { background: #e0f2fe; color: #0284c7; }
.js-icon   { background: #fef3c7; color: #d97706; }
.bs-icon   { background: #ede9fe; color: #7c3aed; }
.git-icon  { background: #ffedd5; color: #ea580c; }
.node-icon { background: #dcfce7; color: #16a34a; }

.cat-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.cat-desc {
  font-size: 0.78rem;
  color: var(--text-light);
}

.cat-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
}

.skill-tag {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   9. 04 PROJECTS MODULE (FILTERABLE GRID)
   -------------------------------------------------------------------------- */
.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: var(--spacing-2xl);
}

.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3);
}

.count-badge {
  font-size: 0.8rem;
  opacity: 0.85;
}

/* Projects Grid (CSS Grid) */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
  margin-bottom: var(--spacing-2xl);
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
  min-width: 0;
  transition: all var(--transition-normal);
}

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

.card-badge-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
}

.badge-featured {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--accent-gold-subtle);
  color: var(--accent-gold-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.badge-github {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #d1fae5;
  color: #065f46;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.badge-tech {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  background: var(--bg-surface-alt);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.project-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: var(--spacing-sm);
}

.project-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 1.35rem;
}

.project-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.project-summary {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.project-meta-box {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-bottom: var(--spacing-md);
  font-size: 0.82rem;
}

.meta-row {
  padding: 0.2rem 0;
  color: var(--text-muted);
}

.meta-row strong {
  color: var(--text-main);
}

.project-tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: var(--spacing-lg);
  margin-top: auto;
}

.project-tech-badges .tag {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
}

.project-card-actions {
  display: flex;
  gap: 0.75rem;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
}

.project-github-cta {
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.project-github-cta p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
}

/* --------------------------------------------------------------------------
   10. 05 INTERNSHIP REVIEW MODULE (PRESENTATION SLIDES)
   -------------------------------------------------------------------------- */
.cert-banner-wrapper {
  margin-bottom: var(--spacing-2xl);
}

.cert-banner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.cert-img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
}

.cert-img:hover {
  transform: scale(1.02);
}

.cert-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-sm);
}

.cert-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.cert-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
}

.cert-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: var(--spacing-md);
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
}

.spec-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.cert-seal-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cert-seal-text i {
  color: var(--accent-gold);
}

/* Timeline Track (Slide 09) */
.sub-section {
  margin-bottom: var(--spacing-2xl);
}

.sub-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sub-section-title i {
  color: var(--primary);
}

.sub-section-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-xl);
}

.timeline-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}

.timeline-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-fast);
  height: 100%;
  min-width: 0;
}

.timeline-item:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.timeline-header-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.timeline-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3);
}

.timeline-header-text {
  display: flex;
  flex-direction: column;
}

.timeline-week {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.timeline-content {
  margin-top: 0.25rem;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  word-break: break-word;
}

/* Challenges Grid (Slide 10) */
.challenges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.challenge-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.challenge-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.challenge-badge-problem {
  display: inline-block;
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-sm);
}

.challenge-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.challenge-problem {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.55;
}

.challenge-solution {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
  border-left: 2.5px solid var(--accent-green);
  padding-left: 0.65rem;
}

/* Takeaways Box (Slide 11) */
.takeaways-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.takeaway-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--spacing-lg);
}

.takeaway-header i {
  font-size: 1.75rem;
  color: var(--accent-gold);
}

.takeaway-header h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
}

.takeaways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: var(--spacing-lg);
}

.takeaway-col h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.45rem;
}

.takeaway-col p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.takeaway-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.takeaway-note i {
  font-size: 1.15rem;
  color: var(--primary);
  margin-top: 0.1rem;
}

/* --------------------------------------------------------------------------
   11. 06 CONTACT MODULE & INTERACTIVE FORM (Slide 07)
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
}

.contact-info-panel,
.contact-form-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.panel-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.panel-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}

.contact-items-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: var(--spacing-xl);
}

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

.contact-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--primary-subtle);
  color: var(--primary);
  border-radius: var(--radius-md);
  font-size: 1.25rem;
}

.contact-item-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
}

.contact-item-val {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Slide 07 Flow Card */
.slide07-flowbox {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.flowbox-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.flowbox-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-family: var(--font-family-mono);
}

.f-step {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
}

.f-arrow {
  color: var(--primary);
  font-weight: bold;
}

/* Form Controls */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.required {
  color: var(--accent-red);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-light);
  font-size: 1.1rem;
  pointer-events: none;
}

.textarea-wrapper .input-icon {
  top: 1rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.85rem;
  font-size: 0.94rem;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  background: var(--bg-surface);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.form-control.is-invalid {
  border-color: var(--accent-red);
  background-color: rgba(239, 68, 68, 0.05);
}

.form-control.is-valid {
  border-color: var(--accent-green);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.field-error {
  display: block;
  font-size: 0.78rem;
  color: var(--accent-red);
  margin-top: 0.35rem;
  min-height: 1.1rem;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.form-disclaimer {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.5;
  background: var(--bg-surface-alt);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent-gold);
}

.form-disclaimer i {
  color: var(--accent-gold-dark);
  margin-right: 0.25rem;
}

/* Status Message Box (DOM Updated) */
.status-message {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  animation: fadeIn 0.3s ease;
}

.status-message.success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.status-message.error {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   12. PROJECT DETAIL MODAL
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--accent-red);
  color: #ffffff;
  border-color: var(--accent-red);
}

.modal-body h3 {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.modal-meta {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.modal-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.modal-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.modal-body ul {
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.modal-body ul li {
  margin-bottom: 0.35rem;
}

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding-top: var(--spacing-2xl);
  padding-bottom: var(--spacing-xl);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: var(--spacing-2xl);
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: var(--spacing-md);
  max-width: 320px;
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: var(--spacing-md);
  position: relative;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav-list a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-nav-list a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.cred-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.cred-text strong {
  color: var(--text-main);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
  font-size: 0.88rem;
  color: var(--text-light);
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-alt);
  color: var(--text-main);
  font-size: 1.15rem;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.footer-social-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.back-to-top-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.back-to-top-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   14. RESPONSIVE MEDIA QUERIES (Slide 06)
   -------------------------------------------------------------------------- */

/* Large Tablets & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-badge,
  .hero-tech-pills {
    justify-content: center;
  }

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

  .hero-academic-meta {
    justify-content: center;
  }

  .about-grid,
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cert-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cert-verified-tag,
  .cert-cta-row {
    justify-content: center;
  }

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

  .challenges-grid,
  .takeaways-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets (<= 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
    --spacing-2xl: 3rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

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

  .hero-subtitle {
    font-size: 1.15rem;
  }

  /* Mobile Navigation Menu */
  .nav-toggle {
    display: flex;
  }

  .github-label {
    display: none;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    padding: 1.5rem var(--spacing-lg);
    display: none;
    flex-direction: column;
    z-index: 999;
  }

  .main-nav.active {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 0.75rem 0.5rem;
    font-size: 1.05rem;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .timeline-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .challenges-grid,
  .takeaways-grid {
    grid-template-columns: 1fr;
  }

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

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

/* Mobile Small (<= 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.95rem;
  }

  .profile-img {
    width: 240px;
    height: 240px;
  }

  .avatar-card {
    padding: 1rem;
  }

  .floating-badge {
    padding: 0.4rem 0.65rem;
    font-size: 0.75rem;
  }

  .badge-top-left {
    left: -10px;
    top: -15px;
  }

  .badge-bottom-right {
    right: -10px;
    bottom: -15px;
  }

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

  .timeline-container {
    grid-template-columns: 1fr;
  }

  .cert-specs-grid {
    grid-template-columns: 1fr;
  }

  .form-footer {
    flex-direction: column;
    width: 100%;
  }

  .form-footer .btn {
    width: 100%;
  }
}
