/* ==========================================================================
   Shaihanath Khadheeja — Professional Cloud Engineer Portfolio
   Design Inspired by Reference: Modern Sage Minimalist Aesthetic
   ========================================================================== */

:root {
  /* Sage Light Palette (Default) */
  --bg-primary: #E8EEE7;
  --bg-secondary: #DFE7DE;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FAFCFA;
  
  --text-main: #192E20;
  --text-heading: #112318;
  --text-muted: #486150;
  --text-light: #6C8574;

  --accent-green: #234730;
  --accent-pill: #192E20;
  --accent-pill-hover: #101F15;
  --accent-border: #D1DDD0;
  --accent-highlight: #2A5C3C;
  --accent-light-bg: #D9E4D8;

  --aws-orange: #EC7211;
  --azure-blue: #0078D4;
  --tf-purple: #7B42BC;

  --radius-card: 24px;
  --radius-sm: 12px;
  --radius-pill: 50px;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-subtle: 0 8px 24px rgba(25, 46, 32, 0.04);
  --shadow-hover: 0 16px 36px rgba(25, 46, 32, 0.09);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --bg-primary: #0F1713;
  --bg-secondary: #16221C;
  --bg-card: #1A2922;
  --bg-card-hover: #21332A;
  
  --text-main: #E2EBE5;
  --text-heading: #FFFFFF;
  --text-muted: #9BB3A3;
  --text-light: #7A9683;

  --accent-green: #4ADE80;
  --accent-pill: #4ADE80;
  --accent-pill-hover: #22C55E;
  --accent-border: #2D4238;
  --accent-highlight: #34D399;
  --accent-light-bg: #1C2E26;

  --shadow-subtle: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 16px 36px rgba(0, 0, 0, 0.5);
}

/* Dark theme specific text color for pill button */
[data-theme="dark"] .btn-resume {
  color: #0F1713 !important;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Layout Utilities */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top Announcement Banner */
.top-banner {
  background-color: var(--accent-green);
  color: #FFFFFF;
  font-size: 0.875rem;
  padding: 8px 0;
  font-weight: 500;
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #4ADE80;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.pulse {
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.banner-link {
  color: #FFFFFF;
  text-decoration: underline;
  font-weight: 600;
  margin-left: 6px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-primary);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px 0;
  border-bottom: 1px solid rgba(25, 46, 32, 0.06);
  transition: var(--transition);
}

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

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

.brand-title {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  color: var(--text-heading);
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--accent-highlight);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-highlight);
  transition: var(--transition);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-theme-toggle:hover {
  background: var(--accent-light-bg);
  transform: rotate(15deg);
}

.btn-terminal {
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.875rem;
  font-family: var(--font-mono);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-terminal:hover {
  background: var(--accent-green);
  color: #FFFFFF;
  border-color: var(--accent-green);
}

.btn-resume {
  background-color: var(--accent-pill);
  color: #FFFFFF;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(25, 46, 32, 0.15);
}

.btn-resume:hover {
  background-color: var(--accent-pill-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(25, 46, 32, 0.25);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* Section Tags & Headings */
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-heading {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-subtext {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 40px;
}

/* Hero Section */
.hero-section {
  padding: 80px 0 100px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-heading);
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-title .highlight {
  color: var(--accent-highlight);
  position: relative;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.badge-item {
  background-color: var(--bg-card);
  border: 1px solid var(--accent-border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* Buttons */
.btn {
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--accent-pill);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(25, 46, 32, 0.15);
}

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

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

.btn-secondary:hover {
  background-color: var(--accent-light-bg);
  border-color: var(--accent-highlight);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px dashed var(--accent-border);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.btn-outline:hover {
  background: var(--bg-card);
  border-style: solid;
}

/* Hero Code Card */
.hero-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--accent-border);
  overflow: hidden;
}

.cloud-card-header {
  background-color: var(--bg-secondary);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--accent-border);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background-color: #EF4444; }
.dot.yellow { background-color: #F59E0B; }
.dot.green { background-color: #10B981; }

.window-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.cloud-card-body {
  padding: 24px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.metric-box {
  background-color: var(--bg-primary);
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-border);
  text-align: center;
}

.metric-val {
  display: block;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent-highlight);
  margin-bottom: 4px;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
}

.mini-terminal-preview {
  background-color: #111827;
  color: #F3F4F6;
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
}

.mini-terminal-preview .cmd { color: #3B82F6; font-weight: bold; }
.mini-terminal-preview .success { color: #10B981; }
.mini-terminal-preview .info { color: #9CA3AF; }

.typing-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background-color: #3B82F6;
  animation: blink 1s infinite;
  vertical-align: middle;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Skills Section (Exact layout from reference screenshot) */
.skills-section {
  padding: 90px 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  border: 1px solid var(--accent-border);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-highlight);
  background-color: var(--bg-card-hover);
}

.skill-icon {
  width: 48px;
  height: 48px;
  background-color: var(--bg-primary);
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent-highlight);
  margin-bottom: 20px;
}

.skill-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.skill-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--accent-border);
}

/* Experience Section */
.experience-section {
  padding: 90px 0;
}

.timeline-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 40px;
  border: 1px solid var(--accent-border);
  box-shadow: var(--shadow-subtle);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--accent-border);
}

.role-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-heading);
}

.company-name {
  font-size: 1.1rem;
  color: var(--accent-highlight);
  font-weight: 700;
  margin-top: 4px;
}

.period-badge {
  background-color: var(--bg-primary);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--accent-border);
}

.experience-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 32px;
  margin-bottom: 28px;
}

.experience-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);

}

.check-icon {
  color: var(--accent-highlight);
  margin-top: 4px;
  font-size: 1rem;
  flex-shrink: 0;
}

.tech-stack-used {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px dashed var(--accent-border);
}

.stack-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-main);
  margin-right: 8px;
}

.pill {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-border);
}

/* Projects Section */
.projects-section {
  padding: 90px 0;
}

.project-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--accent-border);
  color: var(--text-main);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background-color: var(--accent-pill);
  color: #FFFFFF;
  border-color: var(--accent-pill);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.project-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 32px;
  border: 1px solid var(--accent-border);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.project-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 600;
}

.project-category-badge {
  background-color: var(--bg-primary);
  color: var(--accent-highlight);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 12px;
  line-height: 1.3;
}

.project-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-highlights {
  background-color: var(--bg-primary);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.highlight-item {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.highlight-item i {
  color: var(--accent-highlight);
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--accent-border);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-project-modal {
  background: none;
  border: none;
  color: var(--accent-highlight);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-project-modal:hover {
  text-decoration: underline;
}

/* Education Section */
.education-section {
  padding: 90px 0;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.edu-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 32px;
  border: 1px solid var(--accent-border);
  box-shadow: var(--shadow-subtle);
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.edu-icon {
  width: 52px;
  height: 52px;
  background-color: var(--bg-primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-highlight);
  border: 1px solid var(--accent-border);
  flex-shrink: 0;
}

.edu-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.edu-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.edu-inst {
  font-size: 0.95rem;
  color: var(--accent-highlight);
  font-weight: 700;
  margin-bottom: 12px;
}

.edu-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Contact Section */
.contact-section {
  padding: 90px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}

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

.info-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.info-icon {
  width: 44px;
  height: 44px;
  background-color: var(--bg-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-highlight);
  font-size: 1.1rem;
}

.info-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
}

.info-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  text-decoration: none;
}

.copy-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 1rem;
  padding: 6px;
  transition: var(--transition);
}

.copy-btn:hover {
  color: var(--accent-highlight);
}

.contact-form-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 36px;
  border: 1px solid var(--accent-border);
  box-shadow: var(--shadow-subtle);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-border);
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent-highlight);
  box-shadow: 0 0 0 3px rgba(42, 92, 60, 0.1);
}

.btn-block {
  width: 100%;
}

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--accent-border);
  background-color: var(--bg-primary);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-title {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 1px;
}

.footer-sub {
  font-size: 0.8rem;
  color: var(--text-light);
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Modal System */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 19, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.modal-box {
  background-color: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--accent-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

/* Terminal Modal */
.terminal-modal-box {
  background-color: #0F172A;
  border-color: #334155;
  color: #F8FAFC;
}

.terminal-modal-header {
  background-color: #1E293B;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #334155;
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #94A3B8;
}

.terminal-modal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  height: 480px;
  display: flex;
  flex-direction: column;
}

#cli-output {
  flex-grow: 1;
  overflow-y: auto;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cli-row {
  line-height: 1.5;
}

.cli-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #1E293B;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #334155;
  margin-bottom: 16px;
}

.cli-prompt {
  color: #38BDF8;
  font-weight: bold;
}

#cli-input {
  background: none;
  border: none;
  outline: none;
  color: #F8FAFC;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  width: 100%;
}

.cli-quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-cmd-btn {
  background-color: #1E293B;
  border: 1px solid #334155;
  color: #38BDF8;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
}

.quick-cmd-btn:hover {
  background-color: #334155;
  color: #FFFFFF;
}

/* Resume Printable Paper Modal */
.resume-modal-box {
  max-width: 850px;
}

.resume-modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--accent-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.resume-modal-body {
  padding: 32px;
  overflow-y: auto;
}

.cv-paper {
  background: #FFFFFF;
  color: #111827;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  font-family: Arial, sans-serif;
  line-height: 1.5;
}

.cv-name {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 4px;
  color: #000;
}

.cv-role {
  font-size: 1.1rem;
  text-align: center;
  color: #374151;
  margin-bottom: 8px;
}

.cv-contact {
  text-align: center;
  font-size: 0.85rem;
  color: #4B5563;
  margin-bottom: 16px;
}

.cv-hr {
  border: none;
  border-top: 2px solid #111827;
  margin-bottom: 20px;
}

.cv-section-title {
  font-size: 0.95rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #D1D5DB;
  padding-bottom: 4px;
  margin-top: 18px;
  margin-bottom: 10px;
  color: #000;
}

.cv-text {
  font-size: 0.88rem;
  color: #1F2937;
}

.cv-bullets {
  padding-left: 20px;
  font-size: 0.88rem;
  color: #1F2937;
  margin-bottom: 10px;
}

.cv-bullets li {
  margin-bottom: 4px;
}

.cv-job-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: var(--accent-pill);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Print Styles */
@media print {
  body * {
    visibility: hidden;
  }
  #printable-resume, #printable-resume * {
    visibility: visible;
  }
  #printable-resume {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-primary);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--accent-border);
  }
  .nav-menu.active {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .section-heading {
    font-size: 2rem;
  }
  .skills-grid, .projects-grid, .education-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .experience-list {
    grid-template-columns: 1fr;
  }
}
