/* Basic Reset & Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    background-image: url('https://tse2.mm.bing.net/th/id/OIP.Ffk0liJ7j0rpM3oiCSL6PQHaEK?rs=1&pid=ImgDetMain');
    background-size: cover;
    background-position: left;
    color: #5B3A29;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}
/* Header styles */
header {
    background: rgba(255,255,255,0.8);
    padding: 20px;
    border-radius: 10px;
    max-width: 1200px;
    margin: 20px auto;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    text-align: center;
}
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}
nav a {
    text-decoration: none;
    color: #5B3A29;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}
nav a:hover {
    background-color: #5B3A29;
    color: #fff;
}
/* Profile section styling */
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255,255,255,0.9);
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.profile-picture {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid #5B3A29;
    margin-bottom: 20px;
    object-fit: cover;
    transition: transform 0.3s, box-shadow 0.3s;
}
.profile-picture:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #5B3A29;
}
p {
    max-width: 700px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.5;
}
/* Projects styles */
#home {
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
#home ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
#home li {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 300px;
    padding: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}
#home li:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}
#home h3 {
    margin-bottom: 10px;
    color: #5B3A29;
    font-size: 1.2rem;
}
#home img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: transform 0.3s;
}
#home img:hover {
    transform: scale(1.05);
}
/* About Section */
#about {
    margin: 40px auto;
    max-width: 1200px;
    padding: 20px;
    background: rgba(255,255,255,0.9);
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
/* Skills Section */
#skills {
    margin: 40px auto;
    max-width: 1200px;
    padding: 20px;
}
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.skill-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px; /* Set a fixed width for the cards */
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}
.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.skill-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}
.skill-title {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.skill-card p {
    font-size: 0.9rem;
    color: #333;
}
/* Contact styling */
#contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 1rem;
}
.contact-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 800px;
}
.contact-header h2 {
    margin: 0;
    font-size: 2rem;
    color: #5B3A29;
}
.contact-header p {
    margin-bottom: 20px;
    color: #666;
}

/* Form styles */
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
input, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}
input:focus, textarea:focus {
    border-color: #5B3A29;
    outline: none;
}
.submit-btn {
    background-color: #5B3A29;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}
.submit-btn:hover {
    background-color: #4a2a1e;
}

/* Message display */
.form-message {
    margin-top: 15px;
    display: none;
    padding: 10px;
    border-radius: 5px;
}
.form-message.success {
    background-color: #d4edda;
    color: #155724;
}
.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Footer styles */
footer {
    background-color: #fff;
    padding: 30px 20px;
    border-top: 4px solid #5B3A29;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
footer h3 {
    margin-bottom: 15px;
    font-size: 1.8rem;
    color: #5B3A29;
}
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}
.social-icons a {
    color: black;
    font-size: 1.8rem;
    transition: color 0.3s, transform 0.3s;
}
.social-icons a:hover {
    color: #0073e6;
    transform: scale(1.2);
}
footer p {
    font-size: 0.9rem;
    margin-top: 10px;
}