/* =========================================
   Timothy Bowen IT Portfolio
   Main stylesheet
   ========================================= */

:root {
  --background: #ffffff;
  --background-muted: #f4f7fb;
  --surface: #ffffff;
  --surface-dark: #132238;
  --text: #172033;
  --text-muted: #5d6878;
  --text-light: #dce6f4;
  --primary: #1769aa;
  --primary-dark: #0e4f86;
  --border: #dce3ec;
  --shadow: 0 18px 45px rgba(25, 45, 75, 0.10);
  --radius: 18px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

code {
  padding: 0.12rem 0.35rem;
  border-radius: 0.35rem;
  background: #edf1f6;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  color: #ffffff;
  background: var(--primary-dark);
  border-radius: 0.5rem;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Right column */

.hero-sidebar{

    display:flex;

    flex-direction:column;

    gap:35px;

}

/* Profile Card */

.profile-card{

    text-align:center;

}

/* Round picture */

.profile-photo{

    width:400px;

    height:400px;

    object-fit:cover;

    border-radius:50%;

    border:6px solid white;

    box-shadow:0 18px 40px rgba(0,0,0,.18);

    margin:auto;

    display:block;

}

/* Name */

.profile-card h3{

    margin-top:20px;

    margin-bottom:8px;

    font-size:1.8rem;

}

/* Subtitle */

.profile-title{

    color:#6b7280;

    font-size:.95rem;

    margin:0;

}
/* Header and navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(220, 227, 236, 0.8);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.nav-container {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo {
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.primary-nav a {
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  color: var(--text);
  background: var(--surface);
  font-size: 1.3rem;
}

/* Hero */

.hero {
  padding: 6.5rem 0 5.5rem;
  background:
    radial-gradient(circle at top right, rgba(23, 105, 170, 0.11), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: 4rem;
}

.eyebrow,
.section-label,
.card-kicker,
.panel-label,
.credential-status {
  margin: 0 0 0.75rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero-summary {
  max-width: 760px;
  margin: 1.6rem 0 0;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  font-weight: 750;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #ffffff;
  background: var(--primary);
}

.button-primary:hover {
  background: var(--primary-dark);
}

.button-secondary {
  border-color: var(--border);
  background: var(--surface);
}

.button-secondary:hover {
  border-color: var(--primary);
}

.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
}

.quick-facts li,
.tag-list li {
  padding: 0.38rem 0.68rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  font-weight: 650;
}

.hero-panel {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  margin: 0 0 1rem;
  font-size: 1.55rem;
  line-height: 1.2;
}

.hero-panel ul {
  padding-left: 1.2rem;
  margin: 0;
  color: var(--text-muted);
}

/* General sections */

.section {
  padding: 5.5rem 0;
}

.section-muted {
  background: var(--background-muted);
}

.section-dark {
  color: #ffffff;
  background: var(--surface-dark);
}

.section-dark .section-label,
.section-dark .credential-status {
  color: #7fc4ff;
}

.section-dark .section-heading > p {
  color: var(--text-light);
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 4rem;
}

.prose {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.prose p:first-child {
  margin-top: 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.section-heading > p {
  max-width: 560px;
  margin: 0;
  color: var(--text-muted);
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.project-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(25, 45, 75, 0.055);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: #b9c9da;
  box-shadow: var(--shadow);
}

.card-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.3rem;
  place-items: center;
  border-radius: 0.8rem;
  color: var(--primary-dark);
  background: #e8f3fc;
  font-size: 0.86rem;
  font-weight: 850;
}

.project-card h3,
.skill-group h3,
.credential-card h3 {
  margin: 0;
  font-size: 1.28rem;
}

.project-card > p:not(.card-kicker) {
  color: var(--text-muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin: 0.7rem 0 1.25rem;
  list-style: none;
}

.text-link {
  margin-top: auto;
  color: var(--primary);
  font-weight: 750;
  text-decoration: none;
}

.text-link:hover {
  color: var(--primary-dark);
}

.placeholder-card {
  border-style: dashed;
}

/* Skills */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.skill-group {
  padding: 1.5rem;
  border-top: 4px solid var(--primary);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--background-muted);
}

.skill-group ul {
  padding-left: 1.15rem;
  margin-bottom: 0;
  color: var(--text-muted);
}

/* Credentials */

.credential-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.credential-card {
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.cert-badge{

    width:180px;

    height:auto;

    display:block;

    margin:0 auto 20px auto;

}

.credential-card p:last-child {
  margin-bottom: 0;
  color: var(--text-light);
}

/* Resume and contact */

.resume-panel,
.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.resume-panel .button-group {
  margin-top: 0;
}

.contact-links {
  display: grid;
  gap: 0.65rem;
  min-width: 260px;
}

.contact-links a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

/* Footer */

.site-footer {
  padding: 1.8rem 0;
  color: var(--text-muted);
  background: #eef3f8;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-content p {
  margin: 0;
}

/* Project detail pages */

.project-hero {
  padding: 5rem 0 3rem;
  background: var(--background-muted);
}

.breadcrumbs {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--primary);
}

.project-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.7rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.project-intro {
  max-width: 760px;
  color: var(--text-muted);
  font-size: 1.15rem;
}

.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.7fr);
  gap: 3rem;
}

.project-content section {
  margin-bottom: 3rem;
}

.project-content h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.project-sidebar {
  align-self: start;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background-muted);
}

.project-sidebar h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.project-sidebar dl {
  margin-bottom: 0;
}

.project-sidebar dt {
  margin-top: 1rem;
  font-weight: 800;
}

.project-sidebar dd {
  margin-left: 0;
  color: var(--text-muted);
}

.image-placeholder {
  display: grid;
  min-height: 320px;
  place-items: center;
  padding: 2rem;
  border: 2px dashed #b7c4d3;
  border-radius: var(--radius);
  color: var(--text-muted);
  background: var(--background-muted);
  text-align: center;
}

/* Responsive */

@media (max-width: 980px) {
  .hero-grid,
  .two-column,
  .project-layout {
    grid-template-columns: 1fr;
  }

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

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

  .section-heading,
  .resume-panel,
  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.65rem;
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 0.75rem;
  }

  .hero {
    padding-top: 4.5rem;
  }

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

  .footer-content {
    flex-direction: column;
  }
}
