/* Custom CSS for Todd D. Music Website */

/* Root Variables - Country Dark Theme */
:root {
    --primary-color: #ff6b35;
    --secondary-color: #f7931e;
    --accent-color: #ff8c42;
    --dark-color: #1a1a1a;
    --darker-color: #0d0d0d;
    --gray-dark: #2d2d2d;
    --gray-medium: #404040;
    --gray-light: #666666;
    --light-color: #f5f5f5;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    --gradient-secondary: linear-gradient(135deg, #f7931e 0%, #ff8c42 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

/* Global Styles */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    background-color: var(--light-color);
}

/* Remove any default margins that could cause gaps */
* {
    box-sizing: border-box;
}

.container-fluid {
    padding: 0;
}

/* Ensure no gaps between sections */
section {
    margin: 0;
}

/* Homepage specific - remove container padding for hero */
.hero-section .container {
    max-width: 100%;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
}

/* Custom Bootstrap Color Overrides */
.bg-primary {
    background: var(--gradient-primary) !important;
}

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

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,107,53,0.4);
    color: white;
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.8);
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}

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

/* Navigation Styles */
.navbar {
    background: var(--dark-color) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    padding: 1rem 0;
    border-bottom: 2px solid var(--primary-color);
}

.navbar-brand {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem !important;
    color: var(--text-white) !important;
    font-weight: 700;
}

.navbar-brand i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.navbar-nav .nav-link {
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    color: rgba(255,255,255,0.8) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 25px;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(255,107,53,0.1);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(255,107,53,0.15);
    font-weight: 700;
}

.navbar-nav .nav-link::after {
    display: none;
}

/* Social icons in navbar */
.navbar .social-links a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

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

/* Hero styles moved to separate hero.css file for home page only */

/* Section Styles */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Section Backgrounds */
.bg-light {
    background-color: var(--light-color) !important;
}

.bg-dark {
    background-color: var(--dark-color) !important;
    color: var(--text-white);
}

.section-padding {
    padding: 80px 0;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    border-radius: 15px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255,107,53,0.15);
}

.card-dark {
    background: var(--gray-dark);
    color: var(--text-white);
}

.card-dark:hover {
    box-shadow: 0 10px 25px rgba(255,107,53,0.2);
}

/* Enhanced Gallery Styles */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 8px 25px rgba(255,107,53,0.2);
    transform: translateY(-5px);
}

.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: var(--gray-dark);
}

.gallery-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: all 0.4s ease;
    cursor: pointer;
    border-radius: 15px;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(26,26,26,0.85) 0%,
        rgba(255,107,53,0.7) 50%,
        rgba(26,26,26,0.85) 100%
    );
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    pointer-events: none; /* Allow clicks to pass through to image */
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay-content {
    transform: translateY(0);
}

.gallery-overlay i {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.gallery-overlay p {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.gallery-overlay small {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Gallery Filter Buttons */
.btn-group .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-group .btn-outline-primary:hover,
.btn-group .btn-outline-primary.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}

/* Gallery Item Container Transitions */
.gallery-item-container {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item-container[style*="opacity: 0"] {
    pointer-events: none;
}

/* Fancybox Custom Styling */
.fancybox__container {
    --fancybox-bg: rgba(26, 26, 26, 0.95);
    --fancybox-color: #ffffff;
    --fancybox-accent-color: #ff6b35;
}

.fancybox__caption {
    background: linear-gradient(
        to top,
        rgba(26, 26, 26, 0.9) 0%,
        rgba(26, 26, 26, 0.7) 50%,
        transparent 100%
    );
    color: white;
    padding: 20px;
}

.fancybox-caption-content h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.fancybox__toolbar button {
    color: white;
    background: rgba(255, 107, 53, 0.8);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.fancybox__toolbar button:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* Loading Animation for Gallery Images */
.gallery-image {
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.4s ease;
}

.gallery-image.loaded {
    opacity: 1;
}

/* Responsive Gallery Improvements */
@media (max-width: 768px) {
    .gallery-image {
        height: 220px;
    }

    .gallery-overlay i {
        font-size: 2rem;
    }

    .gallery-overlay p {
        font-size: 1rem;
    }

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

@media (max-width: 576px) {
    .gallery-image {
        height: 200px;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-group .btn {
        border-radius: 0.375rem !important;
        margin-bottom: 0.5rem;
    }
}

/* Events Styles */
.event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid rgba(255,107,53,0.1);
}

.event-date {
    background: var(--gradient-primary);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
}

.event-content {
    padding: 25px;
}

.event-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(255,107,53,0.15);
}

/* Contact Form Styles */
.contact-form-card {
    background: var(--gray-dark) !important;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
}

.contact-form-card .card-body {
    background: var(--gray-dark);
}

.form-control {
    border: 2px solid var(--gray-medium);
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    background: var(--dark-color);
    color: var(--text-white);
    font-weight: 500;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255,107,53,0.25);
    background: var(--dark-color);
    color: var(--text-white);
}

.form-control::placeholder {
    color: rgba(255,255,255,0.6);
}

.form-select {
    border: 2px solid var(--gray-medium);
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    background: var(--dark-color);
    color: var(--text-white);
    font-weight: 500;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255,107,53,0.25);
    background: var(--dark-color);
    color: var(--text-white);
}

.form-select option {
    background: var(--dark-color);
    color: var(--text-white);
}

.form-label {
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-form-card .alert-success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #28a745;
}

.contact-form-card .alert-danger {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #dc3545;
}

/* Social Media Icons */
.social-links a {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
    color: var(--gray-light);
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--primary-color) !important;
}

/* Contact Page Social Buttons */
.social-btn {
    transition: all 0.3s ease;
    min-width: 150px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255,107,53,0.3);
}

/* Contact Information Cards */
.contact-info-card {
    background: white;
    border: 1px solid rgba(255,107,53,0.1);
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(255,107,53,0.15);
    transform: translateY(-5px);
}

/* Footer Styling */
footer {
    background: var(--dark-color) !important;
    color: var(--text-white);
}

footer h5, footer h6 {
    color: var(--text-white);
}

footer .text-white-50 {
    color: rgba(255,255,255,0.7) !important;
}

footer .text-white-50:hover {
    color: var(--primary-color) !important;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/*
 * Hero Section - Home Page Banner
 * Integrated into main CSS to ensure proper loading
 */

/* Hero Section - Standard Full-Width Banner */
.hero-section {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    max-height: 800px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Ensure no gaps between navbar and hero */
.navbar + .hero-section {
    margin-top: 0;
}

/* Bootstrap Carousel Overrides */
.hero-section .carousel {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.hero-section .carousel-inner {
    width: 100%;
    height: 100%;
}

.hero-section .carousel-item {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Hero Slide Background Images */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Hero Overlay for Better Text Readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(26,26,26,0.7) 0%,
        rgba(255,107,53,0.2) 50%,
        rgba(0,0,0,0.6) 100%
    );
    z-index: 2;
}

/* Hero Content Container */
.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem 1rem;
}

/* Hero Typography */
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    line-height: 1.2;
    color: white;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
    line-height: 1.4;
    color: rgba(255,255,255,0.95);
    font-weight: 400;
}

/* Hero Buttons */
.hero-content .btn {
    margin: 0.5rem;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* Carousel Controls */
.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    width: 5%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 4;
    background: none;
    border: none;
}

.hero-section .carousel:hover .carousel-control-prev,
.hero-section .carousel:hover .carousel-control-next {
    opacity: 0.7;
}

.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover {
    opacity: 1;
}

.hero-section .carousel-control-prev-icon,
.hero-section .carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
    background-color: rgba(255,255,255,0.8);
    border-radius: 50%;
}

/* Carousel Indicators */
.hero-section .carousel-indicators {
    bottom: 2rem;
    margin-bottom: 0;
    z-index: 4;
}

.hero-section .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.hero-section .carousel-indicators .active {
    background-color: #ff6b35;
    border-color: #ff6b35;
    opacity: 1;
    transform: scale(1.2);
}

/* Smooth Transitions */
.hero-section .carousel-item {
    transition: transform 0.6s ease-in-out;
}

/* Animation for content fade-in */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content .fade-in {
    animation: heroFadeIn 1s ease-out 0.5s both;
}

/* Ensure proper stacking context */
.hero-section {
    z-index: 1;
}

.hero-section .carousel-item.active .hero-slide {
    z-index: 1;
}

.hero-overlay {
    z-index: 2;
}

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

.hero-section .carousel-control-prev,
.hero-section .carousel-control-next,
.hero-section .carousel-indicators {
    z-index: 4;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-section {
        height: 75vh;
        min-height: 550px;
        max-height: 700px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
        min-height: 500px;
        max-height: 600px;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .hero-content {
        padding: 1rem 0.5rem;
    }

    .hero-content .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
        margin: 0.25rem;
    }

    .hero-section .carousel-control-prev,
    .hero-section .carousel-control-next {
        width: 8%;
    }

    .hero-section .carousel-indicators {
        bottom: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .gallery-item img {
        height: 200px;
    }

    .navbar {
        padding: 0.5rem 0;
    }

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

    /* Disable parallax on mobile for better performance */
    .hero-slide {
        background-attachment: scroll;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 65vh;
        min-height: 450px;
        max-height: 550px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .hero-content .btn {
        padding: 8px 20px;
        font-size: 0.85rem;
        display: block;
        width: 100%;
        max-width: 250px;
        margin: 0.5rem auto;
    }

    .hero-section .carousel-control-prev,
    .hero-section .carousel-control-next {
        width: 10%;
    }

    .section-padding {
        padding: 60px 0;
    }

    .btn-primary,
    .btn-outline-light {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}
