/* style.css */

/* Basic Reset */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(to right, #76c7c0, #f4f4f4); /* Gradient background */
    color: #333;
    scroll-behavior: smooth;
    transition: all 0.3s ease;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth; /* Smooth scrolling for better user experience */
    transition: all 0.3s ease; /* Smooth transitions for hover effects */
    font-smooth: always; /* Enhance font rendering for better readability */
    text-rendering: optimizeLegibility; /* Improve text rendering */
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}
/* Home Section */
header p {
    font-size: 20px; /* Slightly larger font size for the tagline */
    font-style: italic; /* Italic style for emphasis */
    color: #76c7c0; /* Change color for a catchy look */
    margin-top: 0; /* Remove top margin */
}
nav ul {
    list-style: none;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    font-size: 16px; 
    padding: 10px;
}

nav ul li a:hover {
    color: #76c7c0; /* Change to your desired hover color */
    border-bottom: 2px solid #76c7c0; /* Optional: Add underline effect */
}
section {
    padding: 20px;
    margin: 20px 0;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
/* Home Section */
#home {
    background-image: url('picture.jpg'); /* Replace with your image path */
    background-size: cover; /* Ensures the image covers the entire section */
    background-position: center; /* Centers the image */
    padding: 100px 0; /* Increased padding for a larger home section */
    text-align: center;
    color: #fff; /* Change text color for better contrast */
}

/* About Me Section */
#about {
    position: relative;
    width: 100%;
    height: 40vh; /* Decreased height for the About Me section */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.about-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none; /* Removed background image */
    filter: brightness(70%);
    z-index: 0;
}

.about-content {
    position: relative;
    max-width: 60%;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    z-index: 1;
}

.profile-photo {
    width: 100%;
    height: auto;
    max-width: 400px;
    border-radius: 50%;
}

.skills-container {
    display: flex; /* Use flexbox for parallel layout */
    justify-content: space-between; /* Space between the two skill divs */
    gap: 20px; /* Space between the two divs */
}
.skill-list {
    list-style-type: disc; /* Shows standard bullet */
    padding-left: 20px;    /* Indent for bullet visibility */
    margin-top: 10px;
}

.hard-skills, .soft-skills {
    flex: 1; /* Allow both divs to take equal space */
    background: #f4f4f4; /* Background color for skill boxes */
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h3 {
    margin-bottom: 10px; /* Space below the headings */
}

ul {
    list-style-type: none; /* Remove bullet points */
    padding: 0; /* Remove padding */
}

ul li {
    margin: 5px 0; /* Space between list items */
}

.progress-bar {
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    background: #76c7c0;
    height: 10px;
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.project-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin: 10px;
    flex: 1 1 30%;
}

.project-card img {
    width: 100%;
    height: auto;
    max-width: 400px;
    border-radius: 5px;
}

footer {
    text-align: center;
    padding: 10px 0;
    background: #333;
    color: #fff;
}

/* Contact Section */
#contact {
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 20px auto;
}

#contact h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* Contact Form */
#contact-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 15px;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background: #f9f9f9;
}

textarea {
    height: 120px;
    resize: none;
}

button {
    padding: 10px;
    background-color: #76c7c0;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background-color: #5aa89e;
}

/* Social Links */
#contact {
    width: 100%; /* Ensure it tries to take full width */
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 20px auto; /* Keep the centering */
    box-sizing: border-box; /* Important for padding */
}

#contact h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* Contact Form */
#contact-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 15px;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

input,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background: #f9f9f9;
}

textarea {
    height: 120px;
    resize: none;
}

button {
    padding: 10px;
    background-color: #76c7c0;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background-color: #5aa89e;
}

/* Social Links */
#contact p {
    text-align: center;
    margin-top: 15px;
}

#contact a {
    color: #76c7c0;
    text-decoration: none;
    font-weight: bold;
}

#contact a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .skills-grid, .projects-grid {
        flex-direction: column;
    }

    .skill, .project-card {
        flex: 1 1 100%;
    }
}
