/* Portfolio Theme */
:root{
  --bg: #070A12;
  --bg-alt: #0A1020;
  --card-bg: rgba(12, 16, 30, 0.72);

  --accent: #7CE7D6;
  --accent-2: #A78BFA;
  --accent-warm: #FFB86B;

  --text-main: #F4F6FF;
  --text-muted: rgba(244, 246, 255, 0.68);

  --border-subtle: rgba(244, 246, 255, 0.12);
  --border-strong: rgba(244, 246, 255, 0.22);

  --radius-lg: 18px;
  --shadow-soft: 0 18px 50px rgba(0,0,0,0.55);

  --transition-fast: 0.18s ease-out;
  --transition-med: 0.28s cubic-bezier(.2,.8,.2,1);
  --max-width: 1100px;
}

*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--text-main);
  background-color: var(--bg);
  scroll-behavior: smooth;
}

body{
  line-height: 1.6;
  letter-spacing: 0.01em;
  background:
    radial-gradient(900px 600px at 15% 10%, rgba(124, 231, 214, 0.11), transparent 60%),
    radial-gradient(900px 600px at 85% 0%, rgba(167, 139, 250, 0.10), transparent 62%),
    radial-gradient(700px 500px at 70% 90%, rgba(255, 184, 107, 0.06), transparent 60%),
    var(--bg);
}

body::after{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

#bg-fx{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

header, main, footer { position: relative; z-index: 1; }

.container{
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section{ padding: 4.5rem 0; }

.section-alt{
  background: radial-gradient(circle at top, rgba(255,255,255,0.05) 0, rgba(2,6,23,0.0) 55%);
}

.section-nested{
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Nav */
.hero-nav-wrap{
  position: absolute;
  top: 1.5rem;
  left: 0;
  right: 0;
  pointer-events: none;
}

.pill-nav{
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.45rem;
  border-radius: 999px;
  background: rgba(10, 12, 22, 0.55);
  border: 1px solid rgba(244, 246, 255, 0.16);
  backdrop-filter: blur(12px);
  pointer-events: auto;
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}

.pill-link{
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  font-size: 0.82rem;
  text-decoration: none;
  color: rgba(244, 246, 255, 0.62);
  border: 1px solid transparent;
  background-color: transparent;
  transition: var(--transition-fast);
}

.pill-link:hover{
  color: var(--text-main);
  border-color: rgba(244, 246, 255, 0.22);
  background-color: rgba(244, 246, 255, 0.06);
}

/* Hero */
.hero{
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before{
  content:"";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  pointer-events: none;
  background:
    radial-gradient(900px 650px at 10% 20%, rgba(124, 231, 214, 0.10), transparent 58%),
    radial-gradient(900px 650px at 85% 10%, rgba(167, 139, 250, 0.12), transparent 62%),
    linear-gradient(180deg, rgba(2,6,23,0.55), rgba(0,0,0,0.82));
}

.hero-content{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  padding: 5.5rem 1.5rem 4.5rem;
}

.hero-text{ align-self: center; }

.hero-eyebrow{
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: rgba(124, 231, 214, 0.95);
  margin: 0 0 0.75rem;
}

.hero h1{
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  line-height: 1.06;
}

.hero h1::after{
  content:"";
  display:block;
  width: 64px;
  height: 3px;
  border-radius: 99px;
  margin-top: 0.9rem;
  background: linear-gradient(90deg, rgba(124,231,214,0.95), rgba(167,139,250,0.95));
  opacity: 0.9;
}

.hero-blurb{
  margin: 0 0 2rem;
  color: var(--text-muted);
  max-width: 32rem;
}

.hero-links{
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.68rem 1.25rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;

  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  transition:
    transform var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    filter var(--transition-fast);
}

.btn::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.18) 18%, rgba(255,255,255,0.06) 32%, transparent 52%);
  transform: translateX(-120%);
  transition: transform 0.55s cubic-bezier(.2,.9,.2,1);
  pointer-events:none;
  opacity: 0.9;
}

.btn::after{
  content:"";
  position:absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  pointer-events:none;
  border: 2px solid rgba(255,255,255,0.35);
}

.btn:hover{
  transform: translateY(-1px);
  filter: saturate(1.05);
}
.btn:hover::before{ transform: translateX(120%); }

.btn:active{
  transform: translateY(0px) scale(0.98);
}
.btn:active::after{
  animation: btn-ripple 0.55s ease-out;
}

@keyframes btn-ripple{
  0%   { opacity: 0.0; transform: translate(-50%,-50%) scale(0.8); }
  20%  { opacity: 0.35; }
  100% { opacity: 0;   transform: translate(-50%,-50%) scale(10); }
}

.btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(124,231,214,0.22), 0 0 0 7px rgba(167,139,250,0.12);
}

.btn.primary{
  background: rgba(124, 231, 214, 0.12);
  border-color: rgba(124, 231, 214, 0.38);
  color: var(--text-main);
  box-shadow: 0 10px 30px rgba(124, 231, 214, 0.10);
}
.btn.primary:hover{
  background: rgba(124, 231, 214, 0.18);
  border-color: rgba(124, 231, 214, 0.60);
  box-shadow: 0 16px 42px rgba(124, 231, 214, 0.14);
}

.btn.secondary{
  background: rgba(244, 246, 255, 0.06);
  border-color: rgba(244, 246, 255, 0.18);
  color: var(--text-main);
}
.btn.secondary:hover{
  background: rgba(244, 246, 255, 0.09);
  border-color: rgba(244, 246, 255, 0.28);
  box-shadow: 0 14px 38px rgba(0,0,0,0.28);
}

.btn.outline{
  background: transparent;
  border-color: rgba(244, 246, 255, 0.22);
  color: rgba(244, 246, 255, 0.92);
}
.btn.outline:hover{
  border-color: rgba(167, 139, 250, 0.55);
  background: rgba(167, 139, 250, 0.08);
  box-shadow: 0 14px 38px rgba(167, 139, 250, 0.10);
}

/* Hero image */
.hero-image{
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img{
  width: 260px;
  max-width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(244, 246, 255, 0.16);
  object-fit: cover;
  animation: float 6.8s ease-in-out infinite;
  filter: saturate(1.05) contrast(1.02);
}

@keyframes float{
  0%{ transform: translateY(0); }
  50%{ transform: translateY(-10px); }
  100%{ transform: translateY(0); }
}

/* Scroll indicator */
.scroll-indicator{
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(244,246,255,0.58);
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.scroll-indicator-dot{
  width: 26px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(244, 246, 255, 0.30);
  position: relative;
}

.scroll-indicator-dot::before{
  content:"";
  position: absolute;
  width: 6px;
  height: 6px;
  background: linear-gradient(180deg, rgba(124,231,214,0.95), rgba(167,139,250,0.95));
  border-radius: 999px;
  left: 50%;
  transform: translateX(-50%);
  top: 8px;
  animation: scroll-dot 1.4s ease-in-out infinite;
}

@keyframes scroll-dot{
  0%{ opacity: 0; transform: translate(-50%, 0); }
  30%{ opacity: 1; }
  100%{ opacity: 0; transform: translate(-50%, 18px); }
}

.scroll-indicator-inline{
  position: relative;
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 3rem;
}

/* Typography */
.section-title{
  font-size: 1.9rem;
  margin: 0 0 0.3rem;
  letter-spacing: -0.01em;
}

.section-subtitle{
  margin-bottom: 2.5rem;
  color: var(--text-muted);
  max-width: 34rem;
}

/* Projects */
.project-grid{
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-card{
  background: linear-gradient(180deg, rgba(12,16,30,0.78), rgba(6,8,16,0.62));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(244, 246, 255, 0.14);
  box-shadow: var(--shadow-soft);
  padding: 1.6rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-med), border-color var(--transition-med), box-shadow var(--transition-med);
}

.project-card::before{
  content:"";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(124,231,214,0.12), transparent 55%),
    radial-gradient(circle at top right, rgba(167,139,250,0.10), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
  z-index: 0;
}

.project-card:hover{
  transform: translateY(-3px);
  border-color: rgba(244, 246, 255, 0.22);
  box-shadow: 0 22px 65px rgba(0,0,0,0.60);
}

.project-card:hover::before{ opacity: 1; }

.project-text,
.project-media{
  position: relative;
  z-index: 1;
}

.project-text h3{
  margin-top: 0;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.project-text p{
  margin: 0 0 0.95rem;
  color: var(--text-muted);
}

.project-tags{
  list-style: none;
  padding: 0;
  margin: 0 0 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tags li{
  font-size: 0.74rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 246, 255, 0.16);
  background: rgba(0,0,0,0.18);
  color: rgba(244, 246, 255, 0.72);
}

.project-link{
  color: rgba(124,231,214,0.95);
  text-decoration: none;
  font-size: 0.9rem;
}

.project-link:hover{ text-decoration: underline; }

/* Media */
.video-wrapper{
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(244, 246, 255, 0.16);
  background-color: rgba(2, 6, 23, 0.55);
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}

.video-wrapper iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.image-frame{
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(244, 246, 255, 0.16);
  background-color: rgba(2, 6, 23, 0.55);
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}

.image-frame img{
  width: 100%;
  display: block;
}

/* Art */
.art-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.7rem;
}

.art-card{
  margin: 0;
  background: linear-gradient(180deg, rgba(12,16,30,0.78), rgba(6,8,16,0.62));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(244, 246, 255, 0.14);
  box-shadow: var(--shadow-soft);
  padding: 1.1rem;
  transition: transform var(--transition-med), border-color var(--transition-med), box-shadow var(--transition-med);
}

.art-card:hover{
  transform: translateY(-3px);
  border-color: rgba(244, 246, 255, 0.22);
  box-shadow: 0 22px 65px rgba(0,0,0,0.60);
}

.art-card figcaption{
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* Reveal */
.reveal{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

.reveal.visible{
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.footer{
  border-top: 1px solid rgba(244, 246, 255, 0.12);
  background-color: rgba(2,6,23,0.70);
  backdrop-filter: blur(10px);
  padding: 1.1rem 0;
}

.footer-content{
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(244, 246, 255, 0.60);
  font-size: 0.85rem;
}

.back-to-top{
  color: rgba(167,139,250,0.95);
  text-decoration: none;
}

.back-to-top:hover{ text-decoration: underline; }

/* Responsive */
@media (max-width: 900px){
  .hero-content{ grid-template-columns: 1fr; text-align: left; }
  .project-card{ grid-template-columns: 1fr; }
  .art-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px){
  .hero-content{ padding-top: 4.5rem; }
  .section{ padding: 3.25rem 0; }

  .footer-content{
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .hero-nav-wrap{ top: 1rem; }
  .pill-nav{ padding: 0.3rem; }
  .pill-link{ padding: 0.15rem 0.7rem; }

  .art-grid{ grid-template-columns: 1fr; }
}
