/* General Styling */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Source Sans Pro', sans-serif;
    background-color: #FFFFFF;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Fullscreen Loader Container */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000; /* Dark background for contrast */
    z-index: 1000; /* Ensure the loader is on top */
}

/* Loader Animation */
.loader {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3; /* Light grey border */
    border-radius: 50%;
    border-top: 4px solid #3498db; /* Blue color for the spinning part */
    animation: spin 1s linear infinite; /* Spinning animation */
}

/* Spin Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loader Fade Out */
#loader.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none; /* Prevent interaction with the loader after fade-out */
}


/* Header Styling */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 80px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #fff;
    z-index: 10;
    padding: 20px 0;
    align-items: center;
    border-right: 0.1px solid black;
    transition: all 0.3s ease;
}

header .logo {
    text-align: center;
    margin-bottom: 20px;
}

header .logo img {
    max-width: 60px;
    height: auto;
    transition: all 0.3s ease;
}


.menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.menu a {
    color: black;
    text-decoration: none;
    margin: 20px 0;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    transition: color 0.3s ease;
    position: relative;
}

/* Active and Hover State for Menu Items */
.menu a.active::after,
.menu a:hover::after {
    content: "";
    position: absolute;
    right: -5px; /* Adjust to position the line closer to the text */
    top: 0;
    bottom: 0;
    width: 2px; /* Make the line a bit thicker */
    background-color: black; /* Line color */
}

/* Main Content Area Adjustments */
main {
    margin-left: 80px; /* Adds space for the header */
    padding: 20px;
}

/* IITJobs Section Styling */
#iitjobs-section {
    display: flex;
    flex-direction: column;
    width: 100vw;
    box-sizing: border-box;
    background: #FFFFFF;
    gap: 1px;
    padding: 20px 50px;
}

.first-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 10px;
    align-items: start;
}

.second-row {
    flex-direction: column;
    padding: 100px;
    padding-top: 2px;
    padding-bottom: 20px;
    align-items: flex-start;
}

.column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-column {
    max-width: 700px;
    padding: 100px;
    padding-top: 10px;
    padding-bottom: 2px;
}

.image-column {
    padding-top: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.title {
    font-family: 'Alegreya Sans', sans-serif;
    font-weight: 700;
    font-size: 2.2vw;
    color: #000000;
    margin-bottom: 1px;
}

.date {
    font-weight: 400;
    color: #000000;
    margin-bottom: 5px;
    margin-top: 5px;
}

.description {
    font-weight: 600;
    color: #000000;
    margin-bottom: 2px;
}


.role h2, .disciplines h2, .technology h2, h2, .impact-section h2, .impact-quantified-section h2 {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    font-size: 1.2vw;
    line-height: 1.2;
    color: #000000;
    margin-bottom: 20px;
    margin-top: 20px;

}

.role p {
    font-weight: 400;
    line-height: 1.2;
    color: #000000;
    margin: 0;
}

/* General Discipline Styles */
.disciplines {
    margin: 10px 0;
}

.discipline {
    margin-bottom: 15px;
    position: relative;
}

.bar-container {
    width: 100%;
    height: 25px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.bar {
    height: 100%;
    border-radius: 10px;
    transition: width 2s ease;
}

.discipline-title {
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    color: #000;
    font-weight: 300;
    z-index: 2;
    margin: 0;
    pointer-events: none;
}


/* Initial State of Bars */
.fill1 {
    width: 0;
    background: linear-gradient(90deg, rgba(217, 217, 217, 0) 0%, #E9D5B8 100%);
}

.fill2 {
    width: 0;
    background: linear-gradient(90deg, rgba(217, 217, 217, 0) 0%, #BCC9BE 100%);
}

.fill3 {
    width: 0;
    background: linear-gradient(90deg, rgba(217, 217, 217, 0) 0%, #C6A8A8 100%);
}

.fill4 {
    width: 0;
    background: linear-gradient(90deg, rgba(217, 217, 217, 0) 0%, #A8C2C5 100%);
}

.fill5 {
    width: 0;
    background: linear-gradient(90deg, rgba(217, 217, 217, 0) 0%, #432728 100%);
}

/* Animated Filling to Target Width */
.loaded .fill1 { width: 100%; }
.loaded .fill2 { width: 95%; }
.loaded .fill3 { width: 85%; }
.loaded .fill4 { width: 80%; }
.loaded .fill5 { width: 88%; }

/* Initial State of Bars */
.sfill1 {
    width: 0;
    background: linear-gradient(90deg, rgba(217, 217, 217, 0) 0%, #E9D5B8 100%);
}

.sfill2 {
    width: 0;
    background: linear-gradient(90deg, rgba(217, 217, 217, 0) 0%, #BCC9BE 100%);
}

.sfill3 {
    width: 0;
    background: linear-gradient(90deg, rgba(217, 217, 217, 0) 0%, #C6A8A8 100%);
}

.sfill4 {
    width: 0;
    background: linear-gradient(90deg, rgba(217, 217, 217, 0) 0%, #A8C2C5 100%);
}

.sfill5 {
    width: 0;
    background: linear-gradient(90deg, rgba(217, 217, 217, 0) 0%, #432728 100%);
}


/* Animated Filling to Target Width */
.loaded .sfill1 { width: 95%; }
.loaded .sfill2 { width: 100%; }
.loaded .sfill3 { width: 70%; }
.loaded .sfill4 { width: 85%; }
.loaded .sfill5 { width: 100%; }


li {

  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  line-height: 25px;
  font-size: 0.9rem;
}

h {
            font-weight: 600;
            font-size: 50px;
            line-height: 63px;
            color: #000;
            margin: 0;
        }

.impact-section {
            max-width: 800px;
        }

        .impact-title {
            font-weight: 600;
            font-size: 25px;
            line-height: 31px;
            margin-bottom: 20px;
        }

        .impact-items {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .impact-item {
            display: flex;
            flex-direction: column;
        }

        .impact-item p {
            font-weight: 400;
            line-height: 25px;
            margin-top: 10px;
            color: #000000;
        }

        .technology-image {
           width: 100%;
           max-width: 800px;
           height: auto;
           border-radius: 10px;
           padding:20px;
       }
       .techno-image {
          width: 100%;
          max-width: 300px;
          height: auto;
          border-radius: 10px;
          padding:20px;

      }

      .impact-quantified-section {
                  max-width: 800px;
              }

              .impact-quantified-title {
                  font-weight: 600;
                  line-height: 31px;
                  margin-bottom: 20px;
              }

              .impact-quantified-items {
                  display: grid;
                  grid-template-columns: 1fr 1fr 1fr;
                  gap: 20px;
              }

              .impact-quantified-item {
                  display: flex;
                  flex-direction: column;
                  align-items: flex-start;
              }

              .impact-quantified-value {
                  font-weight: 600;
                  font-size: 50px;
                  line-height: 63px;
                  color: #000;
                  margin: 0;
              }

              .impact-quantified-description {
                  font-weight: 400;
                  line-height: 25px;
                  margin-top: 10px;
                  color: #000000;
              }

.project-image {
    max-width: 90%;
    height: auto;
    border-radius: 20px;
}

.journey-container {
    display: flex;
    justify-content: flex-start; /* Aligns items to the left */
    align-items: flex-start;
    position: relative;
    margin-bottom: 40px;
    width: auto; /* Ensure it doesn't take up the entire width */
    gap: 40px; /* Adds space between each journey step */
    padding-left: 0; /* Align to the left of the container */
}

.journey-step:nth-child(4) .circle {
    transform: translateX(-20px); /* Adjust the value as needed */
}


        .journey-step {
            text-align: left;
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
        }

        .circle {
            width: 40px;
            height: 40px;
            background-color: #555;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-weight: 600;
            margin-bottom: 10px;
            margin-right:50px;
            z-index: 2;
        }

        .line-left,
        .line-right {
            height: 2px;
            background-color: #555;
            position: absolute;
            top: 20px; /* Adjusts the vertical alignment with the circle */
            margin-right: 30px;
            z-index: 1;
        }

        .line-left {
      width: calc(50% - 30px); /* Creates gap between the circle and the left line */
      left: -50px;
  }

  .line-right {
      width: calc(50% - 30px); /* Creates gap between the circle and the right line */
      right: -25px;
  }

  /* Adjust the left line for the 4th circle */
  .journey-step:nth-child(4) .line-left {
      left: -65px; /* Shifts the left line further left for Circle 4 */
  }


        .journey-step-content {
            background: #fff;
            z-index: 1;
            padding: 10px;
            text-align: left;
            margin-top: -10px; /* Adjusts the content position relative to the circle */
        }

        h3 {
            font-size: 16px;
            font-weight: 600;
            margin: 10px 0 5px;
        }

        p {
            font-size: 14px;
            margin: 0;
            line-height: 1.6;
        }

        .highlight {
            font-weight: bold;
        }


@media (max-width: 768px) {

  .first-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0;
    }

    /* General Body Adjustments */
    body {
        padding: 0;
        margin: 0;
        overflow-x: hidden;
    }

    /* Header Adjustments */
    header {
        width: 100%;
        height: 60px;
        flex-direction: row;
        justify-content: space-between;
        border-right: none;
        border-bottom: 0.1px solid black;
    }

    header .logo {
        writing-mode: horizontal-tb;
        transform: none;
        margin-bottom: 0;
        margin-left: 10px;
    }

    header .logo img {
        max-width: 40px;
    }



    .menu {
        flex-direction: row;
        width: 80%;
        padding: 0 10px;
        margin-bottom: 0;
    }

    .menu a {
        position: relative; /* Ensure the pseudo-element positions relative to the link */
        writing-mode: horizontal-tb;
        transform: none;
        margin: 0 12px;
        font-size: 14px;
        text-decoration: none; /* Remove the default underline */
    }

    .menu a.active::after,
    .menu a:hover::after {
        content: "";
        position: absolute;
        bottom: -3px; /* Position the line just below the text */
        left: 0;
        width: 100%; /* Match the width of the line to the width of the text */
        height: 1px;
        background-color: black; /* Line color */
    }


    /* Main Content Adjustments */
    main {
        margin-left: 0;
        padding: 10px;
    }

    /* IITJobs Section Adjustments */
    #iitjobs-section {
        padding: 10px;
        flex-direction: column;
        gap: 20px;
    }

.project-image {

}



.second-row {
    flex-direction: column;
    padding: 10px;
    padding-top: 2px;
    padding-bottom: 2px;
    align-items: flex-start;
}

    .content-column {
        padding: 10px;
        padding-top: 2px;
    padding-bottom: 2px;
        max-width: 100%;
    }

    .image-column {
        order: -1;
        margin-bottom: 10px;
    }

    .title {
        font-size: 5vw;
    }

    .date {
        font-size: 3vw;
        margin-bottom: 10px;
    }

    .description {
        margin-bottom: 10px;
    }

    .role-discipline {
        margin-bottom: 20px;
    }

    .role h2,
    .disciplines h2,
    .technology h2, h2, .impact-section h2, .impact-quantified-section h2 {
        font-size: 4.5vw;
        margin-bottom: 10px;
    }

    .discipline {
        margin-bottom: 15px;
    }

    .role p,
    .technology p {
    }

    .bar-container {
        height: 20px;
    }

    .bar {
        height: 100%;
    }

    .journey-container {
        flex-direction: column; /* Stack steps vertically on smaller screens */
        gap: 20px;
        align-items: center; /* Center align the steps */
    }

    .journey-step {
        width: 90%; /* Adjust the width to fit within the screen */
        align-items: flex-start; /* Align content to the left */
    }

    .circle {
        margin-left: 0;
    }

    .line-left,
    .line-right {
        display: none; /* Hide lines on smaller screens for simplicity */
    }

    .journey-step-content {
        text-align: left;
        margin-top: 0; /* Adjust the content position */
    }

}
