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

header {
background-color: #fff;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 999;
}

nav {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}

nav ul {
list-style: none;
display: flex;
}

nav li {
margin-left: 20px;
}

nav a {
color: #333;
text-decoration: none;
}

nav a:hover {
color: #555;
}

main {
padding-top: 100px;
}

section {
max-width: 1200px;
margin: 0 auto;
padding: 50px 20px;
}

h1, h2, h3 {
font-weight: normal;
margin-bottom: 20px;
}

.about-me-info {
display: flex;
flex-wrap: wrap;
}

.about-me-img {
flex: 1;
}

.about-me-img img {
width: 100%;
}

.about-me-text {
flex: 2;
margin-left: 40px;
}

.skills-list {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}

.skills-list ul {
list-style: none;
flex-basis: 45%;
margin-bottom: 30px;
}

.skills-list li {
margin-bottom: 10px;
}

.portfolio-items {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-gap: 30px;
}

.portfolio-item {
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.portfolio-item img {
width: 100%;
}

.portfolio-item h3 {
padding: 20px;
font-size: 1.2em;
}

.portfolio-item p {
padding: 20px;
font-size: 0.9em;
}

form {
display: flex;
flex-wrap: wrap;
}

form label, form input, form textarea {
flex-basis: 100%;
}

form label {
margin-bottom: 10px;
display: block;
}

form input, form textarea {
margin-bottom: 20px;
padding: 10px;
border: none;
background-color: #f5f5f5;
}

form textarea {
min-height: 200px;
resize: none;
}

form input[type="submit"] {
background-color: #333;
color: #fff;
border: none;
padding: 10px 20px;
cursor: pointer;
}

footer {
background-color: #333;
color: #fff;
text-align: center;
padding: 20px;
}

@media only screen and (max-width: 768px) {
nav ul {
flex-direction: column;
}
nav li {
margin: 10px 0;
}
.about-me-info {
flex-direction: column;
margin-bottom: 40px;
}
.about-me-img {
margin-bottom: 20px;
}
.about-me-text {
margin: 0;
}
.skills-list ul {
flex-basis: 100%;
}
.portfolio-items {
grid-template-columns: 1fr;
}
}

/* Animated background */
body {
background: linear-gradient(45deg, #f8b195, #f67280, #c06c84, #6c5b7b, #355c7d, #c06c84, #f67280, #f8b195);
background-size: 400% 400%;
animation: GradientBackground 30s ease infinite;
}

@keyframes GradientBackground {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}

/* Hover effect for portfolio items */
.portfolio-item {
transition: transform 0.3s ease;
}

.portfolio-item:hover {
transform: translateY(-5px);
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

/* Responsive images */
img {
max-width: 100%;
height: auto;
}