html, body {
    overflow-x: hidden;
  }
  
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

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;
}

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

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

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

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

.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 */
.contact {
    margin-top: 30px;
    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 */
.social {
    margin-top: 30px;
    border-top: 2px solid #3a3a3a;
    padding-top: 20px;
    text-align: center;
}

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

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

/* Navigation */
#navbar {
    border-bottom: 2px solid #3a3a3a;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

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

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

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

/* About Section */
.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 / Grid container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 30px;
}

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

.edutech {
    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;
}

.edusecond,
.edufirst {
    margin-top: 30px;
    position: relative;
    padding-left: 20px;
}

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

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

/* Portfolio */
#portfolio h2 {
    margin-top: 30px;
}

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

.project {
    background-color: #1e1e1e;
    border-radius: 12px;
    border: 1px solid #3a3a3a;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    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: 180px;
    width: 100%;
    object-fit: cover;
}

.card {
    padding: 20px;
}

.card h3 {
    color: #e0e0e0;
    margin-bottom: 10px;
}

.card p {
    color: #a0a0a0;
    line-height: 1.6;
    margin-bottom: 15px;
}

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

/* 🔹 Responsive Rules */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 300px 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* stack sidebar and main-content */
    .main-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        grid-row: 1;
        height: auto;
        position: static;
        padding: 20px;
        margin-left: 15px;
        margin-right: 15px;
    }

    .main-content {
        grid-row: 2;
        width: 100%;
        padding: 20px;
        margin-left: 15px;
        margin-right: 15px;
    }

    nav {
        justify-content: center;
        gap: 10px;
    }

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

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

@media (max-width: 480px) {
    .profile img {
        height: 80px;
        width: 80px;
    }

    .Heading {
        font-size: 1.5rem;
    }

    .sidebar,
    .main-content {
        padding: 15px;
        margin-left: 10px;
        margin-right: 10px;
    }

    /* Keep 2 columns on very small screens */
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

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

