/* =================================
   ROOT VARIABLES
   ================================= */
:root{
  --bg:#000;
  --panel:rgba(255,255,255,0.995);
  --text:#fff;
  --muted:#aaa;
  --radius:10px;
  --shadow:0 20px 40px rgba(0,0,0,0.6);
  --header-height:72px;
  --footer-height:48px;
  --transition:0.25s ease;
}

/* =================================
   BASE
   ================================= */
*,
*::before,
*::after{ box-sizing:border-box; }

html, body{
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: transparent; /* <- was black, now transparent */
  color: var(--text);
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

a{ color:inherit; text-decoration:none; }

body.no-scroll{ overflow:hidden; }

/* =================================
   VIDEO BACKGROUND (VISIBLE FIX)
   ================================= */
.video-container{
  position: fixed;
  inset: 0;
  z-index: -1;          /* <- IMPORTANT: -1, not -2 */
  overflow: hidden;
  pointer-events: none;
}

.video-container video{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =================================
   OVERLAY (must be BELOW header/menu)
   ================================= */
.menu-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.45);
  opacity:0;
  pointer-events:none;
  transition:var(--transition);
  z-index:9500;

  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}

.menu-overlay.active{
  opacity:1;
  pointer-events:all;
}

/* =================================
   HEADER (must be ABOVE overlay)
   ================================= */
header{
  position:fixed;
  top:0; left:0; right:0;
  height:var(--header-height);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 20px;
  z-index:9600;
  background:linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.3));
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.logo{ padding:6px 0 0 6px; }
.logo a{ display:inline-flex; align-items:center; }
.logo img{
  max-height:52px;
  width:auto;
  display:block;
}

/* =================================
   HAMBURGER
   ================================= */
.menu-toggle{
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  position:relative;
  z-index:9750; /* above overlay + menu */
  -webkit-tap-highlight-color:transparent;
  background:transparent;
  border:0;
  padding:0;
}

.hamburger{
  width:24px;
  height:2px;
  background:#fff;
  position:relative;
  transition:var(--transition);
}

.hamburger::before,
.hamburger::after{
  content:"";
  width:24px;
  height:2px;
  background:#fff;
  position:absolute;
  left:0;
  transition:var(--transition);
}

.hamburger::before{ top:-7px; }
.hamburger::after{ top:7px; }

.menu-toggle.active .hamburger{ transform:rotate(45deg); }
.menu-toggle.active .hamburger::before{ top:0; transform:rotate(90deg); }
.menu-toggle.active .hamburger::after{ opacity:0; }

/* =================================
   SLIDE-OUT MENU (must be ABOVE overlay)
   ================================= */
.menu{
  position:fixed;
  top:0;
  right:0;
  height:100vh;
  width:280px;
  background:var(--panel);
  transform:translateX(100%);
  transition:transform 0.3s ease;
  z-index:9700; /* above overlay + header */
  box-shadow:-18px 0 40px rgba(0,0,0,0.35);

  /* never blurred */
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  filter:none !important;
  will-change:transform;
}

.menu.active{ transform:translateX(0); }

.close-button{
  position:absolute;
  top:16px;
  left:16px;
  background:transparent;
  border:0;
  padding:0;
  cursor:pointer;
}

.close-button img{
  width:34px;
  height:34px;
  display:block;
  object-fit:contain;
}

.menu ul{
  list-style:none;
  padding:90px 0 0;
  margin:0;
}

.menu li{ padding:0; }

.menu li a{
  display:block;
  width:100%;
  padding:18px 28px;
  cursor:pointer;
  color:#111;
  font-weight:750;
  letter-spacing:0.02em;
  line-height:1.25;
}

.menu li a:hover,
.menu li a:focus{
  background:rgba(0,0,0,0.06);
  text-decoration:none;
}

/* =================================
   CONTENT
   ================================= */
main{
  padding-top:var(--header-height);
  padding-bottom:calc(var(--footer-height) + 24px);
}

.content,
.content1{
  max-width:1100px;
  margin:0 auto;
  padding:28px 24px 18px;
}

.phonetic,
.diy-phonetic{ color:red; }

/* Index hero (quote over video) */
.home-main{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
}

.home-main .content{
  padding-top:0;
  transform:translateY(-6vh);
}

.home-main .content h1{
  font-size:3.2rem;
  line-height:1.2;
}

/* Buttons (Index) */
.home-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.6);
  background:rgba(0,0,0,0.35);
  color:#fff;
  font-size:12px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  transition:var(--transition);
}

.btn:hover{
  background:#fff;
  color:#000;
}

/* =================================
   GALLERY
   ================================= */
.gallery-container{
  width:100%;
  padding:0 16px 16px;
}

.gallery,
.gallery1{
  display:flex;
  flex-wrap:nowrap;
  gap:16px;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x mandatory;
  padding:12px 14px 18px;
  border-radius:14px;
  background:rgba(0,0,0,0.15);
  cursor:grab;
  touch-action:pan-x;
}

.gallery.is-dragging,
.gallery1.is-dragging{
  cursor:grabbing;
  user-select:none;
}

.image-container{
  flex:0 0 auto;
  scroll-snap-align:center;
}

.image-container img{
  max-height:62vh;
  width:auto;
  height:auto;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  cursor:pointer;
  display:block;
}

/* =================================
   LIGHTBOX
   ================================= */
.lightbox{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.92);
  z-index:9999;
}

.lightbox.open{ display:block; }

.lightbox-backdrop{
  position:fixed;
  inset:0;
}

.lightbox-inner{
  position:relative;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:24px;
}

.lightbox-content img{
  max-width:95vw;
  max-height:95vh;
  object-fit:contain;
}

.close-lightbox{
  position:fixed;
  top:18px;
  right:18px;
  font-size:34px;
  background:none;
  border:none;
  color:#fff;
  cursor:pointer;
  z-index:10000;
}

.lightbox-control{
  background:none;
  border:none;
  font-size:52px;
  color:#fff;
  cursor:pointer;
  padding:14px;
  opacity:0.9;
}

.lightbox-control:hover{ opacity:1; }

/* =================================
   FOOTER (keep below overlay if menu open, but above page)
   ================================= */
footer{
  position:fixed;
  bottom:0; left:0; right:0;
  height:var(--footer-height);
  background:rgba(0,0,0,0.35);
  display:flex;
  justify-content:flex-end;
  align-items:center;
  padding:0 16px;
  z-index:9550;
}

.social-icons{
  list-style:none;
  display:flex;
  gap:10px;
  margin:0;
  padding:0;
}

.social-icons a{
  width:20px;
  height:20px;
  background-size:contain;
  background-repeat:no-repeat;
}

.facebook{ background-image:url("Images/facebook.png"); }
.instagram{ background-image:url("Images/instagram.png"); }
.twitter{ background-image:url("Images/twitter.png"); }

/* =================================
   MOBILE
   ================================= */
@media (max-width:768px){
  .content, .content1{
    padding:calc(var(--header-height) + 22px) 16px 12px;
  }

  .menu{
    width:86vw;
    max-width:320px;
  }

  .image-container img{
    max-height:60vh;
  }

  .lightbox-inner{ padding:10px; }
  .lightbox-content img{ max-width:100vw; max-height:100vh; }

  .home-main .content h1{
    font-size:2.2rem;
  }
}

header,
main,
.home-main,
.content,
.content1,
footer{
  background: transparent;
}

/* ===============================
   GALLERY ARROWS (SINGLE SOURCE OF TRUTH)
================================ */
.gallery-shell{
  position: relative;
  width: 100%;
}

.gallery-container,
.gallery,
.gallery1{
  position: relative;
  z-index: 1;
}

.gallery-container{
  position: relative;
}

.gallery-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  pointer-events: auto;

  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;

  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 26px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-arrow-left{ left: 12px; }
.gallery-arrow-right{ right: 12px; }

@media (max-width: 768px){
  .gallery-arrow{
    width: 52px;
    height: 52px;
    font-size: 30px;
  }
}

/* ===============================
   MOBILE PORTRAIT FIXES
   =============================== */
@media (max-width: 768px){
  .image-container img{
    width: 85vw;
    max-width: 85vw;
    height: auto;
    max-height: 55vh;
    object-fit: contain;
  }
}

/* Lightbox: overlay prev/next controls so they don't get pushed offscreen */
@media (max-width: 768px){
  .lightbox-inner{
    padding: 0;
  }

  .lightbox-content{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .lightbox-content img{
    max-width: 100vw;
    max-height: calc(100vh - 120px);
  }

  .lightbox-control{
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 44px;
    padding: 10px;
    z-index: 10001;
  }

  .lightbox-prev{ left: 6px; }
  .lightbox-next{ right: 6px; }
}

/* ===============================
   MOBILE: GALLERY ABOVE THE FOLD
   =============================== */
@media (max-width: 768px){
  .content,
  .content1{
    padding: 10px 16px 6px;
    margin: 0 auto 6px;
  }

  .content1 h1{ margin: 0 0 4px; line-height: 1.05; }
  .content1 .phonetic{ margin: 0 0 4px; }
  .content1 p{ margin: 0; }

  .gallery-container{
    padding: 0 16px 8px;
  }

  .gallery,
  .gallery1{
    padding: 8px 10px 10px;
  }

  .image-container img{
    width: auto;
    max-width: 90vw;
    height: auto;
    max-height: 45vh;
    object-fit: contain;
  }
}

/* ===============================
   MOBILE: CENTER GALLERY IN VIEWPORT
   =============================== */
@media (max-width: 768px){
  main{
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--header-height));
  }

  .content,
  .content1{
    flex: 0 0 auto;
  }

  .gallery-shell{
    flex: 1 1 auto;
    display: flex;
    align-items: center;
  }

  .gallery-container{
    width: 100%;
  }

  .gallery,
  .gallery1{
    justify-content: center;
  }
}

/* ===============================
   MOBILE: SPACE BELOW HEADER
   =============================== */
@media (max-width: 768px){
  .content1{
    padding-top: 24px;
  }
}

/* ===============================
   RESUME-STYLE LAYOUT (COLUMNS)
   Professional Experience page
================================ */
.resume-page{
  padding-top: var(--header-height);
  padding-bottom: 16px;
}

.resume-shell{
  max-width: 1300px;
  margin: 0 auto;
  padding: 18px 4px 10px;
  display: grid;
  grid-template-columns: 340px 1fr;  /* sidebar + main */
  gap: 16px;
}

.resume-card{
  border-radius: 16px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 12px;
}

/* ===============================
   RESUME HEADSHOT (FINAL + FIXED)
================================ */
.resume-headshot{
  padding: 10px;
  max-width: 260px;
  margin: 0 0 10px; /* left aligned */
}

.resume-headshot img{
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;

  /* black & white treatment (bright + mixed lighting) */
  filter: grayscale(100%) contrast(1.15) brightness(0.88) saturate(0.9) !important;
  -webkit-filter: grayscale(100%) contrast(1.15) brightness(0.88) saturate(0.9) !important;

  opacity: 0.95;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 16px 34px rgba(0,0,0,0.6);
  display: block;
}

@media (max-width: 900px){
  .resume-headshot{ max-width: 220px; }
}

/* LinkedIn link emphasis (sidebar only) */
.resume-name a[href*="linkedin.com"]{
  color: #ff3b3b;
  font-weight: 650;
}

.resume-name a[href*="linkedin.com"]:hover,
.resume-name a[href*="linkedin.com"]:focus{
  text-decoration: underline;
}

.resume-name h1{
  margin: 0 0 10px;
  letter-spacing: 0.08em;
  font-size: 18px;
}
.resume-name{
  margin-bottom: 6px;
}

.side-lines{
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.88);
}
.resume-side .resume-card:nth-of-type(3){
  margin-top: -4px;
}

.resume-card h2{
  margin: 0 0 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255,255,255,0.80);
}

.resume-card p{
  margin: 0;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
}

.edu-item{
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.edu-school{
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.edu-meta{
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  margin: 2px 0;
}

/* Experience rows: LOGO | TEXT | IMAGE */
.xp-row{
  display: grid;
  grid-template-columns: 160px 1fr 240px;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  margin: 14px 0;
}

.xp-logo,
.xp-media{
  border-radius: 14px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  overflow: hidden;
}

.xp-logo{ min-height: 86px; }
.xp-media{ min-height: 140px; }

.xp-logo img{
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  display: block;
}

.xp-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.xp-slot{
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: rgba(255,255,255,0.70);
}

.xp-head{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.xp-title{
  font-weight: 900;
  letter-spacing: 0.04em;
}

.xp-dates{
  font-size: 12px;
  color: rgba(255,255,255,0.72);
  white-space: nowrap;
}

.xp-sub{
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255,255,255,0.82);
}

.xp-text ul{
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(255,255,255,0.92);
}

.xp-text li{
  margin: 6px 0;
  line-height: 1.45;
}

/* Mobile: collapse to single column like a real responsive resume */
@media (max-width: 900px){
  .resume-shell{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px){
  .xp-row{
    grid-template-columns: 1fr;
  }

  .xp-logo{ min-height: 70px; }
  .xp-media{ min-height: 160px; }
}

/* Experience logos */
.xp-logo{
  padding: 12px;
}

.xp-logo img{
  max-width: 100%;
  max-height: 100%;
  opacity: 0.9;
  filter: grayscale(100%);
}

/* Experience images */
.xp-media img{
  transition: transform 0.4s ease;
}

.xp-media:hover img{
  transform: scale(1.03);
}
/* =================================
   PHOTOGRAPHY PAGE — GLOSS + PIZAZZ
   (safe to apply globally to galleries)
   Add at END of styles.css
================================= */

/* Make tiles feel like cards */
.image-container{
  position: relative;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  transform: translateZ(0);
}

/* Gloss highlight overlay */
.image-container::after{
  content:"";
  position:absolute;
  inset:-30%;
  background: linear-gradient(
    115deg,
    rgba(255,255,255,0) 35%,
    rgba(255,255,255,0.18) 50%,
    rgba(255,255,255,0) 65%
  );
  transform: translateX(-60%) rotate(8deg);
  opacity: 0;
  transition: transform 600ms ease, opacity 300ms ease;
  pointer-events:none;
}

/* Upgrade image motion */
.image-container img{
  transition: transform 420ms ease, filter 420ms ease, box-shadow 420ms ease;
  will-change: transform;
}

/* Hover “glossy” effect (desktop only) */
@media (hover:hover) and (pointer:fine){
  .image-container:hover img{
    transform: scale(1.035);
    filter: contrast(1.06) brightness(1.02);
    box-shadow: 0 26px 55px rgba(0,0,0,0.68);
  }

  .image-container:hover::after{
    opacity: 1;
    transform: translateX(40%) rotate(8deg);
  }

  /* Slight lift of the whole tile */
  .image-container:hover{
    transform: translateY(-2px);
    transition: transform 420ms ease;
  }
}

/* Nice focus state for keyboard users */
.image-container img:focus{
  outline: 2px solid rgba(255,255,255,0.75);
  outline-offset: 4px;
}

/* Subtle “depth” for the gallery rail */
.gallery,
.gallery1{
  background: rgba(0,0,0,0.18); /* a touch richer than 0.15 */
  border: 1px solid rgba(255,255,255,0.08);
}

/* Make arrows feel more premium */
.gallery-arrow{
  box-shadow: 0 14px 30px rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@media (hover:hover) and (pointer:fine){
  .gallery-arrow:hover{
    transform: translateY(-50%) scale(1.05);
  }
}
/* =================================
   PHOTOGRAPHY PAGE — GLOSS + PIZAZZ
   (safe to apply globally to galleries)
   Add at END of styles.css
================================= */

/* Make tiles feel like cards */
.image-container{
  position: relative;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  transform: translateZ(0);
}

/* Gloss highlight overlay */
.image-container::after{
  content:"";
  position:absolute;
  inset:-30%;
  background: linear-gradient(
    115deg,
    rgba(255,255,255,0) 35%,
    rgba(255,255,255,0.18) 50%,
    rgba(255,255,255,0) 65%
  );
  transform: translateX(-60%) rotate(8deg);
  opacity: 0;
  transition: transform 600ms ease, opacity 300ms ease;
  pointer-events:none;
}

/* Upgrade image motion */
.image-container img{
  transition: transform 420ms ease, filter 420ms ease, box-shadow 420ms ease;
  will-change: transform;
}

/* Hover “glossy” effect (desktop only) */
@media (hover:hover) and (pointer:fine){
  .image-container:hover img{
    transform: scale(1.035);
    filter: contrast(1.06) brightness(1.02);
    box-shadow: 0 26px 55px rgba(0,0,0,0.68);
  }

  .image-container:hover::after{
    opacity: 1;
    transform: translateX(40%) rotate(8deg);
  }

  /* Slight lift of the whole tile */
  .image-container:hover{
    transform: translateY(-2px);
    transition: transform 420ms ease;
  }
}

/* Nice focus state for keyboard users */
.image-container img:focus{
  outline: 2px solid rgba(255,255,255,0.75);
  outline-offset: 4px;
}

/* Subtle “depth” for the gallery rail */
.gallery,
.gallery1{
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Make arrows feel more premium */
.gallery-arrow{
  box-shadow: 0 14px 30px rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@media (hover:hover) and (pointer:fine){
  .gallery-arrow:hover{
    transform: translateY(-50%) scale(1.05);
  }
}
/* ===============================
   SLIDE-OUT MENU — POLISH
================================ */

/* smoother motion */
.menu{
  transition: transform 320ms cubic-bezier(.2,.9,.2,1);
  border-left: 1px solid rgba(0,0,0,0.08);
}

/* allow scrolling if menu items exceed viewport */
.menu{
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: env(safe-area-inset-bottom);
}

/* make items feel less “blocky” */
.menu ul{
  padding-top: 86px; /* slightly tighter than 90 */
}

.menu li a{
  position: relative;
  border-radius: 10px;
  margin: 4px 14px;
  padding: 14px 14px;
}

/* current page highlight (uses your existing aria-current="page") */
.menu a[aria-current="page"]{
  background: rgba(0,0,0,0.08);
}

/* subtle hover “sheen” */
@media (hover:hover) and (pointer:fine){
  .menu li a:hover{
    background: rgba(0,0,0,0.06);
    transform: translateX(2px);
    transition: transform 200ms ease, background 200ms ease;
  }
}

/* stronger focus styling for keyboard navigation */
.menu li a:focus-visible{
  outline: 2px solid rgba(0,0,0,0.35);
  outline-offset: 2px;
}
/* ===============================
   SLIDE-OUT MENU — SUBTLE GLASS
================================ */
.menu{
  background: rgba(255,255,255,0.94);  /* ← slight transparency */
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);

  border-left: 1px solid rgba(0,0,0,0.08);
}
/* ===============================
   SLIDE-OUT MENU — SUBTLE GLASS
================================ */
.menu{
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-left: 1px solid rgba(0,0,0,0.08);
}
/* =================================
   CONTACT PAGE — CONSISTENT, NOT TEMPLATEY
================================= */

.contact-main{
  padding-top: var(--header-height);
  padding-bottom: calc(var(--footer-height) + 24px);
}

.contact-shell{
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 24px 10px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 16px;
}

/* Same “glossy card” language as resume */
.contact-card{
  border-radius: 16px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow);
  padding: 18px;
}

.contact-intro h1{
  margin: 0 0 6px;
  letter-spacing: 0.10em;
  font-size: 18px;
}

.contact-intro .phonetic{
  margin: 0 0 14px;
  color: #ff3b3b;
  font-size: 13px;
}

.contact-definition p{
  margin: 0 0 10px;
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
}

.contact-quick{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 12px;
}

.contact-chip{
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
  box-shadow: 0 12px 26px rgba(0,0,0,0.45);
  font-size: 13px;
}

.contact-chip-accent{
  border-color: rgba(255,59,59,0.55);
  color: #ff3b3b;
}

/* subtle “premium” motion, desktop only */
@media (hover:hover) and (pointer:fine){
  .contact-chip:hover{
    transform: translateY(-2px);
    transition: transform 240ms ease, background 240ms ease;
    background: rgba(255,255,255,0.06);
  }
}

.contact-note{
  margin: 8px 0 0;
  color: rgba(255,255,255,0.84);
  line-height: 1.55;
}

/* Form styling: dark glass inputs */
.contact-form-card h2{
  margin: 0 0 14px;
  font-size: 14px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
}

.fcf-form-group{
  margin-bottom: 14px;
}

.fcf-label{
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.80);
  text-transform: uppercase;
}

.fcf-form-control{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.94);
  outline: none;
  transition: border 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.fcf-form-control::placeholder{
  color: rgba(255,255,255,0.45);
}

.fcf-form-control:focus{
  border-color: rgba(255,59,59,0.55);
  box-shadow: 0 0 0 4px rgba(255,59,59,0.14);
}

.fcf-textarea{
  resize: vertical;
  min-height: 140px;
}

.fcf-form-actions{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.fcf-hint{
  font-size: 12px;
  color: rgba(255,255,255,0.70);
}

.fcf-btn{
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.35);
  color: #fff;
  padding: 11px 14px;
  border-radius: 999px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  cursor: pointer;
  transition: transform 240ms ease, background 240ms ease, border-color 240ms ease;
}

@media (hover:hover) and (pointer:fine){
  .fcf-btn:hover{
    transform: translateY(-2px);
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,59,59,0.55);
  }
}

/* Keep credit, but make it not dominate */
.fcf-credit{
  margin-top: 14px;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
}

.fcf-credit a{
  color: rgba(255,255,255,0.75);
  text-decoration: underline;
}

/* Alerts: style them like your site */
.form-alert{
  max-width: 1100px;
  margin: 12px auto 0;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.28);
  box-shadow: 0 14px 30px rgba(0,0,0,0.55);
  display: none; /* show only when you toggle via JS/PHP */
}

.form-alert-success{
  border-color: rgba(80, 200, 120, 0.35);
}

.form-alert-error{
  border-color: rgba(255, 59, 59, 0.35);
}

.form-alert-text{
  color: rgba(255,255,255,0.92);
  font-size: 13px;
}

/* Responsive: stack cleanly */
@media (max-width: 900px){
  .contact-shell{
    grid-template-columns: 1fr;
    padding: 18px 16px 10px;
  }

  .fcf-form-actions{
    flex-direction: column;
    align-items: flex-start;
  }
}
/* =================================
   CONTACT PAGE — CENTER ABOVE FOLD
================================= */

.contact-main{
  min-height: calc(100vh - var(--header-height) - var(--footer-height));
  display: flex;
  align-items: center;          /* vertical centering */
}

/* Ensure the card group stays centered horizontally */
.contact-shell{
  width: 100%;
}

/* Mobile: revert to normal flow */
@media (max-width: 900px){
  .contact-main{
    align-items: flex-start;
  }
}
/* =================================
   FIX: Headshot B/W not applying on mobile (Safari)
================================= */
.resume-side .resume-headshot img{
  -webkit-filter: grayscale(100%) contrast(1.15) brightness(0.88) saturate(0.9) !important;
  filter: grayscale(100%) contrast(1.15) brightness(0.88) saturate(0.9) !important;

  /* Force a compositing layer so iOS applies filters reliably */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

