/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    margin: auto;
    overflow: hidden;
}

/* Header Styles */
header {
    background: #333;
    color: #fff;
    padding: 10px 0;
}

header h1 {
    float: left;
    margin: 0;
    font-size: 24px;
}

header nav {
    float: right;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav ul li {
    display: inline;
    margin-left: 10px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
}

/* Hero Section Styles */
#hero {
    background: url('hero.jpg') no-repeat center center/cover;
    color: #fff;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#hero h2 {
    font-size: 48px;
}

#hero p {
    font-size: 20px;
}

#hero .btn {
    margin-top: 20px;
    padding: 10px 20px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

/* Section Styles */
section {
    padding: 60px 0;
    text-align: center;
}

section h2 {
    margin-bottom: 20px;
    font-size: 36px;
}

#about p, #skills .skill-item p {
    font-size: 18px;
}

/* Skills Section */
.skills-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.skill-item {
    background: #fff;
    padding: 20px;
    margin: 10px;
    border-radius: 5px;
    width: calc(33.333% - 40px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Portfolio Section */
.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.portfolio-item {
    margin: 10px;
    width: calc(33.333% - 20px);
    position: relative;
}

.portfolio-item img {
    width: 100%;
    border-radius: 5px;
}

.portfolio-details {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px;
    text-align: left;
    border-radius: 0 0 5px 5px;
}

/* Contact Section */
form {
    max-width: 600px;
    margin: auto;
    text-align: left;
}

label {
    display: block;
    margin: 10px 0 5px;
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Footer Styles */
footer {
    background: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.social-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header h1 {
        float: none;
        text-align: center;
    }

    header nav {
        float: none;
        text-align: center;
    }

    .skills-grid, .portfolio-grid {
        flex-direction: column;
    }

    .skill-item, .portfolio-item {
        width: 100%;
    }
}
