:root{
  /* Base */
  --bg: #efe9df;                  /* warm ivory background */
  --card: rgba(255,255,255,.92);
  --ink: #1a1f1c;                  /* near-black for readable text */
  --ink-soft: #2c342f;

  /* Primary green (your pick) */
  --green: #2E6F40;                /* lively forest */
  --green-2: #3F8A52;              /* brighter hover/accent */
  --green-deep: #1f4d2e;           /* for depth/shadows only */

  /* Browns */
  --brown: #4A3A2A;                /* espresso */
  --taupe: #B9A792;                /* warm neutral */

  /* Gold */
  --gold: #B88A2B;
  --gold-soft: #E6CF9A;

  /* Tiny orange accent */
  --orange: #D87A2D;               /* use sparingly */

  --border: rgba(26,31,28,.14);
  --shadow: 0 22px 55px rgba(0,0,0,.10);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system;
  color: var(--ink);
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;

 background: url("images/background.png") no-repeat;
  background-position: 85% 85%;
  background-size: 140%;

  filter: blur(2px) saturate(110%) brightness(92%);
opacity: .85;
}

body::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
  radial-gradient(circle at 60% 30%,
    rgba(239,233,223,.10),
    rgba(239,233,223,.45) 55%,
    rgba(239,233,223,.60) 100%
  );
}

h1, h2, h3{
  font-family: "Fredoka", system-ui, sans-serif;
  letter-spacing: .2px;
  margin: 0;
}

.left-intro {
  text-align: center;
  margin-top: 28px; /* space from the photo */
}

.left-intro h2 {
  margin-bottom: 12px;
}


a{ color: var(--blue-2); text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  max-width: 1050px;
  margin: 0 auto;
  padding: 26px 18px 40px;
}

.top{
  max-width: 1050px;
  margin: 18px auto 0;
  padding: 14px 18px;
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:space-between;
}

.brand{
  display:flex;
  gap:12px;
  align-items:center;
}

.avatar{
  width: 56px;
  height: 56px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: transparent;
  border-radius: 16px;

  box-shadow:
    0 8px 25px rgba(184,138,43,.25); /* gold glow */
}

.avatar img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.avatar img{
  width: 85%;
  height: 85%;
  object-fit: contain;
}
h1{
  font-size: 22px;
}
.subtitle{
  margin:2px 0 0;
  opacity:.8;
  font-size: 13px;
}

.tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

 .tab{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(10px);
  padding: 10px 14px;
  border-radius: 999px;
  cursor:pointer;
  font-weight: 700;
  color: var(--ink);
  transition: transform .08s ease, background .2s ease;
}

.tab:hover{ transform: translateY(-1px); }
.tab.active{
  background: linear-gradient(
    135deg,
    rgba(27,34,31,.12),
    rgba(74,63,53,.14)
  );
  border-color: rgba(27,34,31,.25);
}

.section-title{
  margin: 10px 0 14px;
  font-size: 18px;
}

.card{
  background: rgba(255,255,255,.74);
  backdrop-filter: blur(28px) saturate(130%);
  -webkit-backdrop-filter: blur(28px) saturate(130%);

  border: 1px solid rgba(255,255,255,.45);
  border-radius: 26px;
  padding: 20px;

  box-shadow:
    0 40px 110px rgba(0,0,0,.22),
    0 12px 30px rgba(0,0,0,.08);
}

.hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}


@media (max-width: 860px){
  .hero{ grid-template-columns: 1fr; }
  .top{ flex-direction: column; align-items:flex-start; }
}

.mini-stack{
  display:grid;
  gap:12px;
}

.mini-card{
  background: rgba(255,255,255,.7);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}

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

.meta{
  margin: 6px 0 12px;
  opacity: .78;
  font-size: 13px;
}

ul{ margin: 10px 0 0; padding-left: 18px; }
li{ margin: 8px 0; }

.pill-row{
  margin-top: 12px;
  margin-bottom: 22px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content: center;
}

.pill{
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;

  color: rgba(26,31,28,.90);

  background: rgba(255,255,255,.28);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);

  border: 1px solid rgba(255,255,255,.45);

  box-shadow:
    0 10px 22px rgba(0,0,0,.10),
    inset 0 1px 0 rgba(255,255,255,.55);
}

.skills{
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(47,79,70,.20);
}

.link-row{ 
  display:flex; 
  gap:10px; 
  margin-top: 12px; 
  flex-wrap:wrap; 
  justify-content: center;
}

.btn{
  border: 1px solid rgba(255,255,255,.35);
  color: #ffffff;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;

  background: linear-gradient(
    135deg,
    var(--green),
    var(--gold)
  );

  box-shadow:
    0 14px 28px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.25);

  transition: transform .15s ease, filter .2s ease, box-shadow .2s ease;
}

.btn:hover{
  transform: translateY(-2px);
  filter: brightness(1.05) saturate(1.05);
  box-shadow:
    0 18px 34px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.3);
}

.btn.ghost{
  background: rgba(255,255,255,.7);
  border: 1px solid var(--border);
  color: var(--ink);
}

.btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.contact{ list-style:none; padding-left: 0; }
.contact li{ margin: 10px 0; }

.hint{
  margin-top: 12px;
  opacity: .75;
  font-size: 13px;
}

.footer{
  max-width: 1050px;
  margin: 20px auto 30px;
  padding: 10px 18px 28px;
  opacity: .75;
  font-size: 13px;
}


.portrait-card {
  position: relative; 
  background: linear-gradient(
  135deg,
  rgba(61,107,95,.18),
  rgba(199,184,158,.16)
);
  border-radius: 26px;
  padding: 18px;
  box-shadow: var(--shadow);
  overflow: hidden; 
  margin-bottom: 28px; /* space before “Hi, I’m Fiorella” */
}


.portrait-card::before{
  content: "";
  position: absolute;
  inset: -40px;
  z-index: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(61,107,95,.22), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(199,184,158,.20), transparent 55%),
    radial-gradient(circle at 40% 80%, rgba(47,79,70,.14), transparent 55%);
  filter: blur(12px);
}

.portrait {
  position: relative;
  z-index: 1; 
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 22px;
  border: 4px solid rgba(47,79,70,.20);
  display: block;
  background: transparent;
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-actions {
  margin-top: auto; 
  display: flex;
  justify-content: center;
}


.grid .card{
  display:flex;
  flex-direction:column;
}

.grid .card .link-row{
  margin-top:auto;
  justify-content:center; 
}

.creative-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.creative-item img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,0,0,0.06);
}

/* Creative page spacing */
.creative-page .card {
  margin-bottom: 28px;
}
.creative-page .mini-card{
  padding: 18px;
}

.creative-page .mini-card h4{
  margin: 0 0 10px;
}

.creative-page .mini-card p{
  margin: 0 0 14px;
  line-height: 1.5;
}

.creative-page .mini-card .btn{
  margin-top: 6px;
  align-self: flex-start;
}

.creative-page .mini-stack{
  margin-top: 10px;
}