/* Homepage Specific Styles */

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0066cc 0%, #004080 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
}

.loading-screen .spinner-border {
    width: 4rem;
    height: 4rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png') repeat;
    opacity: 0.05;
    z-index: 1;
}

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

/* Feature Icons */
.feature-icon {
    transition: transform 0.3s ease;
}

.feature-icon:hover {
    transform: rotate(15deg) scale(1.1);
}

/* Card Styles */
.card {
    border: none;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: #0066cc;
}

/* Stats Counter Animation */
.stat-number {
    position: relative;
    display: inline-block;
}

.stat-number:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffcc00;
    transition: width 0.5s ease;
}

.stat-number:hover:after {
    width: 100%;
}

/* Gradient Border Animation */
.gradient-border {
    position: relative;
    background: white;
    border-radius: 10px;
    padding: 30px;
}

.gradient-border:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #0066cc, #00cc66, #ffcc00, #ff3366);
    border-radius: 12px;
    z-index: -1;
    animation: gradient 3s ease infinite;
    background-size: 400% 400%;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Animation Delay Classes */
.floating-delay-1 { animation-delay: 0.2s !important; }
.floating-delay-2 { animation-delay: 0.4s !important; }
.floating-delay-3 { animation-delay: 0.6s !important; }
.floating-delay-4 { animation-delay: 0.8s !important; }

/* Typing Animation */
.typing-container {
    display: inline-block;
}

/* Button Hover Effects */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-primary:hover:after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(40, 40);
        opacity: 0;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #0066cc, #004080);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #004080, #0066cc);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding-top: 80px !important;
        padding-bottom: 80px !important;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}
