/* -------------------------------------------------------
   Dark purple theme tuned to hero background + glass UI
   ------------------------------------------------------- */
:root {
  --bg-1: #0a0710;
  --bg-2: #0e0a16;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text: #f2eaff;
  --muted: #bdaee0;
  --accent: #b37bff;
  /* purple */
  --accent-2: #d6a7ff;
  /* lighter purple */
  --shadow: 0 18px 50px rgba(3, 6, 12, 0.7);
  --container: 1200px;
  --radius: 14px;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Basic */
* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-stack);
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Containers */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px
}

/* ------------------------------
   Glass header / navbar
   ------------------------------ */
.site-header {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 60;
  pointer-events: none
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 auto;
  padding: 8px;
  border-radius: 14px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}

.brand {
  font-weight: 700;
  color: var(--text);
  text-decoration: none
}

.brand .accent {
  color: var(--accent);
  margin-left: 4px
}

.nav {
  display: flex;
  gap: 16px;
  align-items: center
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02)
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none
}

.menu-btn {
  display: none;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 1.125rem
}

/* ------------------------------
   HERO (100vh background with overlay)
   ------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}


.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.02)
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 6, 18, 0.25) 0%, rgba(6, 4, 12, 0.6) 60%);
  z-index: 1
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 36px;
  align-items: center;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px
}

.hero-left {
  max-width: 720px
}

.hero-title {
  font-size: 2rem;
  line-height: 1.05;
  margin: 0 0 12px;
  color: var(--text);
  text-shadow: 0 6px 26px rgba(0, 0, 0, 0.6)
}

.hero-sub {
  color: var(--muted);
  margin-bottom: 16px;
  max-width: 56ch;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.45)
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 18px
}

.btn {
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  border: 0;
  box-shadow: 0 10px 28px rgba(179, 123, 255, 0.14)
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--muted)
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted)
}

.hero-meta {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  color: var(--muted)
}

.hero-bg {
  will-change: transform;
}


/* ------------------------------
   Glass card on hero (profile)
   ------------------------------ */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 14px
}

.hero-card {
  display: flex;
  gap: 14px;
  align-items: center;
  border-radius: 16px;
  box-shadow: var(--shadow)
}

.profile {
  width: 95px;
  height: 95px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45)
}

.card-body h3 {
  margin: 0;
  color: var(--text)
}

.muted {
  color: var(--muted);
  margin-top: 6px
}

.contact-mini {
  display: flex;
  gap: 8px;
  font-size: .92rem;
  color: var(--muted);
  margin-top: 8px
}

.skill-badges {
  display: flex;
  gap: 8px;
  margin-top: 12px
}

.skill-badges span {
  background: rgba(255, 255, 255, 0.02);
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--muted);
  font-size: .85rem
}

/* ------------------------------
   Sections + grids
   ------------------------------ */
.section {
  padding: 80px 0
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent)
}

.section h2 {
  font-size: 1.35rem;
  margin: 0 0 8px
}

.section-lead {
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 64ch
}

/* CASE STUDIES grid */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px
}

.cs-card {
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  transition: transform .28s, box-shadow .28s
}

.cs-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block
}

.cs-body {
  padding: 14px
}

.cs-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65)
}

.cs-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px
}

.cs-actions .btn {
  padding: 8px 12px;
  font-size: .9rem
}

/* MINI GRID */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px
}

.mini-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55)
}

.mini-card img {
  width: 100%;
  height: 140px;
  object-fit: cover
}

.mini-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.mini-links {
  display: flex;
  gap: 10px;
  margin-top: auto
}

.link {
  color: var(--accent)
}

/* ===== Skills Hover Grid ===== */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.skill-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: default;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.skill-card img {
  height: 46px;
  width: auto;
  opacity: 0.85;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.skill-card span {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.skill-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(179, 123, 255, 0.4);
}

.skill-card:hover img {
  transform: scale(1.12);
  opacity: 1;
}

.skill-card:hover span {
  color: var(--text);
}


/* ABOUT grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: center;
}

.about-photo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
}

.about-photo img {
  width: 100%;
  max-width: 260px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}




/* CONTACT form */
.contact-form {
  max-width: 760px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px
}

.contact-form input,
.contact-form textarea {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 12px;
  border-radius: 8px;
  color: var(--text)
}

.actions {
  display: flex;
  gap: 12px
}

/* FOOTER */
/* ===== Footer ===== */

.site-footer {
  margin-top: 120px;
  padding: 64px 0 24px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  font-size: 1.2rem;
  margin: 0;
}

.footer-tagline {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 320px;
  line-height: 1.5;
}

.footer-links h4,
.footer-actions h4 {
  margin-bottom: 12px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer-links ul,
.footer-actions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-actions li {
  margin-bottom: 8px;
}

.footer-links a,
.footer-actions a {
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.footer-links a:hover,
.footer-actions a:hover {
  opacity: 1;
}

.footer-bottom {
  margin-top: 48px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Mobile */
@media (max-width:720px) {
  .nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px;
    z-index: 100;
  }

  .nav.open {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
}



/* back-to-top */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: var(--accent);
  color: white;
  border: 0;
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(179, 123, 255, 0.14);
  display: none
}

.back-to-top.show {
  display: block
}

/* fade-in helper (JS toggles .show) */
.fade-in {
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  transition:
    opacity 0.9s cubic-bezier(.22, .61, .36, 1),
    transform 0.9s cubic-bezier(.22, .61, .36, 1);
  will-change: transform, opacity;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Responsive */
@media (max-width:1000px) {
  .cs-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .hero-inner {
    grid-template-columns: 1fr
  }

  .about-grid {
    grid-template-columns: 1fr
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width:720px) {
  .nav {
    display: none
  }

  .menu-btn {
    display: block
  }

  .hero-title {
    font-size: 1.4rem
  }

  .hero-sub {
    font-size: .95rem
  }

  .hero-card {
    max-width: 100%;
    padding: 10px;
  }

  .hero-card img {
    width: 56px;
    height: 56px;
  }

  .cs-grid {
    grid-template-columns: 1fr
  }

  .mini-grid {
    grid-template-columns: 1fr
  }
}



.hero-name {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.hero-role {
  font-size: .9rem;
  color: var(--accent);
  margin: 4px 0;
}

.hero-tagline {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width:720px) {
  .hero-title {
    line-height: 1.25;
  }

  .hero-sub {
    line-height: 1.5;
  }
}

@media (max-width:720px) {
  .btn {
    width: 100%;
    justify-content: center;
  }
}


/* snitch type intro  */

#intro {
  transition: opacity 0.2s ease;
}

#intro {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #12091f, #05020a);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
}
#intro.hide {
  opacity: 0;
  pointer-events: none;
}

.intro-text {
  font-size: clamp(3rem, 10vw, 8rem);
  letter-spacing: 0.2em;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
  animation: drawText 1.2s ease forwards;
  /* 👈 slow write */
}

@keyframes drawText {
  from {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }

  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

#intro.hide {
  opacity: 0;
  pointer-events: none;
}

/* cinematic  */

.hero {
  will-change: transform, opacity;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.hero.cinematic-out {
  transform: scale(0.96);
  opacity: 0.6;
}

.cinematic-target {
  transform: translateY(60px);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.cinematic-target.cinematic-in {
  transform: translateY(0);
  opacity: 1;
}


.contact-social-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.contact-social-links a:hover {
  opacity: 1;
}

.contact-social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: 0.85;
}
