/* style.css */

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth; /* For smooth scrolling when clicking anchor links */
}
.section-padding {
    padding: 4rem 1.5rem; /* Responsive padding for sections */
}
@media (min-width: 768px) {
    .section-padding {
        padding: 6rem 4rem;
    }
}
/* Styles for image galleries within the project modal */
.image-gallery-modal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.image-gallery-modal img {
    width: 100%;
    height: 150px; /* Fixed height for modal gallery images */
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Styles for the project modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease-in-out;
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* Responsive container for the YouTube iframe */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px; /* Rounded corners for the video */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    max-width: 900px; /* O el ancho máximo que desees para el video, ej. 800px */
    margin-left: auto;
    margin-right: auto;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
