:root {
    --primary-color: #2C5F7C;
    --secondary-color: #8B4513;
    --accent-color: #D4A574;
    --text-dark: #2A2A2A;
    --text-light: #666;
    --bg-light: #F8F9FA;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Navbar Styles */
.navbar {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 1rem 0;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color) !important;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 400;
    padding: 0.5rem 1.2rem !important;
    transition: color 0.3s ease;
}

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

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.6rem 1.5rem;
    color: var(--text-dark);
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* Enable hover dropdown on desktop */
@media (min-width: 768px) {
    .dropdown:hover .dropdown-menu {
        display: block;
    }
}

.social-icons a {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-left: 1rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

/* Hero Section (Home Page) */
.hero-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}

.portrait-container {
    position: relative;
}

.portrait-img {
    width: 100%;
    max-width: 400px;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.hero-content .subtitle {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.hero-content .institution {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.hero-content .bio-text {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin: 1.5rem 0;
}

.hero-social {
    margin-top: 1.5rem;
}

.hero-social a {
    color: var(--text-dark);
    text-decoration: none;
    margin-right: 1.5rem;
    font-size: 1rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-social a:hover {
    color: var(--primary-color);
}

/* Category Chips Section */
.category-chips-section {
    padding: 3rem 0;
    background: white;
}

.category-chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-chip:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 95, 124, 0.3);
}

/* Featured Work Section */
.featured-work {
    padding: 5rem 0;
    background: white;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
}

/* Slideshow Styles */
.slideshow-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.slideshow-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Slide Info Overlay */
.slide-info {
    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.7) 70%, transparent 100%);
    padding: 3rem 2rem 2rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
}

.slide:hover .slide-info {
    transform: translateY(0);
}

.slide-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.slide-info p {
    font-size: 1.1rem;
    margin: 0;
    color: rgba(255,255,255,0.9);
}

/* Navigation Arrows */
.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.slide-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.slide-nav i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

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

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

/* Play/Pause Button */
.slide-control {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.slide-control:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.slide-control i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Slide Indicators */
.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator:hover {
    background: rgba(255,255,255,0.8);
    transform: scale(1.2);
}

.indicator.active {
    background: white;
    border-color: var(--primary-color);
    transform: scale(1.3);
}

/* Legacy artwork card styles (kept for portfolio page) */
.artwork-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #f5f5f5;
}

.artwork-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.artwork-card img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    display: block;
    background: white;
    transition: transform 0.3s ease;
}

.artwork-card:hover img {
    transform: scale(1.05);
}

.artwork-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    color: white;
}

.artwork-card:hover .artwork-overlay {
    transform: translateY(0);
}

.artwork-overlay h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.artwork-overlay p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.cta-card {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.cta-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.cta-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.cta-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.btn-cta {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background: #234b5f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 95, 124, 0.3);
}

.cta-card-secondary .cta-icon {
    color: var(--secondary-color);
}

.btn-cta-secondary {
    background: var(--secondary-color);
    color: white;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
    background: #6d3610;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
}

/* Portfolio Page */
.portfolio-header,
.contact-header {
    padding: 4rem 0 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    text-align: center;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
}

.portfolio-controls {
    padding: 2rem 0;
    background: white;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 72px;
    z-index: 99;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end;
}

.sort-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
}

.form-select-sm {
    max-width: 200px;
}

.portfolio-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.portfolio-item {
    margin-bottom: 2rem;
    transition: opacity 0.3s ease;
}

.portfolio-item.hidden {
    display: none;
}

/* Lightbox Modal */
.lightbox-modal .modal-dialog {
    max-width: 90vw;
}

.lightbox-modal .modal-content {
    background: white;
    border: none;
    border-radius: 12px;
}

.lightbox-modal .btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;

    background-color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    opacity: 1;

    background-image: var(--bs-btn-close-bg);
    background-repeat: no-repeat;
    background-position: center;
}

.lightbox-modal .modal-body {
    padding: 2rem;
}

.lightbox-image {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-info {
    padding: 1rem 0;
}

.lightbox-info h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.info-item {
    margin-bottom: 1rem;
}

.info-label {
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.info-value {
    color: var(--text-light);
    font-size: 1rem;
}

.info-description {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Contact Page */
.contact-content {
    padding: 4rem 0;
}

.contact-info-container {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.contact-info-container h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-size: 2rem;
}

.contact-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.email-display {
    padding: 2rem 0;
}

.contact-icon-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), #234b5f);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.contact-icon-large i {
    font-size: 3rem;
    color: white;
}

.email-address {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
}

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

.email-address a:hover {
    color: #234b5f;
    text-decoration: underline;
}

.contact-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.contact-detail-item {
    text-align: center;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-detail-item h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-detail-item p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

.social-buttons-centered {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: var(--primary-color);
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 95, 124, 0.2);
}

.social-btn i {
    font-size: 1.3rem;
}

.availability-note {
    padding: 1.5rem;
    background: #e8f4f8;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.availability-note i {
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.availability-note p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

footer h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

footer .subtitle {
    color: rgba(255,255,255,0.7);
    margin-bottom: 1rem;
}

footer .social-links a {
    color: white;
    text-decoration: none;
    margin-right: 1.5rem;
    transition: color 0.3s ease;
}

footer .social-links a:hover {
    color: var(--accent-color);
}

footer .copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }

    .portrait-img {
        max-width: 300px;
        height: 400px;
    }

    /* Slideshow responsive */
    .slideshow-wrapper {
        height: 400px;
    }

    .slide-info h3 {
        font-size: 1.5rem;
    }

    .slide-info p {
        font-size: 0.95rem;
    }

    .slide-info {
        padding: 2rem 1.5rem 1.5rem;
    }

    .slide-nav {
        width: 40px;
        height: 40px;
    }

    .slide-nav i {
        font-size: 1.2rem;
    }

    .slide-nav.prev {
        left: 10px;
    }

    .slide-nav.next {
        right: 10px;
    }

    .slide-control {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
    }

    .slide-control i {
        font-size: 1rem;
    }

    .slide-indicators {
        bottom: 10px;
        gap: 8px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .filter-buttons {
        justify-content: center;
    }

    .filter-btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .portfolio-controls {
        position: relative;
        top: 0;
    }

    .sort-controls {
        justify-content: center;
    }

    .social-buttons {
        grid-template-columns: 1fr;
    }

    .social-buttons-centered {
        grid-template-columns: 1fr;
    }

    .contact-details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .email-address {
        font-size: 1.3rem;
    }

    .contact-icon-large {
        width: 80px;
        height: 80px;
    }

    .contact-icon-large i {
        font-size: 2.5rem;
    }

    .lightbox-modal .modal-body {
        padding: 1rem;
    }

    .lightbox-info {
        margin-top: 1rem;
    }

    .category-chips {
        gap: 0.7rem;
    }

    .category-chip {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}