/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body, html {
    width: 100%; /* Ensure the body spans the full width */
    height: auto;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #fff;
    margin: 0;
    padding: 0;
}

.cover {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    animation: backgroundZoom 1.5s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes backgroundZoom {
    from {
        transform: scale(1.1);
    }
    to {
        transform: scale(1);
    }
}

.intro-text {
    animation: fadeInUp 1.5s ease-out 0.5s forwards;
    opacity: 0;
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5em;
}

.content-section {
    padding: 80px 20px;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

h1, h2 {
    font-size: 3rem;
    color: #333;
}

p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    line-height: 1.6;
}

.container {
    max-width: 1200px; /* Set a maximum width for the content */
    margin: 0 auto; /* Center the container horizontally */
    padding: 0 20px; /* Add some padding for smaller screens */
}

.projects-section {
    padding: 40px 20px;
    background-color: #f0f0f0; /* Light background color for the section */
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 20px; /* Space between items */
    padding: 20px;
}

a {
    text-decoration: none;
}

.project-item {
    background: white;
    border: 1px solid #ccc; /* Optional border */
    border-radius: 8px; /* Rounded corners */
    overflow: hidden; /* Ensures the content fits within the borders */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Subtle shadow for depth */
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column; /* Stack image and text vertically */
    justify-content: space-between; /* Space out content */
    align-items: center; /* Center content horizontally */
    height: 100%; /* Ensure consistent height for the box */
    text-align: center; /* Center text inside the box */
}

.project-item:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    cursor: pointer;
}

.project-image {
    width: auto; /* Allow the image to scale proportionally */
    height: auto;
    max-width: 100%; /* Ensure the image doesn't overflow the box */
    max-height: 70%; /* Prevent the image from taking up too much space */
    margin: auto 0; /* Center the image vertically within the box */
    display: block; /* Prevent extra space below the image */
    object-fit: contain; /* Ensure the image scales properly within the box */
}

.project-image2 {
    width: auto; /* Keep the original width */
    height: auto;
}
figcaption {
    padding: 10px;
    color: #333;
    font-size: 1rem; /* Smaller text for descriptions */
    text-align: center; /* Center the text */
    align-self: stretch; /* Ensure the text spans the full width of the box */
    margin-top: auto; /* Push the text to the bottom of the box */
}



@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns for tablets */
    }

    .project-item {
        height: auto; /* Allow the height to adjust naturally */
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr; /* One column for mobile */
    }
}


.contact-btn {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-btn:hover {
    background-color: #555;
}

.contact-form-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    max-width: 500px;
    margin: 20px auto;
    transform: scale(0);
    transition: transform 0.5s ease;
}

.contact-header {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
    transition: inherit;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 1rem;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.send-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.send-btn:hover {
    background-color: #66BB6A;
}

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

