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

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


   .main-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}
    



.sidebar {
    width: 100%;
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 16px;
    padding: 40px;
    display: flex;
    gap: 40px;
    align-items: center;
}

/* LEFT SIDE - Profile */
.sidebar-left {
    flex: 0 0 auto;
    min-width: 250px;
}

/* RIGHT SIDE - Contact + Social */
.sidebar-right {
    flex: 1;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

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

/* Profile section */

.profile {
    text-align: center;
}

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

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

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


/* contact information */

.contact {
    flex: 1;
    border-top: 2px solid #3a3a3a;
    padding-top: 20px;
}

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

.value {
    color: #e0e0e0;
    text-decoration: none;
}

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

/* social media */

.social {
    flex: 0 0 auto;
    border-top: 2px solid #3a3a3a;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 150px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateX(5px);
}

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

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

.social-link span {
    color: #a0a0a0;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.social-link:hover span {
    color: #FFBF00;
}

/* main content */

/* Navigation */

#navigation{
    border-bottom: 2px solid #3a3a3a;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

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

nav a{
    text-decoration: none;
    color: #a0a0a0;
    font-weight: 500;
    transition: color 0.3s ease;
}

.active, nav a:hover{
    color: #FFBF00;
}

/* about me */

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

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

.content{
    text-align: justify;
    color: #a0a0a0;
}

#about{
    margin-bottom: 40px;
}

/* skills section */

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

.item{
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #3a3a3a;
    background-color: #1e1e1e;
    text-align: center;
    margin-top: 20px;
    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;
}

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

.item:hover{
    transform: scale(1.1);
    box-shadow: 0px 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{
    color: #e0e0e0;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 5px;
}

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

.work{
    color: #a0a0a0;
}

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

.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;
    left: 5px;
    border: 2px solid #3a3a3a;
}

/* Portfolio - WITH HOVER OVERLAY EFFECT */

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

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

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

.project img{
    height: 250px;
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.project:hover img{
    transform: scale(1.1);
}

/* Overlay Card Effect */
.card{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), #2980b9);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    text-align: center;
    transition: height 0.5s ease;
}

.project:hover .card{
    height: 100%;
}

.card h3{
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s;
}

.project:hover .card h3{
    opacity: 1;
    transform: translateY(0);
}

.card p{
    color: #fff;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease 0.3s, transform 0.3s ease 0.3s;
}

.project:hover .card p{
    opacity: 1;
    transform: translateY(0);
}

.card span{
    background-color: rgba(255, 191, 0, 0.2);
    color: #FFBF00;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    margin: 3px;
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease 0.4s, transform 0.3s ease 0.4s;
}

.project:hover .card span{
    opacity: 1;
    transform: translateY(0);
}

/* Optional: Project Link Icon */
.card .project-link{
    margin-top: 12px;
    color: #ff004f;
    text-decoration: none;
    font-size: 16px;
    line-height: 45px;
    background: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease 0.5s, transform 0.3s ease 0.5s, background 0.3s ease;
}

.project:hover .card .project-link{
    opacity: 1;
    transform: translateY(0);
}

.card .project-link:hover{
    background: #FFBF00;
    color: #fff;
}

/* Responsive Design */

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

    .sidebar{
        position: static;
        height: auto;
    }
}

@media screen and (max-width:750px) {
    .project-container{
        grid-template-columns: 1fr;
    }

    #navigation nav {
        justify-content: center;
        flex-wrap: wrap;
    }

    .sidebar{
        display: flex;
        justify-content: center;
        gap: 40px;
    }
    
    .project img{
        height: 220px;
    }
}

/* Small tablets and larger mobile devices (481px - 768px) */
@media screen and (max-width: 768px) {
    .main-container {
        padding: 15px;
        gap: 30px;
    }

   .sidebar {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }

    .sidebar-left {
        width: 100%;
        min-width: auto;
    }

    .sidebar-right {
        width: 100%;
        flex-direction: column;
        gap: 20px;
    }

    .social {
        flex-direction: row;
        justify-content: center;
        min-width: auto;
    }

    .main-content {
        padding: 30px 20px;
    }

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

    .heading {
        font-size: 1.5rem;
    }

    nav {
        gap: 15px;
    }

    nav a {
        font-size: 0.9rem;
    }

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

    .item {
        padding: 15px;
    }

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

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

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

    .sidebar {
   .sidebar {
        padding: 20px 15px;
        gap: 20px;
    }

    .sidebar-right {
        gap: 15px;
    }

    .social {
        flex-direction: column;
        align-items: center;
    }

    .social-link {
        justify-content: center;
    }
}

    .main-content {
        padding: 20px 15px;
    }

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

    .profile h2 {
        font-size: 1.2rem;
        margin-top: 15px;
    }

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

    .contact {
        margin-top: 20px;
        padding-top: 15px;
    }

    .label {
        font-size: 0.75rem;
    }

    .value {
        font-size: 0.85rem;
    }

    .social {
        margin-top: 20px;
        padding-top: 15px;
    }

    .social img {
        height: 20px;
        width: 20px;
    }

    #navigation {
        margin-bottom: 15px;
        padding-bottom: 15px;
    }

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

    nav a {
        font-size: 0.8rem;
    }

    .heading {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .line {
        width: 50px;
        height: 4px;
        margin-bottom: 12px;
    }

    .content {
        font-size: 0.9rem;
    }

    #about {
        margin-bottom: 30px;
    }

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

    .item {
        padding: 12px;
    }

    .item img {
        height: 36px;
        width: 36px;
        margin-bottom: 10px;
    }

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

    .year {
        font-size: 0.8rem;
    }

    .degree {
        font-size: 1rem;
    }

    .college {
        font-size: 0.85rem;
    }

    .work {
        font-size: 0.85rem;
    }

    .edfirst, .edsecond {
        padding-left: 20px;
        margin-bottom: 20px;
    }

    .goal {
        height: 12px;
        width: 12px;
        border: 2px solid #FFBF00;
    }

    .liner {
        left: 4px;
    }

    .project img {
        height: 180px;
    }

    .card {
        padding: 0 15px;
    }

    .card h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .card p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .card span {
        font-size: 0.7rem;
        padding: 3px 6px;
        margin: 2px;
    }
    
    .card .project-link{
        width: 38px;
        height: 38px;
        font-size: 14px;
        line-height: 38px;
        margin-top: 8px;
    }
}

/* Extra small devices (below 375px) */
@media screen and (max-width: 374px) {
    .profile img {
        height: 100px;
        width: 100px;
    }

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

    .heading {
        font-size: 1.2rem;
    }

    nav {
        flex-wrap: wrap;
        gap: 8px;
    }

    nav a {
        font-size: 0.75rem;
    }

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

    .card span {
        font-size: 0.65rem;
    }
    
    .project img {
        height: 150px;
    }
}

/* Landscape orientation for small devices */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        height: auto;
    }

    .profile {
        flex: 1;
        min-width: 200px;
    }

    .contact {
        flex: 1;
        min-width: 200px;
        border-top: none;
        border-left: 2px solid #3a3a3a;
        padding-left: 20px;
        margin-top: 0;
    }

    .social {
        width: 100%;
        margin-top: 20px;
    }
}
