:root {
    --primary-color: #2c3e5096;
    --secondary-color: #1ABC9C;
    --tertiary-color: #ECF0F1;
    --text-color: #2c3e50;
    --text-color-light: #c1c4c5;
    --font-family: 'Poppins', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.5;
    margin: 0;
    padding: 0;
    
}


a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
    
}

a:hover {
    color: #06bce9;
}


header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
}

nav {
    position: fixed;
    width: 100%;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    z-index: 1000;
    
}

#header-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color-light);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    font-size: 1rem;
    color: var(--text-color-light);
    text-transform: uppercase;
    transition: color 0.3s;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

#Me {
    width: 100%;
    max-width: 455px;
    height: auto;
    padding: 10px;
    //transform: rotate(8deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-right: 90px;
  	color: blue;
}

#Me:hover {
    transform: rotate(4deg) scale(1.05);
}

.header-text-container {
    max-width: 600px;
}

.header-text-container h1 {
    font-size: 4.5rem;
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color);
}

.header-text-container p {
    font-size: 1.2rem;
    margin: 10px 0;
    line-height: 1.6;
}

#link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    transition: color 0.3s ease;
    height: 20px;
}

#link:hover {
    color: var(--primary-color);
}

main {
    padding: 50px 0;
}

section {
    padding: 100px 50px;
    text-align: left;
}

.about-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding: 50px 20px;
    background: var(--tertiary-color);
    margin: 40px;
}

.about-content {
    flex: 1 1 50%;
    padding: 20px;
}

.about-text {
    margin-bottom: 20px;
    size: 100px
}

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.about-text p {
    color: var(--text-color);
    line-height: 1.6;
  	font-size: 18px;
}

.about-image {
    flex: 1 1 40%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#about_pic {
    width: 100%;
    max-width: 500px;
    height: auto;
    padding: 10px;
    transform: rotate(-5deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#about_pic:hover {
    transform: rotate(-2deg) scale(1.05);
}

#portfolio {
    background-color: var(--tertiary-color);
    padding: 100px 50px;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.grid {
    grid-template-columns: 1fr 1fr;
    display: grid;
    gap: 40px;
    padding: 0 20px;
    width: 100%;
}

.portfolio-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 1500px;
    align-content: center;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.portfolio-image {
    width: 100%;
    height: auto;
}

.portfolio-info {
    padding: 20px;
}

.portfolio-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.portfolio-description {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.6;
}

footer {
    text-align: center;
    padding: 30px;
    background-color: var(--tertiary-color);
    color: var(--text-color);
}

.fa {
    padding: 20px;
    font-size: 30px;
    width: 40px;
    text-align: center;
    text-decoration: none;
    margin: 5px 2px;
    border-radius: 50%;
}

.fa:hover {
    opacity: 0.7;
    color: var(--secondary-color);
}

.fa-instagram {
    color: var(--primary-color);
}

.fa-linkedin {
    color: var(--primary-color);
}



@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    #Me {
        width: 150px;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .header-text-container {
        max-width: 100%;
    }

    header h1 {
        font-size: 2.5rem;
    }

    #link {
        font-size: 1.2rem;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    nav ul li {
        margin: 5px 0;
    }
    .grid{
        grid-template-columns: 1fr;
    }
}
