/* Project Page Styles */

/* Project Hero Section */
.project-hero {
    height: 70vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.8) 0%, rgba(239, 68, 68, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.7;
}

.breadcrumb span {
    margin: 0 0.5rem;
}

.project-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.project-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-tags .tag {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Project Overview */
.project-overview {
    padding: 5rem 0;
    background: #f8fafc;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.overview-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.overview-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 2.5rem;
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: #dc2626;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.overview-media img,
.overview-media video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.overview-media video {
    background: #000;
}

/* Development Blog */
.dev-blog {
    padding: 5rem 0;
    background: white;
}

.dev-blog .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.dev-blog .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.dev-blog .section-header p {
    font-size: 1.1rem;
    color: #6b7280;
}

.blog-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.blog-timeline::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.blog-post {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 5rem;
}

.blog-post::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: #dc2626;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #e5e7eb;
}

.post-date {
    font-size: 0.9rem;
    color: #dc2626;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.post-content p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.post-media {
    margin: 1.5rem 0;
}

.post-media img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.post-tags .tag {
    background: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-cta {
    text-align: center;
    margin-top: 3rem;
}

.load-more-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.load-more-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

/* Technical Details */
.tech-details {
    padding: 5rem 0;
    background: #f8fafc;
}

.tech-details h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 3rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tech-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.tech-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.tech-icon i {
    font-size: 1.5rem;
    color: white;
}

.tech-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.tech-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tech-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.tech-image img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.tech-image img:hover {
    transform: scale(1.05);
}

.tech-image i {
    color: #dc2626;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.tech-card ul {
    list-style: none;
    padding: 0;
}

.tech-card li {
    padding: 0.5rem 0;
    color: #4b5563;
    position: relative;
    padding-left: 1.5rem;
}

.tech-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #dc2626;
    font-weight: bold;
}

/* Story & Characters Section */
.story-characters {
    padding: 5rem 0;
    background: #f8fafc;
}

.story-characters .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.story-characters .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.story-characters .section-header p {
    font-size: 1.1rem;
    color: #6b7280;
}

.story-content {
    max-width: 1200px;
    margin: 0 auto;
}

.story-overview {
    margin-bottom: 4rem;
}

.story-overview h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2rem;
    text-align: center;
}

.world-description {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.world-text h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 1rem;
}

.world-text p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.world-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.story-themes h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2rem;
    text-align: center;
}

.theme-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.theme-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.theme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.theme-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.theme-icon i {
    font-size: 1.5rem;
    color: white;
}

.theme-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.theme-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* Media Gallery */
.media-gallery {
    padding: 5rem 0;
    background: white;
}

.media-gallery .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.media-gallery .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.media-gallery .section-header p {
    font-size: 1.1rem;
    color: #6b7280;
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-button {
    background: #f3f4f6;
    color: #374151;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active,
.tab-button:hover {
    background: #dc2626;
    color: white;
}

.gallery-content {
    position: relative;
}

.gallery-tab-content {
    display: none;
}

.gallery-tab-content.active {
    display: block;
}

/* Character Tabs */
.character-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
}

.char-tab-button {
    background: white;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.char-tab-button.active,
.char-tab-button:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
    transform: translateY(-2px);
}

/* Character Details */
.character-detail {
    display: none;
}

.character-detail.active {
    display: block;
}

.char-profile {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.char-image {
    flex: 0 0 300px;
}

.char-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.char-info {
    flex: 1;
}

.char-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.char-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #dc2626;
}

.stat-label {
    font-weight: 600;
    color: #374151;
}

.stat-value {
    font-weight: 500;
    color: #dc2626;
}

.char-description {
    color: #4b5563;
    line-height: 1.8;
    font-size: 1rem;
}

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

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

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

.gallery-item video {
    width: 100%;
    height: 250px;
    object-fit: contain;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.8) 0%, rgba(239, 68, 68, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    padding: 2rem;
}

.overlay-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.overlay-content p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-title {
        font-size: 2rem;
    }
    
    .project-subtitle {
        font-size: 1rem;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-stats {
        grid-template-columns: 1fr;
    }
    
    .world-description {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    
    .theme-cards {
        grid-template-columns: 1fr;
    }
    
    .gallery-tabs {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .tab-button {
        width: 200px;
        text-align: center;
    }
    
    .blog-timeline::before {
        left: 1rem;
    }
    
    .blog-post {
        padding-left: 3rem;
    }
    
    .blog-post::before {
        left: 0.5rem;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Navigation Active State */
.nav-link.active {
    color: #dc2626 !important;
    font-weight: 600;
}

/* Enhanced Blog Styles */
.blog-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.blog-slider {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.blog-posts-wrapper {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-post.enhanced {
    min-width: 100%;
    background: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-post.enhanced .post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.blog-post.enhanced .post-date {
    position: static;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.blog-post.enhanced .post-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-post.enhanced .post-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.blog-post.enhanced .post-media {
    border-radius: 12px;
    overflow: hidden;
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.blog-post.enhanced .post-media img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.blog-post.enhanced .post-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.blog-post.enhanced .tag {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #d1d5db;
    transition: all 0.2s ease;
}

.blog-post.enhanced .tag:hover {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    border-color: #dc2626;
    transform: translateY(-1px);
}

/* Blog Navigation Controls */
.blog-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
    padding: 0 1rem;
}

.blog-nav-btn {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.blog-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.blog-nav-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.blog-pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.blog-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-dot.active {
    background: #dc2626;
    transform: scale(1.2);
}

.blog-dot:hover {
    background: #ef4444;
    transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .blog-post.enhanced {
        padding: 2rem 1.5rem;
    }
    
    .blog-post.enhanced .post-title {
        font-size: 1.5rem;
    }
    
    .blog-post.enhanced .post-content p {
        font-size: 1rem;
    }
    
    .blog-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .blog-nav-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}