/* Indicarse Frontend Modern Styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navbar improvements */
.navbar {
    transition: all 0.3s ease;
    z-index: 1050;
}

.navbar-brand {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 20px;
    margin: 0 5px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Hero slider enhancements */
.hero-slide {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

/* Text animations */
.text-warning {
    background: linear-gradient(45deg, #ffc107, #ffb300);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Alliance cards improvements */
.alliance-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.alliance-icon i {
    background: linear-gradient(45deg, var(--bs-primary), var(--bs-info));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Logo grid improvements */
.logo-item {
    position: relative;
    overflow: hidden;
}

.logo-placeholder {
    position: relative;
    overflow: hidden;
}

.logo-placeholder::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: left 0.5s;
}

.logo-item:hover .logo-placeholder::before {
    left: 100%;
}

/* Scroll animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Loading animation for logos */
.logo-placeholder {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

/* Swiper customizations */
.swiper-pagination {
    bottom: 30px !important;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    margin: 0 8px;
}

.swiper-button-next,
.swiper-button-prev {
    width: 50px;
    height: 50px;
    margin-top: -25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

/* Countries Section Styles */
.countries-grid .country-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    cursor: pointer;
}

.countries-grid .country-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    border-color: var(--bs-primary);
}

.country-flag {
    position: relative;
    overflow: hidden;
}

.flag-placeholder {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.flag-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.country-card:hover .flag-placeholder::before {
    left: 100%;
}

.country-card:hover .flag-placeholder {
    transform: scale(1.05);
}

.stats-card {
    background: linear-gradient(135deg, var(--bs-primary), #6f42c1) !important;
    border: none;
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.3);
}

/* Country Logo Styles */
.country-logo-container {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.country-logo {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.country-card:hover .country-logo {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.country-card:hover .country-logo-container {
    transform: scale(1.05);
}

/* Responsive improvements */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.9);
        border-radius: 10px;
        margin-top: 10px;
        padding: 20px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .nav-link {
        margin: 5px 0;
        padding: 10px 15px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 60vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .alliance-card {
        margin-bottom: 2rem;
    }
    
    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .countries-grid .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    .stats-card .row > div {
        margin-bottom: 1rem;
    }
    
    .stats-card .row > div:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .alliance-card {
        margin-bottom: 1.5rem;
    }
    
    .logo-placeholder {
        height: 60px !important;
    }
    
    .alliance-icon i {
        font-size: 2rem !important;
    }
}

/* Utility classes */
.glass-effect {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-text {
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}
