/* Custom styles for location buttons */
:root {
    --primary-color: #7a5af8;
    --primary-light: rgba(122, 90, 248, 0.1);
    --primary-hover: #6242e4;
    --secondary-color: #6c757d;
    --success-color: #1cc88a;
    --white-color: #ffffff;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
    --shadow-sm: 0 .125rem .25rem rgba(0, 0, 0, .075);
    --shadow-md: 0 .5rem 1rem rgba(0, 0, 0, .15);
    --transition-normal: all 0.3s ease;
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    
    /* Gradient colors */
    --gradient-blue: linear-gradient(135deg, #00c6ff, #0072ff);
    --gradient-green: linear-gradient(135deg, #42e695, #3bb2b8);
    --gradient-purple: linear-gradient(135deg, #b721ff, #21d4fd);
    --gradient-orange: linear-gradient(135deg, #f46b45, #eea849);
    --gradient-pink: linear-gradient(135deg, #ff9a9e, #fad0c4);
}

/* Location Button Styles */
.location-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.2rem;
    margin-bottom: 0.75rem;
    background-color: var(--white-color);
    border: 2px solid var(--primary-light);
    border-radius: var(--border-radius-md);
    color: var(--dark-color);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
    width: 100%;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(30px);
    animation: slideInButton 0.5s ease forwards;
}

.location-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-normal);
    z-index: -1;
}

.location-btn:hover {
    transform: translateY(-5px);
    border-color: rgb(13, 110, 253) !important;
    color: rgb(13, 110, 253) !important;
    box-shadow: rgb(13, 110, 253) !important;
}

.location-btn:hover::before {
    left: 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.location-btn .btn-icon {
    margin-right: 8px;
    transition: var(--transition-normal);
    opacity: 1;
}

 
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    40% {
        transform: translateY(-2px) rotate(3deg);
    }
    60% {
        transform: translateY(-1px) rotate(-3deg);
    }
}

.location-btn .location-name {
    flex-grow: 1;
    text-align: left;
}

/* Card styles with dynamic gradients */
.state-card {
    border: none;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-normal);
    margin-bottom: 2rem;
    animation: fadeIn 0.8s ease-in-out;
}

.state-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.state-card:nth-child(5n+1) .card-header {
    background: rgb(13, 110, 253);

}

.state-card:nth-child(5n+2) .card-header {
    background: var(--gradient-green);
}

.state-card:nth-child(5n+3) .card-header {
    background: var(--gradient-purple);
}

.state-card:nth-child(5n+4) .card-header {
    background: var(--gradient-orange);
}

.state-card:nth-child(5n+5) .card-header {
    background: var(--gradient-pink);
}

.state-card .card-header {
    border: none;
    padding: 1.2rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.state-card .card-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: skewX(-25deg) translateX(90px);
    transition: var(--transition-normal);
}

.state-card:hover .card-header::after {
    transform: skewX(-25deg) translateX(-30px);
}

.state-card .card-body {
    padding: 1.5rem;
    background-color: var(--white-color);
}

/* Animation for the buttons to slide in */
@keyframes slideInButton {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay the animations based on the order */
.location-grid a:nth-child(1) { animation-delay: 0.1s; }
.location-grid a:nth-child(2) { animation-delay: 0.2s; }
.location-grid a:nth-child(3) { animation-delay: 0.3s; }
.location-grid a:nth-child(4) { animation-delay: 0.4s; }
.location-grid a:nth-child(5) { animation-delay: 0.5s; }
.location-grid a:nth-child(6) { animation-delay: 0.6s; }
.location-grid a:nth-child(7) { animation-delay: 0.7s; }
.location-grid a:nth-child(8) { animation-delay: 0.8s; }
.location-grid a:nth-child(9) { animation-delay: 0.9s; }
.location-grid a:nth-child(10) { animation-delay: 1.0s; }
.location-grid a:nth-child(11) { animation-delay: 1.1s; }
.location-grid a:nth-child(12) { animation-delay: 1.2s; }

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

.region-heading {
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.6s ease-in-out;
}

.region-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: rgba(13, 110, 253, 1) !important;
    border-radius: var(--border-radius-sm);
    animation: expandWidth 1s ease-in-out;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 50px;
    }
}

/* Fun and professional gimmicks */
/* Pulsing beacon effect for section titles */
/* .region-heading::before {
    content: '📍';
    position: absolute;
    left: -25px;
    top: 2px;
    font-size: 1.2em;
    animation: pulse 2s infinite;
} */

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}



/* Floating cursor effect */
.cursor-float {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(122, 90, 248, 0.1);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease;
    z-index: 9999;
}

/* Back to top button */
.back-to-top-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #6c757d;
    color: var(--white-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 99;
    box-shadow: var(--shadow-md);
}

.back-to-top-btn.visible {
    opacity: 1;
}

.back-to-top-btn:hover {
    background-color: #5a6268;
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .location-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .location-btn {
        padding: 0.6rem 1rem;
    }
}