/* General Styles */
body {
    font-family: 'Roboto Mono', monospace;
    background-color: #1e1e1e;
    color: #ffffff;
    margin: 0;
    padding: 0;
}


h1, h2, h3 {
    margin: 0.5em 0;
}

p {
    margin: 0.5em 0;
}

header, section, footer {
    padding: 2em;
    text-align: center;
}

/* Header Styles */
header .profile {
    max-width: 600px;
    margin: auto;
}

header img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
}

header h1 {
    font-size: 2em;
}

header p {
    font-size: 1em;
    margin: 25px 25px ;
}

header .social-links {
    margin: 25px 25px;
}

header .social-links a {
    margin: 0 0.5em;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.5em;
}

/* Button Styles */
.resume-button {
    padding: 0.5em 1em;
    font-size: 1em;
    border: 2px solid #ffffff;
    background-color: transparent;
    color: #ffffff;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    outline: none;
    position: relative;
}

.resume-button:hover {
    background-color: #ffffff;
    color: #1e1e1e;
    transform: translateY(-3px);
}

.resume-button:active {
    transform: translateY(1px);
    box-shadow: none;
}


/* Social Links Styles */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1em;
    margin: 1em 0;
}

.social-links a {
    text-decoration: none;
}

.social-icon {
    width: 30px;  /* Adjust the size as needed */
    height: 30px; /* Adjust the size as needed */
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
}

.social-icon:hover {
    transform:  scale(2, 2);
    width: 35px;  /* Increase size on hover */ 
    height: 35px; /* Increase size on hover */ 
}


/* Projects Section Styles */
.projects {
    padding: 2em 5%;
}

.projects h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 1em;
}

.projects .project-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.projects .project-item {
    margin: 1em;
    text-align: center;
    cursor: pointer;
}

.projects .project-item img {
    width: 300px;
    height: 200px;
    border-radius: 10%;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: grayscale(100%);
}

.projects .project-item:hover img {
    transform: translateY(-5px);
    filter: grayscale(0%);
}

.projects .project-item img {
    width: 300px;
    height: 200px;
    border-radius: 10%;
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.7; /* Adjust to make the image slightly transparent by default */
}

.projects .project-item:hover img {
    transform: translateY(-5px);
    filter: grayscale(0%);
    opacity: 1; /* Restore full opacity on hover */
}

.projects .project-item p {
    margin: 0.5em 0;
}


/* Skills Section Styles */
.skills {
    padding: 2em 5%;
}

.skills h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 1em;
}

.skills-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 50px;
    margin-left: 50px;
    margin-right: 50px;
}

.skill-item {
    text-align: center;
    flex: 1 1 calc(16% - 1em);
    margin: 0.5em;
}

.skill-item img {
    object-fit: contain;
    max-width: 30px;  /* Adjust as needed */
    max-height: 30px; /* Adjust as needed */
    display: block;
    margin: 0 auto 0.5em;
    
}

.skill-item p {
    margin: 1em;
    font-size: 1em;
}


/* Blog Section Styles */
.blog {
    padding: 2em 5%;
    position: relative;
}

.blog h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 1em;
}

.blog-carousel {
    display: flex;
    overflow: hidden;
    position: relative;
}

.blog-item {
    min-width: 100%;
    transition: transform 0.5s ease, filter 0.3s ease;
    filter: grayscale(100%);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.blog-item img {
    width: 100%;
    height: 70%;
    object-fit: cover;
    display: block;
    border-bottom: 2px solid #fff;
}

.blog-content {
    height: 30%;
    padding: 10px;
    background: #fff;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.blog-content h3 {
    margin: 0;
    font-size: 1.2em;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 100;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.blog-item:hover {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-item {
        min-width: 100%;
    }
}


/* Contact Section */
.contact {
    padding: 2em 5%;
    text-align: center;
}

.contact h2 {
    font-size: 2em;
    margin-bottom: 1em;
}

.contact form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.contact form input, .contact form textarea {
    width: 100%;
    padding: 1em;
    border: 2px solid #ccc;
    border-radius: 5px;
    background-color: #1e1e1e;
    color: white
    
}

.contact form textarea {
    height: 150px;
    background-color: #1e1e1e;
    
}

.button-container {
    display: flex;
    justify-content: center;
}

.contact form button {
    padding: 0.5em 2em;
    border: 2px solid #ffffff;
    background-color: #ffffff;
    color: #1e1e1e;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.contact form button:hover {
    background-color: #1e1e1e;
    color: #ffffff;
}


/* Footer */
footer p {
    font-size: 0.8em;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header, section, footer {
        padding: 1em;
    }

    .projects .project-list, .blog .blog-list {
        flex-direction: column;
    }

    .projects .project-item, .blog .blog-item {
        width: 100%;
    }
}
