@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
:root{
    --blue:#1E90FF;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
}

/* navbar header */
.navbar {
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
.navbar h2{
    color:black;
}

/* toggle menu mobile */
#menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#menu-toggle:hover {
    color:var(--blue);
}

#menu-toggle-close {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#menu-toggle-close:hover {
    color:var(--blue);
}
/*end*/

#navlinks {
    display: flex;
    list-style: none;
}

#navlinks li {
    padding: 10px 20px;
    position: relative;
}

#navlinks li a {
    color: black;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    padding: 8px 12px;
}
#navlinks li a:hover {
    background: var(--blue);
    border-radius: 5px;
    color: white;
}
#navlinks li.active {
    background: var(--blue);
    border-radius: 5px;
}
/* end of navbar */

/* intro section*/
#intro {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 100px;
    background: #fff; /* White background */
    color: black;
    padding: 80px 15px;
    text-align: center;
    border-radius: 10px;
    margin: 120px 30px 40px 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

#intro img {
    width: 400px; /* Bigger size */
    height: 400px; /* Keep it square */
    object-fit: cover;
    border: 5px solid #ddd; /* Subtle border */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out;
}

#intro img:hover {
    transform: scale(1.05);
}

.intro_message {
    max-width: 600px;
    text-align: left;
}

.intro_message h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333; /* Darker shade for contrast */
}

.intro_message p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 10px;
    color: #555;
}

.intro_message strong {
    color: var(--blue);
}

.intro_message em {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--blue);
}

#skills {
    text-align: center;
    background: #fff; /* White background */
    padding: 60px 20px;
    border-radius: 10px;
    margin: 10px 30px 40px 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

#skills h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    max-width: 900px;
    margin: auto;
}

.skill {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    transition: all 0.3s ease-in-out;
}

.skill .icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    transition: transform 0.3s ease-in-out;
}
.skill .icon{
    display: flex;
}

.skill:hover {
    background: var(--blue);
    color: white;
    transform: scale(1.05);
}

.skill:hover .icon img {
    transform: rotate(10deg) scale(1.1);
}

#projects {
    background-color: #fff;
    padding: 60px 20px;
    text-align: center;
    border-radius: 10px;
    margin: 10px 30px 40px 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

#projects h2 {
    font-size: 2.4rem;
    margin-bottom: 30px;
    color: #333;
    font-weight: bold;
}

.projects-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.project-card {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

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

.overlay h3 {
    color: white;
    margin-bottom: 10px;
}

.view-btn {
    background-color: var(--blue);
    color: black;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.view-btn:hover {
    background-color: var(--blue);
    color:white;
}

/* contact */
#contact-form {
    background: #fff;
    padding: 50px 20px;
    text-align: center;
    border-radius: 10px;
    margin: 10px 30px 40px 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

#contact-form h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

#contact-form p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 30px;
}

.contact-form-container {
    max-width: 800px;  /* Restrict form width */
    margin: 0 auto;  /* Center the form */
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

label {
    font-weight: 600;
}

input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    outline: none;
    border-radius: 5px;
    font-size: 1rem;
}
input:focus, textarea:focus {
    border : 2px solid var(--blue);
}
button {
    background: var(--blue);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}

button:hover {
    background: #0056b3;
}

/* work experience*/
#work_experience {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 10px;
    margin: 10px 30px 40px 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

#work_experience h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: auto;
    padding: 20px;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--blue);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: center;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: center;
}

.timeline-content {
    background: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -10px;
    width: 20px;
    height: 20px;
    background-color:#FF9F55;
    border-radius: 50%;
    transform: translateY(-50%);
}

.timeline-item:nth-child(even)::before {
    right: auto;
    left: -10px;
}

/*end*/

/*footer*/
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-container p {
    margin: 5px 0;
    font-size: 14px;
}

.social-links {
    margin-top: 10px;
}

.social-links a {
    color: white;
    font-size: 20px;
    margin: 0 10px;
    transition: color 0.3s ease-in-out;
}

.social-links a:hover {
    color: var(--blue);
}

@media screen and (max-width: 768px) {
    /* menu toggle */
    #menu-toggle {
        display: block;
        color: black;
    }
    #menu-toggle.close {
        display: none;
        color: black;
    }
    #menu-toggle-close {
        display: none;
        color: black;
    }
    #menu-toggle-close.open {
        display: block;
        color: black;
    }
    /*end*/
    
    /* navbar header */
    #navlinks {
        display: none;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.9);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 15px 0;
        box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
        transition: all 0.5s ease-in-out;
    }

    #navlinks.mobilemenu {
        display: flex;
    }

    #navlinks li {
        text-align: center;
        padding: 15px;
        width: 100%;
        transition: all 0.3s ease;
    }

    #navlinks li:hover {
        background: var(--blue);
    }

    #navlinks li a {
        font-size: 18px;
        display: block;
        width: 100%;
    }

    /* intro */
    #intro {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
    }

    #intro img {
        width: 250px;
        height: 250px;
    }

    .intro_message h2 {
        font-size: 1.8rem;
    }

    .intro_message p {
        font-size: 1rem;
        padding: 0 20px;
    }
    /* end intro */

    /* work experience*/
    .timeline::after {
        left: 10px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 40px;
        text-align: left;
    }

    .timeline-item::before {
        left: -20px;
        right: auto;
    }

    .timeline-item:nth-child(even)::before {
        right: auto;
        left: -20px;
    }
    .timeline-item:nth-child(odd) {
        left: 0;
        text-align: center;
    }

    .timeline-item:nth-child(even) {
        left: 0;
        text-align: center;
    }
    /* end */

    .projects {
        grid-template-columns: 1fr; /* Stack projects on smaller screens */
    }
}

/* end of navbar */