/* global.css — shared modern theme (dark + glass) for Gianlizzi.com
   Designed to unify Landing / About / Blog pages with the same look & feel.
   ---------------------------------------------------------------------- */

:root{
  /* Base */
  --bg: #070B16;
  --surface: rgba(255,255,255,0.06);
  --surface-2: rgba(255,255,255,0.08);
  --stroke: rgba(255,255,255,0.12);

  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);
  --muted-2: rgba(255,255,255,0.58);

  /* Accents */
  --accent: #EF7F00;
  --accent-2: #2b90ff;

  /* Elevation */
  --shadow: 0 18px 60px rgba(0,0,0,0.45);
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.28);

  /* Radius */
  --radius: 18px;
  --radius-lg: 24px;

  /* Layout */
  --container: 1100px;

  /* Motion */
  --ease: cubic-bezier(.2,.8,.2,1);
}

/* ----------------------------- */
/* Base / Reset                   */
/* ----------------------------- */

*{ box-sizing: border-box; }

html, body{ height:100%; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(239,127,0,0.18), transparent 60%),
    radial-gradient(900px 500px at 95% 10%, rgba(43,144,255,0.16), transparent 55%),
    radial-gradient(900px 600px at 50% 120%, rgba(239,127,0,0.10), transparent 60%),
    var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, canvas, svg{ display:block; max-width:100%; }
input, button, textarea, select{ font: inherit; color: inherit; }

a{ color: inherit; text-decoration: none; }
a:hover{ color: rgba(255,255,255,0.96); }

strong{ color: rgba(255,255,255,0.96); }

::selection{
  background: rgba(239,127,0,0.28);
}

/* Accessible focus */
:focus-visible{
  outline: 2px solid rgba(43,144,255,0.75);
  outline-offset: 3px;
  border-radius: 10px;
}

/* ----------------------------- */
/* Utilities                      */
/* ----------------------------- */

.container{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.muted{ color: var(--muted); }
.muted-2{ color: var(--muted-2); }

.accent{
  background: linear-gradient(135deg, rgba(239,127,0,1), rgba(43,144,255,0.95));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hr{
  height: 1px;
  background: rgba(255,255,255,0.08);
  border: 0;
  margin: 18px 0;
}

.grid{
  display:grid;
  gap: 16px;
}
.grid-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 920px){
  .grid-2, .grid-3{ grid-template-columns: 1fr; }
}

/* ----------------------------- */
/* Typography                     */
/* ----------------------------- */

.eyebrow{
  margin: 0 0 10px;
  color: rgba(255,255,255,0.70);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.h1{
  margin: 0 0 12px;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.h2{
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.lead{
  margin: 0;
  color: var(--muted);
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.6;
}
.p{
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
}

/* ----------------------------- */
/* Header / Navigation            */
/* ----------------------------- */

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7,11,22,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header.scrolled{
  background: rgba(7,11,22,0.72);
  border-bottom-color: rgba(255,255,255,0.10);
}

.nav-inner{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  user-select:none;
}
.brand-logo{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display:inline-block;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  background:
    radial-gradient(18px 18px at 28% 28%, rgba(255,255,255,0.35), transparent 60%),
    linear-gradient(135deg, rgba(239,127,0,1), rgba(239,127,0,0.55));
}
.brand-text{
  font-family: "Ubuntu", system-ui;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.dot{ color: rgba(255,255,255,0.70); }

.nav{
  display:flex;
  align-items:center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
}
.nav .nav-link{
  padding: 10px 12px;
  border-radius: 999px;
  color: rgba(255,255,255,0.78);
  font-weight: 750;
  font-size: 14px;
  transition: background .12s var(--ease), color .12s var(--ease), transform .12s var(--ease), border-color .12s var(--ease);
  border: 1px solid transparent;
}
.nav .nav-link:hover{
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
}
.nav .nav-link:active{ transform: translateY(1px); }
.nav .nav-link.is-active,
.nav a.active{
  background: rgba(239,127,0,0.14);
  color: rgba(255,255,255,0.95);
  border: 1px solid rgba(239,127,0,0.28);
}

@media (max-width: 920px){
  .nav-inner{ gap: 12px; }
  .nav{ overflow-x:auto; white-space: nowrap; }
}

/* ----------------------------- */
/* Buttons                        */
/* ----------------------------- */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(239,127,0,0.28);
  background: rgba(239,127,0,0.14);
  color: rgba(255,255,255,0.92);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: transform .12s var(--ease), background .12s var(--ease), border-color .12s var(--ease), box-shadow .12s var(--ease);
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(239,127,0,0.18);
  box-shadow: 0 12px 35px rgba(239,127,0,0.14);
}
.btn:active{ transform: translateY(0); }

.btn-ghost{
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
}
.btn-ghost:hover{
  background: rgba(255,255,255,0.08);
  box-shadow: 0 12px 35px rgba(0,0,0,0.22);
}

.btn-blue{
  border-color: rgba(43,144,255,0.30);
  background: rgba(43,144,255,0.14);
}
.btn-blue:hover{ background: rgba(43,144,255,0.18); }

/* ----------------------------- */
/* Cards / Surfaces               */
/* ----------------------------- */

.card{
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow-soft);
}

.card-pad{ padding: 18px; }

.section-card{ /* backwards-friendly alias */
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow-soft);
}

.section-head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  font-weight: 750;
}
.badge-accent{
  border-color: rgba(239,127,0,0.28);
  background: rgba(239,127,0,0.10);
}

/* Media card (image + content) */
.media-card{
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-rows: 230px 1fr;
}
.media-card .media{
  position: relative;
  background: rgba(255,255,255,0.04);
}
.media-card .media::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(7,11,22,0.75));
}
.media-card .media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  transform: scale(1.02);
}
.media-card .content{ padding: 16px 16px 18px; }

/* ----------------------------- */
/* Lists                          */
/* ----------------------------- */

.list{
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}
.list li{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}
.list-title{
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.list-title a{
  color: rgba(255,255,255,0.94);
  text-decoration: underline;
  text-decoration-color: rgba(239,127,0,0.55);
  text-underline-offset: 3px;
}
.list-title a:hover{
  text-decoration-color: rgba(239,127,0,0.85);
}
.list-desc{
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

/* ----------------------------- */
/* Chips                          */
/* ----------------------------- */

.chips{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin-top: 10px;
}
.chip{
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  font-weight: 750;
}
.chip.is-accent{
  border-color: rgba(239,127,0,0.28);
  background: rgba(239,127,0,0.10);
}

/* ----------------------------- */
/* Forms                          */
/* ----------------------------- */

.input, input[type="text"], input[type="email"], input[type="search"], textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
textarea{ min-height: 120px; resize: vertical; }
input::placeholder, textarea::placeholder{ color: rgba(255,255,255,0.45); }

/* ----------------------------- */
/* Footer                         */
/* ----------------------------- */

.site-footer{
  margin-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.footer-inner{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-title{
  font-weight: 900;
  margin-bottom: 6px;
}
.footer-text{
  margin: 0;
  color: var(--muted-2);
  max-width: 52ch;
  line-height: 1.55;
  font-size: 14px;
}
.footer-links{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-link{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.85);
  font-weight: 800;
  font-size: 14px;
}
.footer-link:hover{ background: rgba(255,255,255,0.06); }

.footer-bar{
  text-align:center;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}

/* ----------------------------- */
/* Optional: reduced motion       */
/* ----------------------------- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ transition: none !important; animation: none !important; }
}
