:root {
    --purple: #a78bfa;
    --blue: #A0D2EB;
}

html {
    scroll-behavior: smooth;
}

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

body {
    background-color: black;
    font-family: 'Poppins', sans-serif;
}

section {
    scroll-margin-top: 80px;
}
nav {
    margin: 2em;
    display: flex;
    justify-content: end;
    gap: 2rem;
    color: white;
}
nav a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    width: 100%;
    padding: 20px;
    margin: 0 auto;
}

.auto-show {
    animation: text-appear both;
    animation-timeline: view();
}
@keyframes text-appear {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.top-intro {
    width: 100%;
    display: flex;
    color: var(--purple);
    gap: 6rem;

}

.top-intro h1 {
    font-weight: 600;
    font-size: 3rem;
    color: white;
}

.top-intro h2 {
    font-weight: 600;
    font-size: 2.5rem;
}

.my-info {
    display: flex;
    height: 400px;
    flex-direction: column;
    justify-content: center;
}
img {
    background: white;
    border-radius: 8px;
}
.photo-wrapper img {
    position: relative;
    width: 280px;
    z-index: 2;
    margin: 0 auto;
}

.photo-wrapper {
    position: relative;
    width: 320px;
    height: 400px;
}

.stripe {
    position: absolute;
    z-index: 1;
}

.stripe-1 {
    background-color: var(--purple);
    width: 160px;
    height: 20px;
    top:40px;
    right: -60px;
}

.stripe-2 {
    background-color: var(--blue);
    width: 160px;
    height: 10px;
    top:65px;
    right: -20px;
}

.stripe-3 {
    background-color: var(--blue);
    width: 160px;
    height: 10px;
    bottom:65px;
    left: -50px;
}

.stripe-4 {
    background-color: var(--purple);
    width: 160px;
    height: 20px;
    bottom:40px;
    left: -100px;
}

.connect {
    display: flex;
    margin-top: 1em;
    align-items: center;
}

.resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: white;
    font-size: 1.20rem;
    padding: 0.3em 1em;
    border-radius: 8px;
    color: black;
    border: none;
    font-family: inherit;
}

.fa-circle-down {
    font-size: 25px;
}

.social {
    margin-left: 0.6em;
    font-size: 2.7rem;
    color: white;
    padding: 0;
}

.social:hover {
    background: var(--blue);
    border-radius: 8px;
    cursor: pointer;
}

.resume-btn:hover {
    box-shadow: inset 0 0 0 4px var(--blue);
    color: var(--blue)
}


.line {
    width: 100%;
    height: 5px;
    background:linear-gradient(to right, var(--blue) 40%, var(--purple));
    margin-top: 4em;
}


.about-me p {
    color: white;
    font-size: 1.25rem;
    margin-top: 0.8em;
    line-height: 1.6;
}

.highlight {
    font-weight: 600;
    color: var(--purple)
}
.projects {
    margin-top: 2em;
}


.section-header {
    font-weight: 300;
    color: var(--purple);
    font-size: 2rem;
    margin-top: 1em;
    
}

.project-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #D9D9D9;
    width: 50rem;
    height: 20rem;
    border-radius: 10px;
    overflow: visible;
}

.bc-card {
    height: 22rem;
}
.project-content {
    margin-left: 1.5em;
    align-self: flex-start;
}

.project-title {
    margin-top: 0;

    display: flex;
    align-items: center;
    padding-top: 0.5em;
}
.project-title h1 {
    margin-top: 0;
    color: black;
    font-weight: 500;
    margin-left: 0.3em;
    font-size: 2.25rem;
}

.app-icon{
    height: 42px;
    width: 42px;
}

.tags {
    margin-top: 0.5em;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    list-style-type: none;
}

.two-rows {
    gap: 10px;
}

.tags li {
    border-radius: 10px;
    font-size: 0.75rem;
    padding: 0.095em 0.8em;
}

.html {
    background: #7FFF9D
}

.css {
    background: #FFF789
}

.typescript {
    background: #6B7AFF
}
.react {
    background: #51BCFF
}
.firebase {
    background: #ED9693
}

.swift {
    background: #F6D46E;
}

.swiftui {
    background: #D56BFF;
}

.python {
    background: #9ce8ae;
}

.pygame {
    background: #eda49c;
}

.speech-rec {
    background: #f0b0d0;
}

.R {
    background: #89bde9;
}
.machine-learning {
    background: #e7ef9c;
}
.neural-network {
    background: #f19ef4;
}

.random-forest {
    background: #37dc6e;
}

.log-reg {
    background: #9c4cf1;
}

.svm {
    background:  #f14c9e;
}

.summary {
    width: 80%;
}
.summary h2 {
    margin-top: 0.5em;
    font-weight: 300;
}

.italics {
    font-style: italic;
}

.extra-btns {
    display: inline-flex;
    gap: 5px;
    background: var(--blue);
    border: none;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    padding: 0.5em 1em;
    margin-top: 1rem;
}

.extra-btns i{
    font-size: 24px;
}

.project-content {
    flex: 1;
    min-width: 0; 
}

.phone-mockup {
    margin-top: 1.5rem;
    position: relative;
    flex-shrink: 0;
    width: 220px;
    height: 450px;
    background: #1a1a1a;
    border-radius: 2.5rem;
    padding: 0.75rem;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 0 0 2px #333;
    align-self: center;
    /* right: 60px; */
    margin-right: 3rem;
    z-index: 3;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 1.75rem;
    overflow: hidden;
    background: #fff;
    position: relative;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.phone-button-left {
    position: absolute;
    left: -2px;
    top: 100px;
    width: 3px;
    height: 50px;
    background: #333;
    border-radius: 2px;
}

.phone-button-right {
    position: absolute;
    right: -2px;
    top: 130px;
    width: 3px;
    height: 70px;
    background: #333;
    border-radius: 2px;
}

.laptop-mockup {
    position: relative;
    flex-shrink: 0;
    width: 330px;
    align-self: center;
    margin-right: 3rem;
    z-index: 3;
}

.laptop-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #000000;
    border-radius: 14px 14px 4px 4px;
    padding: 7px 7px 9px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 0 2px #333,
        0 0 45px 6px rgba(160, 210, 235, 0.35);
    box-sizing: border-box;
}

.laptop-screen img {
    width: 85%;
    height: 95%;
    border-radius: 4px;
    display: block;
    background: #fff;
}

#bc-img {
    width: 100%;
    height: 100%;
}

.laptop-base {
    width: 112%;
    height: 6.5px;
    margin-left: -6%;
    background: linear-gradient(to bottom, #2A2C2F 0%, #80868A 21%, #80868A 77%, #2A2C2F 100%);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.35);
    position: relative;
}

.laptop-base::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #999;
    border-radius: 0 0 6px 6px;
}



.carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-viewport {
    overflow: hidden;
}
.carousel-track-container {
    margin-top: 0;
    height: 450px; /* match or exceed your tallest phone mockup */
    overflow-x: hidden;
    overflow-y: visible;
    display: flex;
    align-items: center;
}

.carousel-track {
    list-style: none;
    display: flex;
    padding: 0;
    margin:0;
    transition: transform 0.6s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    box-sizing: border-box;
    padding: 0 10px;
    opacity: 0.4;
}

.carousel-slide.active {
    opacity: 1;
}

.screen {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    background: white;
    color: black;
    border: none;
    font-size: 20px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
}

.carousel-button:hover {
    background-color: var(--blue);
    color:white;
}

.carousel-button.prev { 
    left: -50px; 
}
.carousel-button.next { 
    right: -60px; 
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #555;
  cursor: pointer;
}

.carousel-indicator.active {
  background: var(--blue);
}
.carousel-indicator:hover {
  background: var(--purple);
  opacity: 100%;
}

@property --progress {
  syntax: '<percentage>';
  inherits: true;
  initial-value: 0%;
}
.timeline-wrapper {
    position: relative;
    padding-left: 40px;
    margin-top: 3rem;
}

.timeline{
    position: absolute;
    height: 102%;
    width:4px;
    border-radius: 2px;
    background: linear-gradient(
    to bottom,
    var(--purple) 0%,
    var(--purple) var(--progress),
    #333333 var(--progress),
    #333333 100%
  );
  animation: fill-progress linear;
  animation-timeline: view();      /* ties animation to scroll position of this element */
  animation-range: entry 0% cover 100%;
}
@keyframes fill-progress {
  from { --progress: 0%; }
  to   { --progress: 100%; }
}

.timeline-item {
    position: relative;
    left: -6px;
    display: flex;
    padding: 0;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    width: 100%;
    height: 180px;

}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0a0a0a;
    border: 1px solid black;
    box-shadow: 0 0 0 2px gray;
    z-index: 1;
    transition: all 0.3s ease;
}
.dot.lit {
  border-color: #a78bfa;
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.15);
}
.dot.current {
  background: rgb(127, 236, 127);
  border: black;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(50, 255, 60, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(73, 227, 62, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(167, 139, 250, 0);
  }
}

.exp-info {
    display: flex;
    background: #161616;
    height: 100%;
    width: 100%;
    margin-left: 2rem;
    border-radius: 12px;
    border: 2px solid #262626
}

.exp-info-text {
    display: flex;
    flex-direction: column;
}
.exp-info-text h3 {
    margin-top: 0.25em;
    margin-bottom: 0;
    display: block;
    color: white;
    font-size: 1.75rem;
    font-weight: 500;
    
}

.exp-info-text h4 {
    font-family: "Space Mono", monospace;
    color: var(--purple);
    font-size: 1rem;
    font-weight: 400;
    margin-top: -0.5rem;
}

.exp-info-text h5 {
    color: #6a6a6a;
    font-family: "Space Mono", monospace;
    margin-top: -0.05rem;
    font-size: 0.8rem;
}

.exp-info-text ul {
    color: #9a9a9a;
    margin-left: 2em;
    margin-top: 0.4em;
}

.exp-logo {
    justify-self: start;
    height: 122px;
    width: 122px;
    border-radius: 8px;
    margin: 1em;
}



.tools h1 {
    margin-top: 2em;
}

.tiles-container {
    margin-top: 2em;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1em;
}

.tile{
    background: #161616;
    border: solid #262626 2px;
    height: 110px;
    width: 110px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    transition: color 1s ease;
    transition: transform 0.3s ease, background 0.3s ease;;
}

.tile:hover {
    transform: translateY(-10px);
    background: #474646;
}
.tool-icon {
    color: var(--blue);
    font-size: 3rem;
    background: none;
}



.tile h1{
    color: white;
    font-size: 1rem;
    font-weight: 400;
    margin-top: 0;
}

.tile:hover #java-icon      { color: #f89820; }
.tile:hover #python-icon    { color: #e5ee7c; }
.tile:hover #r-icon         { color: #276dc3; }
.tile:hover #html-icon      { color: #e34f26; }
.tile:hover #css-icon       { color: #1572b6; }
.tile:hover #js-icon        { color: #f7df1e; }
.tile:hover #react-icon     { color: #61dafb; }
.tile:hover #swift-icon     { color: #f05138; }
.tile:hover #swiftui-icon   { color: #3878f0; }
.tile:hover #git-icon       { color: #f05032; }
.tile:hover #github-icon    { color: #ffffff; }
.tile:hover #fetchapi-icon  { color: #a56a4c; }
.tile:hover #restapi-icon   { color:rgb(212, 96, 189); }
.tile:hover #openai-icon    { color: #10a37f; }
.tile:hover #figma-icon     { color: #a259ff; }
.tile:hover #excel-icon     { color: #217346; }
.tile:hover #firebase-icon  { color: #ffca28; }

a:hover, button:hover {
    cursor: pointer;
}

.copy-email-wrapper {
    position: relative;
    display: inline-block;
}

.copy-tooltip {
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: #262626;
  color: #fff;
  font-size: 12px;
  font-family: sans-serif;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.copy-tooltip.show {
  opacity: 1;
}

.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.video-modal.open {
    display: flex;
}
.video-modal-content {
    position: relative;
    width: 80%;
    max-width: 900px;
}
.video-wrapper {
    position: relative;
    padding-top: 56.25%;
}
.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}
.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.close-modal:hover {
    color: red;
}

.filler {
    height: 300px;
}