/* Global Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Header */
header {
    background-color: #333;
    color: white;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: auto;
}

header h1 {
    margin: 0;
    font-size: 24px;
}

header nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
}

header nav a:hover {
    text-decoration: underline;
}

/* Main Content */
main {
    padding: 20px;
    width: 90%;
    margin: auto;
    box-sizing: border-box;
}

.section {
    margin-bottom: 40px;
    opacity: 0; /* Initially hide all sections */
    transform: translateY(50px); /* Slide up effect */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* Transition effects */
}

.section.visible {
    opacity: 1; /* Make section visible */
    transform: translateY(0); /* Slide into place */
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.project-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
    margin-top: 0;
}

.project-card p {
    margin-bottom: 0;
}

/* Contact Form */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

#contact-form label {
    font-weight: bold;
}

#contact-form input,
#contact-form textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

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

#contact-form button:hover {
    background-color: #555;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
    opacity: 0; /* Initially hide footer */
    transform: translateY(50px); /* Slide up effect */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* Transition effects */
}

footer.visible {
    opacity: 1; /* Make footer visible */
    transform: translateY(0); /* Slide into place */
}

/* Customize the scroll bar */
::-webkit-scrollbar {
    width: 8px;
    background-color: #f5f5f5; /* Background of the scroll bar track */
}

::-webkit-scrollbar-thumb {
    background-color: #333; /* Color of the scroll bar thumb */
    border-radius: 10px; /* Rounded corners for the scroll bar thumb */
}

::-webkit-scrollbar-thumb:hover {
    background-color: #555; /* Color when hovering over the scroll bar thumb */
}
#form-message {
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
}
