/* Loading Spinner Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.spinner-container {
    text-align: center;
    color: white;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Progress Bar Animations */
.animated-progress {
    transition: width 1.5s ease-in-out;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.animated-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.progress-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.progress-item:nth-child(1) { animation-delay: 0.1s; }
.progress-item:nth-child(2) { animation-delay: 0.2s; }
.progress-item:nth-child(3) { animation-delay: 0.3s; }
.progress-item:nth-child(4) { animation-delay: 0.4s; }
.progress-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Styles */
.btn-client {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-client:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    color: white;
}

.btn-student {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

.btn-student:hover {
    background: linear-gradient(135deg, #ed64a6 0%, #f093fb 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.6);
    color: white;
}

/* Enhanced Category Cards */
.category-card {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.category-icon {
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

/* Expert Cards Animation */
.expert-card {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.expert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.expert-image {
    overflow: hidden;
    border-radius: 15px;
}

.expert-image img {
    transition: transform 0.3s ease;
}

.expert-card:hover .expert-image img {
    transform: scale(1.05);
}

/* Comment Cards Animation */
.comment-card {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.comment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Registration Cards Enhanced */
.registration-card {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.registration-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-icon {
    transition: all 0.3s ease;
}

.registration-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Navbar Animation */
.navbar {
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Footer Animation */
.footer-links li {
    transition: all 0.3s ease;
}

.footer-links li:hover {
    transform: translateX(5px);
}

.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
}

/* Office Locations Styles */
.office-locations {
    margin-top: 20px;
}

.office-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
}

.office-item {
    display: flex;
    align-items: flex-start;
    /*margin-bottom: 15px;*/
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.office-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.office-item i {
    color: #fff;
    font-size: 1.2rem;
    margin-right: 12px;
    margin-top: 2px;
    min-width: 20px;
}

.office-details {
    flex: 1;
}

.office-details strong {
    color: #fff;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.office-details span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    line-height: 1.4;
}

.office-item.coming-soon i {
    color: rgba(255, 255, 255, 0.5);
}

.office-item.coming-soon .office-details strong {
    color: rgba(255, 255, 255, 0.7);
}

.coming-soon-text {
    color: #ffd700 !important;
    font-weight: 600;
    font-style: italic;
    animation: comingSoonPulse 2s ease-in-out infinite;
}

@keyframes comingSoonPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Responsive Animations */
@media (max-width: 768px) {
    .spinner {
        width: 50px;
        height: 50px;
    }
    
    .loading-text {
        font-size: 1rem;
    }
    
    .btn-client,
    .btn-student {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .office-item {
        padding: 10px;
    }
    
    .office-details strong {
        font-size: 0.9rem;
    }
    
    .office-details span {
        font-size: 0.8rem;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Page fade in animation */
body {
    animation: pageLoad 0.5s ease-in;
}

@keyframes pageLoad {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}