/* Custom styles for NCR Birdwatching website */

/* Modern Hero Section */
.hero-modern {
    min-height: 70vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-content {
    min-height: 70vh;
}

.hero-text {
    max-width: 600px;
    margin: 0 auto;
}

.text-gradient {
    background: linear-gradient(135deg, #0d6efd 0%, #6c757d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.stats-row h3 {
    font-size: 2.5rem;
    font-weight: 800;
}

.hero-buttons .btn {
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Image Mosaic */
.image-mosaic {
    height: 70vh;
    min-height: 500px;
    padding: 2rem;
    width: 100%;
    overflow: hidden;
}

.mosaic-grid {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 0.75rem;
    height: 100%;
    width: 100%;
    min-height: 400px;
}

.mosaic-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    min-height: 120px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mosaic-item:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
}

.mosaic-item:nth-child(1) {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
}

.mosaic-item:nth-child(2) {
    grid-row: 1 / 3;
    grid-column: 2 / 3;
}

.mosaic-item:nth-child(3) {
    grid-row: 1 / 2;
    grid-column: 3 / 4;
}

.mosaic-item:nth-child(4) {
    grid-row: 2 / 3;
    grid-column: 3 / 4;
}

.mosaic-item:nth-child(5) {
    grid-row: 3 / 4;
    grid-column: 1 / 2;
}

.mosaic-item:nth-child(6) {
    grid-row: 3 / 4;
    grid-column: 2 / 4;
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.mosaic-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

/* Service Cards */
.service-card {
    background: white;
    border-radius: 20px;
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

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

.carousel-caption {
    position: static;
    height: 100%;
    padding: 0;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    background-color: transparent;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 4px;
    background-color: rgba(255,255,255,0.5);
    border: 2px solid rgba(255,255,255,0.8);
}

.carousel-indicators .active {
    background-color: #fff;
    transform: scale(1.2);
}

.text-shadow {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
}

.btn-lg {
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #0d6efd !important;
}

.navbar-nav .nav-link.active {
    color: #0d6efd !important;
    font-weight: 600;
}

.navbar-nav .btn {
    border-radius: 25px;
    font-weight: 600;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Contact Info */
.contact-info .bi {
    width: 40px;
    text-align: center;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.7));
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-overlay h6 {
    color: white;
    margin: 0;
    font-weight: 600;
}

/* Form styling */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Tour Options */
.tour-option {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.tour-option:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.tour-showcase {
    position: relative;
}

.tour-badge {
    z-index: 10;
}

.tour-contact {
    z-index: 10;
}

/* Gallery Preview */
.gallery-preview-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    transition: all 0.3s ease;
}

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

.gallery-preview-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Testimonial Cards */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
}

.avatar {
    flex-shrink: 0;
}

/* Medium screens (tablets) */
@media (max-width: 992px) and (min-width: 769px) {
    .mosaic-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .mosaic-item:nth-child(1) {
        grid-row: 1 / 2;
        grid-column: 1 / 3;
    }

    .mosaic-item:nth-child(2) {
        grid-row: 2 / 3;
        grid-column: 1 / 2;
    }

    .mosaic-item:nth-child(3) {
        grid-row: 2 / 3;
        grid-column: 2 / 3;
    }

    .mosaic-item:nth-child(4) {
        grid-row: 3 / 4;
        grid-column: 1 / 2;
    }

    .mosaic-item:nth-child(5) {
        grid-row: 3 / 4;
        grid-column: 2 / 3;
    }

    .mosaic-item:nth-child(6) {
        display: none;
    }
}

/* Mobile navbar brand responsive design - Force line breaks */
@media (max-width: 992px) {
    .navbar-brand-mobile {
        display: block !important;
        line-height: 1.3 !important;
        font-size: 1rem !important;
        text-align: left !important;
        max-width: 300px !important;
        padding: 0.25rem 0 !important;
        font-weight: 600 !important;
    }
    
    .navbar-brand-mobile .brand-line-1 {
        display: block !important;
        font-weight: 700 !important;
        margin-bottom: 0.1rem !important;
    }
    
    .navbar-brand-mobile .brand-line-2 {
        display: block !important;
        font-size: 0.9rem !important;
        font-weight: 500 !important;
        opacity: 0.95 !important;
    }
    
    .mobile-break {
        display: block !important;
    }
}

/* Hide line break on larger screens */
@media (min-width: 993px) {
    .mobile-break {
        display: none !important;
    }
    
    .navbar-brand-mobile .brand-line-1,
    .navbar-brand-mobile .brand-line-2 {
        display: inline !important;
    }
    
    .navbar-brand-mobile .brand-line-2::before {
        content: " - ";
    }
}

/* Small screens (mobile) */
@media (max-width: 768px) {
    .hero-modern {
        min-height: 60vh;
    }
    
    .hero-content {
        min-height: auto;
        padding: 2rem 0;
    }
    
    /* Even more aggressive mobile navbar styling */
    .navbar-brand-mobile {
        max-width: 220px !important;
        font-size: 0.9rem !important;
    }
    
    .navbar-brand-mobile .brand-line:last-child {
        font-size: 0.8rem !important;
    }
    
    .image-mosaic {
        height: 50vh;
        min-height: 400px;
        padding: 1rem;
    }
    
    .mosaic-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .mosaic-item:nth-child(1) {
        grid-row: 1 / 2;
        grid-column: 1 / 3;
    }

    .mosaic-item:nth-child(2) {
        grid-row: 2 / 3;
        grid-column: 1 / 2;
    }

    .mosaic-item:nth-child(3) {
        grid-row: 2 / 3;
        grid-column: 2 / 3;
    }

    .mosaic-item:nth-child(4) {
        grid-row: 3 / 4;
        grid-column: 1 / 2;
    }

    .mosaic-item:nth-child(5) {
        grid-row: 3 / 4;
        grid-column: 2 / 3;
    }

    .mosaic-item:nth-child(6) {
        display: none;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-6 {
        font-size: 2rem;
    }
    
    .stats-row h3 {
        font-size: 2rem;
    }
}

/* Custom button styles */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    border-radius: 25px;
    font-weight: 600;
    padding: 0.75rem 2rem;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffffff !important;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading spinner */
.loading {
    display: none;
    text-align: center;
    padding: 2rem;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Success message */
.success-message {
    display: none;
    text-align: center;
    padding: 2rem;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    color: #155724;
}

/* Tour package cards */
.tour-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    overflow: hidden;
}

.tour-card .card-body {
    padding: 2rem;
}

.tour-card h5 {
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Location cards */
.location-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

/* Statistics section */
.stats-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item small {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Testimonials */
.testimonial-card {
    background: #f8f9fa;
    border-radius: 15px;
    border: none;
}

.testimonial-card .card-body {
    padding: 2rem;
}

.rating {
    color: #ffc107;
}

/* Contact form */
.contact-form {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 2rem;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
    animation: lightboxFadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
    animation: lightboxZoomIn 0.4s ease;
}

.lightbox-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 90vw;
    max-height: 85vh;
    cursor: grab;
    transition: transform 0.3s ease;
}

.lightbox-image:active {
    cursor: grabbing;
}

.lightbox-image.zoomed {
    transform: scale(2);
    cursor: zoom-out;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.lightbox-counter {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Gallery item hover effect for lightbox */
.gallery-item {
    cursor: pointer;
    position: relative;
}

.gallery-item::before {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
    pointer-events: none;
}

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

/* Animations */
@keyframes lightboxFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes lightboxZoomIn {
    from {
        transform: scale(0.5) rotate(-5deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95vw;
        max-height: 85vh;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-caption {
        font-size: 1rem;
        padding: 15px;
    }
}

/* Animation for scroll indicator */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Horizontal Scrolling Images Animation */
@keyframes scrollImages {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-3200px); /* 8 images * 400px each */
    }
}

.image-scroll-container {
    will-change: transform;
}

.image-scroll-container:hover {
    animation-play-state: paused;
}

/* Hover effects for modern buttons */
a[href^="tel:"]:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 35px rgba(255,107,107,0.6) !important;
}

a[href*="gallery"]:hover,
a[href*="tours"]:hover {
    background: rgba(255,255,255,0.25) !important;
    transform: translateY(-2px) !important;
}

/* Modern glassmorphism effects */
.glass-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
}

/* Utility classes */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}