/* Index Page Styles */

/* Footer company info */
.company-info {
    margin-top: 15px;
}

.company-info .website-link {
    color: #fdc134 !important;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.company-info .website-link:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

.kvk-info {
    color: #fff;
    opacity: 0.8;
    font-size: 0.95rem;
}

/* Portfolio filters */
.portfolio-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin-bottom: 30px;
    padding-left: 0;
}

.portfolio-filters li {
    cursor: pointer;
    margin: 0 5px 10px 5px;
    padding: 8px 18px;
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
    color: #555555;
    background: #f7f9fc;
    border: 2px solid transparent;
    font-weight: 500;
}

.portfolio-filters li:hover {
    color: #fdc134;
    background: #fff;
    border-color: #fdc134;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(253, 193, 52, 0.25);
}

.portfolio-filters .filter-active {
    color: #fff;
    background: #fdc134;
    border-color: #fdc134;
    box-shadow: 0 8px 24px rgba(253, 193, 52, 0.35);
    transform: translateY(-3px);
}

.portfolio-filters .filter-active:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(253, 193, 52, 0.4);
}

.portfolio-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
    min-height: 400px;
    transition: min-height 0.3s ease;
}

/* Override Bootstrap col classes for portfolio items */
.portfolio-gallery .portfolio-item {
    flex: 0 0 auto;
    width: calc(25% - 15px);
    margin-bottom: 20px;
    padding: 0;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
    opacity: 1;
    transform: scale(1);
}

/* Hidden portfolio items */
.portfolio-gallery .portfolio-item.hidden {
    position: absolute !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    transform: scale(0) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Responsive widths */
@media (max-width: 991px) {
    .portfolio-gallery .portfolio-item {
        width: calc(33.333% - 14px);
    }
}

@media (max-width: 767px) {
    .portfolio-gallery .portfolio-item {
        width: calc(50% - 10px);
    }
}

@media (max-width: 479px) {
    .portfolio-gallery .portfolio-item {
        width: 100%;
        gap: 15px;
    }
}



/* Portfolio Item Animation */
.portfolio-item.filter-hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.portfolio-item.filter-visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* About image styling */
.about-img {
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.about-img:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

/* Footer social links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #fdc134;
    color: #223b51;
    transform: translateY(-3px);
}

/* Portfolio Cards */
.portfolio-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(34, 59, 81, 0.10);
    background: #fff;
    border: 1.5px solid #e6eaf1;
    width: 100%;
    max-width: 340px;
    min-width: 220px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-left: auto;
    margin-right: auto;
    transition: box-shadow 0.22s cubic-bezier(.4, 2, .6, 1), transform 0.16s cubic-bezier(.4, 2, .6, 1);
}

.portfolio-img {
    width: 100%;
    height: 92px;
    background: #f7f9fb;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.32s cubic-bezier(.4, 2, .6, 1);
}

.portfolio-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(34, 59, 81, 0.04) 100%);
    pointer-events: none;
}

.portfolio-star {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.1rem;
    color: #fdc134;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px #fdc13422;
    z-index: 2;
}

.portfolio-divider {
    width: 32px;
    height: 3px;
    background: #fdc134;
    border-radius: 2px;
    margin: 12px auto 0 auto;
    border: none;
}

.portfolio-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 18px 14px 10px 14px;
    background: none;
}

.portfolio-content h4 {
    font-size: 1.18rem;
    font-weight: 800;
    color: #223b51;
    margin-bottom: 7px;
    margin-top: 0;
    text-align: center;
    min-height: 32px;
    letter-spacing: 0.2px;
    font-family: 'Poppins', 'Raleway', Arial, sans-serif;
}

.portfolio-content p {
    color: #6c757d;
    font-size: 1.01rem;
    opacity: 0.92;
    text-align: center;
    margin-bottom: 0;
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.row.portfolio-gallery {
    row-gap: 28px !important;
}

/* Team Card Styles */
.team-card-alt {
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.team-card-alt:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.team-card-alt:hover .team-color-accent {
    height: 8px;
}

.team-card-alt:hover .team-avatar {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
}

.team-avatar {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.team-social a:hover {
    background: #fdc134;
    color: white;
    transform: translateY(-3px);
}

.team-badges span {
    transition: all 0.3s ease;
}

.team-badges span:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.team-social {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* About section styles */
.about-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.7;
}

.feature-icon {
    color: #fdc134;
    font-size: 32px;
    margin-bottom: 15px;
}

.feature-item-spaced {
    margin-top: 15px;
}

/* Service section styles */
.service-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-item-clickable {
    cursor: pointer;
}

.service-title-underlined {
    text-decoration: underline;
}

.footer-logo {
    height: 30px;
    margin-left: 5px;
}

/* Map iframe styles */
.map-iframe {
    border: 0;
}

/* Portfolio container alignment */
.portfolio-gallery {
    justify-content: center !important;
}

.portfolio-item {
    display: flex !important;
    justify-content: center !important;
}

/* Portfolio section mobile fixes */
.portfolio {
    overflow-x: hidden;
}

.portfolio .portfolio-gallery {
    padding: 0 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .social-links {
        gap: 10px;
    }

    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
        gap: 20px;
    }

    .team-body {
        padding: 70px 15px 20px;
    }

    .team-badges span {
        font-size: 0.7rem;
        padding: 3px 6px;
    }

    .team-social {
        bottom: 15px;
    }

    /* Portfolio mobile centering */
    .portfolio-card {
        max-width: 280px !important;
        min-width: 260px !important;
        min-height: 220px !important;
        margin: 0 auto !important;
    }

    .portfolio-img {
        height: 80px !important;
    }

    .portfolio-content {
        padding: 16px 12px 12px 12px !important;
    }

    .portfolio-content h4 {
        font-size: 1.1rem !important;
        min-height: 28px !important;
    }

    .portfolio-content p {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 1200px) {
    .portfolio-card {
        max-width: 300px;
        min-width: 280px;
        min-height: 240px;
    }

    .portfolio-img {
        height: 85px;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 991px) {
    .portfolio-card {
        max-width: 320px;
        min-width: 300px;
        min-height: 260px;
        margin: 0 auto;
    }

    .portfolio-img {
        height: 90px;
    }

    .portfolio-content {
        padding: 18px 14px 10px 14px;
    }

    .portfolio-content h4 {
        font-size: 1.15rem;
        min-height: 30px;
    }
}

@media (max-width: 600px) {
    .portfolio-card {
        max-width: 260px !important;
        min-width: 240px !important;
        min-height: 200px !important;
        margin: 0 auto !important;
    }

    .portfolio-img {
        height: 70px !important;
    }

    .portfolio-content {
        padding: 14px 10px 8px 10px !important;
    }

    .portfolio-content h4 {
        font-size: 1.05rem !important;
        min-height: 26px !important;
    }

    .portfolio-content p {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .portfolio-card {
        max-width: 240px !important;
        min-width: 220px !important;
        min-height: 180px !important;
        margin: 0 auto !important;
    }

    .portfolio-img {
        height: 65px !important;
    }

    .portfolio-content {
        padding: 12px 8px 6px 8px !important;
    }

    .portfolio-content h4 {
        font-size: 1rem !important;
        min-height: 24px !important;
    }

    .portfolio-content p {
        font-size: 0.85rem !important;
    }
}

/* Additional portfolio mobile optimization */
@media (max-width: 576px) {
    .portfolio .portfolio-gallery {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 28px !important;
    }

    .portfolio-item {
        width: 100% !important;
        max-width: 280px !important;
        display: flex !important;
        justify-content: center !important;
        flex: none !important;
    }

    .portfolio-card {
        width: 100% !important;
        max-width: 260px !important;
        min-width: 240px !important;
        margin: 0 auto !important;
    }
}

/* Ensure proper centering on all mobile sizes */
@media (max-width: 768px) {
    .portfolio-gallery.row {
        justify-content: center !important;
    }
    
    .portfolio-item {
        display: flex !important;
        justify-content: center !important;
    }
}

/* Universal portfolio card centering */
.portfolio .portfolio-item {
    margin-bottom: 28px;
}

/* Fix for very small screens */
@media (max-width: 360px) {
    .portfolio-card {
        max-width: 220px !important;
        min-width: 200px !important;
        min-height: 160px !important;
        margin: 0 auto !important;
    }

    .portfolio-img {
        height: 60px !important;
    }

    .portfolio-content {
        padding: 10px 6px 5px 6px !important;
    }

    .portfolio-content h4 {
        font-size: 0.95rem !important;
        min-height: 22px !important;
    }

    .portfolio-content p {
        font-size: 0.8rem !important;
    }
}
