/* Student Profile Page Styles */
.student-header {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.back-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--primary-color);
}

.student-profile {
    padding: 40px 0;
    min-height: 100vh;
}

.student-intro {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.student-photo-container {
    flex-shrink: 0;
}

.student-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
    animation: pulse 2s infinite;
}

.placeholder-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    border: 5px solid var(--primary-color);
}

.student-info {
    flex: 1;
}

.student-name-large {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.student-title-large {
    font-size: 1.5rem;
    color: var(--text-light);
    font-weight: 500;
}

.student-photos-section {
    margin-bottom: 60px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.category-folders {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.category-folder {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.category-folder:hover {
    transform: translateY(-5px);
}

.folder-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 15px;
}

.folder-preview-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

.folder-preview-slideshow .preview-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.folder-preview-slideshow .preview-slide.active {
    opacity: 1;
    z-index: 1;
}

.category-folder:hover .folder-preview-slideshow .preview-slide {
    transform: scale(1.05);
}

.folder-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 15px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-folder:hover .folder-overlay {
    opacity: 1;
}

.photo-count {
    font-size: 0.9rem;
    font-weight: 600;
}

.folder-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin: 0;
}

.category-slideshow-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    position: relative;
    max-width: 1200px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 40px;
    color: var(--text-dark);
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.modal-category-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.photos-slider-container {
    position: relative;
    margin-top: 30px;
}

.photos-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding: 20px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.photos-slider::-webkit-scrollbar {
    display: none;
}

.photo-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    text-align: center;
}

.photo-slide img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.photo-caption {
    margin-top: 15px;
    font-size: 1.1rem;
    color: var(--text-dark);
    font-style: italic;
    text-align: left;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.student-description-section {
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.description-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.description-text h3,
.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.description-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .student-intro {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .student-name-large {
        font-size: 2rem;
    }
    
    .student-title-large {
        font-size: 1.2rem;
    }
    
    .description-content {
        grid-template-columns: 1fr;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .slider-nav.prev {
        left: 10px;
    }
    
    .slider-nav.next {
        right: 10px;
    }
    
    .category-folders {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .modal-category-title {
        font-size: 1.5rem;
    }
}

