/* Projects Page Specific Styles */

body {
    background: #11111a;
}

/* Logo header - completely separate from title */
.site-header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 0 10px 0;
    margin-bottom: 30px;
}

.logo {
    font-weight: 700;
    font-size: 2rem;
    color: #fff;
}

.logo span {
    color: #a855f7;
}

/* Container for projects page content */
.projects-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 150px;
    padding: 0 20px;
}

/* Title section - completely separate from logo */
.page-title {
    text-align: center;
    margin-bottom: 50px;
    padding-top: 0; /* No extra padding to ensure separation */
}

.page-title h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-title .accent {
    color: #a855f7;
}

.page-title p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}

/* Projects Grid Layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

/* Project Card Styling */
.project-card {
    background: #16161c;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #222;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: #a855f7;
}

.project-header {
    display: flex;
    align-items: center;
    padding: 25px 25px 15px;
    gap: 15px;
}

.project-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.3);
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.project-desc {
    padding: 0 25px 20px;
    color: #c7c7e0;
    line-height: 1.6;
    flex-grow: 1;
}

.project-meta {
    padding: 20px 25px;
    border-top: 1px solid #222;
    background: #14141a;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #c7c7e0;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 20px;
}

.project-links {
    display: flex;
    gap: 10px;
}

.link-button {
    background: #a855f7;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    flex-grow: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.link-button.secondary {
    background: rgba(255, 255, 255, 0.1);
}

.link-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.link-button.disabled {
    background: #333;
    cursor: not-allowed;
    opacity: 0.7;
}

.link-button.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Empty Project Card */
.project-card.empty {
    background: rgba(22, 22, 28, 0.5);
    border: 2px dashed #333;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.empty-placeholder {
    text-align: center;
    padding: 30px;
}

.empty-icon {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
}

.empty-placeholder p {
    color: #555;
}

/* Gradient Background */
.gradient-bg {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, #2d1a4d, transparent);
    z-index: -1;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 40px;
    padding-bottom: 20px;
    z-index: 10;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
    opacity: 0.8;
    transition: all 0.2s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #a855f7;
    transition: width 0.2s;
}

.nav-link:hover, .nav-link.active {
    opacity: 1;
}

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

/* Responsive Adjustments */
@media (max-width: 767px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }

    .page-title h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .page-title h1 {
        font-size: 1.8rem;
    }

    .project-header {
        padding: 20px 20px 10px;
    }

    .project-desc, .project-meta {
        padding: 10px 20px;
    }

    .project-links {
        flex-direction: column;
    }
}