@import url('https://fonts.googleapis.com/css2?family=Birthstone&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

:root {
  --font-inter: "Inter";
}

#intro-text {
  color: var(--color-text);
}

body {
  --color-text: rgb(240, 240, 240);
  --color-hidden: #888888;
  --color-primary: #C778DD;
  --color-primary-light: #dba4eb;
  --color-secondary: #252933;
  --color-bg: #282C33;
  --color-timeline-bg: #303542;
  --blur: 5px;
  --fil: 20%;
  background-color: var(--color-secondary);
}

.dark-theme {
  --color-text: rgb(77, 77, 77); 
  --color-hidden: #555555;
  --color-primary: #7C4DFF; 
  --color-primary-light: #9C6BFF;
  --color-secondary: #f5f5f5; 
  --color-bg: #ffffff;
  --color-timeline-bg: #ebebeb;
  --blur: 10px;
  --fil: 100%;
}

nav {
  position: fixed;
  width: 100%;    
  top: 0;         
  padding: 10px 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--color-bg);
  box-shadow: rgba(50, 50, 93, 0.2) 0px 0px 20px -1px,
  rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  z-index: 1;
}
nav .logo {
  display: flex;
  align-items: center;
}
nav .logo img {
  height: 25px;
  width: auto;
  margin-right: 10px;
}
nav .logo h1 {
  font-size: 1.5rem;
  background: linear-gradient(to top, var(--color-bg) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  list-style: none;
  display: flex;
}
nav ul li {
  margin-left: 1.5rem;
}
nav ul li a {
  text-decoration: none;
  color: var(--color-hidden);
  font-size: 100%;
  font-weight: 400;
  padding: 4px 0px 8px 8px;
  border-radius: 5px;
}
nav .theme-toggle {
  position: absolute;
  margin-top: 120px;
  margin-left: 2.5rem;
  transform: translateX(-50%);
}

#theme-toggle-button {
  background-color: var(--color-bg);
  border: 0;
  padding: 5px 15px;
  border-radius: 0 15px 15px 0;
  color: var(--color-primary);
  font-size: larger;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-shadow: rgba(50, 50, 93, 0.2) 0px 0px 20px -1px,
  rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}

#theme-toggle-button:hover {
  background-color: var(--color-primary-light);
  color: var(--color-bg); /* Button text changes to background color */
}

.hoverable {
  color: var(--color-hidden);
  transition: 0.2s ease;
}
.hoverable:hover {
  color: var(--color-text);
  background-color: var(--color-secondary);
  padding: 0px;
}

.skills {
  font-size: medium;
}

.short-line {
  display: none;
}
.super-short-line {
  display: none;
}

@media (max-width: 900px) {
  .long-line, .super-short-line {
    display: none;
  }
  .short-line {
    display: inline;
  }
}
@media (max-width: 765px) {
  .long-line, .short-line {
    display: none;
  }
  .super-short-line {
    display: inline;
  }
}

.hamburger {
  display: none;
  cursor: pointer;
}

#contact {
  box-shadow: rgba(50, 50, 93, 0.2) 0px 5px 20px -1px,
  rgba(0, 0, 0, 0) 0px 1px 3px -1px;
}

.projects-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); 
  column-gap: 2rem;
  row-gap: 2rem;
  padding: 2rem;
  background-color: var(--color-secondary);
  box-sizing: border-box; 
}
.project {
  border: 1px solid var(--color-hidden);
  padding: 0;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}
.project:hover {
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3); /* stronger on hover */
  box-shadow: 0 0 7px var(--color-primary);
  border: 1px solid var(--color-text);
}
.project-img-container {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(var(--fil)) blur(var(--blur));
  transition: filter 0.2s ease;
}
.project:hover .project-img {
  filter: brightness(100%) blur(0px);

}
.project-divider {
  height: 1px;
  width: 100%;
  background-color: var(--color-hidden);
}
.project-divider:hover {
  background-color: var(--color-text);
}
.project-description {
  color: var(--color-text);
  font-size: 1rem;
  padding: 1rem;
  padding-bottom: 0.5rem;
  text-align: center;
}
.project-title {
  margin: 0;
  padding: 1rem 0.5rem;
  text-align: center;
  color: var(--color-hidden);
  transition: color 0.3s ease;
}
.project-description {
  font-size: large;
  color: var(--color-hidden);
  transition: color 0.3s ease;
}
.project-link {
  position: relative;
  width: fit-content;
  color: var(--color-primary-light);
  transition: color 0.3s ease;
}
.project-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background-color: var(--color-text);
  transition: width 0.3s ease;
}
.project-link:hover {
  color: var(--color-text);
}
.project-link:hover::after {
  width: 100%;
}

.project:hover .project-title,
.project:hover .project-description {
  color: var(--color-text);
}

.journey {
  display: flex;
  flex-direction: row;
}
.sub-journey {
  flex: 1 1 50%;
}
.journey-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  background-color: var(--color-secondary);
  padding: 2rem 2rem;
  padding-bottom: 0 !important;
  position: relative;
}

.timeline {
  position: relative;
  /* max-width: 700px; */
  width: 100%;
}
/* Reach timeline size limit */
@media screen and (max-width: 650px) {
  .timeline {
    max-width: 95%;
  }
  .journey-section {
    padding: 2rem 1rem;
  }
  .journey {
    display: flex;
    flex-direction: column;
  }
}
.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}
.timeline-content {
  color: var(--color-hidden);
  background-color: var(--color-timeline-bg);
  cursor:default;
  padding: 1rem;
  border-left: 2px solid var(--color-text);
  border-radius: 6px;
}
.timeline-paragraph {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.1s ease-in, max-height 0.1s ease-in;
}

.timeline-group:hover .timeline-paragraph {
  opacity: 1;
  max-height: 100%;
}
.timeline-date {
  font-size: 1.1rem;
  color: var(--color-text);
}
.timeline-date.timeline-project {
  color: var(--color-primary-light);
}
.timeline-subtitle {
  font-size: 0.8rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.month {
  color: var(--color-primary-light);
}

.important {
  font-weight: 300;
  color: var(--color-text);
}

.read-more {
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  font-weight: bold;
}
.read-more:hover {
  text-decoration: underline;
}

@keyframes flashGlow {
  0%, 100% {
    box-shadow: 0 0 5px 5px var(--color-primary);
    padding: 0.5rem;
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 20px 20px var(--color-primary);
    padding: 0.5rem;
    transform: scale(1.1);
  }
}

@keyframes flashGlowNoPadding {
  0%, 100% {
    box-shadow: 0 0 5px 5px var(--color-primary);
  }
  50% {
    box-shadow: 0 0 20px 20px var(--color-primary);
  }
}

.flash-effect {
  animation: flashGlow 1.5s ease-out forwards;
  transition: 0.3s ease;
}

/* .footer-section.flash-effect {
  animation: flashGlowNoPadding 1.5s ease-out forwards;
  transition: 0.3s ease;
} */

.flash-effect-reverse {
  transition: box-shadow 0.5s ease, transform 0.5s ease;
  box-shadow: none;
  transform: scale(1);
}

.footer-section {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 50px;
  font-size: large;
  text-align: center;
  padding: 2rem;
  color: var(--color-text);
  background-color: var(--color-timeline-bg);
  transition: 0.3s ease;
}
/* .footer-section:hover {
  box-shadow: 0 0 30px 0px var(--color-primary-light);
} */

.marker {
  color: var(--color-primary);
}


.slider-container {
  width: 70%;
  overflow: hidden;
  border-top: 1px solid var(--color-primary);
  position: relative;
}

.slider-track {
  display: flex;
  align-items: flex-start;
  padding: 20px;
}

.slider-item {
  flex-shrink: 0;
  width: 300px;
  margin-right: 10px;
  text-align: center;
}

.slider-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 5px;
}

.slider-item video {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 5px;
}

.subtitle {
  padding: 0 7px;
  margin-top: 5px;
  font-size: 16px;
  color: var(--color-text);
}

@media screen and (max-width: 650px) {
  .slider-item {
    flex-shrink: 0;
    width: 150px;
    margin-right: 10px;
    text-align: center;
  }
  
  .slider-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
  }
  
  .slider-item video {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
  }
}