/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@500&family=Kanit:wght@300&display=swap');

/* Portfolio Container */
.dp-portfolio-container {
    padding: 40px 20px;
    font-family: 'Kanit', sans-serif;
}

/* Filter Tabs */
.dp-filter-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.dp-tab {
    background: none;
    border: none;
    padding: 10px 20px;
    margin: 0 10px 10px;
    cursor: pointer;
    font-family: 'Syne', sans-serif;
    font-weight: 500;
    color: #231F20;
    position: relative;
    transition: all 0.3s ease;
}

.dp-tab:hover {
    color: #0388ff;
}

.dp-tab.active {
    color: #0388ff;
}

.dp-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0388ff;
}

/* Portfolio Grid */
.dp-portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 -15px;
}

.dp-project-card {
    width: 340px;
    height: 420px;
    margin: 0 15px 30px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dp-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.dp-card-image {
    width: 100%;
    height: 100%;
}

.dp-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dp-project-card:hover .dp-card-image img {
    transform: scale(1.05);
}

.dp-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 136, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dp-project-card:hover .dp-card-overlay {
    opacity: 1;
}

.dp-card-title {
    font-family: 'Syne', sans-serif;
    font-weight: 500;
    font-size: 24px;
    margin: 0 0 10px;
    text-align: center;
}

.dp-card-subtitle {
    font-family: 'Kanit', sans-serif;
    font-weight: 300;
    font-size: 16px;
    margin: 0;
    text-align: center;
}

/* Lightbox */
.dp-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    overflow-y: auto;
}

.dp-lightbox.active {
    display: block;
}

.dp-lightbox-content {
    position: relative;
    max-width: 900px;
    margin: 50px auto;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
}

.dp-close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #0388ff;
    color: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dp-lightbox-body {
    padding: 40px;
}

.dp-lightbox-title {
    font-family: 'Syne', sans-serif;
    font-weight: 500;
    color: #231F20;
    margin-top: 0;
    margin-bottom: 10px;
}

.dp-lightbox-subtitle {
    font-family: 'Kanit', sans-serif;
    font-weight: 300;
    color: #686868;
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 30px;
}

.dp-lightbox-content-item {
    margin-bottom: 30px;
}

.dp-lightbox-content-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.dp-lightbox-content-item iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 8px;
}

.dp-lightbox-content-item p {
    font-family: 'Kanit', sans-serif;
    font-weight: 300;
    color: #686868;
    font-size: 16px;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .dp-portfolio-grid {
        justify-content: center;
    }
    
    .dp-project-card {
        width: 300px;
        height: 380px;
    }
}

@media (max-width: 768px) {
    .dp-portfolio-grid {
        margin: 0 -10px;
    }
    
    .dp-project-card {
        width: calc(50% - 20px);
        height: 300px;
        margin: 0 10px 20px;
    }
    
    .dp-lightbox-content {
        margin: 20px;
    }
    
    .dp-lightbox-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .dp-project-card {
        width: 100%;
        height: 280px;
        margin: 0 0 20px;
    }
    
    .dp-lightbox-content-item iframe {
        height: 250px;
    }
}