/* ========================================= GLOBAL STYLING ========================================= */ 
/* catpuccin dark color palette */
/*  Light Pink----------     #f3bce6	
    Lavender------------     #c29df1	
    Very Dark Blue------     #24273a	
    Very Dark Gray------     #1a1823	
    Soft Black----------     #131020 

/* dracula color palette */
/*  Red-----------------     #ff5555
    Cyan----------------     #8be9fd
    Neon Green----------     #50fa7b 
    Neon Orange---------     #ffb86c
    Dark Gray-----------     #282a36
    Gray----------------     #44475a
    Blue Gray-----------     #6272a4

/* U-M color palette */
/*  U-M Maize-----------     #ffcb05
    U-M Blue------------     #00274c

/* text styling */
body {
    margin: 0;
    color: #ffffff;
    font-family: 'Inter', Arial, sans-serif;
}

p, li {
    font-size: clamp(0.8rem, min(2.5vw, 3vh), 1.2rem);
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.4;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: bolder;
}

h1, h2, h3 {
    letter-spacing: clamp(5px, 2vw, 15px);
    stroke-width: clamp(5px, 2vw, 15px);
    font-size: clamp(1.5rem, min(4vw, 5vh), 3rem);
}

h3, h4, h5, h6 {
    font-weight: 500;
    font-size: clamp(1.2rem, min(3vw, 4vh), 2rem);
}


.highlight-1 {
    font-family: 'Roboto Mono', monospace;
    color: #ffd82c;
    font-weight: bold;  
}

.highlight-2 {
    font-family: 'Roboto Mono', monospace;
    color: #0ac6f0;
    font-style: italic;
}

.highlight-3 {
    color: #50fa7b;
}

.highlight-4 {
    color: #000000;
    font-family: 'Roboto Mono', monospace;
    font-weight: bold;
}

.highlight-5 {
    color: #000000;
    font-family: 'Roboto Mono', monospace;
    font-style: italic;
}

@media (max-width: 768px) { 
    p, li {
        font-size: clamp(0.7rem, min(3vw, 3.5vh), 1rem);
    }
    
    h1, h2, h3 {
        font-size: clamp(1.2rem, min(5vw, 6vh), 2.5rem);
        letter-spacing: clamp(3px, 1.5vw, 10px);
    }
    
    h3, h4, h5, h6 {
        font-size: clamp(1rem, min(4vw, 5vh), 1.8rem);
    }
} 

/* snappy scrolling for sections */
html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

@media (max-width: 768px) { 
    html {
        scroll-snap-type: none;
        scroll-behavior: smooth;
    }
} 

/* links */
.link { 
    color: #c29df1;
}

.link:hover {
    color: #ffcb05; 
}

/* cards */
.card-title {
    font-size: 1.4rem;
    font-weight: bold;
    text-align: left;
    color: inherit;
}

.card-body {
    display: flex;
    flex-direction: column; 
    height: 100%; 
}

.card-content {
    padding: 20px; 
    flex-basis: 27%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-text {
    padding-top: 5px;
    color: white;
}

/* buttons */
.project-btn {
    background-color: #1a1a2e;
    color: white;
    border: none;
    margin-bottom: 10vh;
    transition: all 0.3s ease;
}

.project-btn:hover {
    background-color: #16213e;
    color: white;
    transform: scale(1.05);
}

.text-center.mt-auto {
    margin-top: auto; 
}

/* spacing on all sections */
section {
    padding-top: clamp(1rem, 3vh, 2rem); 
    padding-bottom: clamp(2rem, 4vh, 4rem); 
    padding-left: clamp(1rem, 2vw, 2rem);
    padding-right: clamp(1rem, 2vw, 2rem);
    min-height: 80vh;
    height: 100vh;
    scroll-snap-align: start;
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    align-items: center; 
    box-sizing: border-box;
}

#about {
    background: linear-gradient(135deg, #1d1d1d 0%, #000000 200%);
}

#skills {
    background: linear-gradient(135deg, #ffffff 0%, #8fffa9 200%);
}

#contact {
    background: linear-gradient(135deg, #1d1d1d 0%, #000000 200%);
}

#project-page-skills {
    height: 85vh;
}

#projectDescription #gallery {
    margin-top: 2rem;
    padding-top: 2rem;
} 


/* ========================================= HERO SECTION ========================================= */
/* navbar dark on scroll */
.navbarScroll.navbarDark {
    background-color: #000000;
}

/* navbar section higlight */
.navbar-nav a.active {
font-weight: bold;
}

.navbar-brand {
    font-family: 'Orbitron', sans-serif;
    color: #ffcb05;
}

.nav-link {
    font-family: 'Roboto Mono', monospace;
    color: #ffcb05;
}

/* hero background image */
.bgimage {
    height:100vh;
    background: url(./images/hero_aurora.jpg); 
    background-size: cover;
    background-position: center top;
    position: relative;
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.bgimage-2 {
    height:100vh;
    background: url(./images/hero_space.jpg); 
    background-size: cover;
    background-position: center top;
    position: relative;
    display: flex; 
    align-items: center; 
    justify-content: center; 
}


/* hero typewriter text */
.hero-text {
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center; 
    height: calc(100vh - [navbar-height]px); 
    padding-top: [navbar-height]px;
}

#typewriter {
font-size: clamp(1.2rem, min(3vw, 4vh), 1.75rem);
color: #ffffff;
}

.typewriter-text {
    white-space: nowrap;
    display: inline-block; 
}

.caret {
    display: inline-block; 
    width: 2px;
    height: 1em; 
    background-color: #ffffff;
    vertical-align: middle;
    margin-left: 2px;
    animation: blink-caret .7s step-end infinite; /* Blinking animation */
}

@keyframes blink-caret {
    from, to { background-color: transparent; }
    50% { background-color: #ffffff; }
}

@media (max-width: 768px) { 
    .hero-text {
        display: flex;
        flex-direction: column; 
        justify-content: center; 
        align-items: center; 
        padding: 1.5rem; 
    }

    .hero-text h1 {
        text-align: left;
        width: 100%; 
        color: #ffffff;
    }

    #typewriter {
        font-size: clamp(1rem, min(3.5vw, 4vh), 1.2rem);
        color: #ffffff;
        text-align: left; 
        width: 100%; 
        overflow-wrap: break-word; 
    }

    .typewriter-text {
        white-space: normal; 
        text-align: left; 
    }

    .caret {
        width: 2px;
        height: 1em;
        background-color: #ffffff;
        vertical-align: middle; 
        margin-left: 2px;
        animation: blink-caret .7s step-end infinite;
    }
}

/* ========================================= ABOUT SECTION ========================================= */
.about-card {
    width: min(60vw, 90vw);
    height: min(60vh, 80vh); 
    background-color: #030207;
    border-radius: clamp(5px, 1vw, 10px); 
    border: solid 1px;
    border-color: rgb(63, 62, 87);
    display: flex; 
    flex-direction: row; 
    align-items: center; 
    justify-content: center; 
    margin: auto;
    box-sizing: border-box;
}

.about-text {
    text-align: left;
    height: auto;
    overflow-wrap: normal;
    margin: clamp(0.5vw, 1vh, 1vw);
    overflow-y: auto;
    max-height: min(55vh, 70vh);
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    padding: clamp(0.5rem, 1vh, 1rem);
}

/* Hide scrollbar for webkit browsers (Chrome, Safari, Edge) */
.about-text::-webkit-scrollbar {
    display: none;
}


/* about typewriter effect */
#typewriterAbout{
    font-size: clamp(0.6rem, min(2vw, 2.5vh), 0.9rem);
    margin: 0;
    line-height: 1.4;

    &:after{
    content: "|";
    animation: blink 500ms linear infinite alternate;
    }
}

.coursework-list {
    font-size: clamp(0.6rem, min(2vw, 2.5vh), 0.9rem);
    line-height: 1.4;
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
}

@-webkit-keyframes blink{
    0%{opacity: 0;}
    100%{opacity: 1;}
}

@-moz-keyframes blink{
    0%{opacity: 0;}
    100%{opacity: 1;}
}

@keyframes blink{
    0%{opacity: 0;}
    100%{opacity: 1;}
}

/* about image */
.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60vh;
    width: auto;
    margin: 0 auto;
}

.imageHeadshot {
    max-width: 100%;
    height: 60vh;
    display: block;
    border-radius: 10px;
}

@media (max-width: 768px) { 
    .about-card {
        width: 90vw;
        margin: 0 auto;
    }

    .about-image {
        width: 50vw;
        margin: 2rem auto;
    }

    .imageHeadshot {
        max-width: 100%;
        width: 50vw;
        height: 75vw;
        display: block;
        margin: auto;
        border-radius: 10px;    
    }
}

.about-card.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(40%);
    transition: all .5s;
}

.about-card.show {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
    transform: scale(100%);
}

.about-flex-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.about-card {
  flex: 2 1 0;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}

.about-image {
  flex: 1 1 0;
  min-width: 200px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.imageHeadshot {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: cover;
  border-radius: 1em;
  display: block;
}

@media (max-width: 991px) {
  .about-flex-row {
    flex-direction: column;
  }
  .about-image, .about-card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .imageHeadshot {
    width: 100%;
    height: auto;
    max-height: 400px;
    margin: 0 auto;
  }
}

/* Vertical aspect ratio adjustments */
@media (max-aspect-ratio: 4/5) {
  .about-card {
    height: auto;
    min-height: 50vh;
    max-height: 70vh;
  }
  
  .about-text {
    max-height: 65vh;
    padding: 0.5rem;
  }
  
  p, li {
    font-size: clamp(0.8rem, 2vw, 1rem);
    line-height: 1.4;
  }
  
  #typewriterAbout, .coursework-list {
    font-size: clamp(0.6rem, 1.8vw, 0.8rem);
    line-height: 1.3;
  }
}

/* Extra tall screens */
@media (max-aspect-ratio: 3/5) {
  .about-card {
    height: auto;
    min-height: 45vh;
    max-height: 65vh;
  }
  
  .about-text {
    max-height: 60vh;
    padding: 0.3rem;
  }
  
  p, li {
    font-size: clamp(0.7rem, 1.8vw, 0.9rem);
    line-height: 1.3;
  }
  
  #typewriterAbout, .coursework-list {
    font-size: clamp(0.55rem, 1.6vw, 0.7rem);
    line-height: 1.2;
  }
}

/* ========================================= SKILLS SECTION ========================================= */
.skills-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.skills-header:hover {
    opacity: 0.8;
}

.skills-arrow {
    color: black;
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.skills-arrow.rotated {
    transform: rotate(180deg);
}

/* skills list */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: clamp(6px, 1vw, 8px);
    list-style: none;
    margin: auto;
}

.skills-list-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: fit-content;
}

.skills-list-item.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateX(100%);
    transition: all .5s;
}

.skills-list-item.show {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

.iconify, .iconify-small {
    width: clamp(3em, min(4.5vw, 5vh), 4.5em); 
    height: clamp(3em, min(4.5vw, 5vh), 4.5em);
    fill: #000000; 
    opacity: 90%;
    transition: transform .2s ease;
    align-items: center;
    justify-content: center;
}

.skills-card .row {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
    width: 100%;
}

.skills-card .row p {
    margin: 0;
    color: #ffffff;
    flex: 1;
}

.generic-skill {
    width: clamp(3.5em, min(5vw, 6vh), 5em); 
    height: clamp(3.5em, min(5vw, 6vh), 5em);
    opacity: 90%;
    flex-shrink: 0;
    margin-right: clamp(0.3rem, 1vw, 0.5rem);
}

.iconify-small {
    width: clamp(2em, min(3vw, 3.5vh), 3em);
    height: clamp(2em, min(3vw, 3.5vh), 3em);
}

.iconify:hover, .iconify-small:hover {
    transform: scale(1.08);
    fill: #3aee9a;
}  

.skills-list-text {
    font-size: clamp(12px, min(2.5vw, 3vh), 17px); 
    color: black;
    text-align: center;
    margin-top: clamp(2px, 0.5vh, 4px);
    white-space: nowrap;
}

.skills-list-text-small {
    font-size: clamp(10px, min(2vw, 2.5vh), 14px); 
    color: black;
    text-align: center;
    margin-top: clamp(2px, 0.5vh, 4px);
    white-space: nowrap;
}

@media (max-width: 768px) { 
    .iconify {
        width: clamp(2.5em, min(3vw, 3.5vh), 3em); 
        height: clamp(2.5em, min(3vw, 3.5vh), 3em);
        fill: #000000; 
        transition: transform .2s ease;
    }

    .skills-list-text {
        font-size: clamp(10px, min(2vw, 2.5vh), 12px); 
        font-weight: bold;
    }
}

.skills-list-item:nth-child(2) {
    transition-delay: 50ms;
}
.skills-list-item:nth-child(3) {
    transition-delay: 100ms;
}
.skills-list-item:nth-child(4) {
    transition-delay: 150ms;
}
.skills-list-item:nth-child(5) {
    transition-delay: 200ms;
}
.skills-list-item:nth-child(6) {
    transition-delay: 250ms;
}
.skills-list-item:nth-child(7) {
    transition-delay: 300ms;
}
.skills-list-item:nth-child(8) {
    transition-delay: 350ms;
}
.skills-list-item:nth-child(9) {
    transition-delay: 400ms;
}
.skills-list-item:nth-child(10) {
    transition-delay: 450ms;
}
.skills-list-item:nth-child(11) {
    transition-delay: 500ms;
}
.skills-list-item:nth-child(12) {
    transition-delay: 550ms;
}
.skills-list-item:nth-child(13) {
    transition-delay: 600ms;
}
.skills-list-item:nth-child(14) {
    transition-delay: 650ms;
}
.skills-list-item:nth-child(15) {
    transition-delay: 700ms;
}
.skills-list-item:nth-child(16) {
    transition-delay: 750ms;
}
.skills-list-item:nth-child(17) {
    transition-delay: 750ms;
}
.skills-list-item:nth-child(18) {
    transition-delay: 750ms;
}
.skills-list-item:nth-child(19) {
    transition-delay: 750ms;
}

#skills .container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 2rem;
}

#skills .col {
    width: 75%;
}

.skills-card {
    padding: clamp(8px, 1vh, 10px) clamp(20px, 3vw, 40px);
    position: relative;
    width: min(25vw, 30vw);
    height: min(70vh, 80vh);
    box-sizing: border-box;
    margin-left: clamp(1rem, 2vw, 2rem);
    margin-top: clamp(1rem, 2vh, 2rem);
}

#skills .col:last-child {
    width: 25%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* ========================================= PROJECTS SECTION ========================================= */
#projects {
  padding: 0;
  background: #1a1823;
  position: relative;
}

.project-carousel {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
}

.project-card, .project-card-alt {
  width: 100%;
  height: calc(100vh - 56px);
  display: flex;
  background: linear-gradient(135deg, #ffffff 0%, #a477ae 100%);
  border: none;
  overflow: hidden;
  margin: 0;
  margin-top: 56px;
}

.project-card-alt {
    background: linear-gradient(45deg, #a477ae 0%, #ffffff 100%); 
}

.project-content {
  padding: clamp(20px, 3vh, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(25%, 30%);
  background: transparent;
  margin-left: clamp(2vw, 3vh, 3vw);
  margin-top: clamp(50px, 8vh, 100px);
}

.project-images {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background: transparent;
  width: 65%;
  margin-bottom: 100px;
}

.project-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5em, min(4vw, 5vh), 2.5em);
  margin-bottom: clamp(10px, 2vh, 20px);
  color: #1a1a2e;
  letter-spacing: clamp(0.5px, 0.5vw, 1px);
}

.project-date {
  font-family: 'Roboto Mono', monospace;
  font-weight: 500;
  font-size: clamp(0.9em, min(2.5vw, 3vh), 1.1em);
  color: #16213e;
  margin-bottom: clamp(10px, 2vh, 20px);
}

.project-description {
  font-family: 'Inter', Arial, sans-serif;
  font-size: clamp(0.8em, min(2.2vw, 2.8vh), 1em);
  line-height: 1.6;
  margin-bottom: clamp(15px, 3vh, 30px);
  color: #0f3460;
}

.project-links {
  margin: auto;
}

.image-carousel {
  width: 100%;
  height: 100%;
}

.image-carousel .carousel-cell {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: -2.5vh;
}

.image-carousel img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Flickity Navigation */
.flickity-button {
  background: rgba(26, 26, 46, 0.8);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.flickity-button:hover {
  background: rgba(26, 26, 46, 0.9);
}

.flickity-button:focus {
  outline: none;
  box-shadow: 0 0 0 5px rgba(26, 26, 46, 0.2);
}

.flickity-button-icon {
  fill: #ffffff;
}

/* Project Navigation */
.project-carousel .flickity-button {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
}

.project-carousel .flickity-button.previous {
  left: 20px;
}

.project-carousel .flickity-button.next {
  right: 20px;
}

/* Image Carousel Navigation */
.image-carousel .flickity-button {
  top: auto;
  bottom: -33px;
  transform: none;
  width: 40px;
  height: 40px;
}

.image-carousel .flickity-button.previous {
  left: 30vw;
}

.image-carousel .flickity-button.next {
  right: 30vw;
}

/* Dots */
.flickity-page-dots {
  bottom: -2.5vh;
}

.flickity-page-dots .dot {
  width: 10px;
  height: 10px;
  margin: 0 6px;
  background: rgba(26, 26, 46, 0.5);
  border-radius: 50%;
  opacity: 1;
}

.flickity-page-dots .dot.is-selected {
  background: #1a1a2e;
  opacity: 1;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .project-card {
    flex-direction: column;
  }

  .project-content {
    padding: clamp(15px, 2vh, 20px);
    max-width: 100%;
    width: 90%;
    margin-left: 5vw;
    margin-top: clamp(10px, 2vh, 20px);
  }

  .project-images {
    height: min(50vh, 60vh);
    max-width: 100%;
    width: 100%;
    margin-bottom: clamp(10px, 2vh, 20px);
  }

  .project-title {
    font-size: clamp(1.5em, min(4vw, 5vh), 2em);
  }

  .project-description {
    font-size: clamp(0.9em, min(2.5vw, 3vh), 1.1em);
  }
}

/* ========================================= CONTACT INFO SECTION ========================================= */
.additionalContent .row {
    display: flex;
    align-items: start;
}

.additionalContent .col-lg-6 {
    flex-direction: column;
    justify-content: start;
    align-items: start;  
}

/* contact form */
.contact-form-desktop {
    display: block;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%; 
    padding: 10px;
    margin-bottom: 15px; 
    background-color: #1f1f1f;
    color: #fff;
    border: 1px solid #000; 
    border-radius: 4px; 
}

input[type="submit"] {
    padding: 10px 20px;
    background-color: #2a2a2a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #7c7c7c;
    transform: scale(1.05)
}

#fs-frm {
    margin: auto; 
    padding: 20px;
    background-color: #000000;
    border-radius: 10px; 
    border: solid 1px;
    border-color: rgb(63, 62, 87);
}

#fs-frm input[type="submit"] {
    display: block; 
    width: 100%; 
    margin-top: 15px; 
}

.contact-button-mobile {
    display: none;
}

@media (max-width: 768px) { 
    .contact-form-desktop {
        display: none;
    }

    .contact-button-mobile {
        display: block; 
        max-width: 60%; 
        margin: left; 
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

/* ========================================= FOOTER SECTION ========================================= */
/* social media icons styling */
.social-icons {
    font-size: 36px;
    cursor: pointer;
}
.fa-linkedin:hover, .fa-github:hover{
    color:  #ffcb05;
}
.fab {
    color: #000000;
}

/* footer */
#footer {
    background-color: #282a36;
    text-align: center;
}

/* ========================================= PROJECT PAGE ========================================= */
/* gallery section styling */
.gallery-card {
    height: 400px;
    border-radius: 10px;
    cursor: pointer;
    background-color: #282a36; 
    color: white;
}

.simple-skills-card {
    height: 150px; 
    background-color: #1a1823;
    border-radius: 25px; 
    display: flex; 
    width: 100%; 
    align-items: center; 
    justify-content: center; 
}

/* Timeline Styles */
.timeline-container {
  position: relative;
  width: min(90vw, 1200px);
  max-width: 95vw;
  margin: 0 auto;
  padding: clamp(20px, 3vh, 40px) clamp(10px, 2vw, 20px);
  height: min(600px, 70vh);
  overflow-y: auto; /* Enable vertical scrolling */
  scrollbar-width: thin; /* For Firefox */
  scrollbar-color: #ffcb05 #1a1823; /* For Firefox */
  box-sizing: border-box;
}

/* Custom scrollbar styling for Webkit browsers (Chrome, Safari, etc.) */
.timeline-container::-webkit-scrollbar {
  width: 8px;
}

.timeline-container::-webkit-scrollbar-track {
  background: #1a1823;
  border-radius: 4px;
}

.timeline-container::-webkit-scrollbar-thumb {
  background: #ffcb05;
  border-radius: 4px;
}

.timeline-container::-webkit-scrollbar-thumb:hover {
  background: #ffcb05;
}

.timeline {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(10px, 2vh, 20px) 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: #ffcb05; 
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: clamp(8px, 1vh, 10px) clamp(20px, 3vw, 40px);
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: #ffcb05; 
  border: 4px solid #ffcb05;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-date {
  color: #ffffff;
  font-weight: 100;
  font-family: 'Roboto Mono', monospace;
  font-size: clamp(0.9rem, min(2.5vw, 3vh), 1.2rem);
  margin-bottom: clamp(5px, 1vh, 10px);
  text-align: right;
  padding-right: clamp(10px, 2vw, 20px);
}

.timeline-item:nth-child(even) .timeline-date {
  text-align: left;
  padding-right: 0;
  padding-left: 20px;
}

.timeline-content {
  padding: clamp(15px, 2vh, 20px);
  background-color: #1a1823;
  position: relative;
  border-radius: clamp(4px, 1vw, 6px);
  border: solid 1px;
  border-color: rgb(63, 62, 87);
  max-width: 100%;
  box-sizing: border-box;
}

.timeline-content h3 {
  margin: 0 0 clamp(5px, 1vh, 10px) 0;
  color: #ffffff;
  font-size: clamp(1rem, min(3vw, 4vh), 1.4rem);
}

.timeline-content h4 {
  margin: 0 0 clamp(5px, 1vh, 10px) 0;
  color: #ffffff;
  font-size: clamp(0.9rem, min(2.8vw, 3.5vh), 1.2rem);
}

.timeline-content p {
  margin: 0 0 clamp(5px, 1vh, 10px) 0;
  color: #ffffff;
  font-size: clamp(0.8rem, min(2.2vw, 2.8vh), 1rem);
  line-height: 1.5;
}

/* Responsive Timeline */
@media screen and (max-width: 768px) {
  .timeline-container {
    width: 95vw;
    padding: clamp(15px, 2vh, 20px) clamp(5px, 1vw, 10px);
    height: min(70vh, 80vh);
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: clamp(50px, 8vw, 70px);
    padding-right: clamp(15px, 3vw, 25px);
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-dot {
    left: 21px;
  }
  
  .timeline-item:nth-child(even) .timeline-dot {
    left: 21px;
  }
  
  .timeline-date {
    text-align: left;
    padding-left: 0;
    padding-right: 0;
    font-size: clamp(0.7rem, min(3vw, 3.5vh), 0.9rem);
  }
  
  .timeline-content {
    padding: clamp(10px, 1.5vh, 15px);
  }
  
  .timeline-content h4 {
    font-size: clamp(0.8rem, min(3.5vw, 4vh), 1rem);
    margin-bottom: clamp(3px, 0.8vh, 5px);
  }
  
  .timeline-content p {
    font-size: clamp(0.7rem, min(3vw, 3.5vh), 0.9rem);
    margin-bottom: clamp(3px, 0.8vh, 5px);
  }
}

/* Extra small screens */
@media screen and (max-width: 480px) {
  .about-card {
    width: 95vw;
    height: min(70vh, 85vh);
  }
  
  .skills-card {
    width: 90vw;
    height: min(75vh, 85vh);
    margin-left: 0;
  }
  
  .project-content {
    width: 90%;
    margin-left: 5vw;
    margin-top: 20px;
  }
  
  .project-images {
    width: 100%;
    margin-bottom: 20px;
  }
}

/* Very tall screens (portrait phones) */
@media screen and (max-height: 600px) {
  section {
    min-height: 90vh;
    height: 90vh;
    padding-top: clamp(0.5rem, 2vh, 1rem);
    padding-bottom: clamp(1rem, 3vh, 2rem);
  }
  
  .about-card {
    height: min(75vh, 85vh);
  }
  
  .skills-card {
    height: min(80vh, 90vh);
  }
  
  h1, h2, h3 {
    font-size: clamp(1rem, min(3vw, 4vh), 2rem);
    letter-spacing: clamp(2px, 1vw, 8px);
  }
  
  p, li {
    font-size: clamp(0.6rem, min(2vw, 2.5vh), 0.9rem);
  }
}

/* Add font imports at the top of the file */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Roboto+Mono:wght@400;500;700&family=Orbitron:wght@400;500;600;700;800;900&display=swap');
