/* Project Pages Styles */

/* Hero Section - Split Layout */
.project-hero {
    padding-top: 140px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
    /* Background is handled by canvas #matrix-bg in body */
}

/* Container limits width to avoid stretching on large screens */
.project-container {
    max-width: 80rem;
    /* max-w-7xl */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
        /* Content slightly wider than image */
        gap: 4rem;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-image-container {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
    /* Limit height to prevent taking up full screen */
    max-height: 500px;
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
}

.hero-image-container:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-image {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: contain;
    /* Ensure full image is visible without cropping if ratio differs */
}

.project-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, white, var(--gray-400));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.project-tag {
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--blue-400);
}

/* Gallery / Feature Images */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.gallery-item {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Feature List - 3 Column Grid */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue-400);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

/* CTA Section */
.project-cta-section {
    background: linear-gradient(to right, rgba(37, 99, 235, 0.05), rgba(147, 51, 234, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

/* Fixed WhatsApp Button */
.fixed-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.fixed-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

/* Hero Buttons */
.hero-btn {
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    /* rounded-xl */
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.hero-btn:hover::before {
    opacity: 1;
}

.hero-btn:hover {
    transform: translateY(-2px);
}

/* Primary Button Scheme (Dynamic based on project color if needed, but defaults here) */
.hero-btn-primary {
    color: white;
    box-shadow: 0 10px 30px -10px currentColor;
    /* Glow effect using text color */
}

/* WhatsApp Hero Button */
.hero-btn-whatsapp {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, 0.3);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.1);
}

.hero-btn-whatsapp:hover {
    background: rgba(37, 211, 102, 0.2);
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .project-title {
        font-size: 2rem;
    }

    .project-hero {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .hero-image-container {
        transform: none;
        /* Disable 3D effect on mobile for performance/layout */
        max-height: 300px;
    }

    .fixed-whatsapp {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
        font-size: 1.75rem;
    }

    .hero-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Other Projects & Social Media Section */
.other-projects-section {
    padding: 3rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.2));
}

.mini-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.mini-project-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.mini-project-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.1);
}

.mini-card-image {
    width: 60px;
    /* Adjusted size for better proportion */
    height: 60px;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.mini-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mini-project-card:hover .mini-card-image img {
    transform: scale(1.1);
}

.mini-card-content {
    flex: 1;
    min-width: 0;
    /* Prevents text overflow issues */
}

.mini-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-card-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: -webkit-box;
    display: box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
}

.social-media-section {
    padding: 3rem 1.5rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-link-item {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-link-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-link-item.linkedin:hover {
    color: #0077b5;
    border-color: rgba(0, 119, 181, 0.3);
}

.social-link-item.github:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.social-link-item.instagram:hover {
    color: #e1306c;
    border-color: rgba(225, 48, 108, 0.3);
}

.social-link-item.twitter:hover {
    color: #1da1f2;
    border-color: rgba(29, 161, 242, 0.3);
}