/* =====================================================
   MODERN FRONTEND ENHANCEMENTS
   Customer-facing website design improvements
   ===================================================== */

:root {
    --primary-color: #0ba96e;
    --secondary-color: #2891cd;
    --accent-color: #ff6e08;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #666;
    --border-color: #ddd;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* =====================================================
   HEADER & NAVIGATION ENHANCEMENTS
   ===================================================== */

.header-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.header-section.sticky-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    transition: var(--transition);
    transform: scale(1);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    /* color: var(--text-color) !important; */
	 color: #FFF !important;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    margin: 0 10px;
    padding: 8px 0 !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border: 2px solid var(--primary-color);
    padding: 5px 10px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='%230ba96e' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =====================================================
   HERO BANNER SECTION
   ===================================================== */

.banner-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    color: white;
}

.banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3e%3cg fill='none' fill-rule='evenodd'%3e%3cg fill='%23ffffff' fill-opacity='0.05'%3e%3cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e");
}

.banner-section .container {
    position: relative;
    z-index: 1;
}

.banner-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: slideInDown 0.8s ease;
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: slideInUp 0.8s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   CARD & BOX ENHANCEMENTS
   ===================================================== */

.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 20px;
    font-weight: 600;
}

.card-body {
    padding: 25px;
    background: #fff;
}

.card-title {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 18px;
}

.card-text {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* =====================================================
   BUTTON ENHANCEMENTS
   ===================================================== */

.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 12px 30px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #089e5f 100%);
    color: white;
}

.btn-primary:hover {
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2071b8 100%);
    color: white;
}

.btn-secondary:hover {
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

/* =====================================================
   SECTION STYLING
   ===================================================== */

section {
    padding: 60px 0;
}

section.light-bg {
    background: var(--light-color);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-title p {
    font-size: 16px;
    color: var(--text-light);
    margin-top: 25px;
}

/* =====================================================
   PORTFOLIO/NEWS GRID
   ===================================================== */

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item-content {
    padding: 20px;
}

.portfolio-item-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-item-title {
    color: var(--primary-color);
}

.portfolio-item-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* =====================================================
   ACCORDION STYLING
   ===================================================== */

.accordion .card {
    margin-bottom: 15px;
}

.accordion .card-header {
    padding: 0;
}

.accordion .card-header button {
    display: block;
    width: 100%;
    text-align: right;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2071b8 100%);
    color: white;
    padding: 18px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.accordion .card-header button:hover {
    background: linear-gradient(135deg, #247bca 0%, #1a5fa3 100%);
}

.accordion .card-header button.collapsed {
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    color: var(--dark-color);
}

.accordion .card-body {
    background: #fafafa;
    padding: 25px;
}

/* =====================================================
   TABLE ENHANCEMENTS
   ===================================================== */

.table {
    border-collapse: collapse;
}

.table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.table thead th {
    border: none;
    padding: 18px;
    font-weight: 600;
    text-align: right;
}

.table tbody td {
    padding: 15px 18px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: rgba(11, 169, 110, 0.05);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* =====================================================
   BADGE & LABEL STYLING
   ===================================================== */

.badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
}

.badge-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #089e5f 100%);
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #229954 100%);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #e67e22 100%);
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #c0392b 100%);
    color: white;
}

.badge-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #2980b9 100%);
    color: white;
}

/* =====================================================
   FOOTER ENHANCEMENTS
   ===================================================== */

footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #2a2a2a 100%);
    color: white;
    padding: 40px 0 0 0;
}

footer .footer-content {
    padding: 40px 0;
}

footer .footer-item h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

footer .footer-item h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

footer .footer-item ul {
    list-style: none;
    padding: 0;
}

footer .footer-item ul li {
    margin-bottom: 12px;
}

footer .footer-item ul li a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
}

footer .footer-item ul li a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.scrollToTop {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.scrollToTop:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* =====================================================
   FORM STYLING
   ===================================================== */

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(11, 169, 110, 0.25);
}

.form-group label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 5px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(11, 169, 110, 0.25);
}

/* =====================================================
   ALERT STYLING
   ===================================================== */

.alert {
    border: none;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    border-left-color: var(--success-color);
    color: var(--success-color);
}

.alert-warning {
    background: rgba(243, 156, 18, 0.1);
    border-left-color: var(--warning-color);
    color: var(--warning-color);
}

.alert-danger {
    background: rgba(231, 76, 60, 0.1);
    border-left-color: var(--danger-color);
    color: var(--danger-color);
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    border-left-color: var(--info-color);
    color: var(--info-color);
}

/* =====================================================
   CAROUSEL/SLIDER ENHANCEMENTS
   ===================================================== */

.owl-carousel .owl-item img {
    border-radius: 12px;
    transition: var(--transition);
}

.owl-carousel .owl-item:hover img {
    transform: scale(1.05);
}

.owl-nav button {
    background: var(--primary-color) !important;
    color: white !important;
    border-radius: 50%;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.owl-nav button:hover {
    background: var(--secondary-color) !important;
    transform: scale(1.1);
}

/* =====================================================
   PROGRESS BAR ENHANCEMENTS
   ===================================================== */

.progress {
    background: #e9ecef;
    border-radius: 8px;
    height: 8px;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
}

/* =====================================================
   PAGINATION ENHANCEMENTS
   ===================================================== */

.pagination .page-link {
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin: 0 5px;
    transition: var(--transition);
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* =====================================================
   ANIMATION UTILITIES
   ===================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease;
}

.slide-in-right {
    animation: slideInRight 0.6s ease;
}

.pulse {
    animation: pulse 2s infinite;
}

.bounce {
    animation: bounce 2s infinite;
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.text-accent {
    color: var(--accent-color);
}

.bg-primary {
    background: var(--primary-color);
    color: white;
}

.bg-secondary {
    background: var(--secondary-color);
    color: white;
}

.bg-light {
    background: var(--light-color);
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.rounded-lg {
    border-radius: 12px;
}

.rounded-xl {
    border-radius: 16px;
}

.transition {
    transition: var(--transition);
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 768px) {
    .header-section .container {
        max-width: 100%;
    }

    .banner-content h1 {
        font-size: 28px;
    }

    .banner-content p {
        font-size: 16px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .navbar-nav .nav-link {
        margin: 5px 0;
    }

    .card {
        margin-bottom: 20px;
    }

    section {
        padding: 40px 0;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .banner-content h1 {
        font-size: 22px;
    }

    .banner-content p {
        font-size: 14px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    section {
        padding: 30px 0;
    }

    .card-body {
        padding: 15px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    footer .footer-content {
        padding: 30px 0;
    }
}

/* =====================================================
   PRINT STYLES
   ===================================================== */

@media print {
    .header-section,
    footer,
    .btn,
    .scrollToTop {
        display: none;
    }

    section {
        padding: 20px 0;
    }
}
