/* ===================================================================
   Modern Portfolio Stylesheet
   - Tweak colors in :root
   - Layout uses CSS Grid & Flexbox
   - No frameworks required
   =================================================================== */

/* ============
   Design tokens
   ============ */
:root{
  /* Background/Surfaces/Text */
  --bg: #0b0f14;          /* Main page background */
  --surface: #0f1520;     /* Header/Footer background */
  --surface-2: #121b2a;   /* Unused in this demo, handy for cards */
  --text: #e6f1ff;        /* High-contrast text color */
  --muted: #9fb3c8;       /* Secondary text color */

  /* Brand accents (edit to your brand palette) */
  --brand: #00e5a8;
  --brand-2: #47c5ff;

  /* Focus ring + shadows */
  --ring: #2a9d8f;
  --shadow: 0 10px 30px rgba(0,0,0,.35);

  /* Border radius for cards/buttons */
  --radius: 16px;
}

/* Global reset-ish */
*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji;
  color: var(--text);
  /* Soft gradient glows in the background */
  background: radial-gradient(1000px 600px at 80% -10%, rgba(71,197,255,.12), transparent 60%),
             radial-gradient(1000px 600px at -10% 10%, rgba(0,229,168,.10), transparent 60%),
             var(--bg);
  line-height: 1.6;
}

/* Accessibility helper: hide text visually while keeping it for screen readers */
.sr-only{
  position:absolute !important;
  height:1px;width:1px;
  overflow:hidden;clip:rect(1px, 1px, 1px, 1px);
}

/* ===================
   Header / Navigation
   =================== */
.site-header{
  position: sticky;
  top: 0;
  /* Subtle glass effect */
  backdrop-filter: saturate(140%) blur(10px);
  background: color-mix(in oklab, var(--surface), transparent 35%);
  border-bottom: 1px solid rgba(255,255,255,.06);
  z-index: 10;
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  max-width: 1200px;
  margin: 0 auto;
}
/* Clickable logo (acts as "Home") */
.logo{
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: .2px;
}
.logo-mark{
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: radial-gradient(80% 80% at 20% 20%, var(--brand), var(--brand-2));
  box-shadow: 0 4px 20px rgba(0,229,168,.3);
}
.logo-text{ font-size: 1.05rem; }

/* Tab-like nav links */
.nav{
  display: flex;
  gap: 6px;
}
.nav-link{
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  opacity: .85;
  border: 1px solid transparent;
}
.nav-link:hover{ opacity: 1; }
.nav-link.active{
  border-color: rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
}

/* =====================
   Section & Containers
   ===================== */
.section{ padding: clamp(48px, 8vw, 96px) 0; }
.container{
  width: min(1200px, 92vw);
  margin-inline: auto;
  padding-inline: clamp(8px, 2vw, 20px);
}
.section-head{
  margin-bottom: 18px;
}
.section-head h2{
  font-size: clamp(1.4rem, 1rem + 2vw, 2rem);
  line-height: 1.2;
  margin: 0 0 6px;
}
.muted{ color: var(--muted); }

/* =====
   Hero
   ===== */
.section-hero{
  display: grid;
  place-items: center;
  text-align: center;
}
.hero-title{
  font-size: clamp(1.8rem, 1.2rem + 3vw, 3rem);
  margin: 0 0 12px;
}
.hero-title-small{
  font-size: clamp(0.9rem, 0.6rem + 3vw, 1.5rem);
  margin: 0 0 10px;
}
.hero-subtitle{
  color: var(--muted);
  max-width: 70ch;
  margin: 0 auto 18px;
}
.hero-cta{
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===================
   Buttons / Chips
   =================== */
.button{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  transition: transform .15s ease;
}
.button:hover{ transform: translateY(-1px); }
.button:focus-visible{ outline: 2px solid var(--ring); outline-offset: 2px; }
.button-secondary{
  background: transparent;
  border-color: rgba(255,255,255,.16);
  opacity: .9;
}
.chip{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.14);
  opacity: .9;
  transition: transform .15s ease, opacity .15s ease;
}
.chip:hover{ opacity: 1; transform: translateY(-1px); }

/* ======
   Cards
   ====== */
.grid.cards{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 250px;
}
/* Decorative preview panel — replace with <img src="..." alt="..."> if you want real screenshots */
.card-media{
  aspect-ratio: 16/9;
  background:
    radial-gradient(80% 80% at 20% 20%, rgba(0,229,168,.5), rgba(71,197,255,.3)),
    linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.02));
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.card-body{
  padding: 14px;
  display: grid;
  gap: 8px;
}
.card-title{ margin: 0; font-size: 1.05rem; }
.card-text{ margin: 0; color: var(--muted); }
.card-actions{
  display: flex;
  gap: 8px;
  padding: 12px 14px 16px;
  margin-top: auto; /* Pins actions to the bottom */
}

/* =====
   About
   ===== */
.about-grid{
  display: grid;
  gap: 20px;
  grid-template-columns: 1.2fr .8fr;
}
.about-blurb p{ margin: 0 0 12px; }
/* Compact facts list */
.facts{
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 10px;
}
.facts li{
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
}
.fact-label{ color: var(--muted); }

/* =======
   Footer
   ======= */
.site-footer{
  margin-top: 40px;
  padding: 24px 0 36px;
  background: color-mix(in oklab, var(--surface), transparent 20%);
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner{
  display: grid;
  gap: 16px;
  align-items: center;
}
.socials{
  display: flex;
  gap: 10px;
}
/* Circular icon buttons */
.social{
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  text-decoration: none;
}
.social svg{ width: 20px; height: 20px; fill: var(--text); opacity: .9; }
.social:hover svg{ opacity: 1; }
.footer-meta{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
}
.footer-link{
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,.2);
}

/* ============
   Responsive
   ============ */
@media (max-width: 780px){
  .about-grid{
    grid-template-columns: 1fr;
  }
  .nav{ gap: 2px; }
  .nav-link{ padding: 8px 12px; }
}
