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

.body {
    background: #ffffff;
}

.landing-page {
    min-height: 100vh;
    overflow-y: scroll;  /*  Forces a vertical scrollbar, even if not needed */
    display: flex;
    flex-direction: column;
}

.landing-page .home {
    height: 100vh; /* Ensures the home section takes up the full viewport height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px; /* Define the height of the navigation bar */
    padding: 20px 10%;
    background: #0D0A3A;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.intro-list {
    padding-left: 20px;
    padding-top: 20px; /* adjust value as you like */
}
.intro-list li {
  margin-bottom: 12px;   /* space between bullets */
}

.about, .portfolio {
    padding: 60px 10%; /* Ensure all content stays within the header borders */
    margin-top: 100px;
    max-width: 100%; /* Make sure content doesn’t overflow */
}

.profile-photo {
    width: 30vw; /* Set the width relative to the viewport width */
    height: auto; /* Let the height adjust automatically to maintain the aspect ratio */
    max-width: 600px; /* Set a maximum width to prevent it from getting too large on larger screens */
    min-width: 180px; /* Set a minimum width to prevent it from getting too small on smaller screens */
    border-radius: 50%; /* Keep the image circular */
    object-fit: cover; /* Ensures the image is cropped from the center */
    overflow: hidden; /* Ensures any overflow is hidden */
    margin-top: 10px; /* Adds space above the image */
    margin-bottom: 20px; /* Adds space below the image */
    display: block; /* Ensure the image aligns properly */
    margin-left: auto; /* Align the image to the right */
    /* margin-right: 10px; Space between the image and the text */
}

.home {
    flex: 1; /* Takes up the remaining space */
    height: 300vh;
    display: flex;
    align-items: flex-start; /* Align the content at the top of the section */
    justify-content: center;
    padding: 0 10%;
    overflow: hidden;
}

.home-content {
    display: flex;
    flex-direction: row;
    max-width: 100%; /* Ensures content doesn't overflow */
    align-items: center; /* Center content horizontally */
    justify-content: center; /* Center content vertically */
    margin-top: 0;
    padding-top: 100px;
    padding-bottom: 10px;
    margin-right: 25%; /* Centers the content between the navigation bar's borders */
}

.home-intro {
    width: 100%; /* Make sure the parent container is wide enough */
}

.intro-text {
    width: 100%;
    margin-left: 10vw; /* Adjust this value as needed */
}

.what-im-looking-for {
    font-size: 18px;
}
.what-im-looking-for h3 {
    font-size: 22px; /* Adjust the font size as needed */
}

.home-content .btn-box {
    display: flex;
    justify-content: space-between;
    color: #0D0A3A;
    width: 345px;
    height: 50px;
}

.home-content h1 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

/* .home-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: #00abf0;
} */

.home-content p {
    font-size: 20px;
    margin: 20px 0 20px;
}

.logo {
    color: rgb(249, 141, 0);
    font-size: 24px;
    text-decoration: none;
    font-weight: 600;
}

.navbar a {
    font-size: 18px;
    color: #ededed;
    text-decoration: none;
    font-weight: 500;
    margin-left: 35px;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active {
    color: rgb(249, 141, 0);
}

.btn-box a {
    position: relateive;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 100%;
    background: #0D0A3A;
    border: 2px solid #0D0A3A;
    border-radius: 8px;
    font-size: 19px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}

.btn-box a:nth-child(1) {
    background: transparent;
    color: #0D0A3A;
}

.btn-box a:nth-child(1)::before {
    background: #ffffff;
}

.btn-box a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #0D0A3A;
    z-index: -1;
    transition: .5s;
}

.home-sci {
    position: absolute;
    bottom: 40px;
    width: 100%; 
    display: flex;
    /* justify-content: center;  */
    gap: 30px;
}

.home-sci a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px; 
    height: 50px;
    background: transparent;
    border: 2px solid #0D0A3A;
    border-radius: 50%;
    color: #0D0A3A;
    font-size: 24px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.home-sci a:hover {
    background: rgba(0, 170, 240, 0.1);
}

.cv-section {
    margin-bottom: 50px;
}

.cv-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 4px;
    width: 100%; /* Adjust this to match the width needed */
}

/* Timeline Styling */
.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Vertical line connecting bubbles */
.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(150px + 20px + 10px); /* Center the line between logo and content */
    width: 2px;
    background-color: #333;
}

.timeline-entry {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Ensure the logo, bubble, and content are aligned horizontally */
    margin-bottom: 50px;
    position: relative;
}

.timeline-logo {
    width: 100px; /* Increased size for the logos */
    height: auto;
    margin-right: 20px; /* Space between the logo and the bubble */
}

.timeline-logo img {
    width: 100%;
    height: auto;
    border: none; /* Remove the circle border */
}

.timeline-bubble {
    width: 12px; /* Size of the bubble */
    height: 12px;
    background-color: #333;
    border-radius: 50%;
    position: relative;
    left: 55px; /* Center the line between logo and content */
    z-index: 1; /* Ensure the bubble is above the line */
    margin-right: 120px; /* Space between bubble and content */
}

/* Text box for the timeline content */
.timeline-content {
    background-color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    width: calc(100% - 190px - 40px - 20px); /* Ensure consistent width for content boxes */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-content ul {
    padding-left: 20px; /* Adjust the left padding to align with the content */
    margin-bottom: 10px; /* Adds space below the list */
}

.timeline-content li {
    margin-bottom: 5px; /* Adds space between list items */
    line-height: 1.5; /* Improves readability */
}

.timeline-content h4 {
    margin: 0 0 5px;
    font-size: 18px;
}

.timeline-content p {
    margin: 5px 0;
    font-size: 16px;
    color: #555;
}

.cv-list {
  padding-left: 20px;     /* indent bullets */
  margin-bottom: 0;
}

.cv-list li {
  margin-bottom: 5px;     /* space between bullets */
  line-height: 1.5;       /* comfortable reading */
}

.about-section {
    margin-bottom: 40px; /* Space between sections */
    padding: 0 10%; /* Ensure all content stays within the header borders */
}

.section-header {
    position: relative;
    margin-bottom: 20px; /* Space between header and content */
}

.section-header h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.section-header hr {
    border: 0;
    height: 2px;
    background-color: #333; /* Color of the horizontal line */
    width: 100%; /* Span the entire page width */
}

.section-content {
    background-color: #f9f9f9; /* Light background for textbox */
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Optional shadow for depth */
    line-height: 1.5; /* Improves readability */
}

/* General Portfolio Styling */
.portfolio-summary {
    font-size: 16px;
    color: #555;
    margin-bottom: 50px;
    line-height: 1.5; /* Improves readability */
}

.full-cv-footer {
    padding: 0 10%;
}

.portfolio h3 {
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 4px;
    width: 100%; /* Adjust this to match the width needed */
}

.portfolio-entry {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
}

.portfolio-entry img {
    max-width: 300px; /* Ensures consistent image size across portfolio entries */
    height: auto; /* Maintains the aspect ratio */
    margin-right: 40px; /* Consistent spacing between the image and the text */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.portfolio-entry-content h4 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.portfolio-entry-content p {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

/* Indentation for Bullet Points */
.indented-list {
    padding-left: 40px; /* Increase this value to indent more */
    margin-left: 30px; /* Optional: You can add margin as well to adjust */
    color: #555;
}

/* Specific Styling for Vertical Image in Anki Project */
.large-vertical-image {
    width: 300px; /* Match this with the width of other images */
    height: auto; /* Keep the aspect ratio intact */
    margin-right: 40px; /* Keep consistent spacing */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.home-sci {
    display: flex;
    gap: 20px; /* Space between icons */
}

.site-footer {
    text-align: center;
    font-size: 14px;
    color: #333;
    padding-top: 40px; /* Adjust this value as needed */
    margin-bottom: 40px; /* Adjust this value as needed */
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    bottom: 2px; /* Positions the footer slightly above the bottom */
    left: 0;
    text-align: center;
    margin-top: auto;
    z-index: 10; /* Ensures it doesn't overlap content */
}

.page-footer-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the content horizontally */
    justify-content: flex-end; /* Push the footer to the bottom of the page */
    padding: 20px 0; /* Add some padding to the container */
    text-align: center; /* Center the text */
    box-sizing: border-box;
}

.email-text {
    font-size: 16px;
    margin-bottom: 20px;
    /* font-weight: bold; */
}

.page-footer-container .social-icons {
    margin-bottom: 10px; /* Add space between the icons and the footer text */
}

.page-footer-container .site-footer {
    font-size: 14px;
    color: #333;
}

.site-footer {
    text-align: center;
    font-size: 14px;
    padding-top: 20px; /* Space above the footer text */
    margin-bottom: 40px; /* Space below the footer */
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    background-color: rgba(255, 255, 255, 0.8); /* Temporary light background for visibility */
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border: 2px solid #0D0A3A;
    border-radius: 50%;
    color: #0D0A3A !important; /* Force the icon color */
    font-size: 24px;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    background-color: rgba(0, 170, 240, 0.1);
    color: #0D0A3A; /* Ensure color remains consistent */
}

/* ===== Tablet Adjustments (min-width: 769px and max-width: 1024px) ===== */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    /* 1. Block-style (left-aligned) text for subpages */
    .about, 
    .portfolio, 
    .about-section, 
    .portfolio-entry, 
    .portfolio-entry-content, 
    .timeline-content {
      text-align: left;
    }
    
    /* 2. Increase top padding in the home section so the profile picture isn’t overlapped by the fixed header */
    .home-content {
      padding-top: 100px;
    }

    /* Center and enlarge the profile picture */
    .profile-photo {
        margin-left: 160px;
        width: 50vw;                  /* Larger picture on tablet */
    }
    
    /* 3. For the About section timeline: remove the vertical line and dots, then stack the elements vertically */
    .timeline:before {
      display: none;
    }
    .timeline-entry {
      flex-direction: column;
      align-items: center;  /* Centers the logo horizontally */
      text-align: left;     /* Ensures the text remains block-style */
      margin-bottom: 30px;
    }
    .timeline-logo {
      width: 120px;             /* Reduced width for tablet */
      margin-right: 0;         /* Remove right-margin */
      margin-bottom: 10px;      /* Add spacing below the logo */
    }
    .timeline-bubble {
      display: none;           /* Hide the dot/bubble */
    }
    .timeline-content {
      width: 100%;             /* Use full container width */
      padding: 10px;           /* Adjust padding as needed */
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);       /* Optional: remove shadow for a cleaner look */
    }

    /* 5. Portfolio Subpage: Stack the media element (image) on top of the text */
    .portfolio-entry {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .portfolio-entry img {
        margin: 0 0 20px 0;  /* Remove right margin and add spacing below the image */
    }
    .portfolio-entry-content {
        width: 100%;
        padding: 0 10px;
    }
  }
  
  /* ===== Mobile Adjustments (max-width: 768px) ===== */
@media screen and (max-width: 768px) {
    /* 1. Block-style (left-aligned) text on About page elements */
    .about,
    .about-section,
    .timeline-content {
        text-align: left;
    }
    
    /* 2. Increase top padding in the home section so the profile picture isn’t overlapped by the header */
    .home-content {
        padding-top: 80px;
    }
    .home-content h1 {
        font-size: 24px;
    }
    
    /* Center the profile picture properly on mobile */
    .profile-photo {
        display: block;
        margin-left: 64px;
        width: 70vw;  /* Adjust as needed */
    }
    
    /* Reduce the font size of the home intro text for mobile */
    .intro-text p {
        font-size: 16px;  /* Reduced for a better mobile fit */
    }
    
    /* 3. Adjust the About page timeline: remove vertical line and dots, stack the elements vertically */
    .timeline:before {
        display: none;
    }
    .timeline-entry {
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }
    .timeline-logo {
        width: 80px;
        margin-right: 0;
        margin-bottom: 10px;
    }
    .timeline-bubble {
        display: none;
    }
    .timeline-content {
        width: 100%;
        padding: 10px;
        font-size: 15px;
        /* Retain the shadow effect */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* 4. Adjust navigation bar: keep all subpage buttons in one row with reduced spacing */
    .navbar {
        white-space: nowrap;
        overflow-x: auto;  /* Allows horizontal scrolling if needed */
    }
    .navbar a {
        margin-left: 10px;
        font-size: 16px;
    }

    /* 5. Portfolio Subpage: Stack the media element (image) on top of the text */
    .portfolio-entry {
        flex-direction: column;
        align-items: center;
        text-align: left;
    }
    .portfolio-entry img {
        margin: 0 0 20px 0;
        max-width: 90%;
    }
    .portfolio-entry-content {
        width: 100%;
        padding: 0 10px;
    }

}