/*
Theme Name: Block Dev Portfolio
Theme URI: 
Author: Jose Cardenas
Author URI: 
Description: Block Dev Portfolio
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: block-dev-portfolio
Tags: 
*/



/* =========================
   TOKENS + GLOBAL
========================= */
:root{
  --bg:#f5f5f5;
  --text:#111111;
  --muted:#555555;
  --accent:#FF9933;
  --card-bg:#ffffff;
  --border-subtle:rgba(0,0,0,0.06);
}

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

html{ scroll-behavior:smooth; }

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

/* WP block theme wrapper sometimes constrains things */
.wp-site-blocks,
.wp-block-template-part,
.wp-block-group{
  max-width:none;
}

/* IMPORTANT: main should NOT constrain layout */
.portfolio-page{
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
}

/* ===============================
   GLOBAL: full-page sections
================================ */
section{
  width:100%;
  min-height:100vh;
  display:flex;
  align-items:center;
  padding:clamp(4rem,6vw,6rem) 0;
  border-bottom:1px solid var(--border-subtle);
}
section:last-of-type{ border-bottom:none; }

/* ===============================
   THE BOX (panel wrapper)
================================ */
.section-panel{
  width:min(1200px,92%);
  margin:0 auto;
  border-radius:28px;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(255,153,51,0.10), transparent 60%),
    radial-gradient(700px 500px at 90% 25%, rgba(0,0,0,0.06), transparent 55%),
    #ffffff;
  border:1px solid rgba(0,0,0,0.06);
  box-shadow:0 22px 60px rgba(0,0,0,0.06);
  padding:clamp(2.5rem,4vw,4rem);
}

.section-inner{ width:100%; }

h1,h2,h3{
  margin:0 0 0.75rem;
  line-height:1.2;
  color:var(--text);
}
p{ margin:0 0 1rem; }

/* Headline helper */
.tagline{
  text-transform:uppercase;
  letter-spacing:0.12em;
  font-size:0.8rem;
  font-weight:700;
  color:var(--muted);
}
.accent{ color:var(--accent); }

/* =========================
   BUTTONS
========================= */
.btn-row{
  display:flex;
  flex-wrap:wrap;
  gap:0.75rem;
  margin-top:1.75rem;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0.75rem 1.4rem;
  border-radius:999px;
  font-size:0.95rem;
  font-weight:700;
  border:1px solid transparent;
  text-decoration:none;
  cursor:pointer;
  transition:transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  white-space:nowrap;
}

.btn-primary{
  background:var(--accent);
  color:#000;
  box-shadow:0 10px 22px rgba(0,0,0,0.08);
}
.btn-primary:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 26px rgba(0,0,0,0.12);
}

.btn-ghost{
  background:transparent;
  border-color:rgba(0,0,0,0.2);
  color:var(--text);
}
.btn-ghost:hover{ background:rgba(0,0,0,0.03); }

/* =========================
   NAVIGATION
========================= */
.site-nav{
  position:sticky;
  top:1.25rem;
  z-index:999;
  display:flex;
  justify-content:center;
  pointer-events:none;
}

.nav-inner{
  pointer-events:auto;
  width:min(1100px,92%);
  display:flex;
  align-items:center;
  justify-content:space-between;

  padding:0.6rem 1.25rem;
  border-radius:999px;

  background:rgba(255,255,255,0.75);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);

  border:1px solid rgba(0,0,0,0.08);
  box-shadow:0 12px 35px rgba(0,0,0,0.08);
}

.nav-name{
  font-weight:800;
  font-size:0.95rem;
  letter-spacing:-0.02em;
  color:var(--text);
}

.nav-links{
  display:flex;
  align-items:center;
  gap:0.75rem;
  list-style:none;
  margin:0;
  padding:0;
}

.nav-links a{
  text-decoration:none;
  font-size:0.85rem;
  font-weight:600;
  padding:0.45rem 0.75rem;
  border-radius:999px;
  color:var(--muted);
  transition:background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover{
  background:rgba(0,0,0,0.04);
  color:var(--text);
}

.nav-links a.active{
  background:rgba(255,153,51,0.25);
  color:#9a3e08;
}

.nav-cta{
  background:transparent;
  border:1px solid rgba(255,153,51,0.45);
  color:#9a3e08;
}
.nav-cta:hover{ background:rgba(255,153,51,0.12); }

/* Optional CSS-only active state using :target (works when URL has #section) */
body:has(#hero:target) .nav-links a[href="#hero"],
body:has(#about:target) .nav-links a[href="#about"],
body:has(#education:target) .nav-links a[href="#education"],
body:has(#projects:target) .nav-links a[href="#projects"],
body:has(#contact:target) .nav-links a[href="#contact"]{
  background:rgba(255,153,51,0.25);
  color:#9a3e08;
}

/* =========================
   HERO
========================= */
.hero-inner{
  display:grid;
  gap:2.5rem;
  align-items:center;
}
@media (min-width:768px){
  .hero-inner{
    grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);
  }
}

.hero-title{
  font-size:clamp(2.4rem,4vw,3.1rem);
  margin-bottom:0.75rem;
}

.hero-subtitle{
  font-size:1.05rem;
  max-width:520px;
  color:var(--muted);
  line-height:1.7;
}

.hero-badge-row{
  display:flex;
  flex-wrap:wrap;
  gap:0.5rem;
  margin-top:1.25rem;
}

.hero-badge{
  font-size:0.8rem;
  padding:0.25rem 0.7rem;
  border-radius:999px;
  border:1px solid rgba(0,0,0,0.12);
  background:rgba(255,255,255,0.9);
}

.hero-right{
  display:flex;
  justify-content:center;
  align-items:center;
}

.hero-card{
  background:var(--card-bg);
  border-radius:24px;
  padding:1.75rem 1.6rem;
  max-width:360px;
  width:100%;
  border:1px solid var(--border-subtle);
  box-shadow:0 18px 45px rgba(0,0,0,0.06);
}

.hero-card p{
  font-size:0.9rem;
  color:var(--muted);
  line-height:1.6;
}

.hero-meta{
  margin-top:1.25rem;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0.6rem;
  font-size:0.8rem;
}

.hero-meta span{
  padding:0.45rem 0.65rem;
  border-radius:12px;
  background:#f8f8f8;
  border:1px solid rgba(0,0,0,0.05);
}

/* =========================
   ABOUT
========================= */
.about-inner{
  display:grid;
  gap:2.5rem;
  align-items:center;
}
@media (min-width:768px){
  .about-inner{
    grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);
  }
}

.avatar{
  display:flex;
  justify-content:center;
}

.avatar img{
  width:260px;
  max-width:100%;
  border-radius:999px;
  border:4px solid #ffffff;
  box-shadow:0 18px 40px rgba(0,0,0,0.12);
  object-fit:cover;
}

.about-text p{
  color:var(--muted);
  max-width:620px;
  line-height:1.75;
}

.tech-icons{ margin-top:1.5rem; }

.tech-label{
  font-size:0.85rem;
  text-transform:uppercase;
  letter-spacing:0.12em;
  font-weight:700;
  margin-bottom:0.5rem;
  color:var(--muted);
}

.tech-icon-row{
  display:flex;
  flex-wrap:wrap;
  gap:0.5rem;
}

.tech-pill{
  display:inline-flex;
  align-items:center;
  gap:0.35rem;
  padding:0.4rem 0.85rem;
  border-radius:999px;
  background:#ffffff;
  border:1px solid rgba(0,0,0,0.08);
  font-size:0.85rem;
}

/* =========================
   EDUCATION
========================= */
.edu-section{
  --edu-accent:#ef8037;
  --edu-bg:#ffffff;
  --edu-card-bg:#ffffff;
  --edu-muted:#64748b;
  --edu-border:rgba(15,23,42,0.12);

  width:100%;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(239,128,55,0.08), transparent 60%),
    radial-gradient(700px 500px at 90% 25%, rgba(15,23,42,0.06), transparent 55%),
    var(--edu-bg);

  padding:clamp(5rem,9vw,8rem) 0;
}

.edu-inner{
  width:min(1200px,92%);
  margin:0 auto;
}

.edu-header{
  max-width:620px;
  margin-bottom:3rem;
}

.edu-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:0.75rem;
  text-transform:uppercase;
  letter-spacing:0.14em;
  font-size:0.75rem;
  color:var(--edu-muted);
}
.edu-eyebrow::before{
  content:"";
  width:34px;
  height:2px;
  background:linear-gradient(90deg,var(--edu-accent),transparent);
}

.edu-title{
  margin:0.75rem 0;
  font-size:clamp(2.2rem,3.5vw,2.8rem);
  letter-spacing:-0.02em;
}

.edu-intro{
  color:var(--edu-muted);
  line-height:1.7;
}

.edu-grid{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:1.5rem;
}

.edu-card{
  grid-column:span 6;
  background:var(--edu-card-bg);
  border-radius:18px;
  border:1px solid var(--edu-border);
  padding:1.75rem;
  position:relative;
  overflow:hidden;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.edu-card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:4px;
  height:100%;
  background:var(--edu-accent);
}

.edu-card:hover{
  transform:translateY(-6px);
  border-color:rgba(239,128,55,0.45);
  box-shadow:0 25px 55px rgba(0,0,0,0.08);
}

.edu-card-school{
  margin:0.35rem 0 1rem;
  font-size:0.9rem;
  color:var(--edu-muted);
}

.edu-tags{
  display:flex;
  flex-wrap:wrap;
  gap:0.5rem;
  margin-bottom:1rem;
}

.edu-tag{
  padding:0.45rem 0.75rem;
  font-size:0.75rem;
  border-radius:999px;
  border:1px solid var(--edu-border);
  background:rgba(15,23,42,0.04);
  color:rgba(15,23,42,0.85);
  line-height:1;
}

.edu-tag-accent{
  background:rgba(239,128,55,0.15);
  border-color:rgba(239,128,55,0.45);
  color:#9a3e08;
}

@media (max-width:900px){
  .edu-card{ grid-column:span 12; }
  .edu-header{ margin-bottom:2.25rem; }
}

/* =========================
   PROJECTS
========================= */
.projects-header{
  max-width:680px;
  margin-bottom:2.25rem;
}
.projects-header p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

.projects-grid{
  display:grid;
  gap:1.25rem;
}
@media (min-width:640px){
  .projects-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (min-width:960px){
  .projects-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}

.project-img-wrap{
  position:relative;
  overflow:hidden;
  border-radius:14px;
  box-shadow:0 14px 30px rgba(0,0,0,0.08);
  background:#ddd;
  border:1px solid rgba(0,0,0,0.06);
}

.project-img-wrap img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  transition:transform 0.3s ease;
}

.project-img-wrap:hover img{ transform:scale(1.05); }

/* =========================
   CONTACT
========================= */
.contact-inner{
  display:grid;
  gap:2.25rem;
  row-gap:3rem;
  align-items:start;
}
.contact-inner > *{ min-width:0; }

@media (min-width:768px){
  .contact-inner{
    grid-template-columns:minmax(0,1.15fr) minmax(0,0.85fr);
    align-items:start;
  }
}

.contact-form{
  width:100%;
  max-width:560px;
  margin:0 auto;
  margin-top:1.25rem;

  background:#fff;
  border-radius:18px;
  padding:1.5rem 1.5rem 1.6rem;
  box-shadow:0 14px 34px rgba(0,0,0,0.08);
  border:1px solid var(--border-subtle);
}

.contact-form form{
  display:flex;
  flex-direction:column;
  gap:0.9rem;
}

.contact-form label{
  display:block;
  font-size:0.85rem;
  font-weight:700;
  margin:0;
}

.contact-form input,
.contact-form textarea{
  width:100%;
  padding:0.7rem 0.8rem;
  border-radius:12px;
  border:1px solid rgba(0,0,0,0.18);
  font-size:0.95rem;
  font-family:inherit;
  background:#fafafa;
  margin:0;
}

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

/* Make WP buttons inside blocks match */
.wp-block-button__link{
  border-radius:999px;
  font-weight:700;
}


.section-panel::before,
.section-panel::after {
  pointer-events: none;
}

.contact-form {
  position: relative;
  z-index: 10;
}

