/* Basic Reset & Typography */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}

body {

    font-family: 'Arial', sans-serif;

    line-height: 1.6;

    color: #333;

    background-color: #f4f4f4;

}

.container {

    max-width: 1100px;

    margin: auto;

    padding: 20px;

    overflow: hidden;

}

h1, h2, h3 {

    color: #333;

    margin-bottom: 20px;

}

a {

    text-decoration: none;

    color: #007bff;

}

.btn {

    display: inline-block;

    background: #007bff;

    color: #fff;

    padding: 10px 20px;

    border-radius: 5px;

    transition: background 0.3s ease;

}

.btn:hover {

    background: #0056b3;

}

/* Header & Navigation */

header {

    background: #333;

    color: #fff;

    padding: 1rem 0;

    position: sticky;

    top: 0;

    z-index: 1000;

}

nav {

    display: flex;

    justify-content: space-between;

    align-items: center;

    max-width: 1100px;

    margin: auto;

    padding: 0 20px;

}

.logo {

    font-size: 1.8rem;

    font-weight: bold;

    color: #fff;

}

nav ul {

    list-style: none;

}

nav ul li {

    display: inline;

    margin-left: 20px;

}

nav ul li a {

    color: #fff;

    font-weight: bold;

    transition: color 0.3s ease;

}

nav ul li a:hover {

    color: #007bff;

}

/* Hero Section */

#hero {

    background: url('hero-bg.jpg') no-repeat center center/cover; /* Add a background image */

    color: #fff;

    text-align: center;

    padding: 100px 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 80vh;

}

.hero-content {

    max-width: 800px;

    background-color: rgba(0, 0, 0, 0.6);

    padding: 40px;

    border-radius: 10px;

}

#hero h1 {

    font-size: 3.5rem;

    margin-bottom: 20px;

    color: #fff;

}

#hero p {

    font-size: 1.5rem;

    margin-bottom: 30px;

}

/* About Section */

#about {

    background: #fff;

    padding: 50px 0;

    text-align: center;

}

.about-content {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    justify-content: center;

    gap: 30px;

    margin-top: 30px;

}

.about-image img {

    width: 200px;

    height: 200px;

    border-radius: 50%;

    object-fit: cover;

    border: 5px solid #007bff;

}

.about-text {

    flex: 1;

    max-width: 600px;

    text-align: left;

}

/* Skills Section */

#skills {

    background: #f9f9f9;

    padding: 50px 0;

    text-align: center;

}

.skills-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 30px;

    margin-top: 30px;

}

.skill-item {

    background: #fff;

    padding: 30px;

    border-radius: 8px;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

}

.skill-item h3 {

    color: #007bff;

    margin-bottom: 15px;

}

.skill-item ul {

    list-style: none;

    text-align: left;

}

.skill-item ul li {

    padding: 5px 0;

    border-bottom: 1px dotted #eee;

}

.skill-item ul li:last-child {

    border-bottom: none;

}

/* Portfolio Section */

#portfolio {

    background: #fff;

    padding: 50px 0;

    text-align: center;

}

.portfolio-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

    gap: 30px;

    margin-top: 30px;

}

.portfolio-item {

    background: #fff;

    border: 1px solid #ddd;

    border-radius: 8px;

    overflow: hidden;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

    transition: transform 0.3s ease;

}

.portfolio-item:hover {

    transform: translateY(-5px);

}

.portfolio-item img {

    width: 100%;

    height: 200px;

    object-fit: cover;

}

.portfolio-item h3 {

    margin: 15px 0 10px;

    color: #333;

}

.portfolio-item p {

    padding: 0 15px 15px;

    font-size: 0.95rem;

}

.portfolio-item a {

    display: block;

    background: #007bff;

    color: #fff;

    padding: 10px;

    text-align: center;

    transition: background 0.3s ease;

}

.portfolio-item a:hover {

    background: #0056b3;

}

/* Contact Section */

#contact {

    background: #f9f9f9;

    padding: 50px 0;

    text-align: center;

}

#contact p {

    margin-bottom: 30px;

    font-size: 1.1rem;

}

#contact form {

    max-width: 600px;

    margin: auto;

    background: #fff;

    padding: 40px;

    border-radius: 8px;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

}

.form-group {

    margin-bottom: 20px;

    text-align: left;

}

.form-group label {

    display: block;

    margin-bottom: 8px;

    font-weight: bold;

}

.form-group input[type="text"],

.form-group input[type="email"],

.form-group textarea {

    width: 100%;

    padding: 12px;

    border: 1px solid #ddd;

    border-radius: 5px;

    font-size: 1rem;

}

.form-group textarea {

    resize: vertical;

}

#contact .btn {

    width: 100%;

    padding: 15px;

    font-size: 1.1rem;

    border: none;

    cursor: pointer;

}

/* Footer */

footer {

    background: #333;

    color: #fff;

    text-align: center;

    padding: 20px 0;

}

/* Responsive Design */

@media (max-width: 768px) {

    nav {

        flex-direction: column;

    }

    nav ul {

        margin-top: 15px;

    }

    nav ul li {

        margin: 0 10px;

    }

    #hero h1 {

        font-size: 2.5rem;

    }

    #hero p {

        font-size: 1.2rem;

    }

    .about-content {

        flex-direction: column;

    }

    .about-text {

        text-align: center;

    }

    .skills-grid, .portfolio-grid {

        grid-template-columns: 1fr;

    }

}