/* Custom Styles for Filo Website */

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    grid-auto-rows: auto;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .bento-item:nth-child(1) {
        grid-column: span 2;
    }
    
    .bento-item:nth-child(2) {
        grid-column: span 2;
    }
    
    .bento-item:nth-child(3) {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .bento-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .bento-item:nth-child(2) {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .bento-item:nth-child(3) {
        grid-column: span 2;
        grid-row: span 1;
    }
}

.bento-item {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 12px;
}

/* Rounded buttons */
a[href="#services"],
button#contactBtn {
    border-radius: 8px !important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar (optional, for webkit browsers) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Text justification */
.text-justify {
    text-align: justify;
    text-justify: inter-word;
}

/* Rounded corners for navigation */
nav {
    border-radius: 0 0 12px 12px;
}

/* Rounded corners for contact modal */
#contactModal > div {
    border-radius: 16px;
}
