* {
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

nav {
    padding: 15px;
    text-align: right;
}

nav a {
    color: #2c3e50;
    font-size: 18px;
    margin: 0 5px;
    text-decoration: none;
    padding: 14px 20px;
    font-family: inherit;
}

nav a:hover {
    color: #9ddf19;
}

hr {
    color: #2c3e50;
    margin: 10px;
    border-top: 3px solid #2c3e50;
}

img {
    width: 600px;
    height: auto;
}

.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    padding-left: 10%;
    margin-top: -50px;
    flex-wrap: wrap;
}

h1 {
    font-size: 50px;
    color: #333;
}

.wel {
    color: #666;
}

.text, .image {
    flex: 1;
}

.image {
    display: flex;
    justify-content: flex-end;
}

.grid {
    display: grid;
    gap: 2rem;
    max-width: 1100px;
    margin: auto;
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }
}

.card {
    background-color: #ffffff;
    padding: 1.8rem;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

h2 {
    margin-bottom: 0.6rem;
    font-size: 1.4rem;
    color: #333;
}

p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    font-family: 'Quicksand', sans-serif;
}

#contact {
    max-width: 500px;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    box-sizing: border-box;
}

#contact p,
#contact h2 {
    text-align: center;
}

label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    color: #111;
}

input, textarea {
    width: 100%;
    padding: 16px;
    margin-bottom: 24px;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: 0.3s ease;
}

input:focus, textarea:focus {
    border-color: #7c3aed;
    outline: none;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}

button {
    background-color: #2c3e50;
    color: white;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    padding: 14px 20px;
    width: 100%;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background-color: #365575;
}

#topBtn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 100;
    background-color: #2c3e50;
    color: white;
    padding: 10px;
    cursor: pointer;
    display: none;
    width: 50px;
    height: 50px;
    border: 2px solid white;
    border-radius: 50%;
}

#topBtn:hover {
    color: #9ddf19;
}

.projects {
    padding-top: 100px;
    text-align: center;
}

.projects h2 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1.4rem;
    color: #333;
}

.project-placeholder {
    color: #666;
    font-size: 18px;
}

.project-placeholder .note {
    font-style: italic;
    margin-top: 10px;
}

.projects-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 20px;
    flex-wrap: wrap;
}

.project-card {
    background-color: #ffffff;
    width: 250px;
    height: 200px;
    border-radius: 10px;
    box-shadow: 1px 5px 10px rgba(0, 0, 0, 0.3);
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: transform 0.2s;
}

.project-card:hover {
    transform: translateY(-5px);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
        margin-top: 0;
    }

    .text, .image {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    img {
        display: block;
        width: 300px;
        height: auto;
        margin-top: 20px;
        border-radius: 50%;
        object-fit: cover;
    }

    nav {
        text-align: center;
    }

    nav a {
        display: inline-block;
        margin: 5px 10px;
    }

    .projects-container {
        flex-direction: column;
        align-items: center;
    }

    .project-card {
        width: 90%;
        height: auto;
        padding: 20px;
        margin-bottom: 20px;
    }

    #topBtn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    #contact {
        padding: 15px;
        margin: 20px;
    }
}

.project-image {
    width: 80%;
    height: auto;
    margin-top: 10px;
    border-radius: 10px;
}

.project-link {
    display: inline-block;
    text-decoration: none;
    font-family: poppins;
    color: #282626;
    font-size: 14px;
}

.project-link:hover {
    color: #87c015;
}