/* References Page Styles */

/* Page Header */
.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* References Section */
.references-section {
    padding: 40px 0 80px;
    background-color: #f8f9fa;
}

.reference-item {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.reference-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Reference Photo */
.reference-photo {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1;
}

.reference-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.reference-item:hover .reference-photo img {
    transform: scale(1.05);
}

.reference-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Reference Content */
.reference-content {
    padding-left: 20px;
}

.reference-header {
    margin-bottom: 15px;
}

.reference-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reference-name i.fa-arrow-right {
    color: #667eea;
    font-size: 1.2rem;
}

.reference-title {
    font-size: 1.2rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 8px;
}

.reference-affiliation {
    font-size: 1rem;
    color: #718096;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reference-affiliation i {
    color: #764ba2;
}

.reference-description {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Reference Links */
.reference-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.btn-reference-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.btn-reference-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-reference-link.linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #00a0dc 100%);
    box-shadow: 0 3px 10px rgba(0, 119, 181, 0.3);
}

.btn-reference-link.linkedin:hover {
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4);
}

.btn-reference-link.github {
    background: linear-gradient(135deg, #24292e 0%, #444d56 100%);
    box-shadow: 0 3px 10px rgba(36, 41, 46, 0.3);
}

.btn-reference-link.github:hover {
    box-shadow: 0 5px 15px rgba(36, 41, 46, 0.4);
}

/* Responsive Design */
@media (max-width: 991px) {
    .reference-content {
        padding-left: 0;
        padding-top: 20px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .reference-name {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .page-header {
        padding: 100px 0 40px;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .reference-item {
        padding: 20px;
    }
    
    .reference-name {
        font-size: 1.3rem;
    }
    
    .reference-title {
        font-size: 1.1rem;
    }
    
    .reference-description {
        font-size: 0.95rem;
    }
    
    .reference-links {
        flex-direction: column;
    }
    
    .btn-reference-link {
        width: 100%;
        justify-content: center;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reference-item {
    animation: fadeInUp 0.6s ease-out;
}

.reference-item:nth-child(1) {
    animation-delay: 0.1s;
}

.reference-item:nth-child(2) {
    animation-delay: 0.2s;
}

.reference-item:nth-child(3) {
    animation-delay: 0.3s;
}

/* Footer Styles */
.footer {
    border-top: 1px solid #e9ecef;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    color: #495057;
    border-radius: 50%;
    margin-left: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-3px);
}

/* Navbar Active State */
.nav-link.active {
    color: #667eea !important;
    font-weight: 600;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #2d3748 !important;
}

.nav-link {
    font-weight: 500;
    color: #4a5568 !important;
    transition: color 0.3s ease;
    padding: 8px 15px !important;
}

.nav-link:hover {
    color: #667eea !important;
}

/* Scroll to top button styles */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
}

/* Custom tooltip styles */
.custom-tooltip {
    position: absolute;
    background: #2d3748;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Print button styles */
.print-button {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 999;
}

.print-button:hover {
    background: #667eea;
    color: white;
    transform: translateY(-5px);
}