/*
Vintage Aesthetic Style
-----------------------
Font Palette:
- Headings: 'Playfair Display', serif (classy, vintage)
- Body/Code: 'Fira Code', monospace (programmer aesthetic)

Color Palette:
- Parchment (background): #F5E6C4
- Soft Black (text): #3F422E
- Muted Gold (accent): #D78B30
- Dark Sepia (containers): #3F422E
- White (on dark containers): #F5E6C4
*/

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;700&family=Playfair+Display:wght@700&display=swap');

body {
    background-color: #F5E6C4;
    color: #3F422E;
    font-family: 'Fira Code', monospace;
    padding-top: 56px;
}

/* --- Navigation Bar --- */
.navbar {
    background-color: rgba(245, 230, 196, 0.747); /* Semi-transparent parchment */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-bottom: 1px solid #D78B30;
}

.navbar-brand, .nav-link {
    color: #ffffff !important;
    font-family: 'Playfair Display', serif;
}

.navbar-brand {
    color: #D78B30 !important;
    font-size: 1.5rem;
}

.nav-link.active, .nav-link:hover {
    color: #D78B30 !important;
}

.navbar-toggler {
    border-color: #3F422E;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(215, 139, 48, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


.hero-section {
    height: calc(100vh - 56px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: #F5E6C4;
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-section::after{
    content: '';
    position: absolute;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: #D78B30;
}

/* Typing Animation */
.typing-container {
    display: inline-block;
}

.typed-text {
    overflow: hidden;
    border-right: .15em solid #D78B30; /* Cursor */
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .10em;
    animation:
        typing 3.5s steps(30, end),
        blink-caret .75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #D78B30; }
}


/* Floating Musical Notes */
.music-notes-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-color: rgba(31, 17, 3, 0.671);
    z-index: 1;
}

.note {
    position: absolute;
    font-size: 2rem;
    color: #D78B30;
    animation: float-up 10s infinite linear;
}

.note.n1 { left: 10%; animation-duration: 15s; animation-delay: -5s; }
.note.n2 { left: 20%; animation-duration: 12s; animation-delay: -2s; font-size: 1.5rem; }
.note.n3 { left: 35%; animation-duration: 18s; animation-delay: -10s; }
.note.n4 { left: 50%; animation-duration: 10s; animation-delay: -7s; font-size: 1.2rem; }
.note.n5 { left: 65%; animation-duration: 14s; animation-delay: 0s; }
.note.n6 { left: 80%; animation-duration: 16s; animation-delay: -8s; font-size: 1.8rem; }
.note.n7 { left: 90%; animation-duration: 11s; animation-delay: -4s; }


@keyframes float-up {
    0% {
        transform: translateY(100vh);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-10vh);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 3;
}


.page-section {
    padding: 6rem 0;
}

.divider {
    height: 0.15rem;
    max-width: 6rem;
    margin: 1.5rem auto;
    background-color: #D78B30;
    opacity: 1;
}

h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    color: #3F422E;
}

.btn-warning {
    background-color: #D78B30;
    border: 1px solid #3F422E;
    color: #3F422E;
    font-family: 'Fira Code', monospace;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
    box-shadow: 3px 3px 0px #3F422E;
    border-radius: 0;
}

.btn-warning:hover {
    background-color: #E0A85B;
    border-color: #3F422E;
    color: #3F422E;
    transform: translate(3px, 3px);
    box-shadow: 0px 0px 0px #3F422E;
}

/* --- Card Styles (Gallery) --- */
.card {
    background-color: transparent;
    border: 1px solid #3F422E;
    border-radius: 0;
    color: #3F422E;
}

.card .card-img-top {
    border-radius: 0;
    filter: sepia(0.4) contrast(0.9);
    transition: filter 0.5s ease;
}

.card:hover .card-img-top {
    filter: sepia(0) contrast(1);
}

.card-body, .card-footer {
    background-color: transparent;
}

.card-title {
    color: #D78B30;
    font-family: 'Playfair Display', serif;
}

.card-footer {
    border-top: 1px solid #3F422E;
}

/* --- Contact Form --- */
.form-control {
    background-color: rgba(245, 230, 196, 0.79);
    border: 1px solid #3F422E;
    color: #3F422E;
    border-radius: 0;
}

.form-control:focus {
    background-color: rgba(245, 230, 196, 0.79);
    border-color: #D78B30;
    color: #3F422E;
    box-shadow: 0 0 0 0.25rem rgba(215, 139, 48, 0.3);
}

.form-label {
    font-family: 'Playfair Display', serif;
    color: #3F422E;
}

/* --- Footer --- */
.footer {
    background-color: #3F422E;
    color: #F5E6C4;
    border-top: 1px solid #D78B30;
}

.footer .social-icons a, .social-icons-contact a {
    color: #F5E6C4 !important;
    transition: color 0.3s, transform 0.3s;
}

.footer .social-icons a:hover, .social-icons-contact a:hover {
    color: #D78B30 !important;
    transform: scale(1.1);
}

/* Ensure images in about page also get the vintage treatment */
.img-fluid {
    border: 1px solid #3F422E;
    padding: 5px;
    background: #F5E6C4;
}

/* --- Gallery Page --- */
.gallery-item {
    display: block;
    overflow: hidden;
    position: relative;
    border: 1px solid #3F422E;
    padding: 5px;
    background: #F5E6C4;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.gallery-item .img-fluid {
    transition: transform 0.4s ease;
}

.gallery-item:hover .img-fluid {
    transform: scale(1.1);
}

/* --- Modal Styles --- */
.modal-content {
    background-color: #F5E6C4;
    border: 2px solid #3F422E;
    border-radius: 0;
    color: #3F422E;
}

.modal-header, .modal-footer {
    border-color: #D78B30;
}

.modal-header .btn-close {
    filter: invert(0.2);
}

.modal-body .img-fluid {
    border: 1px solid #3F422E;
    padding: 4px;
    background: #F5E6C4;
    margin-bottom: 1rem;
}

.btn-secondary {
    background-color: #9F886F;
    border: 1px solid #3F422E;
    color: #F5E6C4;
    font-family: 'Fira Code', monospace;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
    box-shadow: 3px 3px 0px #3F422E;
    border-radius: 0;
}

.btn-secondary:hover {
    background-color: #B3A08A;
    border-color: #3F422E;
    color: #F5E6C4;
    transform: translate(3px, 3px);
    box-shadow: 0px 0px 0px #3F422E;
}

/* Custom style for vertical videos in carousel */
.video-vertical {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000; /* Black background for letterboxing */
}

.video-vertical video {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/*
Carousel Stacking Order (z-index)
---------------------------------
1 (Base): Carousel items (images/videos)
2: Carousel caption (text over the items)
3: Carousel controls (prev/next arrows)
*/
.carousel-caption {
    /* --- FIX: Make caption visible on ALL screen sizes --- */
    display: block !important; 
    z-index: 2; /* Ensure caption is above the slide item */
    position: absolute; /* Re-affirm position */
    bottom: 1rem; /* Default bottom position */
    pointer-events: none; /* Allow clicks to pass through the container to video controls */
}

.carousel-control-prev, .carousel-control-next {
    z-index: 3; /* Ensure controls are on top of everything */
}

.carousel-caption h5,
.carousel-caption p {
    color: #F5E6C4; /* Light parchment color */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8); /* Stronger dark shadow */
    pointer-events: auto; /* Make the text itself clickable again */
}

.carousel-caption a {
    color: #E0A85B; /* A slightly brighter accent color for links */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* --- Media Queries for Responsiveness --- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem; /* Reduce font size on smaller screens */
    }

    .page-section {
        padding: 4rem 0; /* Reduce vertical padding on smaller screens */
    }

    .carousel-caption {
        padding-top: 0;
        padding-bottom: 0;
        bottom: 0.25rem; /* Position closer to the bottom on mobile */
    }

    .carousel-caption h5 {
        font-size: 1rem;
    }
}
