/* ThuducReal Project Page UI Enhancements */

/* ========================================
   VISUAL HIERARCHY IMPROVEMENTS
   ======================================== */

/* Project Header Section */
.project-header-enhanced {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}

.project-header-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.project-header-enhanced .container {
    position: relative;
    z-index: 2;
}

.project-title-section {
    margin-bottom: 30px;
}

.project-title-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.project-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

/* Breadcrumb Navigation */
.project-breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    border-radius: 8px;
}

.project-breadcrumb ol {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 15px;
}

.project-breadcrumb li {
    color: rgba(255, 255, 255, 0.8);
}

.project-breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 15px;
    opacity: 0.6;
}

.project-breadcrumb a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-breadcrumb a:hover {
    color: #ffd700;
}

/* ========================================
   CONTENT SECTIONS ENHANCEMENT
   ======================================== */

/* Section Dividers */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #007bff, transparent);
    margin: 60px 0;
    opacity: 0.3;
}

/* Project Info Cards */
.project-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.info-card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: white;
    font-size: 20px;
}

.info-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.info-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   GALLERY IMPROVEMENTS
   ======================================== */

/* Enhanced Gallery Container */
.gallery-enhanced {
    margin: 40px 0;
}

.gallery-enhanced h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

.gallery-enhanced h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 2px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    min-height: 250px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.8), rgba(0, 86, 179, 0.8));
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

/* ========================================
   MOBILE RESPONSIVENESS
   ======================================== */

@media (max-width: 768px) {
    .project-header-enhanced {
        padding: 40px 0 30px;
    }

    .project-title-section h1 {
        font-size: 1.8rem;
    }

    .project-subtitle {
        font-size: 1rem;
    }

    .project-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }

    .info-card {
        padding: 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-item {
        min-height: 200px;
    }

    .project-breadcrumb {
        margin-bottom: 30px;
    }

    .project-breadcrumb ol {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* ========================================
   LOADING STATES & ANIMATIONS
   ======================================== */

/* Skeleton Loading for Cards */
.skeleton-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.skeleton-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-text {
    height: 16px;
    background: #e9ecef;
    border-radius: 4px;
    margin-bottom: 10px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

@keyframes skeleton-loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in.delay-1 { animation-delay: 0.1s; }
.fade-in.delay-2 { animation-delay: 0.2s; }
.fade-in.delay-3 { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Focus states */
.gallery-item:focus,
.info-card:focus,
.project-breadcrumb a:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .info-card {
        border: 2px solid #333;
    }
    
    .gallery-overlay {
        background: rgba(0, 0, 0, 0.9);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .info-card,
    .gallery-item,
    .gallery-item img,
    .fade-in {
        transition: none;
        animation: none;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .project-header-enhanced {
        background: white !important;
        color: black !important;
        padding: 20px 0;
    }
    
    .gallery-overlay,
    .skeleton-card::before {
        display: none;
    }
    
    .info-card {
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}