/* --- Projects Section Layout --- */
.projects-container {
    position: relative;
    z-index: 3;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.projects-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 120px 0 80px 0; /* Pushes content below your fixed navbar */
    z-index: 3;
}

/* --- Section Header --- */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

/* Updated to Light Blue Gradient */
.text-gradient {
    background: linear-gradient(135deg, #00A8FB 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: #a1a1aa;
    font-size: 1.05rem;
}

/* --- Projects Grid --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* --- Project Cards --- */
.project-card {
    background: rgba(10, 12, 22, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

/* Updated to Light Blue Hover Glow */
.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 168, 251, 0.4);
    box-shadow: 0 20px 40px rgba(0, 168, 251, 0.15);
}

/* Card Images */
.card-image-wrapper {
    width: 100%;
    height: 180px; 
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: #111; 
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

/* Card Content Area */
.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

/* Category Tags - All updated to a cohesive cool/blue palette */
.project-tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 50px;
    display: inline-block;
    width: fit-content;
    margin-bottom: 18px;
}

.tag-server {
    background: rgba(0, 168, 251, 0.1);
    color: #00A8FB; /* Primary Light Blue */
    border: 1px solid rgba(0, 168, 251, 0.2);
}

.tag-plugin {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4; /* Cyan */
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.tag-bot {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6; /* Royal Blue */
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.tag-web {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9; /* Sky Blue */
    border: 1px solid rgba(14, 165, 233, 0.2);
}

/* Card Text */
.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.project-desc {
    font-size: 0.9rem;
    color: #a1a1aa;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1; 
}

/* Action Buttons (Copy / Download / Web) */
.btn-project {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    width: 100%;
}

.btn-project i {
    font-size: 1rem;
}

/* Updated Button Hover to Light Blue */
.btn-project:hover {
    background: rgba(0, 168, 251, 0.1);
    border-color: rgba(0, 168, 251, 0.4);
    color: #00A8FB;
}

/* --- Responsiveness --- */
@media screen and (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}