/* Intro page — independent from main site styles */

@font-face {
  font-family: 'Jiftan Black';
  src: url('../styles/jiftanblack.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jiftan Medium';
  src: url('../styles/jiftanmedium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jiftan Light';
  src: url('../styles/jiftanlight.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root{
  --bg: #0b1222;
  --surface: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.10);
  --ink: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);
  --accent: #8bdc65; /* muted lime */

  --font-body: 'IBM Plex Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --font-ui: "Jiftan Medium", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-display: "Jiftan Black", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-secondary: "Jiftan Light", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --r: 26px;
  --shadow: 0 26px 80px rgba(0,0,0,0.58);
}

/* Body / paragraph typography (readability)
   - Inter only for paragraph-level/descriptive text
   - Headings keep the existing display fonts
*/
p,
.intro-lead,
.intro-body,
.email-label,
.email-value{
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  letter-spacing: 0.15px;
  font-weight: 400;
}

*{ box-sizing: border-box; }
html,body{ height: 100%; }

html{ scroll-behavior: smooth; }

body.intro-page{
  margin: 0;
  color: var(--ink);
  font-family: var(--font-ui);
  background:
    radial-gradient(1200px 700px at 18% 18%, rgba(139,220,101,0.12), transparent 55%),
    radial-gradient(900px 600px at 82% 78%, rgba(56,189,248,0.10), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{ color: inherit; }

.intro-shell{
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px 18px;
}

.intro{
  width: min(1120px, 92vw);
  border-radius: var(--r);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 38px 34px;
}

.intro-grid{
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 34px;
  align-items: center;
}

.intro-copy{
  display: grid;
  align-content: center;
}

.intro-title{
  margin: 0;
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.accent{ color: var(--accent); }

.intro-lead{
  font-family: var(--font-body);
  font-size: 0.945rem;
  margin: 14px 0 0;
  color: rgba(255,255,255,0.76);
  font-weight: 550;
  max-width: 72ch;
}

.intro-body{
  font-family: var(--font-body);
  font-size: 0.945rem;
  margin: 14px 0 0;
  color: rgba(255,255,255,0.82);
  font-weight: 500;
  max-width: 72ch;
}

/* CTA group (Intro left column) */
.cta-group{
  display:flex;
  gap:14px;
  margin-top:26px;
  flex-wrap:wrap;
}

/* Unified button sizing (CTA + social buttons only) */
.btn-base{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1;
  vertical-align: middle;
}

/* Shared lift interaction (CTA + social + email)
   Note: does NOT impose padding/height.
*/
.lift{
  transform: translateY(0);
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.lift:hover{
  transform: translateY(-3px);
  filter: brightness(1.06) contrast(1.02);
  box-shadow: 0 14px 36px rgba(0,0,0,0.40);
}

.lift:active{
  transform: translateY(-1px);
  filter: brightness(1.03) contrast(1.01);
  box-shadow: 0 10px 26px rgba(0,0,0,0.34);
}

.lift:focus-visible{
  outline: none;
  box-shadow:
    0 14px 36px rgba(0,0,0,0.40),
    0 0 0 3px rgba(139,220,101,0.22),
    0 0 0 1px rgba(139,220,101,0.45) inset;
}

/* Buttons */
.btn{
  border: 1px solid transparent;
  text-decoration: none;
  font-family: var(--font-ui);
  letter-spacing: 0.02em;
}

.btn-primary{
  background: rgba(139,220,101,0.16);
  border-color: rgba(139,220,101,0.35);
  color: rgba(255,255,255,0.92);
}

.btn-primary:hover{
  border-color: rgba(139,220,101,0.55);
}

.btn-secondary{
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.90);
}

.btn-secondary:hover{
  border-color: rgba(255,255,255,0.22);
}

@media (prefers-reduced-motion: reduce){
  .lift{ transition: none; }
  .lift:hover, .lift:active{ transform: none; }
}

/* Right side */
.intro-side{
  display: grid;
  gap: 16px;
  align-content: start;
}

.portrait{
  margin: 0;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 16px 60px rgba(0,0,0,0.55);
  overflow: hidden;
}

.portrait img{
  width: 100%;
  height: auto;
  display: block;
}

.portrait-placeholder{
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  font-family: var(--font-secondary);
  color: rgba(255,255,255,0.66);
  background:
    radial-gradient(600px 280px at 20% 20%, rgba(139,220,101,0.16), transparent 60%),
    radial-gradient(520px 260px at 80% 80%, rgba(56,189,248,0.12), transparent 60%),
    rgba(255,255,255,0.04);
}

.side-card{
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  padding: 14px 14px;
}

.social{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Normalize social button sizing (LinkedIn / GitHub / X)
   Keep height/padding from .btn-base; make widths equal within the row.
*/
.social .social-link.btn-base{
  flex: 1 1 0;
}

.social-link{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  text-decoration: none;
  color: rgba(255,255,255,0.90);
  font-family: var(--font-ui);
  font-size: 16px;
}

.social-link:hover{ border-color: rgba(139,220,101,0.40); }

/* Social link — subtle desktop hover lift */
@media (hover: hover) and (pointer: fine){
  .social-link.lift:hover{
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.30);
  }
}

.email{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.email-row{
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.email-label{
  flex: 0 0 auto;
  font-family: var(--font-secondary);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.email-value-wrap{
  display: inline-flex;
  width: fit-content;
  position: relative;
}

.email-value{
  display: inline-block;
  position: relative;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.email-value::after{
  content: "";
  position: absolute;
  left: -3px;
  width: calc(100% + 6px);
  bottom: -6px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
  transition: none;
}

/* Email link: keep lift transform but remove shadow/box highlight */
.email-value.lift:hover,
.email-value.lift:active,
.email-value.lift:focus-visible{
  background: transparent;
  box-shadow: none;
  filter: none;
}

.email-value.lift:focus-visible::after{
  opacity: 0.70;
}

.email-value:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 3px rgba(139,220,101,0.18),
    0 0 0 1px rgba(139,220,101,0.38) inset;
}

/* Responsive */
@media (max-width: 920px){
  .intro{
    padding: 28px 20px;
    background: rgba(11,18,34,0.92);
    overflow: hidden;
  }
  .intro-grid{ grid-template-columns: 1fr; align-items: start; }
  .intro-title{ font-size: 36px; }
  .portrait{
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 70px 14px 70px 14px;
    overflow: hidden;
  }
  .portrait img{
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 70px 14px 70px 14px;
  }
  .portrait-placeholder{
    aspect-ratio: 1 / 1;
    border-radius: 70px 14px 70px 14px;
  }
}

/* ── Intro – large phone typography (≤768px) ── */
@media (max-width: 768px){
  .intro-title{ font-size: 33px; }
  .intro-lead,
  .intro-body {
    font-size: 0.94rem;
    line-height: 1.68;
  }
}

/* ── Intro – phone typography (≤480px) ── */
@media (max-width: 480px){
  .intro-title{ font-size: 26px; }
  .portrait{
    max-width: 280px;
    border-radius: 70px 14px 70px 14px;
  }
  .portrait img{
    border-radius: 70px 14px 70px 14px;
  }
  .cta-group{
    flex-wrap: nowrap;
    gap: 10px;
  }
  .intro {
    padding: 18px 14px;
  }
  .intro-lead,
  .intro-body {
    font-size: 12.5px;
    line-height: 1.48;
  }
  .btn-base {
    height: 36px;
    padding: 0 10px;
    font-size: 11.5px;
    border-radius: 10px;
  }
  .social-link {
    font-size: 12px;
    padding: 0 8px;
    height: 34px;
  }
  .portrait {
    max-width: 220px;
  }
  .side-card {
    padding: 10px;
  }
  .social {
    gap: 6px;
  }
  .email-label {
    font-size: 10px;
  }
  .email-value {
    font-size: 12px;
  }
}

@media (max-width: 290px){
  .cta-group{
    flex-direction: column;
    flex-wrap: wrap;
  }
  .cta-group .btn{
    width: 100%;
  }
}

/* Mobile tap feedback – phones only */
@media (max-width: 920px) and (pointer: coarse){
  .btn.lift,
  .social-link.lift {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .btn.lift:active,
  .social-link.lift:active {
    transform: translateY(2px) scale(0.97) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.45) !important;
    filter: brightness(0.92) !important;
    transition: transform 80ms ease, box-shadow 80ms ease, filter 80ms ease !important;
  }
}
