/* Custom fixes for UI issues */

/* Remove the red line but keep the maple leaf */
.maple-leaf-divider {
    background-color: transparent !important;
}

.maple-leaf-divider::before {
    width: 30px !important;
    height: 30px !important;
    top: 0 !important;
}

/* Remove the gray horizontal bar under the hero image */
.hero::after {
    display: none !important;
}

/* Profile image styling */
.profile-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--canadian-red);
}

.image-caption {
    font-size: 0.85rem;
    color: var(--medium-gray);
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

/* Update hero background image */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/bridget-action-with-ball.jpeg') !important;
    background-size: 100% auto !important; /* Full width to eliminate black bars */
    background-position: 25% 30% !important; /* Maintain position focused on her head */
    background-repeat: no-repeat !important;
    background-color: #000 !important;
}

/* Improve hero buttons - both with consistent white borders */
.hero .btn-primary {
    background-color: var(--canadian-red) !important;
    color: white !important;
    border: 2px solid white !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3) !important;
}

.hero .btn-secondary {
    background-color: rgba(192, 0, 0, 0.8) !important; /* Slightly darker, semi-transparent red */
    color: white !important;
    border: 2px solid white !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3) !important;
}

.hero .btn-primary:hover, .hero .btn-secondary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4) !important;
}

/* Gallery image styling */
.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-medium);
    border-radius: var(--border-radius-md);
}

/* Reset the custom styling for specific images */
.gallery-item:nth-child(4) img, 
.gallery-item:nth-child(5) img {
    object-position: center center; /* Reset to default center positioning */
    transform: none; /* Remove any scaling */
}

/* Apply hover effect to all gallery images */
.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

/* About Me section animations */
/* Text content animations */
.about-text h3, .about-text p {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-text.animated h3, .about-text.animated p {
    opacity: 1;
    transform: translateY(0);
}

.about-text h3:nth-child(1), .about-text p:nth-child(2) {
    transition-delay: 0.2s;
}

.about-text h3:nth-child(3), .about-text p:nth-child(4) {
    transition-delay: 0.4s;
}

/* Stats animations - entrance effects before counting starts */
.stat-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stats.animated .stat-item {
    opacity: 1;
    transform: translateY(0);
}

.stats.animated .stat-item:nth-child(1) {
    transition-delay: 0.1s;
}

.stats.animated .stat-item:nth-child(2) {
    transition-delay: 0.3s;
}

.stats.animated .stat-item:nth-child(3) {
    transition-delay: 0.5s;
}

/* Profile image animation */
.about-image {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-image.animated {
    opacity: 1;
    transform: scale(1);
}

/* Generic fade-in animation for all section headers */
.section-header {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-header.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery animations */
.gallery-tabs {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0.2s;
}

.gallery-tabs.animated {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery-grid.animated .gallery-item {
    opacity: 1;
    transform: translateY(0);
}

.gallery-grid.animated .gallery-item:nth-child(1) {
    transition-delay: 0.1s;
}

.gallery-grid.animated .gallery-item:nth-child(2) {
    transition-delay: 0.2s;
}

.gallery-grid.animated .gallery-item:nth-child(3) {
    transition-delay: 0.3s;
}

.gallery-grid.animated .gallery-item:nth-child(4) {
    transition-delay: 0.4s;
}

.gallery-grid.animated .gallery-item:nth-child(5) {
    transition-delay: 0.5s;
}

.gallery-grid.animated .gallery-item:nth-child(6) {
    transition-delay: 0.6s;
}

/* Achievements animations */
.achievement-item {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.achievements-list.animated .achievement-item {
    opacity: 1;
    transform: translateX(0);
}

/* Restore achievement hover effect */
.achievement-item:hover {
    transform: translateY(-5px) !important;
    transition: transform 0.2s ease !important;
}

.achievements-list.animated .achievement-item:nth-child(1) {
    transition-delay: 0.1s;
}

.achievements-list.animated .achievement-item:nth-child(2) {
    transition-delay: 0.3s;
}

.achievements-list.animated .achievement-item:nth-child(3) {
    transition-delay: 0.5s;
}

.testimonial-slider {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: 0.4s;
}

.testimonial-slider.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Schedule animations */
.schedule-tabs {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0.2s;
}

.schedule-tabs.animated {
    opacity: 1;
    transform: translateY(0);
}

.match-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.match-list.animated .match-item {
    opacity: 1;
    transform: translateY(0);
}

/* Restore match item hover effect */
.match-item:hover {
    transform: translateY(-5px) !important;
    transition: transform 0.2s ease !important;
}

.match-list.animated .match-item:nth-child(1) {
    transition-delay: 0.2s;
}

.match-list.animated .match-item:nth-child(2) {
    transition-delay: 0.4s;
}

/* Contact animations */
.contact-info {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.contact-info.animated {
    opacity: 1;
    transform: translateX(0);
}

.contact-form {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: 0.2s;
}

.contact-form.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Footer animation */
footer {
    opacity: 0;
    transition: opacity 1s ease;
}

footer.animated {
    opacity: 1;
}

/* Image optimization styles */
img {
    transition: opacity 0.3s ease;
}

img.lazy {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

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

/* Optimized background image loading */
.hero.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

/* Responsive image optimizations */
@media (max-width: 768px) {
    /* Hide any overflow on image containers */
    .gallery-item, .about-image {
        overflow: hidden;
    }
    
    /* Optimize gallery images for mobile */
    .gallery-image {
        height: auto;
        max-height: 250px;
    }
} 