/**
 * Digital Pro Portfolio - Device Mockups & Grid Styling
 */

/* ============================
   Portfolio Grid
   ============================ */
.dp-portfolio-grid {
    display: grid;
    gap: 40px;
    padding: 20px 0;
}

.dp-portfolio-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.dp-portfolio-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.dp-portfolio-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .dp-portfolio-grid.columns-3,
    .dp-portfolio-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .dp-portfolio-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================
   Portfolio Item Card
   ============================ */
.dp-portfolio-item {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.dp-portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ============================
   Device Showcase Container
   ============================ */
.dp-portfolio-mockup {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 30px 20px;
    position: relative;
    overflow: hidden;
}

.dp-portfolio-mockup::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: shimmer 15s infinite linear;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dp-device-showcase {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 220px;
}

/* ============================
   MacBook Mockup
   ============================ */
.dp-macbook {
    position: relative;
    width: 280px;
    z-index: 1;
}

.dp-macbook::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 12px;
    background: linear-gradient(to bottom, #e0e0e0, #c0c0c0);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.dp-macbook::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 5px;
    background: #a0a0a0;
    border-radius: 0 0 3px 3px;
}

.dp-macbook-screen {
    background: #1a1a2e;
    border-radius: 8px 8px 0 0;
    padding: 8px 8px 20px;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.3);
    position: relative;
}

.dp-macbook-screen::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #333;
    border-radius: 50%;
}

.dp-macbook-screen img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* ============================
   iPad Mockup
   ============================ */
.dp-ipad {
    position: absolute;
    right: -20px;
    bottom: 10px;
    width: 100px;
    z-index: 2;
    transform: rotate(5deg);
}

.dp-ipad::before {
    content: '';
    position: absolute;
    inset: -8px;
    background: linear-gradient(145deg, #2d2d3a, #1a1a24);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.dp-ipad-screen {
    position: relative;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.dp-ipad-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* ============================
   iPhone Mockup
   ============================ */
.dp-iphone {
    position: absolute;
    left: -10px;
    bottom: 20px;
    width: 55px;
    z-index: 3;
    transform: rotate(-8deg);
}

.dp-iphone::before {
    content: '';
    position: absolute;
    inset: -6px;
    background: linear-gradient(145deg, #2d2d3a, #1a1a24);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.dp-iphone::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 8px;
    background: #000;
    border-radius: 0 0 8px 8px;
    z-index: 5;
}

.dp-iphone-screen {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 9/19;
}

.dp-iphone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* ============================
   Portfolio Info Section
   ============================ */
.dp-portfolio-info {
    padding: 25px;
}

.dp-portfolio-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a1a2e;
}

.dp-portfolio-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dp-portfolio-title a:hover {
    color: #667eea;
}

.dp-portfolio-client {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 12px;
}

.dp-portfolio-type {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dp-portfolio-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* ============================
   Buttons
   ============================ */
.dp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.dp-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.dp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    color: #fff;
}

.dp-btn-secondary {
    background: #f0f0f5;
    color: #1a1a2e;
}

.dp-btn-secondary:hover {
    background: #e0e0e8;
}

/* ============================
   Portfolio Slider
   ============================ */
.dp-portfolio-slider {
    position: relative;
    overflow: hidden;
    padding: 40px 0;
}

.dp-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dp-slider-item {
    flex: 0 0 100%;
    padding: 0 60px;
    text-align: center;
}

@media (min-width: 768px) {
    .dp-slider-item {
        flex: 0 0 50%;
    }
}

@media (min-width: 1200px) {
    .dp-slider-item {
        flex: 0 0 33.333%;
    }
}

/* Large MacBook for Slider */
.dp-macbook-large {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.dp-macbook-large::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110%;
    height: 15px;
    background: linear-gradient(to bottom, #e8e8e8, #d0d0d0);
    border-radius: 0 0 15px 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.dp-macbook-large::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: #b0b0b0;
    border-radius: 0 0 5px 5px;
}

.dp-macbook-large .dp-macbook-screen {
    background: #1a1a2e;
    border-radius: 12px 12px 0 0;
    padding: 12px 12px 30px;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.2);
}

.dp-macbook-large .dp-macbook-screen::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
}

.dp-macbook-large .dp-macbook-screen img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
}

.dp-slider-info {
    margin-top: 25px;
}

.dp-slider-info h3 {
    font-size: 1.5rem;
    color: #1a1a2e;
    margin: 0 0 15px;
}

/* Slider Controls */
.dp-slider-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.dp-slider-prev,
.dp-slider-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #667eea;
    background: transparent;
    color: #667eea;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dp-slider-prev:hover,
.dp-slider-next:hover {
    background: #667eea;
    color: #fff;
    transform: scale(1.1);
}

/* ============================
   Recente Projecten Section
   ============================ */
.recent-projects-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
}

.recent-projects-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.recent-projects-section .section-badge {
    display: inline-block;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.recent-projects-section h2 {
    font-size: 2.5rem;
    color: #1a1a2e;
    margin: 0 0 15px;
}

.recent-projects-section .section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================
   Placeholder Styling
   ============================ */
.dp-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2d2d3a 0%, #1a1a24 100%);
    color: #666;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    height: 100%;
    min-height: 150px;
}

/* ============================
   Single Portfolio Page
   ============================ */
.dp-single-portfolio {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.dp-single-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

@media (max-width: 968px) {
    .dp-single-hero {
        grid-template-columns: 1fr;
    }
}

.dp-single-mockup {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 60px 40px 30px;
    position: relative;
    overflow: hidden;
}

.dp-single-info h1 {
    font-size: 2.5rem;
    color: #1a1a2e;
    margin: 0 0 20px;
}

.dp-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.dp-single-meta-item {
    display: flex;
    flex-direction: column;
}

.dp-single-meta-item .label {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dp-single-meta-item .value {
    font-size: 1rem;
    color: #1a1a2e;
    font-weight: 600;
}

.dp-single-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
}

.dp-single-actions {
    display: flex;
    gap: 15px;
}

.dp-single-actions .dp-btn {
    padding: 14px 28px;
    font-size: 1rem;
}

/* Technologies Tags */
.dp-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.dp-tech-tag {
    background: #f0f0f5;
    color: #666;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Gallery Section */
.dp-single-gallery {
    margin-top: 60px;
}

.dp-single-gallery h2 {
    font-size: 1.5rem;
    color: #1a1a2e;
    margin-bottom: 25px;
}

.dp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.dp-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.dp-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* ============================
   Dark Theme Variant
   ============================ */
.dp-portfolio-dark {
    background: #1a1a2e;
}

.dp-portfolio-dark .dp-portfolio-item {
    background: #2d2d3a;
}

.dp-portfolio-dark .dp-portfolio-title,
.dp-portfolio-dark .dp-slider-info h3 {
    color: #fff;
}

.dp-portfolio-dark .dp-portfolio-client {
    color: #aaa;
}

.dp-portfolio-dark .dp-btn-secondary {
    background: #3d3d4a;
    color: #fff;
}

.dp-portfolio-dark .dp-btn-secondary:hover {
    background: #4d4d5a;
}
