:root {
  /* Black & Gray Color Scheme */
  --bg-color: #111111;        /* Deep Black */
  --card-bg: #1a1a1a;        /* Dark Gray Card */
  --text-main: #ffffff;      /* Pure White Text */
  --text-muted: #a0a0a0;     /* Medium Gray Muted Text */
  --accent: #f8f9fa;         /* Very Light Gray Accent */
  --border-color: #333333;   /* Darker Gray Borders */
  
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

@view-transition {
  navigation: auto;
}

/* Fixes content/header shifting when navigating between short and long pages */
html {
  scrollbar-gutter: stable;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

/* --- Global Header & Navigation --- */
.global-header {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
  margin-bottom: 3rem;
}

.global-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
}

.site-title {
  text-decoration: none;
  color: var(--text-main);
}

.site-title h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.site-title .tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
}

/* --- Main Content Area --- */
.content-wrapper {
  flex: 1;
}

/* --- Section Cards --- */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2rem;
}

h2 {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

/* --- Buttons & SVG Icons --- */
.btn-group {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon {
  flex-shrink: 0;
}

.btn.primary {
  background-color: var(--accent);
  color: #111111;
}

.btn.primary:hover {
  opacity: 0.9;
}

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

.btn.secondary:hover {
  background-color: var(--border-color);
}

/* Custom LinkedIn Button Styling */
.btn.btn-linkedin {
  background-color: #0a66c2;
  border-color: #0a66c2;
  color: #ffffff;
}

.btn.btn-linkedin:hover {
  background-color: #004182;
  border-color: #004182;
}

/* --- Footer --- */
footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
}

/* --- CV Specific Styles --- */
.cv-section {
  margin-bottom: 3rem;
}

.skills-group {
  margin-bottom: 2rem;
}

.skills-group:last-child {
  margin-bottom: 0;
}

.skills-group h3 {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tag {
  background-color: #222222;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tag:hover {
  border-color: var(--accent);
  color: var(--text-main);
}

.tag.highlight {
  border-color: #555555;
  color: var(--accent);
  background-color: #2a2a2a;
  font-weight: 600;
}

.timeline-item {
  margin-bottom: 2.5rem;
  position: relative;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.job-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.period {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

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

.job-details ul {
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.job-details li {
  margin-bottom: 0.6rem;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 600px) {
  .global-header .container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  h1 { font-size: 1.8rem; }
  
  .job-header {
    flex-direction: column;
    align-items: flex-start;
  }
}