/* ==========================================================================
   Nick Sanchez - Resume Site Styles
   Plain CSS — no build step needed.
   ========================================================================== */

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

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #262626;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- Utility ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-dark {
  background: #262626;
  color: #fff;
}

.section-light {
  background: #f5f5f5;
  color: #262626;
}

.section-darkest {
  background: #171717;
  color: #fff;
}

.section-padding {
  padding: 5rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
}

.section-title.text-center { text-align: center; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(23, 23, 23, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: #d4d4d4;
  transition: color 0.2s;
}

.nav-links a:hover { color: #f97316; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-toggle svg { width: 24px; height: 24px; }

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 3.5rem; left: 0; right: 0;
    background: rgba(23, 23, 23, 0.95);
    backdrop-filter: blur(12px);
    padding: 1rem 1.5rem;
    gap: 0.75rem;
  }
  .nav-links.open { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../images/heroImage.webp') center/cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.7));
}

.hero-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 3rem 2.5rem;
  max-width: 640px;
  width: 100%;
  text-align: center;
  color: #fff;
}

.hero-card h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-card p {
  color: #d6d3d1;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  line-height: 1.7;
}

.hero-card p strong { color: #f5f5f4; }

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

.hero-socials a {
  color: #fff;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.hero-socials a:hover { opacity: 1; }
.hero-socials svg { width: 24px; height: 24px; }

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.btn svg { width: 16px; height: 16px; }

.btn-primary {
  border-color: #f97316;
  color: #fff;
  background: transparent;
}
.btn-primary:hover { background: #f97316; }

.btn-secondary {
  border-color: #fff;
  color: #fff;
  background: transparent;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* Chevron down */
.hero-chevron {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: #fff;
  opacity: 0.6;
  animation: bounce 2s infinite;
}

.hero-chevron svg { width: 32px; height: 32px; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}

.about-photo {
  width: 280px;
  height: 280px;
  border-radius: 1rem;
  object-fit: cover;
}

.about-desc {
  color: #d4d4d4;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.about-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.about-info-item svg {
  width: 20px; height: 20px;
  color: #fb923c;
  flex-shrink: 0;
}

.about-info-item .label {
  font-weight: 700;
  font-size: 0.875rem;
}

.about-info-item .value {
  color: #d4d4d4;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .about-info { justify-content: center; }
}

/* ---------- Resume ---------- */
.resume-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.resume-subsection-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.resume-subsection-title svg { width: 20px; height: 20px; color: #f97316; }

/* Timeline */
.timeline-item {
  position: relative;
  padding-left: 1.5rem;
  padding-bottom: 2rem;
  border-left: 2px solid #d4d4d4;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px; top: 4px;
  width: 8px; height: 8px;
  background: #f97316;
  border-radius: 50%;
}

.timeline-date {
  font-size: 0.8rem;
  color: #737373;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.timeline-location {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}

.timeline-title {
  font-size: 0.85rem;
  font-style: italic;
  color: #525252;
  margin-bottom: 0.35rem;
}

.timeline-desc {
  font-size: 0.85rem;
  color: #525252;
  line-height: 1.6;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.skill-group h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.skill-item { margin-bottom: 0.6rem; }

.skill-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
  color: #525252;
}

.skill-bar {
  height: 8px;
  background: #d4d4d4;
  border-radius: 4px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: #f97316;
  border-radius: 4px;
  transition: width 0.6s ease;
}

@media (max-width: 768px) {
  .resume-columns { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
}

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: rgba(64, 64, 64, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  padding: 1.75rem;
}

.project-card svg.project-icon {
  width: 28px; height: 28px;
  color: #f97316;
  margin-bottom: 1rem;
}

.project-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-card p {
  font-size: 0.875rem;
  color: #d4d4d4;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
}

@media (max-width: 768px) {
  .projects-grid { grid-template-columns: 1fr; }
}

/* ---------- Certifications ---------- */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cert-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 0.75rem;
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.cert-card svg {
  width: 28px; height: 28px;
  color: #f97316;
  margin-bottom: 1rem;
}

.cert-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.cert-card .cert-issuer {
  font-size: 0.85rem;
  color: #737373;
}

.cert-card .cert-date {
  font-size: 0.8rem;
  color: #a3a3a3;
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .certs-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-header svg {
  width: 40px; height: 40px;
  color: #fb923c;
  margin-bottom: 0.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #737373;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #f97316;
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-form button {
  background: #f97316;
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form button:hover { background: #ea580c; }

.contact-info-desc {
  color: #d4d4d4;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.contact-links { display: flex; flex-direction: column; gap: 0.75rem; }

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #d4d4d4;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.contact-link:hover { color: #fb923c; }
.contact-link svg { width: 18px; height: 18px; flex-shrink: 0; color: #fb923c; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer {
  padding: 2.5rem 0;
  text-align: center;
}

.footer-top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  margin-bottom: 1.25rem;
  transition: background 0.2s;
}

.footer-top-btn:hover { background: rgba(255,255,255,0.15); }
.footer-top-btn svg { width: 20px; height: 20px; }

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-socials a {
  color: #a3a3a3;
  transition: color 0.2s;
}

.footer-socials a:hover { color: #fb923c; }
.footer-socials svg { width: 22px; height: 22px; }

.footer-copy {
  font-size: 0.8rem;
  color: #737373;
}

/* ---------- Downloads page ---------- */
.downloads-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.downloads-page .downloads-content {
  flex: 1;
}

.downloads-header {
  padding: 5rem 0 2rem;
}

.downloads-header .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #d4d4d4;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  transition: color 0.2s;
}

.downloads-header .back-link:hover { color: #fb923c; }
.downloads-header .back-link svg { width: 16px; height: 16px; }

.downloads-header h1 {
  font-size: 2rem;
  font-weight: 700;
}

.downloads-subtitle {
  color: #a3a3a3;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.downloads-empty {
  text-align: center;
  padding: 4rem 0;
  color: #737373;
  font-size: 1.1rem;
}

/* ---------- Downloads Toolbar ---------- */
.dl-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}

.dl-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 360px;
}

.dl-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #737373;
  pointer-events: none;
}

.dl-search {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem 0.6rem 2.5rem;
  color: #fff;
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.dl-search::placeholder { color: #737373; }
.dl-search:focus { outline: none; border-color: #f97316; }

.dl-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dl-filter-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #d4d4d4;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.dl-filter-btn:hover { border-color: #f97316; color: #fff; }
.dl-filter-btn.active { background: #f97316; border-color: #f97316; color: #fff; }

/* ---------- Downloads Grid ---------- */
.dl-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 3rem;
}

.dl-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(64, 64, 64, 0.4);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s, background 0.2s;
}

.dl-card:hover {
  border-color: rgba(249, 115, 22, 0.3);
  background: rgba(64, 64, 64, 0.6);
}

.dl-card-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249, 115, 22, 0.12);
  border-radius: 0.5rem;
  color: #f97316;
}

.dl-card-icon svg { width: 22px; height: 22px; }

.dl-card-body { flex: 1; min-width: 0; }

.dl-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dl-card-desc {
  font-size: 0.8rem;
  color: #a3a3a3;
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

.dl-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.dl-card-tag {
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
}

.dl-card-size,
.dl-card-date {
  font-size: 0.75rem;
  color: #737373;
}

.dl-card-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  border: 2px solid #f97316;
  color: #f97316;
  background: transparent;
  transition: all 0.2s;
}

.dl-card-btn:hover {
  background: #f97316;
  color: #fff;
}

.dl-card-btn svg { width: 20px; height: 20px; }

@media (max-width: 768px) {
  .dl-toolbar { flex-direction: column; align-items: stretch; }
  .dl-search-wrap { max-width: 100%; }
  .dl-card { flex-wrap: wrap; }
  .dl-card-name { white-space: normal; }
}
