@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
    background-color: #2a2a2a;
    color: #f5f5f5;
}

.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #333333 0%, #1a1a1a 100%);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
}

.container {
    display: flex;
    justify-content: center;
    align-content: flex-start;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background-color: #444444;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 450px;
    margin: .7rem;
    overflow: hidden;
    border-radius: 0.5rem;
    border: 5px solid #444444;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.project-image {
    width: 100%;
    height: 16rem;
    object-fit: cover;
    border-radius: 0.4rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-desc {
    color: #d1d5db;
    margin-bottom: 1rem;
}

.project-card .p-6 {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card .btn-project {
    margin-top: auto;
}

.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(33, 33, 33, 0.95);
    z-index: 50;
    overflow-y: auto;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    background-color: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 110;
}

.lightbox-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-nav-left {
    left: 20px;
}

.lightbox-nav-right {
    right: 20px;
}

.lightbox-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 110;
}

.lightbox-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.lightbox-dot.active {
    background-color: white;
}

.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 60;
}

.gallery-year {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 60;
    font-size: 1.2rem;
    font-weight: 500;
    color: white;
    background-color: #4b5563;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

.gallery-year:hover {
    background-color: #6b7280;
}

.gallery-grid {
    padding: 100px 20px 40px 20px;
}

#gallery-images-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

.project-description {
    background-color: rgba(51, 51, 51, 0.9);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.footer {
    background-color: #222222;
}

.btn-back {
    background-color: #4b5563;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

.btn-back:hover {
    background-color: #6b7280;
}

.btn-project {
    background-color: #666666;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.3s ease;
}

.btn-project:hover {
    background-color: #6b7280;
}
