/* Custom CSS untuk Website RPL BC 2023 */
/* Tema: Merah Soft & Modern */

:root {
    --primary-red: #dc3545;
    --soft-red: #f8d7da;
    --light-red: #ffeaa7;
    --dark-red: #721c24;
    --accent-red: #e74c3c;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-red);
}

/* Header & Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-red), var(--accent-red));
    box-shadow: var(--shadow);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white) !important;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    border-radius: 5px;
    padding: 0.5rem 1rem !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--soft-red), var(--light-red));
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-red);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    position: relative;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(220, 53, 69, 0.15);
}

.student-card {
    background: linear-gradient(145deg, var(--white), #fafafa);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.student-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-red));
    border-radius: 20px 20px 0 0;
}

.student-photo {
    height: 250px;
    width: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.4s ease;
    border-radius: 0;
    filter: brightness(1.05) contrast(1.1);
}

.student-card:hover .student-photo {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.15);
}

.student-card .card-body {
    padding: 1.5rem;
    position: relative;
    background: linear-gradient(145deg, var(--white), #fafafa);
}

.student-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-red), var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.student-card .card-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.student-card .badge {
    background: linear-gradient(135deg, var(--primary-red), var(--accent-red));
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* Photo container with overlay effect */
.photo-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.photo-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(220, 53, 69, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.student-card:hover .photo-container::after {
    opacity: 1;
}

.card-title {
    color: var(--primary-red) !important;
    font-weight: 600;
}

/* Galeri Cards */
.galeri-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
}

.galeri-img {
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.galeri-img:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-red), var(--accent-red));
    border: none;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, var(--accent-red), var(--dark-red));
}

.btn-outline-primary {
    color: var(--primary-red);
    border-color: var(--primary-red);
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

/* Filter Buttons */
.filter-btn {
    background-color: var(--white);
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    margin: 0.25rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Section Headers */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-red);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-red), var(--accent-red));
    border-radius: 2px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-red), var(--primary-red));
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--white);
}

/* Search Box */
.search-box {
    background-color: var(--white);
    border: 2px solid var(--soft-red);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.search-box:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    outline: none;
}

/* Carousel Custom */
.carousel-item img {
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 1rem;
}

/* Modal */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: var(--shadow-hover);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-red), var(--accent-red));
    color: var(--white);
    border-radius: 15px 15px 0 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .carousel-item img {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn-primary,
    .btn-outline-primary {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(220, 53, 69, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-red);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Utility Classes */
.text-primary-custom {
    color: var(--primary-red) !important;
}

.bg-primary-custom {
    background-color: var(--primary-red) !important;
}

.bg-soft-red {
    background-color: var(--soft-red) !important;
}

.border-primary-custom {
    border-color: var(--primary-red) !important;
}