/* Project Page Specific Styles */

.project-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    padding: 140px 0 80px;
    color: white;
    position: relative;
    overflow: hidden;
}

.project-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.12) 0%, transparent 50%);
    opacity: 1;
}

.project-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.project-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s var(--ease-out);
    text-decoration: none;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateX(-4px);
}

.back-button i {
    font-size: 0.875rem;
}

.project-nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link-small {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.3s var(--ease-out);
    position: relative;
    text-decoration: none;
}

.nav-link-small::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s var(--ease-out);
}

.nav-link-small:hover {
    color: white;
}

.nav-link-small:hover::after {
    width: 100%;
}

.project-header {
    position: relative;
    z-index: 2;
}

.project-header-content {
    max-width: 900px;
}

.project-category-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.project-main-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
    background: none;
    -webkit-text-fill-color: white;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.project-subtitle {
    font-size: 1.375rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    max-width: 800px;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.project-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}

.meta-item i {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.project-content {
    padding: 6rem 0;
    background: #ffffff;
}

.project-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 5rem;
    align-items: start;
}

.project-main {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.content-section {
    position: relative;
}

.section-heading {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-subtle);
}

.heading-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
}

.heading-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.section-content {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.9;
}

.section-content p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.9;
}

.feature-list-detailed {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.feature-list-detailed li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: #fafbfc;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s var(--ease-out);
    position: relative;
}

.feature-list-detailed li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s var(--ease-out);
}

.feature-list-detailed li:hover {
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.feature-list-detailed li:hover::before {
    transform: scaleY(1);
}

.feature-list-detailed li i {
    color: var(--primary);
    font-size: 1.125rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.feature-list-detailed li span {
    color: var(--text-main);
    line-height: 1.7;
    font-size: 1rem;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.detail-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: #fafbfc;
    aspect-ratio: 16/10;
    position: relative;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.detail-gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    border-color: var(--primary);
}

.detail-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-gallery-item:hover .detail-gallery-image {
    transform: scale(1.08);
}

.project-sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-sticky {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    padding: 2rem;
    background: #fafbfc;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

.sidebar-heading {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.tech-stack .tech-tag {
    background: white;
    color: var(--text-main);
    padding: 0.625rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-subtle);
    font-family: var(--font-mono);
    transition: all 0.3s var(--ease-out);
}

.tech-stack .tech-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.info-value {
    font-size: 0.9375rem;
    color: var(--text-dark);
    font-weight: 600;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.125rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s var(--ease-out);
    width: 100%;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    text-decoration: none;
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.cta-button i {
    font-size: 0.875rem;
    transition: transform 0.3s var(--ease-out);
}

.cta-button:hover i {
    transform: translateX(4px);
}

.project-navigation {
    padding: 5rem 0;
    background: #fafbfc;
    border-top: 1px solid var(--border-subtle);
}

.project-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.nav-project-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s var(--ease-out);
    text-decoration: none;
    color: var(--text-main);
}

.nav-project-card:hover {
    border-color: var(--primary);
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.1);
}

.nav-project-card .nav-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.nav-project-card .nav-title {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.nav-project-card i {
    color: var(--primary);
    font-size: 1.25rem;
    transition: transform 0.3s var(--ease-out);
}

.nav-project-card:hover i {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .project-hero {
        padding: 120px 0 60px;
    }

    .project-nav {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .project-nav-links {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

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

    .project-subtitle {
        font-size: 1.125rem;
    }

    .project-meta {
        flex-direction: column;
        gap: 1rem;
    }

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

    .project-sidebar {
        position: static;
    }

    .project-main {
        gap: 3.5rem;
    }

    .section-heading {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .heading-text {
        font-size: 1.75rem;
    }

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

    .feature-list-detailed {
        grid-template-columns: 1fr;
    }

    .project-nav-grid {
        grid-template-columns: 1fr;
    }

    .project-content {
        padding: 4rem 0;
    }
}

