* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    cursor: none;
    color: #101827;
}

.section {
  min-height: 100vh;
  padding: 80px 0;
  scroll-margin-top: 90px;
}

.cursor {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ae69c9;
    box-shadow: 0 0 10px #ae69c9, 0 0 20px #ae69c9;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
}

html, body {
    height: 100%;
    margin: 0;
    font-family:Verdana, Geneva, Tahoma, sans-serif
}

p {
    font-size: 20px;
    line-height: 1.6;
}
.header {
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    z-index: 1000;
    position: fixed;
    background-color:#b77ae2;
    overflow: hidden;
}

.navbar a {
    text-decoration: none;
    margin: 0 20px;
    font-weight: bold;
    transition: color 0.3s, transform 0.2s;
    color:#ffffff;
}

.navbar a:hover {
    color: #ae69c9;         
    transform: scale(1.1);
}


.introduction {
    font-size: 50px;
    color:#ffffff;
}

.logo-link {
  text-decoration: none;
  color: inherit;
}

.typed-greeting {
    display: inline-block;
    min-height: 1.2em;
}

.typed-greeting::after {
    content: "|";
    margin-left: 4px;
    color: #52265b;
    animation: caretBlink 0.9s step-end infinite;
}

.heading {
    text-align: center;
    margin-bottom: 30px;
}

.flex-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding: 20px;
    
}

.home-container {
    display: flex;
    margin: 0 auto;
    align-items: center;

}

.home-sub {
    max-width: 500px;
}

.projects-container, .experience-container, .contact-container {
    display: flex;
    align-items: center;
    flex-direction: column;
    
}

.about-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    width: min(1100px, 92vw);
    margin: 0 auto;
}

.profile-pic {
    width: min(450px, 40vw);
    max-width: 90vw;
}

.profile-pic img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.description {
    max-width: 500px;
    margin-bottom: 0;
}

.box {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}


.box-item p {
    font-size: 14px;
}

.projects-container .box-item h2 {
    text-align: center;
    margin-bottom: 6px;
}

.projects-container .box-item {
    height: auto;
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

.projects-container .box-item p {
    flex: 1;
}

.view-more-btn {
    margin-top: 10px;
    align-self: center;
    border: 2px solid #101827;
    background-color: transparent;
    color: #101827;
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.view-more-btn:hover {
    background-color: #52265b;
    color: #ffffff;
    transform: translateY(-1px);
}

.project-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(16, 24, 39, 0.45);
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1300;
    padding: 18px;
}

.project-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.project-modal {
    width: min(760px, 96vw);
    height: min(720px, 92vh);
    overflow: hidden;
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    border: 1px solid rgba(67, 66, 66, 0.2);
    display: flex;
    flex-direction: column;
}

.project-modal.no-image {
    width: min(560px, 92vw);
    height: min(430px, 80vh);
}

.project-modal h2 {
    text-align: center;
    margin-bottom: 12px;
}

#project-modal-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(67, 66, 66, 0.2);
    margin-bottom: 12px;
}

.project-modal h3 {
    margin-bottom: 6px;
}

#project-modal-tech-list {
    margin-left: 20px;
    margin-bottom: 10px;
}

#project-modal-tech-list li {
    margin-bottom: 4px;
}


.project-modal-github a {
    font-size: 14px;
}

#project-modal-close {
    display: block;
    margin: auto auto 0;
    border: 2px solid #101827;
    background-color: transparent;
    color: #101827;
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

@media (max-width: 500px) {
    .project-modal {
        height: min(640px, 90vh);
        padding: 14px;
    }

    .project-modal.no-image {
        width: 92vw;
        height: min(360px, 72vh);
    }

    #project-modal-image {
        height: 100px;
    }
}

#project-modal-close:hover {
    background-color: #52265b;
    color: #ffffff;
    transform: translateY(-1px);
}

.box-item {
    width: 450px;
    height: 175px;
    border-style: solid;
    border-color:rgba(67, 66, 66, 0.2);
    border-radius: 8px;
    padding: 0.8rem;
}

.box-item:hover {
    transform: translateY(-1px);    
    box-shadow: 0 8px 16px rgba(0,0,0,0.1); 
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.experience-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.company-name {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(16, 24, 39, 0.9);
    line-height: 1.2;
}

.company-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: contain;
    background-color: #ffffff;
    border: 1px solid rgba(67, 66, 66, 0.18);
    padding: 3px;
    flex-shrink: 0;
}

.education-row {
    display: inline-flex;
    align-items: center;
    gap: 18px;
}

.education-text {
    display: inline-block;
    line-height: 1.35;
}

.experience-date {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    color: rgba(16, 24, 39, 0.6);
    white-space: nowrap;
}

@media (max-width: 800px) {
    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .profile-pic {
        width: min(260px, 75vw);
    }

    .projects-container .box-item {
        min-height: 200px;
    }

    .company-name {
        font-size: 0.82rem;
    }


    .experience-date {
        font-size: 0.82rem;
        margin-top: 8px;
    }
}

.button-container {
    display: flex;
    gap: 20px;
    position: fixed;
    right: 18px;
    bottom: 16px;
    z-index: 1200;
}

.button-container a {
    opacity: 0;
    transform: translateX(20px);
    animation: slideIn 0.8s cubic-bezier(.22,.61,.36,1) forwards;
}

.button-container a:nth-child(1) { animation-delay: 2.2s; }
.button-container a:nth-child(2) { animation-delay: 2.45s; }
.button-container a:nth-child(3) { animation-delay: 2.7s; }

.btn {
    width: 50px;        
    height: 50px;
    border-radius: 8px; 
    transition: transform 0.2s ease;
}

.btn:hover {
    transform: scale(1.1);
}

@media (max-width: 800px) {
    .button-container {
        right: 12px;
        bottom: 12px;
        gap: 12px;
    }

    .btn {
        width: 42px;
        height: 42px;
    }
}

#home {
  background-color: #ffffff;
}

#projects {
  background-color: #f7f1ff;
}

#experience {
  background-color: #f0e6ff;
}

.animate-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-scroll.show {
  opacity: 1;
  transform: translateY(0);
}

.header, .navbar a {
  opacity: 0;
  transform: translateX(-20px);
  animation: slideIn 1s cubic-bezier(.22,.61,.36,1) forwards;
}

.header .introduction { animation-delay: 0.5s; }

.navbar a:nth-child(1) { animation-delay: 1s; }
.navbar a:nth-child(2) { animation-delay: 1.5s; }
.navbar a:nth-child(3) { animation-delay: 2s; }

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes caretBlink {
    50% {
        opacity: 0;
    }
}

.experience-subtitle {
  font-size: 0.95rem;
  color: rgba(16, 24, 39, 0.5);
  text-align: center;
  margin-top: -20px;
  margin-bottom: 10px;
}

.timeline {
  position: relative;
  width: min(1060px, 96vw);
  padding: 10px 0 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(174, 105, 201, 0.45);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  display: flex;
  width: 100%;
  margin-bottom: 36px;
}

.timeline-left {
  padding-right: calc(50% + 24px);
}

.timeline-right {
  padding-left: calc(50% + 24px);
  justify-content: flex-end;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 26px;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid #ae69c9;
  box-shadow: 0 0 0 4px rgba(174, 105, 201, 0.18);
  z-index: 2;
}

.timeline-card {
  width: 100%;
  background: #ffffff;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
}

.timeline-left .timeline-card {
  border-left: 3px solid #ae69c9;
}

.timeline-right .timeline-card {
  border-right: 3px solid #ae69c9;
}

.timeline-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.timeline-logo {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  flex-shrink: 0;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 2px 0;
  line-height: 1.2;
  color: #101827;
}

.timeline-card .company-name {
  color: #52265b;
  font-weight: 700;
  font-size: 0.92rem;
  margin: 0 0 4px 0;
}

.timeline-card .experience-date {
  display: block;
  margin-top: 4px;
  font-size: 0.83rem;
  color: rgba(16, 24, 39, 0.52);
  letter-spacing: 0;
}

.timeline-divider {
  border: none;
  border-top: 1px solid rgba(16, 24, 39, 0.1);
  margin: 10px 0 12px;
}

.timeline-bullets {
  margin-left: 18px;
  margin-bottom: 14px;
}

.timeline-bullets li {
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 3px;
  color: rgba(16, 24, 39, 0.82);
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  background: rgba(174, 105, 201, 0.08);
  color: rgba(16, 24, 39, 0.7);
  border: 1px solid rgba(174, 105, 201, 0.28);
  border-radius: 20px;
  padding: 3px 11px;
  font-size: 0.78rem;
  font-weight: 500;
}

@media (max-width: 700px) {
  .timeline::before { left: 14px; }

  .timeline-item {
    flex-direction: column;
    padding-left: 36px;
    padding-right: 0;
    justify-content: flex-start;
  }

  .timeline-left,
  .timeline-right {
    padding-left: 36px;
    padding-right: 0;
    justify-content: flex-start;
  }

  .timeline-dot {
    left: 14px;
  }

  .timeline-right .timeline-card {
    border-right: none;
    border-left: 3px solid #ae69c9;
  }
}