/* projects.css */

/* General Body Style (from your style.css) */
body {
    background-color: #212529;
    color: #f8f9fa;
    font-family: 'Poppins', sans-serif;
}

/* Project Hero Section - Medical Theme */
.project-hero-section {
    background: linear-gradient(rgba(20, 30, 48, 0.8), rgba(36, 59, 85, 0.9)), url("../Projects/brain-hemorrhage/hero-brain-hemorrhage.png") no-repeat center center;
    background-size: cover;
    min-height: 50vh;
    padding: 6rem 0;
    animation: fadeIn 1.5s ease-in-out;
}

.project-hero-section h1 {
    text-shadow: 0 3px 15px rgba(0,0,0,0.6);
}

/* Project Detail Section */
.project-detail-section {
    background-color: #2c3034;
}

.project-item {
    background-color: #212529;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid #495057;
    transition: all 0.5s ease-in-out;
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 0.8s forwards;
}

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

.project-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.project-image-container img {
    transition: transform 0.5s ease;
}

.project-image-container:hover img {
    transform: scale(1.1);
}

.project-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    color: white;
    padding: 2rem;
    border-radius: 0 0 15px 15px;
}

.project-detail-section h2 {
    color: #005cff;
}

/* Expander section for achievements */
.project-achievements-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.7s ease-in-out;
    padding: 0;
    border-top: 1px solid transparent;
}

.project-achievements-content.show {
    max-height: 1500px; /* Increased for more content */
    padding: 2.5rem 0 0 0;
    margin-top: 2rem;
    border-top: 1px solid #495057;
}

.achievement-card {
    background-color: #2c3e50;
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid #34495e;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.achievement-card h5 {
    color: #005cff;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.achievement-card p {
    color: #ced4da;
    font-size: 0.95rem;
    flex-grow: 1;
}

.section-title {
    color: #f8f9fa;
    border-bottom: 2px solid #005cff;
    display: inline-block;
    padding-bottom: 0.5rem;
}

/* Product Showcase */
.product-showcase img {
    transition: transform 0.4s ease, filter 0.4s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.product-showcase img:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
    border-color: #005cff;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Academic Experiences Section --- */
.academic-experiences-section {
    background-color: #212529;
}

.academic-item {
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 0.8s forwards;
    animation-play-state: paused;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.academic-card {
    background-color: #2c3034;
    border-radius: 15px;
    border: 1px solid #495057;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.academic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: #005cff;
}

.academic-card .card-body {
    flex-grow: 1;
    padding: 1.5rem;
}

.academic-card h5 {
    color: #005cff;
    margin-bottom: 0.75rem;
}

.academic-card .card-text {
    color: #ced4da;
    font-size: 0.9rem; /* Slightly smaller text for description */
    flex-grow: 1; /* Allow description to take up space */
}

.academic-card .card-meta {
    color: #adb5bd;
    font-size: 0.85rem;
}

.academic-card .card-footer {
    background-color: rgba(23, 162, 184, 0.1);
    border-top: 1px solid #495057;
    color: #005cff;
    padding: 0.75rem 1.5rem;
    text-align: center;
    font-weight: 600;
    border-radius: 0 0 14px 14px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.academic-card:hover .card-footer {
    background-color: #005cff;
    color: #fff;
}

/* --- NEW STYLES FOR CARD DETAILS --- */
.academic-card .card-authors {
    font-size: 0.8rem;
    color: #adb5bd;
}

.academic-card .card-authors span {
    font-style: italic;
    color: #ced4da;
}

.academic-card .card-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.academic-card .keyword-chip {
    background-color: #34495e;
    color: #ecf0f1;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.75rem;
}

/* --- NEW STYLES FOR BEER-SLIDER --- */
.beer-slider {
    border-radius: 15px;
    border: 2px solid transparent;
    transition: border-color 0.4s ease;
}
.beer-slider:hover {
    border-color: #005cff;
}
.beer-reveal[data-beer-label]::after, .beer-slider[data-beer-label]::after {
    background: #005cff;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}
.beer-handle {
    background: #005cff;
}

