:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --accent: #0284c7;
  --card-bg: #ffffff;
  --pill-bg: #f1f5f9;
  --pill-text: #334155;
  --max-width: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
}
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* Navigation */
nav {
  position: sticky; top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100; padding: 1.25rem 0;
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.nav-logo { font-weight: 700; font-size: 1.25rem; color: var(--text-main); text-decoration: none; }
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a {
  text-decoration: none; color: var(--text-muted); font-size: 0.95rem;
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* Buttons & Hero */
.btn {
  display: inline-flex; align-items: center; background: var(--text-main); color: #fff;
  padding: 0.75rem 1.5rem; border-radius: 6px; font-weight: 600; text-decoration: none;
  transition: 0.2s;
}
.btn:hover { background: var(--accent); }
/* Hero Section - Image Background & Card Layout */
.hero { 
  min-height: calc(100vh - 75px); 
  display: flex; 
  align-items: center; 
  /* The line below adds a dark overlay and a background image. Replace the URL with an image of your machine shop/workspace */
  background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('https://images.unsplash.com/photo-1565439390118-bbf3688126b8?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  border-bottom: none; 
}

.hero-grid {
  display: grid; 
  grid-template-columns: 1fr 380px; /* Text takes left space, card takes exactly 380px on right */
  align-items: center; 
  gap: 4rem; 
  width: 100%;
}

.hero-text { text-align: left; }
.hero-text h1 { font-size: 5rem; font-weight: 700; color: #ffffff; letter-spacing: -0.02em; margin-bottom: 0.2rem; line-height: 1.1; }
.hero-text .tagline { font-size: 1.3rem; font-weight: 600; color: #e2e8f0; letter-spacing: 0.1em; text-transform: uppercase; }

/* The White Contact Card */
.hero-card {
  background: #f8fafc;
  padding: 3rem 2.5rem;
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.hero-card img.profile-pic {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.hero-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.hero-socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.75rem 0;
}

.hero-socials svg {
  width: 26px;
  height: 26px;
  fill: #475569;
  transition: fill 0.2s;
}

.hero-socials a:hover svg { fill: var(--accent); }

.btn-resume {
  display: block;
  background: #cbd5e1; /* Pale blue/gray to match the reference */
  color: #334155;
  padding: 0.85rem 1.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.btn-resume:hover { background: #94a3b8; color: #ffffff; }
/* Dark Skills Grid Section */
.skills-section-dark {
  background-color: #1a1e29;
  color: #ffffff;
  padding: 6rem 0;
}

.skills-header {
  text-align: center;
  margin-bottom: 5rem;
}

.skills-header h2 {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.header-line {
  width: 250px;
  height: 2px;
  background-color: var(--accent);
  margin: 0 auto;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* This perfectly centers the bottom row! */
  gap: 4rem 2rem;
}

.skill-card {
  text-align: center;
  flex: 0 1 320px; /* Forces each card to be a consistent width */
}

.skill-icon {
  width: 85px;
  height: 85px;
  background-color: #242936;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.75rem;
  transition: transform 0.3s;
}

.skill-card:hover .skill-icon {
  transform: translateY(-5px);
  background-color: #2a303f;
}

.skill-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skill-card h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.skill-card p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

/* Ensure the grid stacks on mobile */
@media (max-width: 850px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}
/* Mobile responsiveness */
@media (max-width: 850px) {
  .hero { padding: 4rem 0; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero-text { text-align: center; }
  .hero-text h1 { font-size: 3.5rem; }
  .hero-card { max-width: 400px; margin: 0 auto; }
}
/* Home Page Project Showcase Images */
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.showcase-link { display: block; overflow: hidden; border-radius: 12px; border: 1px solid var(--border); transition: transform 0.3s; position: relative; }
.showcase-link:hover { transform: translateY(-5px); box-shadow: 0 15px 30px -10px rgba(0,0,0,0.1); }
.showcase-link img { width: 100%; height: 350px; object-fit: cover; display: block; transition: 0.3s; }
.showcase-link:hover img { transform: scale(1.03); }
.showcase-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 2rem 1.5rem 1.5rem; color: #fff;
}
.showcase-overlay h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; }

/* Generic Sections */
.section { padding: 5rem 0; border-bottom: 1px solid var(--border); }
.section-alt { background-color: var(--bg-alt); }
.section-header { margin-bottom: 3rem; text-align: center; }
.section-header h2 { font-size: 2.25rem; font-weight: 700; margin-bottom: 0.5rem; }

/* Timeline (Experience & Edu) */
.dual-column { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.timeline-item { padding-left: 1.5rem; border-left: 2px solid var(--border); padding-bottom: 2.5rem; margin-bottom: 0; position: relative; }
.timeline-item::before {
  content: ''; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
}
.timeline-date { font-size: 0.85rem; font-weight: 600; color: var(--accent); text-transform: uppercase; margin-bottom: 0.25rem; }
.timeline-title { font-size: 1.25rem; font-weight: 700; }
.timeline-subtitle { font-size: 1rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.timeline-list { margin-left: 1.25rem; color: var(--text-muted); font-size: 0.95rem; }

/* Footer */
footer { padding: 4rem 0; text-align: center; background: #0f172a; color: #f8fafc; }
.footer-links { display: flex; justify-content: center; gap: 2rem; margin: 1.5rem 0; }
.footer-links a { color: #38bdf8; text-decoration: none; font-weight: 500; }
.footer-links a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .showcase-grid, .dual-column { grid-template-columns: 1fr; }
  .nav-links { gap: 1rem; }
}
