/* Project Details Page Styles */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-bottom: 2rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    background: rgba(99, 102, 241, 0.05);
    font-size: 1rem;
}

.back-btn:hover {
    color: var(--primary);
    transform: translateX(-5px);
    background: rgba(99, 102, 241, 0.1);
}

/* Project Hero Section */
.project-hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
    padding: 8rem 0 6rem;
}

.project-hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.08),
        rgba(236, 72, 153, 0.05)
    );
    z-index: 1;
}

.project-hero > .container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

#hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 2rem auto 0;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    min-height: 70vh;
}

.hero-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 2rem 0;
}

.project-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 1.5rem;
}

.project-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    border-radius: 4px;
}

.project-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    font-weight: 500;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-subtitle::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
}

.status-live {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.status-development {
    background: rgba(251, 191, 36, 0.1);
    color: #d97706;
}

.project-description {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.meta-item {
    background: white;
    padding: 1rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
}

.meta-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.meta-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
}

.meta-item:hover::before {
    opacity: 1;
}

.meta-item a{
    color: #6366f1;
    text-decoration: none;
    font-weight: 700;
}


.project-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.8rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.2);
}

/* Hero Image - იდეალური ჩატევა */
.hero-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s ease;
    opacity: 0;
    animation: fadeInRight 1s ease forwards;
    animation-delay: 0.3s;
    height: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Project Images Container */
.project-images {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 1.5rem;
    box-sizing: border-box;
    
}

.project-image.active {
    opacity: 1;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.1);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
}

.image-placeholder i {
    font-size: 4rem;
    color: rgba(99, 102, 241, 0.3);
}

.image-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.prev-image,
.next-image {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 300ms;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.prev-image:hover,
.next-image:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.prev-image i,
.next-image i {
    color: #333;
    font-size: 16px;
}

/* Project Details Section - Grid Layout */
.project-details {
    display: none;
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.detail-section {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(99, 102, 241, 0.08);
    position: relative;
    overflow: hidden;
}

.detail-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.detail-section:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(99, 102, 241, 0.15);
}

.detail-section:hover::before {
    opacity: 1;
}

.tags-list {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 0.7rem 1.4rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.tag:hover {
    background: rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.2);
}

.challenges-list,
.features-list {
    list-style: none;
    padding: 0;
}

.challenges-list li,
.features-list li {
    padding: 1.2rem 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.challenges-list li:hover,
.features-list li:hover {
    transform: translateX(5px);
    background: rgba(99, 102, 241, 0.03);
    padding-left: 1rem;
    margin: 0 -1rem;
}

.challenges-list li:last-child,
.features-list li:last-child {
    border-bottom: none;
}

.challenges-list li i,
.features-list li i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.challenges-list li span,
.features-list li span {
    line-height: 1.6;
    color: #475569;
}

/* Client Info Styling */
.client-info {

    background: rgba(99, 102, 241, 0.03);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.client-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.client-category {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.client-info p {
    line-height: 1.7;
    color: #475569;
}

/* Loading Skeleton */
.loading-skeleton {
    width: 100%;
    padding: 2rem;
}

.skeleton-title {
    height: 3rem;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.skeleton-text {
    height: 1rem;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 1rem;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

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

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

/* Responsive Design */
@media (max-width: 1200px) {
    .details-grid {
        grid-template-columns: 1fr;
        max-width: 800px;
    }
    
    #hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2.5rem;
    }
    
    .hero-image {
        order: -1;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .project-hero {
        padding: 6rem 0 4rem;
        min-height: auto;
    }

    #hero-content {
        gap: 2rem;
        padding: 2rem;
        margin: 1rem auto 0;
    }

    .project-title {
        font-size: 2.5rem;
    }

    .project-meta-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-actions {
        gap: 0.8rem;
        flex-direction: column;
    }

    .btn {
        justify-content: center;
    }

    .detail-section {
        padding: 2rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .hero-image {
        min-height: 350px;
    }

    .image-controls {
        bottom: 15px;
        gap: 12px;
    }

    .prev-image,
    .next-image {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .project-hero > .container,
    .project-details .container {
        padding: 0 1rem;
    }

    .project-title {
        font-size: 2rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .detail-section {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .hero-image {
        min-height: 300px;
    }

    .project-images {
        padding: 1rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}


