/* Ensure content is clickable above background/overlays */
.hero, .center, .center-card, .cta-row, .btn {
  position: relative;
  z-index: 10;
}

/* Ensure overlays never block clicks */
.bg, .overlay, .center-card::before {
  pointer-events: none;
}


/* =========================================================
   VARIABLES
   ========================================================= */
:root{
  --bg0:#070A12;
  --bg1:#0B1020;

  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);
  --muted2: rgba(255,255,255,0.56);

  --border: rgba(255,255,255,0.12);
  --card: rgba(10, 14, 26, 0.52);

  --accent: rgba(124,219,255,0.85);
  --accent2: rgba(167,139,250,0.85);
}

/* =========================================================
   BASE
   ========================================================= */
*{ box-sizing:border-box; }

html,body{
  height:100%;
}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background: var(--bg0);
  overflow-x: hidden;
}

/* =========================================================
   BACKGROUND (UNCHANGED PHOTO)
   ========================================================= */
.bg{
  position: fixed;
  inset: 0;
  background-image: url("/assets/portrait.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  will-change: transform;
  z-index: -3;
}

/* =========================================================
   OVERLAYS
   ========================================================= */
.overlay{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

.overlay-vignette{
  background:
    radial-gradient(1200px 800px at 50% 45%, rgba(0,0,0,0.20), rgba(0,0,0,0.80) 70%),
    linear-gradient(90deg, rgba(0,0,0,0.75), rgba(0,0,0,0.25), rgba(0,0,0,0.75));
}

.overlay-sheen{
  background:
    radial-gradient(900px 650px at 18% 20%, rgba(124,219,255,0.12), transparent 60%),
    radial-gradient(900px 650px at 82% 18%, rgba(167,139,250,0.14), transparent 62%);
  animation: sheen 10s ease-in-out infinite alternate;
  opacity: 0.7;
}

@keyframes sheen{
  from { transform: translate(-0.5%, -0.5%); }
  to   { transform: translate(0.5%, 0.5%); }
}

/* =========================================================
   HERO LAYOUT
   ========================================================= */
.hero{
  min-height: 100vh;
  display: grid;
  grid-template-columns:
    minmax(220px, 360px)
    minmax(320px, 640px)
    minmax(220px, 360px);

  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 28px;
}

/* Columns */
.col{
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =========================================================
   SIDE CARDS (ENGINEERING / BUSINESS)
   ========================================================= */
.side{
  width: 100%;
  max-width: 360px;

  background: rgba(10,14,26,0.40);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(10px);

  padding: 18px;
  box-shadow: 0 26px 90px rgba(0,0,0,0.45);

  opacity: 0;
  transform: translateY(10px);
  animation: enter 700ms ease forwards;
}

.side-left{ animation-delay: 120ms; }
.side-right{ animation-delay: 220ms; }

@keyframes enter{
  to{ opacity:1; transform: translateY(0); }
}

.side-inner{
  display: grid;
  gap: 10px;
}

.kicker{
  margin:0;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted2);
}

.side-title{
  margin:0;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
}

.side-sub{
  margin:0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

.side:hover{
  transform: translateY(-2px);
  border-color: rgba(124,219,255,0.28);
  box-shadow: 0 30px 110px rgba(0,0,0,0.55);
  transition: all 180ms ease;
}

/* =========================================================
   CENTER CARD
   ========================================================= */
.center{
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  animation: enter 820ms ease forwards;
  animation-delay: 160ms;
}

.center-card{
  max-width: 640px;
  width: 100%;
  padding: 22px 18px;
  text-align: center;

  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 120px rgba(0,0,0,0.60);

  position: relative;
  overflow: hidden;
}

.center-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: linear-gradient(135deg, rgba(124,219,255,0.12), rgba(167,139,250,0.10));
  filter: blur(18px);
  opacity: 0.7;
}

.name{
  margin:0;
  font-weight: 760;
  font-size: 1.15rem;
}

.role{
  margin:6px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Divider */
.divider{
  margin: 14px auto 10px;
  width: 56%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  position: relative;
}

.dot{
  position:absolute;
  left:50%;
  top:50%;
  width:10px;
  height:10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border:1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
}

/* Buttons */
.cta-row{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap: wrap;
  margin-top:10px;
}

.btn{
  padding:10px 12px;
  border-radius:14px;
  text-decoration:none;
  font-weight:650;
  color:var(--text);

  background: rgba(255,255,255,0.06);
  border:1px solid var(--border);
}

.btn.primary{
  background: linear-gradient(135deg, rgba(124,219,255,0.22), rgba(167,139,250,0.20));
}

/* =========================================================
   ABOUT SECTION
   ========================================================= */
.about{
  padding: 120px 28px;
  background: linear-gradient(to bottom, rgba(7,10,18,0.85), rgba(7,10,18,0.98));
}

.about-container{
  max-width: 1100px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 56px;
  align-items: center;
}

/* About photo with fade */
.about-photo{
  position: relative;
  max-width: 360px;
  margin: 0 auto;

  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 24px 90px rgba(0,0,0,0.55);
}

.about-photo img{
  width:100%;
  height:auto;
  display:block;
  object-fit: cover;
  transform: scale(1.01);
}

/* Fade into background */
.about-photo::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to bottom,
    rgba(7,10,18,0) 55%,
    rgba(7,10,18,0.55) 75%,
    rgba(7,10,18,0.85) 90%,
    rgba(7,10,18,1) 100%
  );
}

/* About text */
.about-kicker{
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted2);
  margin:0 0 8px;
}

.about-title{
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin:0 0 18px;
}

.about-text{
  display:grid;
  gap:14px;
}

.about-text p{
  margin:0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
}

.about-text strong{
  color: rgba(255,255,255,0.95);
  font-weight: 600;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer{
  padding: 24px 0;
  text-align:center;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.60);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px){
  .hero{
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .about-container{
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-photo{
    max-width: 300px;
  }
}

@media (max-width: 420px){
  .center-card{
    padding: 18px 14px;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce){
  .overlay-sheen,
  .side,
  .center{
    animation: none;
    transform: none;
    opacity: 1;
  }
}
