*, *::before, *::after { box-sizing: border-box; }

@import "root.css";
@import "elements.css";

html { scroll-behavior: smooth; }

body {
  background: var(--dark-violet-bg);
  color: var(--white);
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  overflow-x: hidden;
  line-height: 1.65;
}

/* Floating Pills */
.pill-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  /* filter: blur(1.5rem);
  margin: -1.5rem -3rem -3rem -1.5rem; */
}

/* .pill {
  position: absolute;
  border-radius: var(--pill-radius);
} */
.pill-yellow { background: var(--dark-yellow); }
.pill-purple { background: var(--dark-violet); }
.pill-md { background: #2c004b; }
.pill-lt { background: #3e0078; }

/* Navbar */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(8,0,15,.9) 0%, transparent 100%);
  backdrop-filter: blur(2px);
}

.nav-logo {
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: .18em;
  color: var(--dark-yellow);
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-left: 2rem;
  opacity: .75;
  transition: opacity .2s;
}
.nav-links a:hover { opacity: 1; }

/* Sections */
section { position: relative; z-index: 1; }

.section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--dark-yellow);
  margin-bottom: .5rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.section-line {
  height: 3px;
  width: 4rem;
  background: var(--dark-yellow);
  border-radius: 9px;
  margin-bottom: 3rem;
}

/* Buttons */
.btn-hs {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: var(--pill-radius);
  padding: .55rem 1.6rem;
  text-decoration: none;
  transition: transform .18s, box-shadow .18s, background .18s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-hs:hover { transform: scale(1.05); }

.btn-dark {
  background: var(--dark-yellow);
  color: #08000f;
}
.btn-dark:hover { box-shadow: 0 0 18px rgba(245,196,0,.45); }

.btn-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.35);
}
.btn-light:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white-violet);
  border-color: rgba(157,134,200,.35);
  font-size: .72rem;
  /* padding: .35rem 1rem; */
}
.btn-ghost:hover { color: var(--white); border-color: var(--white); }

/* Hero */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 2rem;
}

.hero-eyebrow {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--dark-yellow);
  margin-bottom: 1rem;
  margin-top: 4rem;
  opacity: 0;
  animation: fadeUp .6s .2s forwards;
}

.hero-name {
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: .5rem;
  opacity: 0;
  animation: fadeUp .7s .35s forwards;
}

.hero-role {
  font-size: clamp(1.1rem, 2.5vw, 1.7rem);
  color: var(--white-violet);
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp .7s .5s forwards;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp .7s .65s forwards;
}

.tag {
  background: rgba(91,20,204,.22);
  border: 1px solid rgba(138,79,255,.3);
  border-radius: var(--pill-radius);
  padding: .3rem .85rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--light-violet);
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  opacity: 0;
  animation: fadeUp .7s .8s forwards;
}

/* Projects */
#projects {
  padding: 7rem 0;
}

.project-card {
  background: var(--dark-violet-bg-card);
  border: 1px solid rgba(138,79,255,.15);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(138,79,255,.45);
  box-shadow: 0 12px 40px rgba(57,0,153,.35);
}

.project-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #1a0030;
}

.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.project-card:hover .project-img-wrap img { transform: scale(1.04); }

.project-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--white-violet);
  background: linear-gradient(135deg, #1a0030 0%, #2d0060 100%);
}

.project-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: .5rem;
}

.project-desc {
  font-size: .875rem;
  color: var(--white-violet);
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}

.project-contrib-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dark-yellow);
  margin-bottom: .45rem;
}

.project-contrib {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
  font-size: .8rem;
  color: var(--white-violet);
}
.project-contrib li { display: flex; align-items: flex-start; gap: .4rem; margin-bottom: .25rem; }
.project-contrib li::before {
  content: '▸';
  color: var(--dark-yellow);
  font-size: .7rem;
  margin-top: .15rem;
  flex-shrink: 0;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.1rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: auto;
}

/* About */
#about {
  padding: 7rem 0;
}

.about-card {
  background: var(--dark-violet-bg-card);
  border: 1px solid rgba(138,79,255,.15);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.about-text {
  font-size: 1.05rem;
  color: var(--white-violet);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.philosophy-item {
  background: rgba(57,0,153,.15);
  border: 1px solid rgba(138,79,255,.2);
  border-radius: .8rem;
  padding: 1.2rem;
}
.philosophy-item h5 {
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--dark-yellow);
  margin-bottom: .4rem;
}
.philosophy-item p {
  font-size: .78rem;
  color: var(--white-violet);
  margin: 0;
}

/* Education */
#education {
  padding: 7rem 0;
}

.edu-timeline {
  position: relative;
  padding-left: 2rem;
}
.edu-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: .4rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--dark-yellow), transparent);
}

.edu-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.edu-item::before {
  content: '';
  position: absolute;
  left: -2.38rem;
  top: .4rem;
  width: .75rem;
  height: .75rem;
  border-radius: 50%;
  background: var(--dark-yellow);
  border: 3px solid var(--dark-violet-bg);
}

.edu-period {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dark-yellow);
  margin-bottom: .25rem;
}
.edu-title {
  font-size: 1.1rem;
  font-weight: 800;
}
.edu-org {
  font-size: .88rem;
  color: var(--white-violet);
  margin-bottom: .4rem;
}
.edu-desc {
  font-size: .82rem;
  color: var(--white-violet);
}

/* Footer */
footer {
  border-top: 1px solid rgba(138,79,255,.15);
  padding: 2.5rem;
  text-align: center;
  color: var(--white-violet);
  font-size: .8rem;
  position: relative;
  z-index: 1;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s, transform .55s;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* Media Queries */

/* Hide navigation on small screens */
@media only screen and (max-width: 600px) {
    .site-nav {
        display: none;
    }
  }

/* Remove eye catcher pill that covers text */
@media only screen and (max-aspect-ratio: 1/1) {
    .pill-yellow { background: var(--dark-violet); }
  }