* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: #333;
    line-height: 1.6;
}

#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #2c3e50;
    padding: 1rem;
    z-index: 1000;
}

#navbar ul {
    display: flex;
    justify-content: flex-end;
    list-style: none;
}

#navbar a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    transition: background-color 0.3s;
}

#navbar a:hover {
    background-color: #34495e;
    border-radius: 4px;
}

#welcome-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #ecf0f1;
    text-align: center;
    padding: 0 2rem;
}

#welcome-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

#projects-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    padding: 4rem 2rem;
    background-color: #bdc3c7;
}

.projects-header {
    text-align: center;
    font-size: 44px;
    margin-bottom: 20px;
}

.projects {
    display: grid;
    max-width: 1000px;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.project-tile {
    background: white;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.project-tile h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.25rem;
}

.project-tile p {
    flex-grow: 1;
    color: #555;
    font-size: 1rem;
}

.project-tile a {
    margin-top: 1.5rem;
    padding: 0.6rem 1.2rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    transition: background-color 0.3s;
}

.project-tile a:hover {
    background-color: #2980b9;
}

#profile-section {
    display: flex;
    align-items: center;
    height: 100vh;
    padding: 2rem 1rem;
    background: linear-gradient(to bottom right, #f7f9fb, #e0eafc);
}

.profile-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease-in-out;
}

.profile-header {
    font-size: 2.75rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    font-weight: 700;
    text-align: center;
}

.profile-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.profile-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
}

.profile-text {
    max-width: 600px;
    color: #2c3e50;
    font-size: 1.1rem;
    line-height: 1.6;
}

.profile-text p {
    margin-bottom: 1rem;
}

.profile-links {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.profile-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    background-color: #3498db;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.profile-links a:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.profile-links i {
    font-size: 1.2rem;
}

@media screen and (max-width: 768px) {
    #navbar ul {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #navbar a {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
    }

    #welcome-section h1 {
        font-size: 1.8rem;
    }

    #welcome-section p {
        font-size: 1rem;
    }

    #projects {
        padding: 3rem 1rem;
    }

    .project-tile {
        padding: 1.5rem;
        margin: 1rem 0;
    }

    .profile-text {
        text-align: center;
    }

    .profile-content {
        flex-direction: column;
    }

    .profile-links {
        justify-content: center;
    }
}


@media (max-width: 600px) {
    .profile-header {
        font-size: 2rem;
    }

    .profile-container {
        padding: 2rem 1rem;
    }

    .profile-photo {
        width: 120px;
        height: 120px;
    }

    .profile-text {
        font-size: 1rem;
        text-align: center;
    }

    .profile-links {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    #welcome-section h1 {
        font-size: 1.5rem;
    }

    #projects h2 {
        font-size: 1.5rem;
    }
}
