/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
}

header {
    background-color: #333;
    padding: 1rem;
}

header ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

header ul li {
    display: inline;
    margin: 0 15px;
}

header ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
}

.hero {
    background-image: url(bg.jpg);
    background-size:cover;
    background-repeat: no-repeat;
    color: black;
    padding: 100px 20px;
    text-align: center;

}

.hero h1 {
    font-size: 3rem;
}

.hero p {
    font-size: 1.5rem;
}

.hero .btn {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
}

.hover-bg {
    background-image: url('bg.jpg');  /* Default background image */
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    color: black;  /* Optional: Text color */
    z-index: 1;  /* Ensure text stays on top */
    text-align: center; /* Optional: Center text */
    padding: 50px;
}

section {
    padding: 100px 20px;
    text-align: center;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

#about p {
    max-width: 800px;
    margin: 0 auto;
}
.bg2 {
    background-image: url('bg2.jpg');  /* Default background image */
    position: relative;
    background-size: cover;
    color: black;  /* Optional: Text color */
    z-index: 1;  /* Ensure text stays on top */
    text-align: center; /* Optional: Center text */
    padding: 50px;
}

.bg2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('bg2.jpg');  /* Default background image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;  /* Initial opacity for the background */
    z-index: -1;  /* Place background behind the text */
    transition: background-image 0.5s ease, opacity 0.5s ease;  /* Smooth transition */
}

.bg2:hover::before {
    background-image: url('bg.jpg');  /* Change background image on hover */
    opacity: 0.4;  /* Optional: Increase opacity on hover */
}

.skills-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.skill {
    background-color: #333;
    color: white;
    padding: 20px;
    border-radius: 5px;
    width: 150px;
    text-align: center;
}

.projects-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.project1 {
    background-color: gray;
    background-repeat: no-repeat;
    padding: 20px;
    border-radius: 5px;
    width: 300px;
    text-align: center;
}

.project2 {
    background-color: gray;
    padding: 20px;
    border-radius: 5px;
    width: 300px;
    height: 500px;
    text-align: center;
}
.project3 {
    background-color: gray;
    padding: 20px;
    border-radius: 5px;
    width: 300px;
    height: 500px;
    text-align: center;
}

#contact form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contact input, #contact textarea {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
}

#contact button {
    background-color: #333;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

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

footer p {
    margin: 0;
}

.hey {
    background-image: url('me2.jpeg');  /* Default background image */
    position: relative;
    background-size: cover;
    color: black;  /* Optional: Text color */
    z-index: 1;  /* Ensure text stays on top */
    text-align: center; /* Optional: Center text */
    padding: 50px;
}
