*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body
{
    line-height: 1.6;
    color: white;
    background: #010003;
    background: linear-gradient(90deg, rgba(1, 0, 3, 1) 0%, rgba(14, 14, 51, 1) 44%, rgba(1, 0, 3, 1) 97%);
    font-family: "Poppins", sans-serif;
}
.main-container
{
    display: grid;
    max-width: 1200px;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    padding-top: 40px;
    margin: auto;
}
.Sidebar
{
    max-height: 90vh;
    background-color: #141824;
    border: 1px solid #1e2436;
    border-radius: 0.6rem;
    -webkit-border-radius: 0.6rem;
    -moz-border-radius: 0.6rem;
    -ms-border-radius: 0.6rem;
    -o-border-radius: 0.6rem;
    padding: 40px;
    position: sticky;
    top: 40px;
}
.profile-info
{
    text-align: center;
}
.main-content
{
    background-color: #141824;
    border: 1px solid #1e2436;
    border-radius: 0.6rem;
    -webkit-border-radius: 0.6rem;
    -moz-border-radius: 0.6rem;
    -ms-border-radius: 0.6rem;
    -o-border-radius: 0.6rem;
    padding: 40px;

}
.profile-info img
{
    height: 120px;
    width: 100px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    border: 1px solid #1e2436;
}
.profile-info h2
{
    font-size: 1.5rem;
    font-weight: 500;
    margin-top: 20px;
    color: #e0e0e0;
}
.profile-info p
{
    background-color: #1e1e1e;
    padding: 5px 15px;
    color: lightblue;
    font-size: 0.8rem;
    border-radius: 8px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
    display: inline-block;
    margin-top: 10px;
}
.contact-info
{
    margin-top: 10px;
    border-top: 1px solid #1e2436;
    padding-top: 20px;
}
.label
{
    font-size: 0.8rem;
    font-weight: 500;
    color: #a0a0a0;
}
.value
{
    text-decoration: none;
    color: #e0e0e0;
}
.email,.contact,.location
{
    margin-bottom: 15px;
}
.social-info
{
    border-top: 1px solid #1e2436;
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
}
.social-info img
{
    height: 24px;
    width: 24px;
    margin-left: 5px;
    cursor: pointer;
    filter: grayscale(1) invert(0.7);
    -webkit-filter: grayscale(1) invert(0.7);
    transition: filter 0.3s ease;
    -webkit-transition: filter 0.3s ease;
    -moz-transition: filter 0.3s ease;
    -ms-transition: filter 0.3s ease;
    -o-transition: filter 0.3s ease;
}
.social-info img:hover
{
    filter: grayscale(0) invert(0);
    -webkit-filter: grayscale(0) invert(0);
}
/* Main container */
/* Navbar */
nav
{
    display: flex;
    justify-content: flex-end;
    gap: 40px;
}
#nav-bar
{
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #1e2436;


}
nav a
{
    text-decoration: none;
    font-weight: 500;
    color: #a0a0a0;
    transform: color 0.3s ease;
    -webkit-transform: color 0.3s ease;
    -moz-transform: color 0.3s ease;
    -ms-transform: color 0.3s ease;
    -o-transform: color 0.3s ease;
}
nav a:hover
{
    color: lightblue;
}
.active
{
    color: lightblue;
}
/* Heading */
.heading
{
    color: #e0e0e0;
    font-size: 2rem;
    margin-bottom: 15px;
}
.line
{
    width: 60px;
    height: 4px;
    background-color: lightblue;
    margin-bottom: 15px;
}
.content
{
    text-align: justify;
    font-size: 13px;
    color: #a0a0a0;
}
#about-me-container
{
    margin-bottom: 30px;
}
/* skills */
.skills-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.item
{
    padding: 20px;
    border: 2px solid #3b3b3b;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    background-color: #1e1e1e;
    text-align: center;
    margin-top: 20px;
    transition: transform 0.3s ease;
    -webkit-transition: transform 0.3s ease;
    -moz-transition: transform 0.3s ease;
    -ms-transition: transform 0.3s ease;
    -o-transition: transform 0.3s ease;
}
.item:hover
{
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -o-transform: scale(1.1);
}
.item:hover
{
    box-shadow: rgba(141, 141, 147, 0.071) 0px 7px 29px 0px;
}
.item img
{
    height: 48px;
    width: 48px;
filter: brightness(0) saturate(100%) invert(88%) sepia(16%) saturate(570%) hue-rotate(160deg) brightness(91%) contrast(98%);
}
.item h3
{
    font-size: 1rem;
    font-weight: 500;
}
/* education */
#education-container
{
    margin-top: 30px;

}
.education
{
    position: relative;
}
.year
{
    font-size: 0.9rem;
    color: #a0a0a0;
    margin-bottom: 5px;
}
.degree
{
    color: #e0e0e0;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 5px;
}
.college
{
    font-style: italic;
    color: #a0a0a0;
    margin-bottom: 10px;
}
.work
{
    color: #a0a0a0;
}
.ed-first , .ed-second
{
    margin-bottom: 30px;
    padding-left: 25px;
    position: relative;
}
.round
{
    height: 15px;
    width: 15px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    border: 3px solid lightblue;
    position: absolute;
    top: 5px;
    left: 0;
    z-index: 5;
}
.liner
{
    position: absolute;
    width: 2px;
    top: 5px;
    left: 6px;
    bottom: 0;
    border: 1px solid #3a3a3a;

}
/* portfolio */
.project-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* auto-adjust */
  gap: 25px;
}
.project img
{
    height: 180px;
    width: 100%;
    object-fit: cover;
}
.project
{
    background-color: #1e1e1e;
    border-radius: 12px;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    -ms-border-radius: 12px;
    -o-border-radius: 12px;
    border: 1px solid #141824;
    overflow: hidden;
    transition: transform 0.3s ease;
    -webkit-transition: transform 0.3s ease;
    -moz-transition: transform 0.3s ease;
    -ms-transition: transform 0.3s ease;
    -o-transition: transform 0.3s ease;
}
.project:hover
{
    transform: translateY(-5px);
    -webkit-transform: translateY(-5px);
    -moz-transform: translateY(-5px);
    -ms-transform: translateY(-5px);
    -o-transform: translateY(-5px);
    box-shadow: rgba(141, 141, 147, 0.071) 0px 7px 29px 0px;
}
.card
{
    padding: 20px;
}
.card a
{
    text-decoration: none;
    color: #e0e0e0;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.card p
{
    color: #a0a0a0;
    text-align: start;
    margin-bottom: 10px;
}
.card span
{
    background-color: rgba(9, 116, 238, 0.065);
    color: lightblue;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    font-size: 0.75rem;
    margin-right: 5px;
    padding: 5px 8px;
}
@media screen and (max-width:1200px) {
    .main-container
    {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .Sidebar
    {
        position: static;
    }
}
@media screen and (max-width: 730px) {
    .main-container {
        grid-template-columns: 1fr; /* Stack sidebar and main content vertically */
        padding: 15px;
        gap: 20px;
    }

    .Sidebar {
        padding: 20px;
        max-height: none; /* Allow it to expand naturally */
        position: static; /* Remove sticky */
    }

    .main-content {
        padding: 20px;
    }

    .profile-info h2 {
        font-size: 1.3rem;
    }

    .profile-info p {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    nav {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .skills-grid-container {
        gap: 20px;
    }

    .item {
        padding: 15px;
    }

    .project-grid-container {
        gap: 15px;
    }

    .card {
        padding: 15px;
    }

    .card a {
        font-size: 1.4rem;
    }

    .card span {
        font-size: 0.7rem;
        padding: 4px 6px;
    }
}
