/* header, body, main */
.header {
  background-color: #111;
  padding: 1em 2em;
  margin-bottom: 1em;
  box-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

body {
  margin: 0;
  font-family: monospace, sans-serif;
  background-color: #111;
  color: white;
  padding: 0;
  flex-direction: column;
  align-items: center;
  padding-top: 1em;
}

main {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  padding: 4em 5em 1em; 
  margin-top: 0;
}


/* Navigator */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1em;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  padding: 0;
  margin: 0;
}

.nav-links li a {
  text-decoration: none;
  color: #fff;
  font-size: 1em;
}

.logo {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
}


/* Profile Card */
.profile-card {
  width: 100%;               
  max-width: 800px;         
  min-width: 0;             
  display: flex;
  flex-wrap: wrap;          
  border: 1px solid #333;
  border-radius: 10px;
  box-sizing: border-box;
  padding: 1em;
  justify-content: space-between;
  align-items: flex-start;
  background-color: #111;
  color: white;
  gap: 2.5em;
  overflow: hidden;
}

.profile-info {
  flex-grow: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.profile-info h2 {
  font-size: 1.4em;
  white-space: nowrap;          
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.location {
  color: #aaa;
  margin: 0.3em 0;
}

.description {
  margin-top: 1em;
}

.profile-links {
  display: flex;
  gap: 0.5em;
  flex-shrink: 0;
  white-space: nowrap;
}

.profile-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  background-color: transparent;
  border: 1px solid #444;
  border-radius: 6px;
  text-decoration: none;
  color: white;
  font-size: 1.1em;
  padding: 4px;
  transition: background 0.2s, transform 0.2s;
}

.profile-links a:hover {
  background-color: #222;
  transform: scale(1.05);
}

.profile-links img {
  width: 20px;
  height: 20px;
}

.container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding-inline: 1em;
  box-sizing: border-box;
}


/* Tech Stack */


.wrapper {
  display: flex;
  flex-direction: column;     
  align-items: flex-start;
  width: 100%;
  max-width: 800px;
  position: relative;
  overflow: hidden;
  margin-inline: auto;
  margin-top: 1.5em;
}

#what-i-work {
  font-size: 2em;
  font-weight: bold;
  color: white;
}


.scroller {
  width: 100%;
  height: 100px;
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 1) 80%,
    rgba(0, 0, 0, 0)
  );
}

@keyframes scrollLeft {
  to {
    left: -200px;
  }
}

.item {
  width: 200px;
  height: 100px;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  left: 100%;
  animation-name: scrollLeft;
  animation-duration: 30s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.item svg {
  width: 40px;
  height: 40px;
  fill: white;
  filter: brightness(85%);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.item svg:hover {
  filter: brightness(100%);
  transform: scale(1.2);
}

.icon-label{
  font-size: 0.75em;
  color: white;
  margin-top: 0.5em;
}


/* Exp */
.experience-section {
  max-width: 800px;
  margin: 0 auto;
  font-family: sans-serif;
}

.experience-section h2 {
  font-size: 2em;
  font-weight: bold;
  color: white;
}

.timeline {
  position: relative;
  padding-left: 1em; 
}

.timeline::before {
  content: "";
  position: absolute;
  top: 30px; 
  left: -2px;
  width: 3px;
  height: calc(78% - 30px); 
  background-color: #fff;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5em;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background-color: #00bcd4;
  border: 3px solid #fff;
  border-radius: 50%;
  position: absolute;
  left: -1.6em;
  top: 1.5em;
}

.timeline-content .company {
  color: #00e0ff;
  font-weight: 500;
  margin: 0 0 0.2em;
}

.timeline-content .title {
  font-weight: bold;
  font-size: 1.2em;
  color: white;
  margin: 0 0 0.2em;
}

.timeline-content .date {
  color: #ccc;
  font-size: 0.9em;
  margin-bottom: 0.5em;
}

.timeline-content .description {
  margin: 0;
  line-height: 1.5;
  color: #ddd;
}

/* aboutme */
.about-section {
  max-width: 800px;
  margin-top: 1em;
  /* padding: 1em; */
  color: white;
}

.about-section h2 {
  font-size: 3em;
  margin-bottom: 1em;
  color: white;
}

.about-section p {
  color: #ccc;
}

.contact-section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 4em 1em;
  box-sizing: border-box;
}

/* contactme */
.contact-card {
  width: 90%;
  max-width: 900px;
  background-color: #111;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 2em;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  box-sizing: border-box;
  margin: 0 auto;
}

.contact-info h2 {
  font-size: 2em;
  margin: 0;
  color: white;
}

.contact-info p {
  margin: 0.5em 0 0;
  color: #ccc;
  line-height: 1.6;
}

.contact-links {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3em;
  margin-top: 1em;
}

.contact-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #ccc;
}

.contact-icon svg {
  width: 50px;
  height: 50px;
  transition: transform 0.2s ease, filter 0.2s ease;
  filter: brightness(85%);
}

.contact-icon svg:hover {
  filter: brightness(100%);
  transform: scale(1.1);
}

.contact-icon p {
  margin-top: 0.5em;
  font-size: 0.9em;
  line-height: 1.4;
}

.contact-links a {
  transition: background 0.2s, transform 0.2s;
}

.contact-links a:hover {
  background-color: #222;
  transform: scale(1.1);
}

.contact-links img {
  width: 10px;
  height: 10px;
  filter: brightness(85%);
}


/* Footer */
.site-footer {
  background-color: #111;
  color: #aaa;
  padding: 2em 1em;
  text-align: center;
  font-size: 0.9em;
  margin-top: auto;
  border-top: 1px solid #333;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Resizing Content */
@media (max-width: 800px) {
  /* Main layout adjustments */
  body {
    padding-top: 0.5em;
    font-size: 0.95em;
  }
  

  main {
    padding: 2em 1em;
  }

  .header {
    padding: 1em;
    text-align: center;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1em;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5em;
  }

  .logo {
    font-size: 1.1em;
  }

  /* Profile card stacking */
  .profile-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1em;
    padding: 1em;
  }

  .profile-info h2 {
    font-size: 1.2em;
  }

  .profile-links {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.5em;
  }

  .profile-links a {
    width: 36px;
    height: 36px;
    font-size: 1em;
    padding: 6px;
  }

  /* Tech stack */
  #what-i-work {
    font-size: 1.5em;
  }

  .scroller {
    height: 80px;
  }

  .item {
    width: 160px;
    height: 80px;
  }

  .item svg {
    width: 32px;
    height: 32px;
  }

  .icon-label {
    font-size: 0.65em;
  }

  /* Experience section */
  .experience-section h2 {
    font-size: 1.5em;
  }

  .timeline-content .title {
    font-size: 1em;
  }

  /* About section */
  .about-section h2 {
    font-size: 2em;
  }

  .about-section p {
    font-size: 0.95em;
  }

  /* Contact section */
  .contact-card {
    padding: 1.5em;
    align-items: center;
  }

  .contact-info h2 {
    font-size: 1.5em;
  }

  .contact-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2em;
/* width: 100%; */
    align-items: center;
    text-align: center;
  }

  .contact-icon svg {
    width: 40px;
    height: 40px;
    flex: 1 1 80px; 
  }

  .contact-icon p {
    font-size: 0.85em;
    align-items: center;
    text-align: center;
    margin-top: 0.5em;
  }

  /* Footer */
  .site-footer {
    padding: 1.5em 1em;
    font-size: 0.8em;
  }
}
