/* =============================
   Nicholas Zastrow — Portfolio
   Global Styles (styles.css)
   ============================= */

/* 1) CSS Reset / Base ----------------------------------------------------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  letter-spacing: .2px;
  color: var(--text-1);
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
}
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--acc-1); outline-offset: 2px; }

html {
  scroll-behavior: smooth;
}


/* 2) Design Tokens -------------------------------------------------------- */
:root {
  --bg-1: #98c4ed;      /* sky */
  --bg-2: #bfe0f7;      /* lighter gradient */
  --surface: #ffffff;   /* cards */
  --panel: #0D0F14;     /* heading color */
  --text-1: #0D0F14;    /* primary text */
  --text-2: #273244;    /* secondary text */
  --acc-1: #3AB4F2;     /* electric blue */
  --acc-2: #8B80F9;     /* neon purple */
  --line: #7bb2de;      /* borders */
  --shadow: 0 10px 30px rgba(25,60,90,.15), 0 0 40px rgba(139,128,249,.12);
  --radius: 18px;
  --maxw: 1100px;
}

/* 3) Utilities ------------------------------------------------------------ */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.center { display: grid; place-items: center; }
.muted { color: var(--text-2); }
.hide { display: none !important; }

/* 4) Typography ----------------------------------------------------------- */
a { color: #0b3b63; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--panel); margin: 0 0 .3rem; }
.eyebrow {
  font-family: 'Orbitron', sans-serif; font-weight: 700; color: #0b3b63;
  letter-spacing: .12em; text-transform: uppercase; font-size: 12px; opacity: .95;
}
.title-xl {
  font-family: 'Orbitron', sans-serif; font-weight: 700;
  font-size: clamp(32px, 4vw, 46px); line-height: 1.2;
}
/* 5) Nav ------------------------------------------------------------------ */
.nav {
  position: static;
  z-index: 100;
  transition: background-color .4s ease, box-shadow .4s ease, border-color .4s ease;
  background-color: transparent;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.65));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* Full-width bar, brand on the far left, links on the far right */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;        /* use full browser width */
  padding: 10px 24px;     /* adjust these for how close to the edges you want */
}

/* Brand (logo + name) pinned to the left */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  flex-shrink: 0;
}

/* Logo pill */
.brand .logo {
  width: 50px;
  height: 50px;
  font-size: 1.35rem;
}

/* Right-side navigation links */
.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;      /* pushes the group to the far right */
  align-items: center;
}

/* Link styling */
.nav-links a {
  font-size: 1.05rem;
  padding: 8px 12px;
  border-radius: 10px;
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background-color .2s ease;
}

.nav-links a:hover {
  background: rgba(58,180,242,.15);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

/* Re-use your existing logo style */
.logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #0C1220;
  background: linear-gradient(135deg, var(--acc-1), var(--acc-2));
  box-shadow:
    0 0 18px rgba(58,180,242,.25),
    0 0 42px rgba(139,128,249,.12);
}

/* 6) Hero ----------------------------------------------------------------- */
.hero {
    padding-top: 60px; /* your updated size */
    padding-bottom: 40px;
    
    display: flex;              /* centers the portrait */
    flex-direction: column;     /* keeps content stacked */
    align-items: center;        /* horizontal centering */
    justify-content: flex-start;
    text-align: center;
}

.lead {
  color: var(--text-2);
  max-width: 760px;
  margin: 0 auto;        /* centers the block itself */
  text-align: center;    /* centers the text inside */
}

/* Portrait glow */
.hero img {
  width: 160px; height: 160px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 18px rgba(58,180,242,.6), 0 0 36px rgba(139,128,249,.4);
  margin-bottom: 20px; border: 2px solid rgba(255,255,255,.4); transition: box-shadow .3s ease;
}
.hero img:hover { box-shadow: 0 0 28px rgba(58,180,242,.8), 0 0 52px rgba(139,128,249,.6); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px;
  font-weight: 600; letter-spacing: .3px; border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;

.btn-center {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;       /* centers horizontally */
  justify-content: center;   /* centers vertically if needed */
  margin-top: 20px;
}

}

.btn-primary { background: linear-gradient(135deg, rgba(58,180,242,.25), rgba(139,128,249,.25)); border-color: rgba(58,180,242,.35); box-shadow: var(--shadow); color: #0b3b63; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.6); border-color: var(--line); color: var(--panel); }
.btn-ghost:hover { background: rgba(255,255,255,.8); }
.cta { display:flex; justify-content:center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* 7) Cards/Grid (for sections) ------------------------------------------- */
.section { padding: 40px 0; }
.grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .grid.cols-2 { grid-template-columns: 1.2fr .8fr; } }
@media (min-width: 700px) { .grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); } }
/* Soft, subtle card styling for all cards */
.card{
  background: rgba(255, 255, 255, 0.05);           /* Very light panel fill */
  border: 1px solid rgba(255, 255, 255, 0.15);     /* Soft border */
  border-radius: 14px;                              /* Smooth edges */
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);       /* Gentle lift */
  padding: 24px;
}
.feature{
  background: rgba(200,200,200,.65);     /* visible panel */
  border: 1px solid var(--line);         /* visible border */
  border-radius: 14px;
  padding: 18px 18px 16px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  transition:
    transform .2s ease,
    background .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}
.feature:hover {
  transform: translateY(-2px);          /* keep the tiny lift if you like */
  background: transparent;              /* lose the background */
  border-color: transparent;            /* hide the border */
  box-shadow: none;                     /* optional: remove shadow too */
}

/* Applies to all card titles */
.feature .title {
  display: block;
  font-weight: 700;
  color: var(--panel);
  margin-bottom: 8px;
  line-height: 1.25;
  min-height: 2.6em; 
/* SQL/PHP card spacing tweaks */
.sql-php-card .kicker {
  margin-bottom: 2px;       /* same feel as other cards */
}

.sql-php-card .title {
  display: block;
  margin-bottom: 12px;      /* matches other titles */
}

/* Stack SQL/PHP buttons with consistent gaps */
.sql-php-actions {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;  /* keeps them left-aligned like other cards */
}


}
.grid {
  display: grid;
  gap: 18px;
  justify-content: center;     /* center the grid itself */
  justify-items: center;       /* center items inside it */
}

/* 8) Forms ---------------------------------------------------------------- */
.input, .textarea {
  width: 100%; margin: 6px 0 12px; padding: 12px; border-radius: 10px;
  border: 1px solid var(--line); background: #ffffff; color: var(--text-1);
}
.textarea { resize: vertical; }

/* 9) Footer --------------------------------------------------------------- */
footer { border-top: 1px solid var(--line); margin-top: 42px; }
.foot-inner {
  max-width: var(--maxw); margin-inline: auto; padding: 22px 20px 36px;
  color: var(--text-2); font-size: 14px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
}
.links { display: flex; gap: 14px; }

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 42px;
  background: rgba(0, 0, 0, 0.18);
}

.foot-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 22px 20px 36px;
  color: var(--text-2);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-links a {
  color: #0b3b63;
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

.divider {
  color: rgba(0,0,0,0.35);
}


/* 10) Motion Preferences -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .btn, .feature, .nav-links a { transition: none; }
}
.kicker {
  font-size: 12px;
  color: #0b3b63;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}
/* Mobile navigation tweaks ---------------------------------- */
@media (max-width: 700px) {
  .nav {
    padding: 4px 0;
  }

  .nav-inner {
    max-width: 100%;
    padding: 8px 12px;
    flex-wrap: wrap;          /* allow wrapping instead of strict column */
    row-gap: 6px;
  }

  .brand {
    font-size: 0.95rem;
  }

  .brand .logo {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-end; /* keep links toward the right edge */
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  .nav-links a {
    font-size: 0.95rem;
    padding: 4px 6px;
  }
}


