/* ==================================================
   Premium Projects Page Styles (Dark & Modern)
   ================================================== */

/* Overall Body & Main content */
body {
    background: #040b14 !important;
    /* Matches sidebar */
    color: #a8b2c1;
    font-family: 'Poppins', sans-serif;
}

#main {
    padding: 80px 40px;
    min-height: 100vh;
    background: radial-gradient(circle at top left, #0a192f 0%, #040b14 100%);
}

/* Projects Section Typography */
.projects {
    color: #a8b2c1;
    animation: fadeIn 1s ease-in-out;
}

/* Section Title */
.section-title {
    padding-bottom: 40px;
    position: relative;
}

.section-title h2 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ccd6f6;
    display: inline-block;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #149ddd, #00d2ff);
    bottom: -10px;
    left: 0;
    border-radius: 2px;
    transition: width 0.4s ease;
}

.section-title:hover h2::after {
    width: 100%;
}

.section-title p {
    font-size: 16px;
    line-height: 1.8;
    color: #8892b0;
    max-width: 800px;
}

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

/* Project Card Styling - Glassmorphism */
.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(20, 157, 221, 0.3);
}

/* Project Image Area */
.project-img-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #0a192f;
}

.project-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: brightness(0.9);
}

.project-card:hover .project-img-container img {
    transform: scale(1.1);
    filter: brightness(1);
}

/* Overlay Links on Hover */
.project-links {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 11, 20, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-links {
    opacity: 1;
}

.project-links a {
    color: #fff;
    font-size: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-links a:hover {
    background: linear-gradient(135deg, #149ddd, #00d2ff);
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(20, 157, 221, 0.4);
    color: #fff;
}

/* Project Content Area */
.project-content {
    padding: 30px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-tags {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tags .tag {
    font-size: 12px;
    font-weight: 600;
    color: #00d2ff;
    background: rgba(20, 157, 221, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.project-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #ccd6f6;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.project-card:hover .project-content h3 {
    color: #00d2ff;
}

.project-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #8892b0;
    margin: 0;
    flex-grow: 1;
}

/* Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 1199px) {
    #main {
        padding: 60px 20px;
    }
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 30px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section-title h2 {
        font-size: 24px;
    }

    .project-card {
        padding: 0 0 20px 0;
    }
    
    .project-content {
        padding: 20px;
    }
}