/* --------- Base / Reset --------- */
*,
*::before,
*::after { box-sizing: border-box; }

:root{
  --bg: #0b0c10;
  --surface: #101218;
  --text: #e7e9ee;
  --muted: #a5adbd;

  --brand: #7c5cff;      /* primary */
  --brand-2: #03d5ff;    /* secondary */

  --ring: color-mix(in oklab, var(--brand) 60%, white);
  --radius: 18px;
  --shadow: 0 10px 30px -10px rgba(0,0,0,.55);

  /* Skill levels */
  --level-pro: #29ffc6;
  --level-strong: #ffd166;
  --level-solid: #80ed99;
}

html, body { height: 100%; }

body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 80% -10%, rgba(124,92,255,.25), transparent 60%),
              radial-gradient(1200px 800px at 10% 110%, rgba(3,213,255,.18), transparent 60%),
              var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Accessibility */
.skip-link{
  position: absolute; left: -9999px; top: auto;
}
.skip-link:focus{
  left: 1rem; top: 1rem; background: var(--surface); color: var(--text);
  padding: .5rem .75rem; border-radius: 8px; outline: 2px solid var(--ring);
}

/* Containers give ~5–10% breathing room */
.container{
  width: min(1200px, 90vw);
  padding-inline: clamp(16px, 5vw, 80px); /* 5–10% left/right */
  margin-inline: auto;
}

/* --------- Header --------- */
.site-header{
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(8px);
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header .container{
  display: flex; align-items: center; justify-content: space-between;
  padding-block: .75rem;
}

.brand{ display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-text{ font-weight: 800; letter-spacing: .3px; color: var(--text); font-size: 1rem; }
.brand-dot{
  width: 14px; height: 14px; border-radius: 999px;
  background: linear-gradient(145deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 35%, transparent), 0 0 18px var(--brand);
}

.site-nav{ display: flex; gap: 1rem; align-items: center; }
.site-nav a{
  color: var(--text); text-decoration: none; font-weight: 600;
  padding: .45rem .7rem; border-radius: 10px;
}
.site-nav a:hover{ background: rgba(255,255,255,.05); }
.btn{
  border: 0; border-radius: 999px; padding: .65rem 1.05rem; font-weight: 800; letter-spacing:.2px;
}
/* ===== Force all button text white ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff !important;   /* force white text */
    box-shadow: var(--shadow);
  }
  
.btn-ghost {
    background: transparent;
    color: #fff !important;   /* force white text */
    border: 2px solid var(--brand);
    border-radius: 999px;
    padding: .55rem 1rem;
    font-weight: 700;
    transition: background .2s ease, color .2s ease;
    text-decoration: none;
  }
.btn-ghost:hover {
    background: var(--brand);
    color: #fff !important;   /* keep white on hover */
  }
  
  

/* --------- Hero --------- */
.hero{
  position: relative;
  padding-block: clamp(56px, 9vw, 132px);
  overflow: clip;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr; /* stable side-by-side on large screens */
  align-items: center;
  gap: clamp(24px, 6vw, 64px);
}
.eyebrow {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 1.2rem;    /* was 0.82rem → bump to ~1.2rem */
    font-size: 1.4rem;
    font-weight: 800;
  }
  
.hero-title{
  font-weight: 900;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem); /* bigger */
  line-height: 1.05;
  margin: 0 0 .75rem;
}
.grad{
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub{
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  margin: 0 0 1.2rem;
  max-width: 65ch;
}

/* Social icon buttons */
.socials{ display: flex; gap: .75rem; margin-top: 1.1rem; }
.icon-btn{
  --size: 48px;
  width: var(--size); height: var(--size);
  display: inline-grid; place-items: center;
  border-radius: 999px;
  background: radial-gradient(120% 120% at 30% 20%, rgba(255,255,255,.12), rgba(255,255,255,.04));
  color: var(--text);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 6px 18px rgba(0,0,0,.35), inset 0 0 0 0 rgba(124,92,255,0);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.icon-btn:hover{
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--brand) 55%, transparent);
  box-shadow: 0 10px 24px rgba(0,0,0,.45), inset 0 0 0 1px color-mix(in oklab, var(--brand) 50%, transparent);
}
.icon-btn:active{ transform: translateY(0); }

/* Portrait */
.hero-visual{ min-width: 0; }
.photo-wrap{
  width: min(560px, 90%); /* slightly bigger */
  margin-inline: auto;
  aspect-ratio: 1/1;
  border-radius: calc(var(--radius) + 6px);
  padding: 8px;
  background:
    linear-gradient(140deg, color-mix(in oklab, var(--brand) 60%, transparent), transparent 40%),
    linear-gradient(320deg, color-mix(in oklab, var(--brand-2) 60%, transparent), transparent 40%),
    rgba(255,255,255,.04);
  box-shadow: var(--shadow);
}
.photo-wrap img{
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  filter: saturate(1.02) contrast(1.02);
}

/* Decorative background accent */
.bg-accent{
  position: absolute; inset: -10% -10% auto -10%; height: 40%;
  background:
    radial-gradient(50% 50% at 90% 10%, rgba(124,92,255,.22), transparent 60%),
    radial-gradient(50% 50% at 15% 80%, rgba(3,213,255,.18), transparent 60%);
  pointer-events: none;
}

/* Sections */
.section{ padding-block: clamp(60px, 9vw, 120px); }
.section--flush-top{ padding-top: clamp(24px, 5vw, 36px); }
.section h2{
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin: 0 0 1rem; line-height: 1.2;
}
.muted{ color: var(--muted); }

/* Headline block for Skills */
.headline-xl{
  margin-bottom: 1.25rem;
}
.headline-xl h2{
  font-size: clamp(2.2rem, 5vw, 3rem);       /* bigger heading */
  font-weight: 900;
  line-height: 1.06;
  position: relative;
  display: inline-block;
  padding-bottom: .25rem;
  background:
    linear-gradient(transparent 70%, color-mix(in oklab, var(--brand) 28%, transparent) 0) no-repeat;
  background-size: 100% 100%;
  background-position: 0 0;
  border-bottom: 3px solid color-mix(in oklab, var(--brand) 50%, var(--brand-2) 50%);
  border-radius: 2px;
}
.headline-kicker{
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--muted) 80%, white 20%);
  margin-bottom: .35rem;
}

/* About card */
.about-card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: var(--shadow);
}
.about-highlights{
  margin: .8rem 0 0; padding-left: 1.2rem; color: var(--muted);
}
.about-highlights li{ margin-bottom: .35rem; }

/* --------- Skills (bigger, no % meters) --------- */
.skill-badges{
  display: flex; flex-wrap: wrap; gap: .7rem .7rem;
  margin: 1.1rem 0 1.8rem;
}
.badge{
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem .85rem;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.14);
  color: var(--text);
  border-radius: 999px;
  font-weight: 700; font-size: .98rem;
  letter-spacing: .1px;
  transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,.28);
}
.badge:hover{
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--brand) 40%, transparent);
  box-shadow: 0 10px 22px rgba(0,0,0,.35);
}

/* Skill level chips (textual, not numeric) */
.level-badge{
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 800; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  padding: .4rem .6rem; border-radius: 999px;
  color: #0b0c10;
  background: #d1f7ff;
  border: 1px solid rgba(0,0,0,.06);
}
.level-badge--pro   { background: var(--level-pro); }
.level-badge--strong{ background: var(--level-strong); }
.level-badge--solid { background: var(--level-solid); }

/* Category tiles */
.skills-tiles{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.2rem;
}
.tile{
  grid-column: span 6;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.15rem 1.15rem .95rem;
  box-shadow: var(--shadow);
}
.tile-head{
  display: flex; align-items: center; gap: .8rem; margin-bottom: .7rem;
}
.tile-icon{
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px;
  background: radial-gradient(100% 100% at 30% 20%, rgba(124,92,255,.35), rgba(3,213,255,.25));
  border: 1px solid rgba(255,255,255,.18);
  font-size: 1.2rem;
}
.tile h3{
  font-size: 1.15rem; font-weight: 900; letter-spacing: .2px; margin: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tile-list{
  margin: .2rem 0 0; padding-left: 1.2rem; color: var(--muted);
}
.tile-list li{ margin-bottom: .45rem; }
.tile-list strong{ color: var(--text); }

/* Resume button spacing */
#resume .btn{ margin-top: 1rem; }

/* ===== Modal + Form ===== */
.modal[aria-hidden="true"]{ display:none; }
.modal{
  position: fixed; inset:0; z-index: 80; display:block;
}
.modal-backdrop{
  position:absolute; inset:0; background:rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
}
.modal-dialog{
  position: relative;
  width: min(560px, 92vw);
  margin: 8vh auto; padding: 1.1rem 1.1rem 1.2rem;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
}
.modal-title{
  margin: .2rem 0 .2rem; font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip:text; background-clip:text; color: transparent;
}
.modal-close{
  position:absolute; right:.6rem; top:.45rem;
  font-size: 1.8rem; line-height:1; border:none; background:transparent; color: var(--text);
  cursor:pointer; opacity:.8;
}
.modal-close:hover{ opacity:1; }

.field-label{ display:block; margin:.8rem 0 .35rem; font-weight:700; }
.field-input{
  width: 100%; padding:.75rem .9rem; border-radius: 12px;
  border:1px solid rgba(255,255,255,.16); color:var(--text); background: rgba(255,255,255,.04);
  outline:none;
}
.field-input:focus{ border-color: color-mix(in oklab, var(--brand) 55%, transparent); box-shadow: 0 0 0 2px color-mix(in oklab, var(--brand) 30%, transparent); }
.btn-wide{ width:100%; margin-top: .9rem; }
.form-msg{ margin-top:.6rem; color:var(--muted); min-height: 1.4em; }
.hp{ position:absolute; left:-9999px; top:-9999px; opacity:0; pointer-events:none; }

/* ===== Resume Projects (cards/boxes) ===== */
.resume-projects{
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.2rem;
    margin-top: 1.2rem;
  }
  
  .proj-card{
    grid-column: span 6;
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
    border: 1px solid rgba(255,255,255,.12);
    border-radius: calc(var(--radius) + 4px);
    padding: 1.1rem 1.1rem .95rem;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  }
  .proj-card:hover{
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0,0,0,.5);
    border-color: color-mix(in oklab, var(--brand) 45%, transparent);
  }
  
  .proj-head{
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    margin-bottom: .6rem;
  }
  .proj-title h3{
    margin: 0; font-size: 1.05rem; font-weight: 900;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .proj-tag{
    display:block; margin-top:.2rem; font-size:.82rem; color: var(--muted);
  }
  
  .chip{
    display:inline-flex; align-items:center; gap:.35rem;
    font-size:.72rem; font-weight:900; letter-spacing:.18em; text-transform:uppercase;
    padding:.35rem .5rem; border-radius:999px; color:#0b0c10;
    background: #d1f7ff; border:1px solid rgba(0,0,0,.08);
  }
  .chip--live{ background:#ffd166; }
  .chip--client{ background:#80ed99; }
  
  .proj-desc{ margin:.2rem 0 .5rem; color:var(--text); }
  .proj-points{ margin:.25rem 0 .7rem; padding-left:1.1rem; color:var(--muted); }
  .proj-points li{ margin-bottom:.4rem; }
  .proj-points strong{ color:var(--text); }
  
  .proj-footer{
    display:flex; align-items:center; justify-content:space-between; gap:.6rem; flex-wrap:wrap;
  }
  
  /* reuse your badge style; add compact tweak for stacks */
  .stack-badges{ display:flex; flex-wrap:wrap; gap:.5rem; }
  .stack-badges .badge{ padding:.4rem .65rem; font-size:.88rem; }
  
  /* Ghost button for "View project" placeholder */
/* ===== FINAL OVERRIDES: force white button text everywhere ===== */
.btn { text-decoration: none; }

.btn:visited { color: inherit; } /* stop link visited color from changing text */

a.btn-primary,
button.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff !important;
  box-shadow: var(--shadow);
}

/* --- Fix ghost button sizing --- */
a.btn-ghost,
button.btn-ghost {
  display: inline-block;           /* shrink-wrap to text */
  background: transparent;
  color: #fff !important;
  border: 2px solid var(--brand);
  border-radius: 999px;
  padding: .45rem 1rem;             /* balanced height/width */
  font-weight: 700;
  font-size: 0.95rem;               /* slightly smaller text */
  line-height: 1.2;
  white-space: nowrap;              /* prevent wrapping */
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

a.btn-ghost:hover,
button.btn-ghost:hover {
  background: var(--brand);
  color: #fff !important;
  border-color: var(--brand);
  transform: translateY(-2px);      /* small lift effect */
}

  /* Responsive */
  @media (max-width: 980px){
    .resume-projects{ grid-template-columns: 1fr; }
    .proj-card{ grid-column: 1 / -1; }
  }
  

/* --------- Footer --------- */
.site-footer{
  border-top: 1px solid rgba(255,255,255,.08);
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  padding-block: 32px;
  color: var(--muted);
  text-align: center;
}
/* ===== Resume Projects (one box per project) ===== */
.resume-projects{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
  }
  
  .proj-card{
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
    border: 1px solid rgba(255,255,255,.12);
    border-radius: calc(var(--radius) + 4px);
    padding: 1.2rem 1.1rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  }
  .proj-card:hover{
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0,0,0,.5);
    border-color: color-mix(in oklab, var(--brand) 40%, transparent);
  }
  
  .proj-title{
    margin: 0 0 .2rem;
    font-size: 1.1rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .proj-meta{
    margin: 0 0 .6rem;
    font-size: .85rem;
    color: var(--muted);
  }
  .proj-desc{
    margin: 0 0 .5rem;
    font-size: .95rem;
    color: var(--text);
  }
  .proj-points{
    margin: 0 0 .8rem;
    padding-left: 1.1rem;
    color: var(--muted);
    font-size: .9rem;
  }
  .proj-points li{ margin-bottom: .35rem; }
  .proj-points strong{ color: var(--text); }
  
  .stack-badges{
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .8rem;
  }
  .stack-badges .badge{
    padding: .4rem .65rem;
    font-size: .85rem;
  }
  
  /* ===== FINAL OVERRIDES: force white button text everywhere ===== */
.btn { text-decoration: none; }

.btn:visited { color: inherit; } /* stop link visited color from changing text */

a.btn-primary,
button.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff !important;
  box-shadow: var(--shadow);
}

/* --- Fix ghost button sizing --- */
a.btn-ghost,
button.btn-ghost {
  display: inline-block;           /* shrink-wrap to text */
  background: transparent;
  color: #fff !important;
  border: 2px solid var(--brand);
  border-radius: 999px;
  padding: .45rem 1rem;             /* balanced height/width */
  font-weight: 700;
  font-size: 0.95rem;               /* slightly smaller text */
  line-height: 1.2;
  white-space: nowrap;              /* prevent wrapping */
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

a.btn-ghost:hover,
button.btn-ghost:hover {
  background: var(--brand);
  color: #fff !important;
  border-color: var(--brand);
  transform: translateY(-2px);      /* small lift effect */
}


  /* ===== Contact Section ===== */
.contact-icons {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .contact-icons .icon-btn {
    --size: 60px;
    width: var(--size);
    height: var(--size);
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(120% 120% at 30% 20%, rgba(255,255,255,.12), rgba(255,255,255,.04));
    border: 1px solid rgba(255,255,255,.12);
    color: var(--text);
    font-size: 1.3rem;
    box-shadow: 0 6px 18px rgba(0,0,0,.35);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  }
  .contact-icons .icon-btn:hover {
    transform: translateY(-3px);
    border-color: color-mix(in oklab, var(--brand) 55%, transparent);
    box-shadow: 0 10px 28px rgba(0,0,0,.45);
  }
  
/* ===== End Brand ===== */
.end-brand {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
  .end-brand .brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
  }
  .end-brand .brand-text {
    font-weight: 800;
    letter-spacing: .3px;
    color: var(--text);
    font-size: 1.1rem;
  }
  .end-brand .brand-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(145deg, var(--brand), var(--brand-2));
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 35%, transparent),
                0 0 18px var(--brand);
  }

  /* ===== Mobile menu (final overrides) ===== */
.menu-toggle { display: none; } /* hidden on desktop */

@media (max-width: 900px) {
  .site-header .container { position: relative; }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-size: 22px;
    line-height: 1;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;

    /* Match btn-primary gradient */
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    box-shadow: var(--shadow);
    transition: filter .2s ease;
  }
  .menu-toggle:hover { filter: brightness(1.1); }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 12px;
    left: 12px;
    margin-top: 8px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    box-shadow: var(--shadow);
    flex-direction: column;
    gap: 10px;
    z-index: 60;
  }
  .site-nav.open { display: flex; }

  .site-nav a {
    padding: .6rem .8rem;
    border-radius: 8px;
  }
  .site-nav a:hover {
    background: rgba(255,255,255,.06);
  }
}


    

/* --------- Responsive --------- */
@media (max-width: 980px){
  .hero-grid{
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero-visual{ order: -1; }
  .photo-wrap{ width: min(460px, 100%); }

  .skills-tiles{ grid-template-columns: 1fr; }
  .tile{ grid-column: 1 / -1; }
}

@media (min-width: 1440px){
  .container{ width: min(1280px, 86vw); } /* keep ~7% margins on very large screens */
}

/* Motion sensitivity */
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; animation: none !important; }
}

/* Focus styles */
:focus-visible{
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
