/* Reset / base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

:root {
  --bg: #0f0f12;
  --panel: #16161a;
  --card: #1b1b21;
  --text: #ffffff;
  --muted: #bbb;
  --accent: #7b4dff;
  --border: rgba(255, 255, 255, 0.08);
  --focus: #ffd166;
}

html {
  scroll-behavior: smooth
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Floating logo (top-left) */
.logo-float {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 110;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none
}

.logo-float__img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  object-fit: cover;
  display: block;
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.7), 0 0 0 4px rgba(15, 15, 18, 0.65)
}

@media (max-width:900px) {
  .logo-float__img {
    width: 56px;
    height: 56px
  }
}

/* Hamburger (top-right) */
.hamburger {
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 110;
  background: rgba(15, 15, 18, 0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer
}

.hamburger__bar {
  width: 22px;
  height: 2px;
  background: #e9e9ee;
  border-radius: 2px
}

/* Dropdown menu (hidden by default) */
.float-menu {
  position: fixed;
  right: 16px;
  top: 64px;
  display: none;
  flex-direction: column;
  gap: 6px;
  background: rgba(15, 15, 18, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px;
  border-radius: 12px;
  min-width: 200px;
  z-index: 109
}

.float-menu a {
  color: #e9e9ee;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px
}

.float-menu a:hover {
  background: rgba(255, 255, 255, 0.06)
}

.menu-open .float-menu {
  display: flex
}

/* Focus ring */
.logo-float:focus-visible,
.hamburger:focus-visible,
.float-menu a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 10px
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100vh;
  padding-top: 65px;
  gap: 20px;
  /* padding so floats don't overlap */
}

.slideshow-container {
  position: relative;
  width: 80%;
  height: 70vh;
  overflow: hidden;
  border-radius: 20px;
  flex-shrink: 0;
  border: 1px solid var(--border)
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out
}

.slide.active {
  opacity: 1
}

.intro-text {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  max-width: 90%
}

.cursor {
  display: inline;
  color: var(--accent);
  margin-left: 2px;
  animation: blink 1s step-start infinite
}

@keyframes blink {
  50% {
    opacity: 0
  }
}

/* Projects */
.projects {
  background: var(--panel);
  border-radius: 30px;
  padding: 60px;
  margin: 60px auto;
  width: 90%;
  max-width: 1200px
}

.projects h3 {
  font-size: 2rem;
  margin-bottom: 32px;
  text-align: center
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: start
}

/* Project card: highlight on hover */
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--card);
  border-radius: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  z-index: 1;
  width: 100%;
  max-width: 100%;
}

.project-card:hover {
  transform: scale(1.035);
  box-shadow: 0 22px 50px -18px rgba(0, 0, 0, 0.65);
  border-color: rgba(138, 123, 255, 0.5);
  z-index: 3
}

.one-liner {
  font-weight: 600;
  color: #e9e9ee;
  transition: transform .18s ease
}

.project-card:hover .one-liner {
  transform: scale(1.02)
}

/* Media thumb */
.project-card .thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #101014;
  aspect-ratio: 16/9;
  border: 1px solid var(--border)
}

.media-stage>img,
.media-stage>video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  transition: opacity .18s ease, transform .18s ease
}

.project-card:hover .media-stage>img,
.project-card:hover .media-stage>video {
  opacity: .98;
  transform: scale(1.01)
}

.thumb-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 10, 14, 0) 50%, rgba(10, 10, 14, 0.55) 85%, rgba(10, 10, 14, 0.75) 100%);
  opacity: .9
}

/* Carousel arrows */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  z-index: 2
}

.thumb:hover .arrow,
.thumb:focus-within .arrow {
  opacity: 1;
  pointer-events: auto
}

.arrow.prev {
  left: 10px
}

.arrow.next {
  right: 10px
}

/* Tags */
.tag-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  margin: 4px 0 0;
  padding: 0
}

.tag {
  font: 600 12px/1 'Poppins', sans-serif;
  color: #dfe7ff;
  background: linear-gradient(180deg, #1c1c24, #17171d);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px
}

/* About layout */
.about-grid {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 32px
}

.about-col {
  display: flex;
  flex-direction: column;
  gap: 20px
}

.about-headline {
  font-size: 1.2rem;
  color: #e9e9ee
}

.about-strengths p {
  color: #cfd1dc;
  margin: 0
}

.about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px
}

/* Buttons */
.btn-primary {
  background: var(--accent);
  color: #0a0a0d;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  box-shadow: 0 8px 24px -8px var(--accent);
  text-decoration: none;
  display: inline-block
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block
}

.btn-outline:hover {
  background: rgba(138, 123, 255, 0.12)
}

/* Skills matrix */
.skills-section {
  max-width: 1200px;
  margin: 60px auto 20px;
  padding: 0 0
}

.skills-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px
}

.skills-group {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 24px -16px rgba(0, 0, 0, .5)
}

.skills-group h5 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #e9e9ee
}

/* Stats row */
.stats-row {
  max-width: 1200px;
  margin: 10px 0 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-start
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px
}

.stat .num {
  font-weight: 700;
  color: #e9e9ee
}

.stat .label {
  color: #b7b7c4
}

/* Education timeline */
.edu-section {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 0
}

.timeline {
  position: relative;
  margin-left: 12px
}

.timeline:before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.08)
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  margin-bottom: 24px
}

.timeline-item .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(123, 77, 255, 0.2);
  margin-top: 6px
}

.timeline-item .content {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px
}

.edu-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap
}

.edu-row h4 {
  margin: 0;
  font-size: 1.08rem
}

.edu-meta {
  color: #b7b7c4;
  margin: 4px 0 8px
}

.edu-points {
  margin: 0;
  padding-left: 1.1em
}

.edu-points li {
  margin-bottom: 6px;
  color: #d8d9e3
}

.edu-badge {
  display: inline-block;
  font-weight: 700;
  letter-spacing: .02em;
  background: linear-gradient(180deg, #1c1c24, #17171d);
  border: 1px solid var(--border);
  color: #dfe7ff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .82rem
}

/* Contact form */
.contact {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center
}

.contact-form {
  max-width: 560px;
  margin: 20px auto 0;
  text-align: left
}

.contact-form .row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px
}

.contact-form label {
  color: #cfd1dc;
  font-size: .95rem
}

.contact-form input,
.contact-form textarea {
  background: #121219;
  color: #e9e9ee;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(138, 123, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(138, 123, 255, 0.15)
}

.form-status {
  margin-top: 10px;
  color: #b7b7c4
}

/* Footer */
footer {
  text-align: center;
  padding: 10px;
  background: var(--panel);
  margin-top: 60px;
  color: #888
}


/* About portrait card */
.about-portrait {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.about-portrait img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/5;
  /* tall portrait shape */
  background: #0f0f12;
}

.about-portrait figcaption {
  padding: 10px 12px;
  color: #cfd1dc;
  font-size: 0.95rem;
  text-align: center;
  border-top: 1px solid var(--border);
}



.contact {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: left
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 24px;
  align-items: start
}


.contact-form {
  max-width: none;
  margin: 0
}


.contact-thanks {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 81px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.contact-thanks h4 {
  margin: 0 0 8px;
  font-size: 2rem;
  color: #e9e9ee
}

.contact-thanks p {
  margin: 6px 0;
  color: #cfd1dc
}

.contact-thanks .muted {
  color: #b7b7c4;
  font-size: .95rem
}



/* Responsive */
@media (max-width:900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px
  }
}

@media (max-width:800px) {
  .hero {
    height: auto;
    padding-top: 100px
  }

  .slideshow-container {
    width: 95%;
    height: 30vh;
  }

  .intro-text {
    font-size: 22px
  }

  .projects {
    padding: 40px 20px
  }

  .project-grid {
    gap: 20px
  }

  .project-card:hover {
    transform: scale(1.01)
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  .project-card,
  .one-liner,
  .arrow,
  .media-stage>img,
  .media-stage>video {
    transition: none !important
  }
}

/* Responsive: keep portrait above timeline on phones */
@media (max-width:900px) {
  .about-portrait img {
    aspect-ratio: auto;
  }

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

  .contact-thanks {
    padding: 60px;
  }

  .contact-thanks h4 {
    font-size: 1rem;
  }

  .slide {
  object-fit: scale-down;
  padding:8px
}

}

/* Side-by-side timeline wrapper */
.timelines{
  max-width:1200px;
  margin:60px auto;
  padding:0 20px;
  display:contents;
  grid-template-columns:1fr 1fr;
  gap:32px;
  align-items:start;
}

/* Reuse your existing timeline styles; minor tweaks */
.edu-section h3{ margin-bottom:12px }
.timeline{ position:relative; margin-left:12px }
.timeline:before{
  content:""; position:absolute; left:8px; top:0; bottom:0; width:2px;
  background:rgba(255,255,255,0.08);
}
.timeline-item{ position:relative; display:grid; grid-template-columns:auto 1fr; gap:14px; margin-bottom:24px }
.timeline-item .dot{
  width:14px; height:14px; border-radius:50%; background:var(--accent, #7b4dff);
  box-shadow:0 0 0 4px rgba(123,77,255,0.2); margin-top:6px
}
.timeline-item .content{
  background:linear-gradient(180deg,rgba(255,255,255,0.02),rgba(255,255,255,0));
  border:1px solid var(--border, rgba(255,255,255,0.08));
  border-radius:14px; padding:14px 16px
}
.edu-row{ display:flex; align-items:center; gap:10px; flex-wrap:wrap }
.edu-row h4{ margin:0; font-size:1.08rem }
.edu-badge{
  display:inline-block; font-weight:700; letter-spacing:.02em;
  background:linear-gradient(180deg,#1c1c24,#17171d);
  border:1px solid var(--border, rgba(255,255,255,0.08));
  color:#dfe7ff; padding:6px 10px; border-radius:999px; font-size:.82rem
}
.edu-meta{ color:#b7b7c4; margin:4px 0 8px }
.edu-points{ margin:0; padding-left:1.1em }
.edu-points li{ margin-bottom:6px; color:#d8d9e3 }

/* CTA alignment */
.timeline-cta{ margin-top:12px }

/* Mobile stack */
@media (max-width:900px){
  .timelines{ grid-template-columns:1fr; gap:20px }
}

