/* Custom Styles for Goan Tours Website */

:root {
    --goa-teal: #0d9488;
    --goa-orange: #f59e0b;
    --goa-blue: #06b6d4;
}

/* Hero Gradient Overlay */
.hero-gradient {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.7));
}

/* Swiper Customization */
.swiper-slide-active h1 { 
    animation: fadeInUp 1s both 0.3s; 
}

.swiper-slide-active p { 
    animation: fadeInUp 1s both 0.5s; 
}

.swiper-slide-active .btn-group { 
    animation: fadeInUp 1s both 0.7s; 
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.swiper-button-next, 
.swiper-button-prev {
    color: white !important;
    background: rgba(255,255,255,0.1);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.swiper-button-next:after, 
.swiper-button-prev:after { 
    font-size: 20px !important; 
    font-weight: bold; 
}

.swiper-pagination-bullet-active { 
    background: var(--goa-teal) !important; 
}

/* Video Gallery Hover Effect */
.video-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.video-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-card:hover::before {
    opacity: 1;
}

.video-card .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-size: 4rem;
    color: white;
    opacity: 0.8;
    transition: all 0.3s;
}

.video-card:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

/* Image Gallery Lightbox */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
}

.gallery-item img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Package Cards */
.package-card {
    transition: all 0.3s ease;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.package-card img {
    width: 100%;
    height: 24rem; /* Increased to 24rem for better fit */
    object-fit: contain;
    object-position: center;
    background: #ffffff;
}

/* Activity Cards */
.activity-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
}

.activity-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent 60%);
    z-index: 1;
}

.activity-card .content {
    position: relative;
    z-index: 2;
}

/* Booking Form */
.form-input {
    transition: all 0.3s;
}

.form-input:focus {
    border-color: var(--goa-teal);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.testimonial-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

/* Stats Counter Animation */
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-number {
    animation: countUp 0.8s ease-out;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Video */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.video-responsive video,
.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--goa-teal);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0a7169;
}

/* Pulse Animation for CTA */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}
