html {
    scroll-padding-top: 100px;
}

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    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{
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    height: 90vh ;
    border: 1px solid #3a3a3a;
    border-radius: 16px;
    padding: 40px;
    position: sticky;
    top: 40px;
}

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

/* Profile Section */
   
.profile{
    text-align: center;  /* Center the content horizontally(apply to inline element) */
    color: #e0e0e0;
}

.profile img{
    height: 120px;
    width: 120px;
    border-radius: 50%; 
    border: 1px solid #3a3a3a;
}

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

}

.profile p{
    background-color: #1e1e1e;
    padding: 5px 15px;
    display: inline-block; /* makes the p element take the space which is required to fit the content */
    border-radius: 8px;
    font-size: 0.7rem;
    color: #FFBF00;
    border: 1px solid #3a3a3a;
    margin-top: 10px;
}

/* Contact Section */
.contact{
   margin-top: 30px;
   border-top: 2px solid #3a3a3a;
   padding-top: 20px;

}

.email , .phone{
    margin-bottom: 15px;
}

.label{
    font-weight: 500;
    font-size: 0.8rem;
    color: #a0a0a0;
}

.value{
    font-size: 0.9rem;
    color: #e0e0e0;
    text-decoration: none; /* removes the underline from the link */
    margin-bottom: 10px;
    display: block; /* makes the value element take the full width of its parent container */
}

/* Social Media Section */
.social{
   margin-top: 30px;
   border-top: 2px solid #3a3a3a;
   padding-top: 20px;
   text-align: center;
}

.social img{
    height: 24px;
    width: 24px;
    margin-left: 10px;
    filter: grayscale(1) invert(0.7);
    transition: filter 0.3s ease;
}

.social img:hover{
    filter: grayscale(0) invert(0);
}

/* main content */
 /* navigation */
#navigation{
    padding: 15px 40px;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    background-color: rgba(42, 42, 42, 0.9);
    backdrop-filter: blur(12px);
    margin-bottom: 25px;
    margin-top: -10px; /* Moves it slightly upwards, leaving a 15px gap inside the 25px container padding */
    position: sticky;
    top: 55px; /* Matches exact vertical distance from screen top (40px + 25px - 10px) */
    z-index: 100;
}

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

a{
    text-decoration: none;
    color :#e0e0e0;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease, border-bottom 0.3s ease; 
    border-bottom: 2px solid transparent;
}

.active,nav a:hover{
    color: #FFBF00 ;
    border-bottom: 2px solid #e0e0e0;
}

/* about section */

.heading{
    color: #e0e0e0;
    font-size: 2rem;
    margin-bottom: 11px;
}

.line{
    width: 60px;
    height: 5px;
    background-color: #FFBF00;
    margin: 10px 0;
}

.content{
    color: #a0a0a0;
    text-align: justify;
    margin: 20px 0px;
}

/* Skills Section */
.grid-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 40px;
}

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

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

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

.item:hover{
    transform: scale(1.1);
    box-shadow: 0 0px 10px 5px rgba(0, 0, 0, 0.3);
}

/* Education */

#education{
    margin-top: 30px;
}

.edtech{
    position: relative;
    margin-top: 20px;

}

.year{
    font-size: 0.9rem;
    color: #a0a0a0;
    margin-bottom: 5px;
}

.degree{
    font-size: 1.2rem;
    font-weight: 500;
    color: #e0e0e0;
    margin-bottom: 5px;
}

.college{
    font-style: italic;
    color: #a0a0a0;
    margin-bottom: 10px;
}

.edfirst {
    margin-bottom: 30px; 
    position: relative;
    padding-left: 25px;
}

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

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

/* portfolio */

.project-container{
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;

}

.project{
    background-color: #1e1e1e;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.project:hover{
    transform: translateY(-10px);
    box-shadow: 0 10px 5px rgba(0, 0, 0, 0.3);
}

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

.card{
    padding: 20px;
}

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

.card p{
    color: #a0a0a0;
    line-height: 1.6;
    text-align: start;
    margin-bottom: 20px;
}

a{
    text-decoration: none;
}

.card span{
    background-color: rgba(255, 191, 0, 0.1);
    color: #FFBF00;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.75rem;
    margin-right: 5px;
}

@media screen and (max-width: 1200px) {
    .main-container{
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .sidebar{
        grid-template-columns: 1fr;
        position: static;
        height: auto;
    }

    
}

@media screen and (max-width: 768px){

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

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

    .heading{
        font-size: 1.6rem;
    }

    .project-container{
        grid-template-columns: 1fr;
    }

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

    .sidebar{
        padding: 25px;
    }

    .maincontent{
        padding: 20px;
    }

}

@media screen and (max-width:480px){

    body{
        font-size: 14px;
    }

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

    .project-container img{
        height: 150px;
    }

    nav{
        gap: 10px;
        font-size: 0.8rem;
    }

}