* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, Montserrat, sans-serif;
}

/*basics of the body*/
body {
  background-color: rgb(34, 33, 33);
  color: #ffffff;
  line-height: 1.6;
  padding: 0px;
  margin: 0px;
  font-size: 14px;
  scroll-behavior: smooth;
}

/* Add scroll offset for fixed navbar */
section {
  scroll-margin-top: 100px;
}

header {
  text-align: center;
  padding: 30px 0;
}

/*title header(name)*/
header h1 {
  font-size: 4em;
  padding-bottom:0px;
  margin-bottom: 0.3em;
}

nav a {
  margin: 5px 15px;
  text-decoration: none;
  color: #ffffff;
  transition: color 0.3s ease;
  font-size: 0.9em;
  white-space: nowrap;
}

nav {
  height: auto;
  min-height: 80px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgb(34, 33, 33);
  padding: 10px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

nav a:hover {
  color: #99c4ee; /* darker blue on hover */
}

nav a.active {
  color: #99c4ee; /* active link color */
}

@media screen and (min-width: 768px) {
  nav {
    height: 80px;
    flex-wrap: nowrap;
    gap: 0;
  }
  
  nav a {
    font-size: 1em;
  }
}

/*start of home section*/
#home{
  min-height: 100vh;
  background-image: url('images/background_img.jpg'); /* file in same folder */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;               /* enables flexbox */
  flex-direction: column;      /* stack h1 and p vertically */
  justify-content: center;     /* center vertically */
  align-items: center;         /* center horizontally */
  text-align: center;          /* center text content */
}

.icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.icons img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  transition: all 0.3s ease;
}

#linkedin-icon {
  content: url('images/linkedin-icon-white.png');
}

#linkedin-icon:hover {
  content: url('images/linkedin-icon-blue.png');
  transform: translateY(-2px); /* optional: lifts the icon slightly */
}

#resume-icon:hover {
  content: url('images/resume-icon-blue.png');
  transform: translateY(-2px); /* optional: lifts the icon slightly */
}

#email-icon {
  content: url('images/email-icon-white.png');
  width: 60px;
  height: 60px;
}

#email-icon:hover {
  content: url('images/email-icon-blue.png');
  transform: translateY(-2px); /* optional: lifts the icon slightly */
}
#github-icon {
  content: url('images/github-icon-white.png');
}

#github-icon:hover {
  content: url('images/github-icon-blue.png');
  transform: translateY(-2px); /* optional: lifts the icon slightly */
}



/*start of about me section*/
#about-me {
  width: 100%;
  min-height: 100vh;
  padding: 40px 20px;
  background-color: rgb(34, 33, 33);
  color: #ffffff;
  text-align: center;
}

/* Make h2 large and centered */
#about-me h2 {
  color: rgb(178, 101, 214);
  font-size: 3em;
  margin-bottom: 40px;
}

/* The container for text + image */
.personal-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap; /* responsive for smaller screens */
  max-width: 1000px;
  margin: 0 auto;
}

.profile-label-group {
  position: relative;
}

.profile-label {
  font-size: 1.5em;
  font-family: 'Montserrat', sans-serif;
  color: #a29ea3;
  margin-bottom: 8px;
}

/* Text block */
.text {
  flex: 1;
  min-width: 300px;
  text-align: left;
  padding-left:30px;
}

/* Image block */
.image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

/* The profile image */
#profile-pic {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
}

.skills {
  margin-top: 60px;
  padding: 20px;
  background-color: #2a2929;
  border-radius: 8px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.skills h3 {
  font-size: 1.5em;
  font-family: 'Montserrat', sans-serif;
  color: #a29ea3;
  font-weight: normal;
  margin-bottom: 20px;
}

.skills ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0 10px;
}

.skills li {
  background-color: #444;
  padding: 8px 15px;
  border-radius: 20px;
  color: white;
  font-weight: 500;
  transition: background-color 0.3s ease;
  font-size: 0.9em;
}

.skills li:hover {
  background-color: #6a3d91;
}

@media screen and (min-width: 768px) {
  .skills ul {
    gap: 15px;
    padding: 0;
  }

  .skills li {
    font-size: 1em;
    padding: 10px 20px;
  }
}



/*Startof resume section*/
#resume{
  width: 100%;
  min-height: 100vh;
  padding: 20px;
  padding-top:50px;
  padding-bottom: 50px;
  background-color: white;
  color:#574444;
}

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Make h2 large and centered */
#resume h2 {
  color: rgb(178, 101, 214);
  font-size: 3em;
  margin-bottom: 30px;
}
/* resume icon */
#resume_icon {
  width: 50px;
  height: 50px;
  margin-top: -20px;
  object-fit: cover;
  transition: all 0.3s ease;
}

#resume_icon:hover {
  content: url('images/resume-icon-blue.png');
  transform: translateY(-2px); /* optional: lifts the icon slightly */
}

.resume-extended {
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 20px;
}

#resume h5{
    font-size: 2em;
    font-family: 'Montserrat', sans-serif;
    color: rgb(0, 0, 0);
    font-weight: bold;
}

#resume h3 {
  font-size: 1.5em;
  font-family: 'Montserrat', sans-serif;
  color: rgb(178, 101, 214);
  font-weight: normal;
  margin-bottom: 20px;
}

.timeline {
  position: relative;
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 60px;
}

.timeline-left {
  width: 25%;
  text-align: right;
  padding-right: 30px;
}

.timeline-center {
  width: 50px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.timeline-center::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ccc;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
}

.timeline-marker {
  width: 40px;
  height: 40px;
  background-color: #444;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.timeline-marker img {
  width: 20px;
  height: 20px;
}

.timeline-right {
  width: 65%;
  padding-left: 20px;
  text-align: left;
}

.timeline-date {
  font-size: 0.9em;
  color: gray;
  margin-top: 5px;
}

.company {
  color: #00bcd4;
  font-weight: bold;
  margin-bottom: 10px;
  margin-left: -10px; /* pulls company name closer to center */
}

@media screen and (max-width: 767px) {
  .timeline-item {
    margin-bottom: 40px;
  }
  
  .timeline-left h4,
  .timeline-right h4 {
    font-size: 1.1em;
  }
  
  .timeline-date {
    font-size: 0.8em;
  }
}




/*start of project section*/
#projects {
  width: 100%;
  min-height: 100vh;
  padding: 20px;
  padding-top: 100px;
  background-color: rgb(34, 33, 33);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

#projects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(135deg, rgba(178, 101, 214, 0.1) 0%, rgba(153, 196, 238, 0.1) 100%);
  z-index: 0;
}

#projects h2 {
  color: rgb(178, 101, 214);
  font-size: 3em;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
  position: relative;
  z-index: 1;
}

.project-card {
  background-color: rgba(42, 41, 41, 0.9);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(153, 196, 238, 0.1);
  margin: 0 auto;
  max-width: 100%;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  border-color: rgba(153, 196, 238, 0.3);
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid rgba(153, 196, 238, 0.1);
}

.project-content {
  padding: 20px;
}

.project-title {
  font-size: 1.5em;
  color: #99c4ee;
  margin-bottom: 10px;
}

.project-description {
  color: #ffffff;
  margin-bottom: 15px;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 15px;
}

.tech-tag {
  background-color: rgba(68, 68, 68, 0.8);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 0.8em;
  border: 1px solid rgba(153, 196, 238, 0.2);
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background-color: rgba(153, 196, 238, 0.2);
  border-color: rgba(153, 196, 238, 0.4);
}

.project-links {
  display: flex;
  gap: 15px;
}

.project-links a {
  color: #99c4ee;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
  padding: 5px 10px;
  border-radius: 5px;
  background-color: rgba(68, 68, 68, 0.3);
}

.project-links a:hover {
  color: #ffffff;
  background-color: rgba(153, 196, 238, 0.2);
}

.project-links img {
  width: 20px;
  height: 20px;
}

.disabled-link {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.disabled-link:hover {
  color: #99c4ee !important;
  background-color: rgba(68, 68, 68, 0.3) !important;
}

#contact {
  width: 100%;
  padding: 40px 20px;
  background-color: rgb(34, 33, 33);
  color: #ffffff;
  text-align: center;
}

#contact h2 {
  color: rgb(178, 101, 214);
  font-size: 3em;
  margin-bottom: 10px;
}

#contact h3 {
  font-size: 1.5em;
  font-family: 'Montserrat', sans-serif;
  font-weight: normal;
  margin-bottom: 40px;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 0 10px;
  margin-top: 20px;
}

.contact-card {
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

.contact-card h4 {
  color: #00bcd4;
  margin-bottom: 10px;
}

.contact-card p {
  margin: 4px 0;
}

.contact-card a {
  color: #ffffff;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

@media screen and (min-width: 768px) {
  .contact-info {
    gap: 40px;
    padding: 0;
  }
}

footer {
  text-align: center;
  margin-top: 40px;
  font-size: 0.9em;
  color: #888;
}

@media screen and (min-width: 768px) {
  body {
    font-size: 16px;
  }

  #home h1 {
    font-size: 4em;
    padding: 0;
  }
}
