* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #1e1e1e;
    font-family: sans-serif;
    color: #a0a0a0;
    line-height: 1.6;
}

.main-container {
    display: grid;
    max-width: 1200px;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    padding-top: 40px;
    margin: auto;
}

.sidebar {
    height: 90vh;
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 16px;
    padding: 40px;
    position: sticky;
    top: 40px;
}

.maincontent {
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 16px;
}

/* Profile section */
.profile {
    text-align: center;
}

.profile img {
    height: 120px;
    width: 120px;
    border-radius: 50%;
}

.profile h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 20px;
    color: #a0a0a0;
}

.profile p {
    background-color: #1e1e1e;
    padding: 5px 15px;
    color: #ffbf00;
    border: 1px solid #3a3a3a;
    font-size: 0.9rem;
    border-radius: 8px;
    display: inline-block;
    margin-top: 10px;
}

.sidebar hr {
    margin: 28px 0;
    border: none;
    border-top: 1px solid;
    opacity: 0.5;
}

/* Contact section */
.contact p {
    color: white;
}

.contact h4 {
    color: #a0a0a0;
    margin-bottom: 2px;
    font-size: 1rem;
    font-weight: 600;
}

/* Social links section */
/* .socials a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffbf00;
    text-decoration: none;
    font-size: 1rem;
    transition: 0.3s;
}

.socials a:hover {
    color: #ffd700;
    transform: translateX(5px);
}

.socials i {
    font-size: 1.2rem;
} */

.socials{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.socials a{
    display: inline-flex;
    color: #6a6a6a;
    font-size: 2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.socials a:hover{
    color: #ffbf00;
    transform: translateY(-5px) scale(1.1);
}

/* not a good method becuase icons color is not changing
   but can be colored by applying filter
   website - css-color-filter-generator
*/

/* .socials img{
    height: 24px;
    width: 24px;
    transform: translateY(5px);
} */

/* .socials{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.socials a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #a0a0a0;
    font-size: 1.4rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.socials a:hover{
    color: #ffb700;
    transform: translateY(-4px) scale(1.08);
} */

/* Main Content */

/* Navigation */

#navigation{
    padding: 25px 20px;
}

nav{
    display: flex;
    justify-content: flex-end;
    gap: 40px;
}

nav a{
    text-decoration: none;
    color: #9f9f9f;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 8px;
}

nav a:hover{
    color: #ffbf00;
    /* transform: translateY(-1px) scale(1.1); */
}

nav a.active{
    color: #ffbf00;
    background-color: rgba(255, 191, 0, 0.1);
    /* padding: 8px 16px;
    border-radius: 8px; */
}

nav a.active::after{
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background-color: #ffbf00;
    border-radius: 5px;
}

.maincontent hr{
    margin: 1px 20px;
    border: none;
    border-top: 1px solid;
    opacity: 0.5;
}

/* About Me */

.heading{
    color: #e0e0e0;
    font-size: 2rem;
    margin: 15px 20px 5px;
}

.line{
    color: #ffbf00;
    margin-top: 2px;
    margin-left: 20px;
    margin-right: 730px;
    border: none;
    border-top: 5px solid;
    border-radius: 8px;
}

#about p{
    text-align: justify;
    margin: 20px 20px;
    color: #a0a0a0;
}

/* My Skills */

.skillset{
    color: #e0e0e0;
    font-size: 2rem;
    margin: 30px 20px 5px;
}

.grid-container{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(130px,1fr));
    gap: 40px;
    margin: 30px 20px 5px;
}

.item{
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #3a3a3a;
    background-color: #1e1e1e;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0.3s ease;
    cursor: pointer;
}

.item img{
    height: 48px;
    width: 48px;
    filter: invert(75%) sepia(50%) saturate(750%)
        hue-rotate(350deg) brightness(110%)
        contrast(101%); 
    margin-bottom: 15px; 
}

.item h3{
    font-size: 1rem;
    font-weight: 500;
}

.item:hover{
    transform: scale(1.1);
    box-shadow: 0 0 10px 5px #3a3a2a;
}

/* education */

.educationofme{
    color: #e0e0e0;
    font-size: 2rem;
    margin: 30px 20px 5px;
}

.edtech{
    margin: 30px 20px 5px 50px; 
    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;
}

.goal{
    height: 15px;
    width: 15px;
    border: 3px solid #ffbf00;
    border-radius: 50%;
    position: absolute;
    top: 5px;
    left: -30px;
    z-index: 5;
}

.liner{
    position: absolute;
    width: 2px;
    top: 0px;
    bottom: 0px;
    border: 2px solid #3a3a3a;
    left: -24px;
}

/* projects */

.projectbyme{
    color: #e0e0e0;
    font-size: 2rem;
    margin: 30px 20px 5px;
}

.project-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 20px;
    padding-bottom: 40px;
}

.project{
    background-color: #1e1e1e;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    overflow: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    max-height: 400px;
}

.project:hover{
    transform: translateY(4px);
    box-shadow: 0 5px 20px rgba(255, 191, 0, 0.2);
}

.project img{
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.card{
    padding: 20px;
}

.card h3{
    color: #e0e0e0;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.card p{
    color: #a0a0a0;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.card span{
    display: inline-block;
    background-color: rgba(255, 191, 0, 0.1);
    color: #ffbf00;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-right: 8px;
    margin-top: 5px;
}

/* responsive design */

/* Large Tablets and Small Desktops (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    .main-container {
        grid-template-columns: 300px 1fr;
        gap: 30px;
        padding: 30px 20px;
    }

    .sidebar {
        height: auto;
        padding: 30px 20px;
    }

    nav {
        gap: 30px;
    }

    .heading, .skillset, .educationofme, .projectbyme {
        font-size: 1.8rem;
    }

    .line {
        margin-right: 500px;
    }
}

/* Tablets (max-width: 768px) */
@media screen and (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 15px;
    }

    .sidebar {
        height: auto;
        margin-bottom: 20px;
    }

    nav {
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }

    .heading, .skillset, .educationofme, .projectbyme {
        font-size: 1.6rem;
        text-align: center;
    }

    .line {
        margin: 2px auto;
        width: 150px;
    }

    #about p {
        text-align: left;
    }

    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 20px;
    }

    .item {
        padding: 15px;
    }

    .item img {
        height: 40px;
        width: 40px;
    }

    .edtech {
        margin: 30px 20px 5px 40px;
    }

    .goal {
        left: -25px;
    }

    .liner {
        left: -19px;
    }

    .project-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

/* Mobile Devices (max-width: 480px) */
@media screen and (max-width: 480px) {
    .main-container {
        padding: 15px 10px;
        gap: 15px;
    }

    .sidebar {
        padding: 25px 15px;
    }

    .profile img {
        height: 100px;
        width: 100px;
    }

    .profile h2 {
        font-size: 1.3rem;
    }

    .profile p {
        font-size: 0.8rem;
        padding: 4px 12px;
    }

    .contact h4 {
        font-size: 0.9rem;
    }

    .contact p {
        font-size: 0.85rem;
    }

    .socials {
        gap: 12px;
        margin-top: 30px;
    }

    .socials a {
        font-size: 1.6rem;
    }

    nav {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    nav a {
        font-size: 0.9rem;
    }

    nav a.active {
        padding: 6px 12px;
    }

    .heading, .skillset, .educationofme, .projectbyme {
        font-size: 1.4rem;
        margin: 20px 15px 5px;
    }

    .line {
        width: 100px;
        border-top: 4px solid;
    }

    #about p {
        margin: 15px;
        font-size: 0.9rem;
    }

    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin: 20px 15px;
    }

    .item {
        padding: 12px;
    }

    .item img {
        height: 36px;
        width: 36px;
    }

    .item h3 {
        font-size: 0.85rem;
    }

    .edtech {
        margin: 20px 15px 5px 35px;
    }

    .year {
        font-size: 0.8rem;
    }

    .degree {
        font-size: 1rem;
    }

    .college, .work {
        font-size: 0.85rem;
    }

    .goal {
        height: 12px;
        width: 12px;
        border: 2px solid #ffbf00;
        left: -22px;
    }

    .liner {
        left: -17px;
    }

    .project-container {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 20px 15px;
    }

    .project {
        max-height: 350px;
    }

    .project img {
        height: 150px;
    }

    .card {
        padding: 15px;
    }

    .card h3 {
        font-size: 1.1rem;
    }

    .card p {
        font-size: 0.85rem;
    }

    .card span {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
}

/* Extra Small Mobile (max-width: 360px) */
@media screen and (max-width: 360px) {
    .profile img {
        height: 80px;
        width: 80px;
    }

    .profile h2 {
        font-size: 1.1rem;
    }

    .heading, .skillset, .educationofme, .projectbyme {
        font-size: 1.2rem;
    }

    .grid-container {
        gap: 10px;
    }

    nav a {
        font-size: 0.85rem;
    }
}