/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    padding-top: 76px; /* Navbar height compensation */
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a237e;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 60px;
    height: 60px;
    position: relative;
}

.double-bounce1, .double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #ffc107;
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    animation: sk-bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
    animation-delay: -1.0s;
}

@keyframes sk-bounce {
    0%, 100% { transform: scale(0); }
    50% { transform: scale(1); }
}

/* Navbar Styles */
.navbar {
    transition: all 0.3s ease;
    padding: 15px 0;
}

.navbar-scrolled {
    padding: 8px 0;
    background: rgba(26, 35, 126, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar .nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px !important;
    border-radius: 5px;
    position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #ffc107 !important;
    background: rgba(255,193,7,0.1);
}

.navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: #ffc107;
    border-radius: 3px;
}

.navbar .dropdown-menu {
    background: #1a237e;
    border: none;
    border-radius: 10px;
    padding: 10px;
    margin-top: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.navbar .dropdown-item {
    color: rgba(255,255,255,0.8);
    border-radius: 5px;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

.navbar .dropdown-item:hover {
    background: rgba(255,193,7,0.1);
    color: #ffc107;
}

.navbar .dropdown-divider {
    border-color: rgba(255,255,255,0.1);
}

/* Service Cards */
.service-card {
    transition: all 0.4s ease;
    border-radius: 15px;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
}

.service-icon {
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* Scroll to Top Button */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #ffc107;
    color: #1a237e;
    border: none;
    box-shadow: 0 5px 20px rgba(255,193,7,0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
}

#scrollTopBtn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255,193,7,0.5);
}

/* Animations */
.animate__fadeInUp {
    animation-duration: 0.8s;
}

/* Hero Stats */
.hero-stats .stat-item {
    transition: all 0.3s ease;
}

.hero-stats .stat-item:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 991.98px) {
    body {
        padding-top: 60px;
    }
    
    .navbar .nav-link.active::after {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 60px 0 !important;
    }
    
    .hero-section h1 {
        font-size: 2rem !important;
    }
    
    .hero-stats .stat-item h3 {
        font-size: 1.5rem !important;
    }
}