/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #1e293b;
    --accent-color: #22d3ee;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, #6366f1, #3b82f6);
    --gradient-accent: linear-gradient(135deg, #22d3ee, #0ea5e9);
    --gradient-success: linear-gradient(135deg, #22c55e, #10b981);
    --gradient-warning: linear-gradient(135deg, #f59e0b, #f97316);
    --gradient-error: linear-gradient(135deg, #ef4444, #dc2626);
    --neon-blue: #4f46e5;
    --neon-pink: #db2777;
    --neon-green: #16a34a;
    --neon-yellow: #d97706;
    --pulse-speed: 2s;
    --float-speed: 4s;
    --box-width: 350px;
    --box-height: 250px;
    --button-height: 50px;
    --button-padding: 1.2rem 2.5rem;
    --button-radius: 35px;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --card-border-radius: 25px;
    --card-padding: 2.5rem;
    --card-blur: 15px;
    --card-border-width: 2px;
}

body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Brighten dark grey text */
:root {
    --bright-text: #ffffff;
    --semi-bright-text: #e2e8f0;
}

/* Apply brighter text colors */
.nav-link {
    color: var(--bright-text) !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Override dark grey text colors */
[style*="color: #6c757d"] {
    color: var(--semi-bright-text) !important;
}

/* Footer text colors */
footer {
    color: var(--bright-text) !important;
}

footer a {
    color: var(--bright-text) !important;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Background Glowing Elements */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { opacity: 0.5; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.5; transform: scale(0.95); }
}

.glowing-element {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    animation: float var(--float-speed) infinite ease-in-out;
}

.glowing-element::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    filter: blur(30px);
    animation: pulse var(--pulse-speed) infinite ease-in-out;
}

/* Add floating elements */
.floating-elements {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-elements .element {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: float var(--float-speed) infinite ease-in-out;
}

.floating-elements .element:nth-child(1) { top: 10%; left: 15%; background: var(--neon-blue); animation-delay: 0s; }
.floating-elements .element:nth-child(2) { top: 20%; left: 70%; background: var(--neon-pink); animation-delay: 1s; }
.floating-elements .element:nth-child(3) { top: 60%; left: 30%; background: var(--neon-green); animation-delay: 2s; }
.floating-elements .element:nth-child(4) { top: 80%; left: 85%; background: var(--neon-yellow); animation-delay: 3s; }



@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 50px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.carousel-indicators {
    bottom: 30px;
    z-index: 2;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    margin: 0 5px;
}

.carousel-indicators .active {
    background: var(--gradient-primary);
    transform: scale(1.2);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Remove navigation arrows */
.carousel-control-prev,
.carousel-control-next {
    display: none !important;
}



/* Responsive Design */
@media (max-width: 768px) {
    .feature-card {
        padding: 2rem;
    }
    

    
    .btn-primary,
    .btn-outline-primary {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
}

/* Standardized Buttons */
.btn, .btn-primary, .btn-outline-primary {
    height: var(--button-height);
    padding: var(--button-padding);
    border-radius: var(--button-radius);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary::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: 0.5s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-outline-primary {
    border: var(--card-border-width) solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transition: 0.5s;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
}

.btn-outline-primary:hover::before {
    left: 100%;
}

/* Social Media Buttons */
.btn-social {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--glass-bg);
    border: var(--card-border-width) solid var(--glass-border);
    transition: all 0.3s ease;
}

.btn-social:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow);
}

/* Navigation */
.navbar {
    background: var(--primary-color);
    padding: 1rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(99, 102, 241, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    font-weight: bold;
    color: white !important;
    font-size: 1.5rem;
}

.navbar-brand:hover {
    color: var(--gradient-primary) !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 0.75rem 1.25rem !important;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

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

.nav-link.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}

.navbar-toggler {
    border: none;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus {
    box-shadow: none;
    background: rgba(255, 255, 255, 0.2);
}

/* Login Button */
.nav-link.btn {
    background: var(--gradient-primary);
    color: white !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.nav-link.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
    background: var(--gradient-primary-hover);
}

/* Login Form */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(99, 102, 241, 0.1));
    background-size: 200% 200%;
    animation: gradientBG 15s ease infinite;
}

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

.login-card {
    background: white;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.login-header {
    margin-bottom: 3rem;
}

.login-header h1 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.75rem;
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.75rem;
    display: block;
}

.input-group {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.input-group-text {
    color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.1);
    border: none;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
}

.input-group-text:hover {
    color: var(--gradient-primary);
    background-color: rgba(99, 102, 241, 0.2);
}

.form-control {
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--gradient-primary));
    border: none;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gradient-primary), var(--primary-color));
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 100%;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--gradient-primary));
    color: white;
}

/* Form Check */
.form-check-input {
    width: 1.5em;
    height: 1.5em;
    margin-top: 0.4375em;
}

.form-check-label {
    color: #495057;
    font-size: 1rem;
    margin-left: 0.5rem;
}

/* Shake animation for invalid credentials */
.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Login Form Specific Styles */
.login-card .form-group {
    margin-bottom: 1.75rem;
}

.login-card .input-group {
    height: 50px;
}

.login-card .form-label {
    margin-bottom: 0.5rem;
}

.login-card .btn {
    height: 50px;
    margin-bottom: 1rem;
}

.login-card .btn:last-child {
    margin-bottom: 0;
}

.login-card .btn-primary {
    margin-bottom: 1rem;
}

.login-card .btn-outline-primary {
    margin-bottom: 0;
}

/* Dropdown Menu */
.dropdown-menu {
    background: var(--primary-color);
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    margin-top: 0.5rem;
}

.dropdown-item {
    color: white;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
    border-radius: 8px;
}

.dropdown-item:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateX(5px);
}

.dropdown-item.active {
    background: var(--gradient-primary);
    color: white;
}

/* Footer */
footer {
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0;
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-primary);
}

/* Standardized Cards */
.card, .feature-card, .login-card, .dashboard-card {
    width: var(--box-width);
    height: var(--box-height);
    background: var(--glass-bg);
    border: var(--card-border-width) solid var(--glass-border);
    border-radius: var(--card-border-radius);
    padding: var(--card-padding);
    backdrop-filter: blur(var(--card-blur));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.15;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--card-shadow);
    border-color: var(--primary-color);
}

.card:hover::before {
    opacity: 0.25;
}

.card-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-accent);
    opacity: 0.1;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .feature-card {
        padding: 2rem;
    }
    

    
    .btn-primary,
    .btn-outline-primary {
        width: 100%;
        margin: 0.5rem 0;
    }
}
