/* ─────────────────────────────────────────────────────────────
   DHAYALAN KANIAPPAN — PROFESSIONAL MONOCHROME DESIGN SYSTEM
   Executive Minimalist Engineering Portfolio · Light & Dark Mode
   ───────────────────────────────────────────────────────────── */

:root {
  /* Dark Theme (Default) */
  --bg-main: #000000;
  --bg-surface: #09090b;
  --bg-card: #0e0e11;
  --bg-card-hover: #141418;
  --bg-glass: rgba(14, 14, 17, 0.85);

  --text-primary: #ffffff;
  --text-secondary: #d4d4d8;
  --text-muted: #a1a1aa;
  --text-subtle: #71717a;

  --border-main: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.24);
  --border-focus: #ffffff;

  --btn-primary-bg: #ffffff;
  --btn-primary-text: #000000;
  --btn-secondary-bg: #18181b;
  --btn-secondary-text: #ffffff;
  --btn-secondary-border: rgba(255, 255, 255, 0.16);

  --accent-badge-bg: rgba(255, 255, 255, 0.08);
  --accent-badge-text: #ffffff;
  --accent-badge-border: rgba(255, 255, 255, 0.2);

  --nav-bg: rgba(0, 0, 0, 0.85);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.6);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.8);

  --font-heading: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
}

/* Light Theme: Crisp, Executive High-Contrast Black & White */
[data-theme="light"] {
  --bg-main: #ffffff;
  --bg-surface: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.92);

  --text-primary: #000000;
  --text-secondary: #18181b;
  --text-muted: #3f3f46;
  --text-subtle: #71717a;

  --border-main: rgba(0, 0, 0, 0.12);
  --border-strong: #000000;
  --border-focus: #000000;

  --btn-primary-bg: #000000;
  --btn-primary-text: #ffffff;
  --btn-secondary-bg: #ffffff;
  --btn-secondary-text: #000000;
  --btn-secondary-border: rgba(0, 0, 0, 0.18);

  --accent-badge-bg: rgba(0, 0, 0, 0.05);
  --accent-badge-text: #000000;
  --accent-badge-border: rgba(0, 0, 0, 0.15);

  --nav-bg: rgba(255, 255, 255, 0.88);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  transition: background-color 0.25s ease, color 0.25s ease;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--text-primary);
  color: var(--bg-main);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-full);
}

/* Typography with Bold, Thick Black in Light Mode */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

code, kbd, pre, .mono {
  font-family: var(--font-mono);
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3.5rem);
}

.section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  position: relative;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-subtle);
  display: block;
  margin-bottom: 0.6rem;
}

[data-theme="light"] .eyebrow {
  color: #52525b;
}

/* Clean Professional Cards */
.pro-card {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.pro-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  font-family: var(--font-body);
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-color: var(--btn-primary-bg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

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

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

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-main);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-main);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
}

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

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

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

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

/* Theme Toggle Switch */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-main);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
  z-index: 99;
}

.mobile-nav.open {
  display: flex;
}

/* Hero Section */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 110px;
  padding-bottom: 60px;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--accent-badge-bg);
  border: 1px solid var(--accent-badge-border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}

.hero-typewriter-container {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  min-height: 2rem;
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.3em;
  background: var(--text-primary);
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-description {
  max-width: 620px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

[data-theme="light"] .hero-description {
  color: #27272a;
}

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

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.terminal-card {
  grid-column: span 7;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 400px;
}

.info-cards-column {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Professional Terminal */
.terminal-window {
  background: #000000;
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  font-family: var(--font-mono);
}

[data-theme="light"] .terminal-window {
  background: #09090b;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.2rem;
  background: #111115;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #52525b;
}

.terminal-title {
  font-size: 0.72rem;
  color: #a1a1aa;
}

.terminal-body {
  flex: 1;
  padding: 1.2rem;
  overflow-y: auto;
  max-height: 300px;
  font-size: 0.8rem;
  color: #e4e4e7;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.terminal-prompt-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  font-weight: 700;
}

.terminal-output {
  color: #a1a1aa;
  line-height: 1.5;
  font-size: 0.78rem;
}

.terminal-input-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: #09090c;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #ffffff;
}

.terminal-quick-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
}

.quick-cmd-btn {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d4d4d8;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-cmd-btn:hover {
  background: #ffffff;
  color: #000000;
}

/* Timeline */
.timeline-container {
  position: relative;
  margin-top: 3.5rem;
}

.timeline-line {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-main);
}

@media (min-width: 768px) {
  .timeline-line {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .timeline-item {
    flex-direction: row;
  }
  .timeline-item:nth-child(even) {
    flex-direction: row-reverse;
  }
}

.timeline-dot {
  position: absolute;
  left: 20px;
  top: 24px;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-primary);
  z-index: 2;
}

@media (min-width: 768px) {
  .timeline-dot {
    left: 50%;
  }
}

.timeline-content {
  margin-left: 45px;
  padding: 1.75rem;
}

@media (min-width: 768px) {
  .timeline-content {
    margin-left: 0;
    width: 45%;
    margin-right: 5%;
  }
  .timeline-item:nth-child(even) .timeline-content {
    margin-right: 0;
    margin-left: 5%;
  }
}

/* Projects Section */
.projects-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-main);
  border-bottom: 1px solid var(--border-main);
}

.filter-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-main);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-color: var(--btn-primary-bg);
}

.search-input-wrapper {
  position: relative;
  min-width: 260px;
}

.search-input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.2rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  color: var(--text-primary);
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  border-color: var(--border-focus);
}

.search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  pointer-events: none;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2.5rem;
}

.project-card {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  overflow: hidden;
}

.project-preview {
  grid-column: span 7;
  position: relative;
  min-height: 300px;
  background: #000000;
  overflow: hidden;
  border-right: 1px solid var(--border-main);
}

.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-preview img {
  transform: scale(1.02);
}

.project-status-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.project-metrics-ribbon {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.88);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  z-index: 2;
}

.metric-box {
  flex: 1;
  text-align: center;
  padding: 0.2rem 0.4rem;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #a1a1aa;
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  color: #ffffff;
}

.project-content {
  grid-column: span 5;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 1.5rem;
}

.tech-tag {
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--accent-badge-bg);
  border: 1px solid var(--border-main);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tech-tag:hover {
  background: var(--text-primary);
  color: var(--bg-main);
}

.project-case-study {
  grid-column: span 12;
  border-top: 1px solid var(--border-main);
  background: var(--bg-surface);
  padding: 2rem;
  display: none;
}

.project-case-study.open {
  display: block;
}

/* Skills Matrix */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.skill-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.skill-progress-track {
  height: 5px;
  width: 100%;
  border-radius: var(--radius-full);
  background: var(--border-main);
  overflow: hidden;
  margin-top: 1rem;
}

.skill-progress-bar {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--text-primary);
}

/* Resume & Credentials Section */
.resume-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  border-bottom: 1px solid var(--border-main);
  padding-bottom: 1rem;
  margin-top: 2rem;
}

.resume-tab-btn {
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-main);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.resume-tab-btn:hover, .resume-tab-btn.active {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-color: var(--btn-primary-bg);
}

.resume-tab-content {
  display: none;
  margin-top: 2rem;
}

.resume-tab-content.active {
  display: block;
}

/* Credly & Weightage Custom Styling */
.credly-badge-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.credly-card {
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
}

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

.weightage-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.weightage-high {
  background: var(--text-primary);
  color: var(--bg-main);
}

.weightage-deepdive {
  background: var(--accent-badge-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-main);
}

.weightage-foundation {
  background: transparent;
  color: var(--text-subtle);
  border: 1px dashed var(--border-main);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cert-badge-wrapper {
  position: relative;
  aspect-ratio: 4/3;
  background: #000000;
  cursor: pointer;
  overflow: hidden;
  border-bottom: 1px solid var(--border-main);
}

.cert-badge-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cert-badge-wrapper:hover img {
  transform: scale(1.03);
}

/* Expandable Foundation Certificates Drawer */
.drawer-toggle-box {
  margin-top: 2.5rem;
  text-align: center;
}

.foundation-cert-drawer {
  margin-top: 2rem;
  display: none;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-main);
}

.foundation-cert-drawer.open {
  display: block;
}

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

.foundation-card {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open {
  display: flex;
}

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 840px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

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

.modal-close-btn:hover {
  background: var(--text-primary);
  color: var(--bg-main);
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  font-size: 0.85rem;
  font-weight: 600;
  animation: slideInToast 0.25s ease-out;
}

@keyframes slideInToast {
  from { transform: translateY(15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-main);
  background: var(--bg-surface);
  padding: 3.5rem 0 2.5rem;
}

/* Print Styles */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .navbar, .hero-actions, .terminal-window, .projects-header-actions,
  .toast-container, .theme-toggle-btn, .footer,
  .no-print {
    display: none !important;
  }
  .modal-container {
    box-shadow: none !important;
    border: none !important;
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    max-height: none !important;
  }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .terminal-card { grid-column: span 12; }
  .info-cards-column { grid-column: span 12; }
  .project-preview { grid-column: span 12; border-right: none; border-bottom: 1px solid var(--border-main); }
  .project-content { grid-column: span 12; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-primary, .nav-actions .btn-secondary { display: none; }
  .mobile-menu-btn { display: block; }
}
