:root {
    --bs-shadow: #abc5b0b5;
}

.profile-card-shadow {
    box-shadow: 0 0 10px 3px var(--bs-shadow);
}

.card-shadow {
    box-shadow: 0 0 9px 1px var(--bs-shadow);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.main-section {
    padding-top: 76px !important;
}

.dropdown-divider {
    border: 1px solid var(--bs-white);
}

.navbar-nav .nav-link.active {
    color: #8cc68c;
}

.header a {
    color: white;
    font-family: Arial, Helvetica, sans-serif !important;
}

.header a:hover {
    color: rgb(37, 252, 145) !important;
    padding-top: 7px !important;
}

.dropdown-item.active {
    background-color: rgb(25, 135, 84);
    opacity: 1;
}

.logo {
    width: 200px;
    height: 50px;
}

/* Enhanced Header Styles */
.enhanced-header {
    background: linear-gradient(135deg, #5cc795 0%, #198754 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    z-index: 1000;
    position: relative;
    overflow: hidden;
}

.enhanced-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.header.navbar {
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: 999;
}

.navbar-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateY(-100%);
    opacity: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.navbar-visible {
    transform: translateY(0);
    opacity: 1;
}

.min-h-100 {
    min-height: 100% !important;
}

.w-md-50 {
    width: 50% !important;
}

#tapToTop {
    transition: background-color 0.3s, color 0.3s;
    border-radius: 50%;
    /* square shape */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    background-color: white;
}

#tapToTop:hover {
    background-color: #198754;
    /* Bootstrap success green */
    color: #fff;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.footer {
    background-color: rgb(11, 101, 38, 0.46) !important;
}

.footer-btn {
    background-color: rgb(91, 142, 106) !important;
}

.hr-gradient {
    background: #429b2a !important;
    background: linear-gradient(90deg, rgba(66, 155, 42, 0.9) 0%, rgba(115, 199, 87, 0.73) 50%, rgba(101, 237, 83, 0.56) 100%) !important;
}

.about-image-banner img {
    /* object-fit: cover; */
    height: 200px;
}

@media (min-width: 768px) {
    .about-image-banner img {
        height: 200px;
    }

    .w-md-50 {
        width: 100% !important;
    }

    .min-md-vh-100 {
        height: calc(100vh - 76px);
    }
}

@media (min-width: 1200px) {
    .about-image-banner img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .profile-card-shadow {
        box-shadow: none;
    }
}



.btn-success {
    background: linear-gradient(135deg, #198754 0%, #5cc795 100%);
    color: #fff;
    border: none;
    transition: transform 0.3s ease;
}

.btn-success:hover {
    background: linear-gradient(135deg, #5cc795 0%, #198754 100%);
    color: #fff;
    transition: transform 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #003f9d 0%, #5998f6 100%);
    color: #fff;
    border: none;
    transition: transform 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5998f6 0%, #003f9d 100%);
    color: #fff;
    transition: transform 0.3s ease;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #d68e8e 100%);
    color: #fff;
    border: none;
    transition: transform 0.3s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #d68e8e 0%, #dc3545 100%);
    color: #fff;
    transition: transform 0.3s ease;
}


.contact-us-section input,
.contact-us-section textarea {
    border: 1px solid #ced4da;
    transition: border-color 0.3s ease;
}

.contact-us-section input:focus,
.contact-us-section textarea:focus {
    border-color: #198754;
    box-shadow: none;
}

.contact-us-section .form-control::placeholder {
    color: #999;
}

.middle-section {
    background: linear-gradient(to right, #dfece2, #fff) !important;
}

.error {
    color: red;
}

label.error {
    font-size: 10px;
    padding: 2px 6px;
    margin-top: 2px;
}

.alert {
    padding: 5px !important;
    margin-top: 3px !important;
    font-size: 10px !important;
}

.toast-progress {
    width: 100%;
    transition: width 1s linear;
}

#sessionToast:hover .toast-progress {
    animation-play-state: paused;
    transition: none !important;
}

.form-label {
    font-weight: 600 !important;
}

.form-control:focus {
    border-color: #198754 !important;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25) !important;
}

.bi.bi-person-circle:hover {
    color: rgb(37, 252, 145) !important;
}

.navbar .dropdown-menu .dropdown-item:hover {
    background-color: transparent !important;
}

.navbar .dropdown-toggle::after {
    display: none !important;
}

.header-profile-wrapper {
    width: 40px !important;
    height: 40px !important;
}

.table-responsive {
    white-space: nowrap;
    scrollbar-width: thin;
}

/* Enhanced Header Additional Styles */

/* Logo Enhancement */
.logo-container {
    position: relative;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-wrapper {
    position: relative;
    display: inline-block;
}

.logo {
    width: 200px;
    height: 50px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.logo-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.logo-container:hover .logo-glow {
    opacity: 1;
}

/* Custom Mobile Toggler */
.custom-toggler {
    border: none;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.custom-toggler:focus {
    box-shadow: none;
}

.custom-toggler:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.toggler-line {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.custom-toggler[aria-expanded="true"] .toggler-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.custom-toggler[aria-expanded="true"] .toggler-line:nth-child(2) {
    opacity: 0;
}

.custom-toggler[aria-expanded="true"] .toggler-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Enhanced Navigation Links */
.nav-links-enhanced {
    position: relative;
}

.nav-link-enhanced {
    position: relative;
    color: white !important;
    font-weight: 500;
    font-size: 16px;
    padding: 12px 20px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
    text-transform: capitalize;
}

.nav-link-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.nav-link-enhanced:hover::before,
.nav-link-enhanced.active::before {
    transform: scaleX(1);
}

.nav-link-enhanced:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
}

.nav-link-enhanced.active {
    color: #ffffff !important;
}

.nav-text {
    position: relative;
    z-index: 2;
}

.nav-underline {
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8cc68c, #5cc795);
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link-enhanced:hover .nav-underline,
.nav-link-enhanced.active .nav-underline {
    width: 80%;
}

/* Enhanced Login Button */
.login-section {
    margin-left: 20px;
}

.login-btn {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white !important;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.login-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: white !important;
}

.login-btn.active {
    background: linear-gradient(135deg, #8cc68c, #5cc795);
    border-color: #8cc68c;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.login-btn:hover .btn-shine {
    left: 100%;
}

/* Header Background Effects */
.header-bg-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

/* Floating Particles */
.header-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.particle:nth-child(2) {
    left: 30%;
    animation-delay: 1s;
    animation-duration: 8s;
}

.particle:nth-child(3) {
    left: 50%;
    animation-delay: 2s;
    animation-duration: 7s;
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: 3s;
    animation-duration: 9s;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: 4s;
    animation-duration: 5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
    90% {
        opacity: 1;
    }
}

/* Responsive Enhancements */
@media (max-width: 991.98px) {
    .nav-links-enhanced {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 12px;
        padding: 15px;
        margin-top: 15px;
        backdrop-filter: blur(10px);
    }
    
    .nav-link-enhanced {
        margin: 5px 0;
        border-radius: 8px;
    }
    
    .login-section {
        margin-left: 0;
        margin-top: 15px;
        text-align: center;
    }
    
    .login-btn {
        display: inline-block;
        width: auto;
    }
}

@media (max-width: 576px) {
    .logo {
        width: 160px;
        height: 40px;
    }
    
    .enhanced-header {
        padding: 8px 0;
    }
}

/* Additional Header Enhancements */
.enhanced-header {
    animation: headerSlideIn 0.8s ease-out;
}

@keyframes headerSlideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Scroll Effect */
.header-scrolled {
    background: linear-gradient(135deg, rgba(92, 199, 149, 0.95) 0%, rgba(25, 135, 84, 0.95) 100%);
    backdrop-filter: blur(15px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Enhanced Active State */
.nav-link-enhanced.active {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}

/* Improved Hover Effects */
.enhanced-header:hover .header-particles .particle {
    animation-duration: 3s;
}

/* Logo Pulse Effect */
@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.logo-container:hover .logo {
    animation: logoPulse 2s ease-in-out infinite;
}

/* Navigation Link Stagger Animation */
.nav-links-enhanced .nav-item {
    animation: navItemSlideIn 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.nav-links-enhanced .nav-item:nth-child(1) { animation-delay: 0.1s; }
.nav-links-enhanced .nav-item:nth-child(2) { animation-delay: 0.2s; }
.nav-links-enhanced .nav-item:nth-child(3) { animation-delay: 0.3s; }
.nav-links-enhanced .nav-item:nth-child(4) { animation-delay: 0.4s; }
.nav-links-enhanced .nav-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes navItemSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Button Animation */
.login-btn {
    animation: loginBtnSlideIn 0.6s ease-out 0.6s forwards;
    opacity: 0;
    transform: translateX(20px);
}

@keyframes loginBtnSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced Gradient Border Effect */
.enhanced-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(140, 198, 140, 0.8) 25%, 
        rgba(92, 199, 149, 1) 50%, 
        rgba(140, 198, 140, 0.8) 75%, 
        transparent 100%);
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scaleX(0.8);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}