/* Modern Portfolio Page Styles */

/* Hero Section */
.portfolio-hero-section {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, rgba(1, 192, 87, 0.95) 0%, rgba(96, 202, 249, 0.95) 100%);
    overflow: hidden;
}

.portfolio-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/slider/abc.jpg') center/cover;
    opacity: 0.2;
    z-index: 0;
}

.portfolio-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.portfolio-hero-content h1 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.portfolio-hero-content p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.6;
}

/* Breadcrumb */
.portfolio-breadcrumb {
    margin-top: 30px;
    text-align: center;
}

.portfolio-breadcrumb ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.portfolio-breadcrumb li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.portfolio-breadcrumb li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.portfolio-breadcrumb li a:hover {
    color: white;
}

.portfolio-breadcrumb li.active {
    color: white;
    font-weight: 600;
}

.portfolio-breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 10px;
    opacity: 0.7;
}

/* Introduction Section */
.portfolio-intro-section {
    padding: 80px 0;
    background: #ffffff;
}

.portfolio-intro-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.portfolio-intro-content h2 {
    font-size: 42px;
    font-weight: 700;
    color: #000;
    margin-bottom: 25px;
    line-height: 1.2;
}

.portfolio-intro-content p {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 0;
}

/* Portfolio Grid Section */
.portfolio-grid-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.portfolio-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

/* Portfolio Card */
.portfolio-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-card:nth-child(1) { animation-delay: 0.1s; }
.portfolio-card:nth-child(2) { animation-delay: 0.2s; }
.portfolio-card:nth-child(3) { animation-delay: 0.3s; }
.portfolio-card:nth-child(4) { animation-delay: 0.4s; }
.portfolio-card:nth-child(5) { animation-delay: 0.5s; }
.portfolio-card:nth-child(6) { animation-delay: 0.6s; }

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
}

/* Portfolio Image Container */
.portfolio-image-wrapper {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    aspect-ratio: 16 / 10;
    min-height: 280px;
}

.portfolio-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.portfolio-card:hover .portfolio-image-wrapper img {
    transform: scale(1.15);
}

/* Image Overlay */
.portfolio-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(1, 192, 87, 0.95) 0%, rgba(96, 202, 249, 0.95) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
    padding: 30px;
    z-index: 1;
    pointer-events: none;
}

.portfolio-card:hover .portfolio-image-overlay {
    opacity: 1;
    pointer-events: auto;
}

.portfolio-image-wrapper .bubble-popup {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    cursor: pointer;
}

.portfolio-overlay-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.portfolio-card:hover .portfolio-overlay-icon {
    transform: scale(1.15) rotate(5deg);
}

.portfolio-overlay-icon i {
    font-size: 32px;
    color: #ffffff;
}

.portfolio-overlay-text {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
}

/* Portfolio Content */
.portfolio-content {
    padding: 35px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-title {
    font-size: 26px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 15px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.portfolio-card:hover .portfolio-title {
    color: #01c057;
}

.portfolio-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.portfolio-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #666666;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.portfolio-card:hover .portfolio-meta-item {
    background: #e9ecef;
}

.portfolio-meta-item i {
    font-size: 18px;
    color: #01c057;
}

.portfolio-description {
    color: #555555;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Portfolio Actions */
.portfolio-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #eeeeee;
}

.portfolio-btn {
    flex: 1;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid transparent;
}

.portfolio-btn-primary {
    background: linear-gradient(135deg, #01c057 0%, #00a045 100%);
    color: #ffffff;
    border-color: #01c057;
}

.portfolio-btn-primary:hover {
    background: linear-gradient(135deg, #00a045 0%, #01c057 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 192, 87, 0.4);
    color: #ffffff;
}

.portfolio-btn-secondary {
    background: transparent;
    color: #01c057;
    border-color: #01c057;
}

.portfolio-btn-secondary:hover {
    background: #01c057;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 192, 87, 0.3);
}

.portfolio-btn i {
    font-size: 18px;
}

/* Empty State */
.portfolio-empty {
    text-align: center;
    padding: 100px 20px;
    color: #666666;
}

.portfolio-empty-icon {
    font-size: 80px;
    color: #e0e0e0;
    margin-bottom: 30px;
}

.portfolio-empty-title {
    font-size: 32px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 15px;
}

.portfolio-empty-text {
    font-size: 18px;
    color: #666666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Call to Action Section */
.portfolio-cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

.portfolio-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/slider/abc.jpg') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.portfolio-cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    margin: 0 auto;
}

.portfolio-cta-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.portfolio-cta-text {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.8;
}

.portfolio-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 45px;
    background: linear-gradient(135deg, #01c057 0%, #00a045 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid #01c057;
    box-shadow: 0 4px 15px rgba(1, 192, 87, 0.3);
}

.portfolio-cta-button:hover {
    background: linear-gradient(135deg, #00a045 0%, #01c057 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(1, 192, 87, 0.5);
    color: #ffffff;
}

.portfolio-cta-button i {
    font-size: 22px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 35px;
    }
}

@media (max-width: 991px) {
    .portfolio-hero-content h1 {
        font-size: 48px;
    }
    
    .portfolio-hero-content p {
        font-size: 18px;
    }
    
    .portfolio-intro-content h2 {
        font-size: 36px;
    }
    
    .portfolio-cta-title {
        font-size: 36px;
    }
    
    .portfolio-cta-text {
        font-size: 18px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 767px) {
    .portfolio-hero-section {
        padding: 100px 0 60px;
    }
    
    .portfolio-hero-content h1 {
        font-size: 36px;
    }
    
    .portfolio-hero-content p {
        font-size: 16px;
    }
    
    .portfolio-intro-section {
        padding: 60px 0;
    }
    
    .portfolio-intro-content h2 {
        font-size: 28px;
    }
    
    .portfolio-intro-content p {
        font-size: 16px;
    }
    
    .portfolio-grid-section {
        padding: 60px 0;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .portfolio-content {
        padding: 30px 25px;
    }
    
    .portfolio-title {
        font-size: 22px;
    }
    
    .portfolio-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .portfolio-meta-item {
        width: 100%;
    }
    
    .portfolio-actions {
        flex-direction: column;
    }
    
    .portfolio-actions .portfolio-btn {
        width: 100%;
    }
    
    .portfolio-cta-section {
        padding: 80px 0;
    }
    
    .portfolio-cta-title {
        font-size: 28px;
    }
    
    .portfolio-cta-text {
        font-size: 16px;
    }
    
    .portfolio-cta-button {
        padding: 16px 35px;
        font-size: 16px;
    }
}

@media (max-width: 575px) {
    .portfolio-hero-content h1 {
        font-size: 32px;
    }
    
    .portfolio-grid {
        gap: 25px;
    }
    
    .portfolio-content {
        padding: 25px 20px;
    }
    
    .portfolio-title {
        font-size: 20px;
    }
    
    .portfolio-cta-title {
        font-size: 24px;
    }
    
    .portfolio-cta-button {
        padding: 14px 30px;
        font-size: 14px;
    }
    
    .portfolio-empty-icon {
        font-size: 64px;
    }
    
    .portfolio-empty-title {
        font-size: 24px;
    }
    
    .portfolio-empty-text {
        font-size: 16px;
    }
}

