/* Custom CSS for animations and enhanced UI - Refined */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}
@keyframes slideInLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}
@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.zoom-in {
    animation: zoomIn 0.6s ease-out;
}
@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.accordion-open .accordion-title {
    border-bottom-color: #6b7280; /* Keep border visible when open */
}
.accordion-open .accordion-content {
    max-height: 500px; /* Increased max-height for content visibility */
    opacity: 1;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
.accordion-title {
    cursor: pointer;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb; /* Default border color */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-bottom-color 0.2s ease; /* Smooth transition */
}
.accordion-title:hover {
    background-color: #f7fafc;
}
.accordion-title i {
    transition: transform 0.3s ease-in-out; /* Smooth transition for the icon */
}
.accordion-open .accordion-title i {
    transform: rotate(180deg); /* Rotate icon when open */
}

/* Style for the sponsors section logos */
.sponsor-logo {
    filter: grayscale(100%); /* Start with grayscale */
    transition: filter 0.3s ease; /* Smooth transition for the filter */
}

.sponsor-logo:hover {
    filter: grayscale(0%); /* Remove grayscale on hover, showing full color */
}

/* Destinations Section */
.destinations {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f9f9f9 0%, #e8f4ff 100%);
    position: relative;
    overflow: hidden;
}

.destinations h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
}

.destinations p {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.destination-categories {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.destination-btn {
    padding: 0.8rem 1.8rem;
    border: 2px solid transparent;
    background: white;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    color: #2c3e50;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.destination-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #3498db, #e67e22);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.destination-btn:hover::before {
    opacity: 1;
}

.destination-btn span {
    position: relative;
    z-index: 2;
    transition: color 0.4s ease;
}

.destination-btn:hover span {
    color: white;
}

.destination-btn.active {
    background: linear-gradient(45deg, #3498db, #e67e22);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.destination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 1.5rem;
    perspective: 1000px;
}

/* Modern Destination Cards */
.destination-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.destination-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.destination-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.9);
}

.destination-card:hover img {
    transform: scale(1.15);
    filter: brightness(1);
}

.destination-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4), transparent);
    padding: 25px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.destination-card:hover .destination-info {
    transform: translateY(0);
}

.destination-info h3 {
    color: white;
    margin-bottom: 0.8rem;
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.destination-card:hover .destination-info h3 {
    transform: translateY(0);
    opacity: 1;
}

.destination-info p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.destination-card:hover .destination-info p {
    transform: translateY(0);
    opacity: 1;
}

.destination-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, #3498db, #e67e22);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.destination-card:hover .destination-link {
    transform: translateY(0);
    opacity: 1;
}

.destination-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #2980b9, #d35400);
}

/* Grid animation delays for staggered appearance */
.destination-card:nth-child(1) { animation-delay: 0.1s; }
.destination-card:nth-child(2) { animation-delay: 0.2s; }
.destination-card:nth-child(3) { animation-delay: 0.3s; }
.destination-card:nth-child(4) { animation-delay: 0.4s; }
.destination-card:nth-child(5) { animation-delay: 0.5s; }
.destination-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .destination-card {
        margin-bottom: 2rem;
    }
    
    .destination-card:hover {
        transform: translateY(-10px);
    }
    
    .destination-card img {
        height: 220px;
    }
    
    .destination-info {
        padding: 20px;
    }
    
    .destination-info h3 {
        font-size: 1.4rem;
    }
    
    .destination-info p {
        font-size: 1rem;
    }
}

/* Responsive Destinations */
@media (max-width: 768px) {
    .destination-categories {
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .destination-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .destination-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }

    .destination-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .destination-card:hover {
        transform: translateY(-10px);
    }

    .destination-info {
        padding: 20px;
    }

    .destination-info h3 {
        font-size: 1.4rem;
    }

    .destination-info p {
        font-size: 1rem;
    }
}

/* Modern Sponsor Cards */
.sponsor-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.sponsor-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.sponsor-logo {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
}

.sponsor-card:hover .sponsor-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.sponsor-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
    padding: 1.5rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
    text-align: center;
}

.sponsor-card:hover .sponsor-info {
    transform: translateY(0);
}

.sponsor-info h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sponsor-card:hover .sponsor-info h3 {
    transform: translateY(0);
    opacity: 1;
}

/* Grid animation delays for staggered appearance */
.sponsor-card:nth-child(1) { animation-delay: 0.1s; }
.sponsor-card:nth-child(2) { animation-delay: 0.2s; }
.sponsor-card:nth-child(3) { animation-delay: 0.3s; }
.sponsor-card:nth-child(4) { animation-delay: 0.4s; }
.sponsor-card:nth-child(5) { animation-delay: 0.5s; }
.sponsor-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive adjustments for sponsors */
@media (max-width: 768px) {
    .sponsor-card {
        min-height: 150px;
        padding: 1.5rem;
    }
    
    .sponsor-card:hover {
        transform: translateY(-5px);
    }
    
    .sponsor-logo {
        max-height: 100px;
    }
    
    .sponsor-info {
        padding: 1rem;
    }
    
    .sponsor-info h3 {
        font-size: 1rem;
    }
} 