/* style.css */
/* Mobile-first responsive CSS for Sebastian Duarte-Urbina portfolio */

/* =========================
   Variables & Base
   ========================= */
:root{
  --bg: #F8F9FA;
  --panel: #FFFFFF;
  --text: #212529;
  --muted: #6c757d;
  --accent: #0D6EFD;
  --radius: 12px;
  --max-width: 1100px;
  --container-pad: 1rem;
  --shadow: 0 6px 18px rgba(33,37,41,0.06);
  --glass: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(255,255,255,0.6));
}

/* Reset-ish */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: 'Lato', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
  -webkit-text-size-adjust:100%;
}

/* Layout helper */
.container{
  width:100%;
  max-width:var(--max-width);
  margin:0 auto;
  padding:1rem var(--container-pad);
}

/* =========================
   Header
   ========================= */
.site-header{
  position:sticky;
  top:0;
  z-index:40;
  background:rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  border-bottom:1px solid rgba(33,37,41,0.04);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:0.75rem var(--container-pad);
}

/* Brand */
.brand{
  display:flex;
  flex-direction:column;
  text-decoration:none;
  color:var(--text);
}
.brand-name{
  margin:0;
  font-family: 'Montserrat', sans-serif;
  font-weight:700;
  font-size:1.05rem;
}
.brand-sub{
  margin:0;
  color:var(--muted);
  font-size:0.78rem;
}

/* Nav */
.nav-toggle{
  width:42px;
  height:42px;
  border-radius:8px;
  border:1px solid rgba(33,37,41,0.06);
  background:transparent;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hamburger{
  width:18px;
  height:2px;
  background:var(--text);
  display:block;
  position:relative;
}
.hamburger::before,
.hamburger::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  height:2px;
  background:var(--text);
}
.hamburger::before{top:-6px}
.hamburger::after{bottom:-6px}

/* Hidden nav (mobile) */
.site-nav{
  position:fixed;
  inset:0 0 auto auto;
  top:64px;
  right:0;
  background:var(--panel);
  width:260px;
  max-width:80%;
  border-left:1px solid rgba(33,37,41,0.04);
  box-shadow: -8px 12px 32px rgba(33,37,41,0.08);
  transform: translateX(110%);
  transition: transform 260ms ease;
  padding:1rem;
  display:flex;
  flex-direction:column;
}
.site-nav.open{
  transform: translateX(0);
}
.nav-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:0.5rem;
}
.nav-link{
  text-decoration:none;
  color:var(--text);
  padding:0.75rem 0.5rem;
  border-radius:8px;
  display:block;
}
.primary-cta{
  color:var(--accent);
  font-weight:600;
}

/* =========================
   Hero
   ========================= */
.hero{
  padding:2.25rem 0;
}
.hero-inner{
  display:grid;
  grid-template-columns: 1fr;
  gap:1rem;
}
.eyebrow{color:var(--muted); margin:0 0 0.25rem 0}
.hero-title{
  font-family: 'Montserrat', sans-serif;
  font-size:1.8rem;
  margin:0 0 0.5rem 0;
}
.hero-sub{margin:0 0 1rem 0; color:var(--muted)}
.hero-actions{display:flex; gap:0.75rem; margin-bottom:1rem}
.btn{
  display:inline-block;
  padding:0.6rem 0.9rem;
  border-radius:10px;
  text-decoration:none;
  font-weight:600;
  font-size:0.95rem;
  border:1px solid transparent;
}
.btn-primary{
  background:var(--accent);
  color:white;
  border-color:var(--accent);
}
.btn-outline{
  background:transparent;
  border-color:rgba(33,37,41,0.08);
  color:var(--text);
}

/* Quick info */
.quick-info{list-style:none;padding:0;margin:0;display:flex;gap:1rem;flex-wrap:wrap;color:var(--muted);font-size:0.9rem}
.quick-info li{background:rgba(13,110,253,0.06);padding:6px 10px;border-radius:8px}

/* Hero aside card */
.hero-card{
  border-radius:var(--radius);
  padding:0.75rem;
  background:var(--panel);
  box-shadow:var(--shadow);
}
.card-title{margin:0 0 0.5rem 0;font-family: 'Montserrat', sans-serif}

/* =========================
   Sections & Typography
   ========================= */
.section-title{
  font-family: 'Montserrat', sans-serif;
  margin:0 0 0.5rem 0;
  font-size:1.1rem;
}
.section-sub{color:var(--muted); margin:0 0 1rem 0}
.lead{color:var(--text); margin:0 0 1rem 0}

/* About grid */
.about-grid{
  margin-top:1rem;
  display:grid;
  gap:1rem;
}
.about-item{background:var(--panel);padding:1rem;border-radius:12px;box-shadow:var(--shadow)}

/* Projects */
.projects-grid{
  display:grid;
  gap:1rem;
  margin-top:1rem;
}
.project-card{
  background:var(--panel);
  border-radius:12px;
  padding:1rem;
  box-shadow:var(--shadow);
}
.project-title{margin:0 0 0.5rem 0;font-family: 'Montserrat', sans-serif}
.project-desc{margin:0 0 0.5rem 0;color:var(--muted)}
.project-tech{font-size:0.9rem;color:var(--muted);margin:0}

/* Skills */
.skills-grid{
  display:grid;
  gap:0.75rem;
  margin-top:1rem;
}
.skill-category{background:var(--panel);padding:1rem;border-radius:12px;box-shadow:var(--shadow)}
.skill-category h4{margin:0 0 0.5rem 0}
.skill-category ul{margin:0;padding-left:1.1rem;color:var(--muted)}

/* Contact */
.contact-inner{
  display:grid;
  gap:1rem;
}
.contact-list{list-style:none;padding:0;margin:0 0 1rem 0}
.contact-list li{margin:0 0 0.5rem 0}
.contact-form{
  background:var(--panel);
  padding:1rem;
  border-radius:12px;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  gap:0.5rem;
}
.contact-form input,
.contact-form textarea{
  padding:0.6rem;
  border-radius:8px;
  border:1px solid rgba(33,37,41,0.08);
  font-family:inherit;
}
.small{font-size:0.85rem}
.muted{color:var(--muted)}

/* Footer */
.site-footer{
  margin-top:2rem;
  padding:1rem 0;
  border-top:1px solid rgba(33,37,41,0.04);
  background:transparent;
}
.footer-inner{display:flex;justify-content:space-between;align-items:center;gap:1rem;font-size:0.9rem}

/* =========================
   Responsive — larger screens
   ========================= */
@media (min-width: 720px){
  .header-inner{padding:1rem var(--container-pad)}
  .nav-toggle{display:none}
  .site-nav{
    position:static;
    transform:none;
    background:transparent;
    box-shadow:none;
    border-left:0;
    padding:0;
    width:auto;
  }
  .nav-list{flex-direction:row;gap:0.5rem}
  .nav-link{padding:0.35rem 0.6rem}
  .hero-inner{grid-template-columns: 1fr 320px; align-items:start}
  .hero-title{font-size:2.2rem}
  .projects-grid{grid-template-columns: repeat(2, 1fr)}
  .about-grid{grid-template-columns: repeat(2, 1fr)}
  .skills-grid{grid-template-columns: repeat(2, 1fr)}
  .contact-inner{grid-template-columns: 1fr 360px}
}

@media (min-width: 1100px){
  .projects-grid{grid-template-columns: repeat(3, 1fr)}
  .skills-grid{grid-template-columns: repeat(4, 1fr)}
  .hero-inner{grid-template-columns: 1.2fr 360px}
}

/* Small utility */
.small-link{font-size:0.9rem;color:var(--accent);text-decoration:none}

/* Add to the end of style.css */

/* Generic transition for smooth effects */
.btn, .nav-link, .project-card, .small-link {
  transition: all 0.2s ease-in-out;
}

/* Button Hover/Focus */
.btn-primary:hover, .btn-primary:focus-visible {
  background: #0B5ED7; /* A slightly darker shade of accent */
  border-color: #0A58CA;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13,110,253,0.2);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: rgba(33,37,41,0.04);
  transform: translateY(-2px);
}

/* Nav Link Hover/Focus */
.nav-link:hover, .nav-link:focus-visible {
  background-color: rgba(33,37,41,0.05);
  color: var(--accent);
}
.nav-link.primary-cta:hover, .nav-link.primary-cta:focus-visible {
  background-color: rgba(13,110,253,0.1);
}


/* Project Card Hover/Focus */
.project-card:hover, .project-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(33,37,41,0.08);
  cursor: pointer; /* Indicates the card is interactive */
}
