/* Root Variables */
:root {
    --primary-color: #461D7C;  /* LSU Purple */
    --secondary-color: #FDD023;  /* LSU Gold */
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --font-primary: 'Inter', sans-serif;
    --font-serif: 'Merriweather', serif;
}

/* Base Styles */
body {
    font-family: var(--font-primary);
    color: var(--dark-color);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: #351560;
    text-decoration: underline;
}

/* Override Bootstrap colors with LSU theme */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.4rem;
    color: var(--dark-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 500px;
}

.profile-image {
    max-width: 280px;
    border: 5px solid white;
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

.bio-section {
    margin: 2rem 0;
}

/* Interests Section */
.interests-section {
    background: var(--light-color);
}

.interest-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
}

.interest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.interest-icon {
    width: 50px;
    height: 50px;
    background: #f3eeff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* News Section */
.news-section {
    background: white;
}

.news-item {
    border-left: 4px solid var(--primary-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

.news-date {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Publications Section */
.publications-section .year-section h2 {
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 0.5rem;
    color: var(--primary-color);
}

.publication-item {
    border-left: 4px solid #e9ecef;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.publication-item:hover {
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

.publication-links .btn {
    transition: all 0.2s ease;
}

.publication-links .btn:hover {
    transform: translateY(-2px);
}

details summary {
    font-weight: 500;
    user-select: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary::before {
    content: '▶ ';
    display: inline-block;
    margin-right: 5px;
    transition: transform 0.2s ease;
}

details[open] summary::before {
    transform: rotate(90deg);
}

/* Projects Section */
.project-card {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.project-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.project-card .badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35em 0.65em;
    background-color: var(--secondary-color);
    color: #000;
}

/* Experience Section */
.experience-section {
    background: white;
}

.experience-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 2rem;
}

.experience-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Filters */
.filters .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.filters .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(70, 29, 124, 0.1);
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background: #351560;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(70, 29, 124, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Cards */
.card {
    border-radius: 10px;
    overflow: hidden;
}

.shadow-sm {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

.shadow-lg {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Footer */
footer {
    margin-top: auto;
}

footer a {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

footer a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
    border-radius: 6px;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

.badge.bg-secondary {
    background-color: var(--secondary-color) !important;
    color: #000 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 3rem 0 !important;
    }

    .profile-image {
        max-width: 200px;
        margin-bottom: 2rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.8rem;
    }
    
    .nav-link.active::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .publication-item,
    .news-item {
        padding: 1rem !important;
    }

    .btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}

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

.card,
.publication-item,
.news-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn,
    details summary::before {
        display: none;
    }

    .card,
    .publication-item {
        break-inside: avoid;
    }
}

/* Utilities */
.text-justify {
    text-align: justify;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

