body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    background: linear-gradient(45deg, #333, #444); 
    color: #fff; 
    padding: 2rem 1rem; 
    text-align: center; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); 
}

header h1 {
    font-size: 2.5rem; 
    margin: 0; 
}

.sub-heading {
    font-size: 1.2rem; 
    margin: 0.5rem 0; 
}

.role {
    font-size: 1rem; 
    margin: 0.5rem 0; 
    font-weight: 300; 
}


section {
    padding: 1rem;
}

#about {
    background: #f0f4ff; 
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem; 
}

.about-content {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-around; 
}

.about-item {
    flex: 1 1 200px; 
    margin: 1rem; 
    background: #fff; 
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s; 
}

.about-item:hover {
    transform: scale(1.05); 
}

.about-item h3 {
    margin-top: 0.5rem; 
    color: #2196f3; 
}



.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); 
    gap: 1.5rem;
    justify-items: center;
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    width: 100%;
    max-width: 400px; 
    height: 100%;
}

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

.project-card h3 {
    margin: 0.5rem 0;
    padding: 0 1rem;
}

.project-card p {
    padding: 0 1rem 1rem;
    flex-grow: 1; 
}

.project-card:hover {
    transform: scale(1.05); 
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); 
}

.project-buttons {
    display: flex;
    justify-content: space-between;
    padding: 0 1rem 1rem;
}

.project-card .btn {
    flex: 1;
    margin: 0 0.5rem;
    text-align: center;
    padding: 0.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    color: #fff; 
}


.project-card .btn-info {
    background: linear-gradient(45deg, #2196f3, #64b5f6); 
}

.project-card .btn-info:hover {
    background: linear-gradient(45deg, #42a5f5, #90caf9); 
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.5);
}


.project-card .btn-play {
    background: linear-gradient(45deg, #ff5722, #ff9800); 
}

.project-card .btn-play:hover {
    background: linear-gradient(45deg, #ff7043, #ffa726);
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.5);
}


.project-card .btn-github {
    background: #333; 
}

.project-card .btn-github:hover {
    background: #555; 
}


.project-card .btn:hover {
    transform: scale(1.05);
}

#contact {
    background: #f9f9f9; 
    padding: 2rem; 
    text-align: center; 
}

.contact-info {
    display: flex; 
    justify-content: center; 
    flex-wrap: wrap; 
}

.contact-info p {
    margin: 0 1rem; 
}

.contact-info a {
    color: #2196f3; 
    text-decoration: none; 
}

.contact-info a:hover {
    text-decoration: underline; 
}


@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr; 
    }

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

footer {
    text-align: center;
    padding: 1rem;
    background: #333;
    color: #fff;
}

#skills {
    margin: 20px 0;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.skills-category {
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; 
}

.skills-category h3 {
    color: #2196f3;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.skills-category ul {
    list-style-type: disc;
    padding-left: 20px;
}

.skills-category ul li {
    margin-bottom: 10px;
}

.skills-category:hover {
    transform: scale(1.05); 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); 
}
