/* Student Projects Gallery Styles */
.student-projects-gallery {
    padding: 80px 0;
    background: 
        linear-gradient(135deg, #0f1419 0%, #1a202c 50%, #2d3748 100%),
        linear-gradient(45deg, transparent 25%, rgba(0, 255, 255, 0.02) 25%, rgba(0, 255, 255, 0.02) 50%, transparent 50%, transparent 75%, rgba(0, 255, 255, 0.02) 75%);
    background-size: 100% 100%, 60px 60px;
    position: relative;
    overflow: hidden;
}

.student-projects-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 255, 0.03) 0%, transparent 50%),
        linear-gradient(90deg, transparent 0%, rgba(0, 255, 255, 0.03) 1px, transparent 2px),
        linear-gradient(0deg, transparent 0%, rgba(0, 255, 255, 0.03) 1px, transparent 2px);
    background-size: 100% 100%, 100% 100%, 100px 100px, 100px 100px;
    animation: subtleTechGrid 30s linear infinite;
    pointer-events: none;
}

@keyframes subtleTechGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.projects-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.projects-title {
    font-size: 3.5em;
    font-family: 'ICA Rubrik', sans-serif;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 
        0 0 20px rgba(0, 255, 255, 0.5),
        0 0 40px rgba(0, 255, 255, 0.3),
        0 0 60px rgba(0, 255, 255, 0.1);
    position: relative;
}

.projects-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    box-shadow: 0 0 10px #00ffff;
}

.projects-subtitle {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.filter-btn {
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 255, 255, 0.3);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    left: 100%;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: #00ffff;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    transform: translateY(-2px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

.project-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    cursor: pointer;
    transform-style: preserve-3d;
    backdrop-filter: blur(10px);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 255, 255, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 255, 255, 0.3);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Lighter overlay without text */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.expand-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(0, 255, 255, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: scale(0.8);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.project-card:hover .expand-btn {
    transform: scale(1);
}

.expand-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
    transform: scale(1.1);
}

.expand-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 2px;
}

/* Project Modal */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    animation: modalFadeIn 0.3s ease;
}

.project-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    animation: modalSlideIn 0.5s ease;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes modalSlideIn {
    from { 
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #ff0040;
    border-radius: 50%;
    color: #ff0040;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 0, 0, 0.4);
    transform: scale(1.1);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.modal-image {
    position: relative;
    max-height: 85vh;
    max-width: 85vw;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image img {
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.8);
}

.modal-info h3 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.modal-info p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.modal-category {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 255, 255, 0.2);
    border: 1px solid #00ffff;
    border-radius: 25px;
    color: #00ffff;
    font-weight: 600;
    margin-bottom: 30px;
}

.modal-details {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

.modal-details p {
    margin-bottom: 10px;
    font-size: 1em;
}

.modal-details strong {
    color: #00ffff;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .student-projects-gallery {
        padding: 60px 0;
    }
    
    .projects-title {
        font-size: 2.5em;
    }
    
    .projects-filter {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 0.9em;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
    
    .modal-content {
        grid-template-columns: 1fr;
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .modal-image {
        height: 300px;
    }
    
    .modal-info {
        padding: 30px 20px;
    }
    
    .modal-info h3 {
        font-size: 2em;
    }
}

/* Filter Animation */
.project-card.fade-out {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.project-card.fade-in {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}
