/* Navbar Styles */
#main-navbar {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#main-navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #667eea !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-nav .nav-link.active {
    color: #667eea !important;
    font-weight: 600;
}

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

/* Mobile Menu Styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
        border-radius: 10px;
        margin-top: 10px;
        padding: 20px;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-item {
        margin: 5px 0;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px;
        border-radius: 5px;
        transition: all 0.3s ease;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: #f8f9fa;
        color: #667eea !important;
    }
}

/* Footer Styles */
.footer a:hover {
    color: #667eea !important;
    transition: color 0.3s ease;
}

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

/* Hero section adjustment for fixed navbar */
@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 100px !important;
    }
}

/* Hero Section Text Animations */
.hero-content {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-title {
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-subtitle {
    animation: fadeInUp 1s ease-out 0.7s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.9s both;
}

.hero-stats {
    animation: fadeInUp 1s ease-out 1.1s both;
}

/* Text Animation */
.hero-title span {
    display: inline-block;
    animation: slideInFromLeft 0.8s ease-out forwards;
    opacity: 0;
}

.hero-title span:nth-child(1) { animation-delay: 0.1s; }
.hero-title span:nth-child(2) { animation-delay: 0.2s; }
.hero-title span:nth-child(3) { animation-delay: 0.3s; }
.hero-title span:nth-child(4) { animation-delay: 0.4s; }
.hero-title span:nth-child(5) { animation-delay: 0.5s; }

/* Button Hover Effects */
.hero-buttons .btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hero-buttons .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: left 0.5s ease;
}

.hero-buttons .btn:hover::before {
    left: 100%;
    color: #667eea !important;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: #667eea !important;
}

/* Stats Counter Animation */
.stat-number {
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: countUp 2s ease-out forwards;
}

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

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

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
