html {
    scroll-behavior: smooth;
}

body {
    background-color: #0a192f;
}

.navbar {
    
    /* padding-left: 75%; */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 1.2em;
    gap: 20px;
    padding: 50px 50px 50px 50px;
    width: 100%;
    list-style: none;
    width: 100%;
    position: fixed;
    color: white;
    background-color: #0e1c30c9;
    font-family: monospace;
    z-index: 1;
    border-bottom: 3px black;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.navbar a {
    text-decoration: none;
    gap: 20px;
    color: white;
}

.navbar a:hover {
    color: #EE82EE;
}

.fa {
    padding: 20px;
    font-size: 20px;
    width: 50px;
    text-align: center;
    text-decoration: none;
    margin: 5px 2px;
    color: white;
}
  
.linkbar .fa:hover {
    color: #EE82EE; /* Specific to the linkbar class */
}

.linkbar ul {
    list-style-type: none;
    padding: none;
}

.linkbar {
    position: fixed;
    bottom: 10%;
}

.linkbar::after {
    content: "";
    display: block;
    width: 1px;
    height: 150px;
    margin-left: 85px;
    background-color: white;
}

/* width */
::-webkit-scrollbar {
width: 10px;
}
        
/* Track */
::-webkit-scrollbar-track {
background: #0e1c30c9; 
}
        
/* Handle */
::-webkit-scrollbar-thumb {
background: #8892b0; 
}
        
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #555; 
}

/* Home Frame */

.home {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding-left: 15%;
    background-color: #0a192f; 
    color: white; 
}

.home-content {
    max-width: 80%; 
}

.home-greeting {
    font-size: 2rem;
    color: #EE82EE; 
}

.home-content h1 {
    font-size: 5rem;
    margin: 0.5rem 0;
}

.home-content h2 {
    font-size: 4rem;
    font-weight: 400;
    color: #ccd6f6; 
    margin: 0.5rem 0;
}

.home-description {
    margin-bottom: 3rem;
    color: #8892b0; 
}

/* About Frame */

.about {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding-left: 15%;
    background-color: #0a192f; 
    color: white; 
}

.about-content {
    max-width: 80%; 
}

.about-greeting {
    font-size: 2rem;
    color: #EE82EE; 
}

.about-content h1 {
    font-size: 2rem;
    margin: 0.1rem 0;
}

.about-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #ccd6f6;
    margin: 0.5rem 0;
}

.about-description {
    margin-bottom: 0rem;
    color: white;
}

/* Experience Frame */

.horizontal-navbar ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* keep everything in one line */
    list-style-type: none;
    margin: 0;
    padding: 0 10px;
    overflow-x: auto; /* allow scrolling if too many items */
    gap: 5px; /* space between links */
}

.horizontal-navbar li {
    flex: 1 1 auto; /* allow items to shrink */
    text-align: center;
    min-width: 0; /* allow shrinking below text width */
}

.horizontal-navbar li a {
    display: block;
    padding: 12px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* optional: show ... if really tight */
}

.horizontal-navbar li a:hover {
    color: #EE82EE;
}

.tabcontent {
    display: none;
    padding: 6px 12px;
    color: white;
    max-width: 100%; /* Adjust width as needed */
}

.tablinks.active {
    color: #EE82EE;
    font-weight: bold;
}

.experience {
    display: flex;
    flex-direction: column;   /* stack content vertically */
    justify-content: center;  /* center vertically */
    align-items: flex-start;  /* align to left */
    min-height: 100vh;
    padding: 0 15%;           /* horizontal padding only */
    background-color: #0a192f;
    color: white;
    box-sizing: border-box;
}

.experience-content {
    width: 100%;
    max-width: 100%;
}

.experience h3 {
    font-size: 2rem;
    margin: 0.1rem 0;
}

.experience h4 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #ccd6f6; /* Lighter text color for the subtitle */
    margin: 0.5rem 0;
}

/* Projects */

.projects {
    display: flex;
    align-items: center;
    padding-top: 80px;
    min-height: 100vh;
    padding-left: 15%;
    background-color: #0a192f; /* Match with your color theme */
    color: white; /* This should be a color that contrasts with the background */
}

.projects-content {
    width: 100%;
    max-width: 80%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.projects-greeting {
    font-size: 2rem;
    color: #EE82EE; /* This is a bright color for the greeting text, adjust as needed */
}

.projects-content h1 {
    font-size: 2.5rem; /* default large */
    margin: 0.1rem 0;
}

.projects-content h2 {
    font-size: 1.25rem;
    font-weight: 400;
    color: #ccd6f6;
    margin: 0.5rem 0;
}

.projects-description {
    font-size: 1rem;
    color: white;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: 20px;
    padding: 50px;
}

.grid__item {
    /* Set a fixed height to ensure consistent size */
    height: 350px;
    width: 330px;
    flex: 0 0 auto; 
    border: 1px solid #ccc; 
    padding: 20px; 
    border-radius: 5px; 
    position: relative; 
    transition: all 0.2s ease; 
    
    &:hover, 
    &:focus-within { 
        background-color: #234471bb; 
    }

    a { 
        position: relative; 
        z-index: 1; 
        text-decoration: none; 
        text-decoration-skip-ink: auto; 
        color: white; 
    }

    h2 { 
        margin-top: 0; 
        
        a { 
            position: static; 
            display: inline-block; 
            
            &:hover, 
            &:focus { 
                color: white; 
            }

            &:before { 
                content: ""; 
                display: block; 
                position: absolute; 
                z-index: 0; 
                width: 100%; 
                height: 100%; 
                top: 0; 
                left: 0; 
                transition: background-color 0.1s ease-out; 
                background-color: transparent; 
            }
        }
    }
}

.projects ul { 
    display: flex; 
    list-style: none; 

    li { 
        margin-right: 10px; 
        list-style: none; 

        a { 
            border-radius: 5px; 
            padding: 5px 8px; 
            
            &:hover, 
            &:focus { 
                color: white; 
                background-color: #234471bb; 
            }
        }
    }
}

.grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

hr {
    border: none;
    height: 2px;
    background-color: white; /* Bright violet to match your theme */
    width: 100%;
    margin: 20px 0;
}

.mobile-social-links {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: white;
    margin-bottom: 10px;
}

@media (max-width: 768px) {

   
    .navbar {
        display: none;
    }
    
    body {
      font-size: 16px;
      padding: 0;
      margin: 0;
      overflow-x: hidden;
    }
  
    section {
      padding: 60px 5%;
    }

    .projects {
        display: flex;
        flex-direction: column; /* Stack instead of row */
        align-items: center; /* Center items */
        justify-content: left;
        padding-left: 5%;
        width: 100%; /* Ensure it fits in the screen */
    }

    .grid {
        justify-content: center; /* Ensure it's centered */
        width: 80%; /* Make sure it takes full width */
        padding: 20px; /* Add smaller padding for mobile */
    }

    .grid__item {
        width: 100%; /* Ensure individual project cards fit */
        text-align: center;
    }
  
    .home h1,
    .about-content h1,
    .experience-content h1,
    .projects-content h1 {
      font-size: 1.8rem;
    }
  
    .home h2 {
        font-size: 2.5rem;
    }
    .about-content p,
    .projects-description,
    .experience-content p {
      font-size: 1rem;
    }
  
    .horizontal-navbar {
      flex-direction: column;
      gap: 0.5rem;
      font-size: 1rem;
      width: 100%;
    }
  
    .experience,
    .projects,
    .about {
      padding-left: 5%;
      padding-right: 5%;
      align-items: center;
    }
  
    .tabcontent {
      font-size: 0.95rem;
    }

    .linkbar {
        display: none;
    }
  
    hr {
      width: 80%;
    }

}
  
