* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Gill Sans", sans-serif;
}

body {
    background: linear-gradient(135deg, #3498db, #342938);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.sidebar {
    background: linear-gradient(135deg, #3498db, #8e44ad);
    width: 100%;
    padding: 2rem;
    color: #ecf0f1;
}

.profile {
    text-align: center;
    margin-bottom: 2rem;
}

.profile img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ecf0f1;
}

.profile h1 {
    margin-top: 1rem;
    font-size: 1.5rem;
}

.profile p {
    font-size: 1rem;
    color: #bdc3c7;
}

nav ul {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li {
    margin: 0.5rem;
}

nav ul li a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

nav ul li a:hover {
    color: #3498db;
}

nav ul li a i {
    margin-right: 0.5rem;
    width: 20px;
}

main {
    padding: 2rem;
}

section {
    background-color: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.education, .project {
    margin-bottom: 1.5rem;
}

.education h3, .project h3 {
    color: #34495e;
    margin-bottom: 0.5rem;
}

ul {
    list-style-type: disc;
    padding-left: 1rem;
}

.company-name {
    color:#2980b9;
}

.skills ul {
    display: flex;
    flex-wrap: wrap;
}

.skills ul li {
    background-color: #3498db;
    color: #fff;
    padding: 0.5rem 1rem;
    margin: 0.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Timeline styles */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #3498db;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.experience {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.experience::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: #fff;
    border: 4px solid #3498db;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid #3498db;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #3498db;
}

.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid #3498db;
    border-width: 10px 10px 10px 0;
    border-color: transparent #3498db transparent transparent;
}

.right::after {
    left: -16px;
}

.content {
    padding: 20px 30px;
    background-color: #f9f9f9;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Project card styles */
.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.project-card {
    flex-basis: 100%;
    margin-bottom: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 15px 15px 15px rgba(29, 27, 27, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-5px);
}

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

.project-card .content {
    padding: 1rem;
}

.project-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.project-card p {
    font-size: 0.9rem;
    color: #555;
}

.project-card .buttons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .buttons {
    opacity: 1;
}

.project-card .buttons button {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 4px;
}

.project-card .buttons button:hover {
    background-color: #2980b9;
}

form {
    display: flex;
    flex-direction: column;
}

input, textarea {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    background-color: #3498db;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 4px;
}

button:hover {
    background-color: #2980b9;
}

#contact {
    background: linear-gradient(135deg, #3498db, #8e44ad);
    color: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.contact-info, .contact-form {
    padding: 2rem;
}

.contact-form {
    background-color: rgba(255, 255, 255, 0.1);
}

.contact-info h2, .contact-form h2 {
    color: #fff;
    border-bottom: 2px solid #fff;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.contact-info ul {
    list-style-type: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 1rem;
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: flex-start;
    margin-top: 1.5rem;
}

.social-icons a {
    color: #fff;
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #ecf0f1;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form button {
    background-color: #2ecc71;
    color: #fff;
    padding: 0.75rem 1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 4px;
    font-weight: bold;
}

.contact-form button:hover {
    background-color: #27ae60;
}

@media screen and (min-width: 768px) {
    body {
        display: flex;
    }

    .sidebar {
        width: 300px;
        height: 100vh;
        position: fixed;
        left: 0;
        top: 0;
        overflow-y: auto;
    }

    nav ul {
        flex-direction: column;
    }

    main {
        margin-left: 300px;
        width: calc(100% - 300px);
    }

    .project-card {
        flex-basis: calc(50% - 1rem);
    }
}

@media screen and (min-width: 1024px) {
    .project-card {
        flex-basis: calc(33.333% - 1rem);
    }
}

@media screen and (max-width: 767px) {
    .timeline::after {
        left: 31px;
    }

    .experience {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .experience::before {
        left: 60px;
        border: medium solid #3498db;
        border-width: 10px 10px 10px 0;
        border-color: transparent #3498db transparent transparent;
    }

    .left::after, .right::after {
        left: 15px;
    }

    .right {
        left: 0%;
    }
}