/* Enhanced Mobile Responsive CSS for BA Bangunan */

/* ===== MOBILE FLOATING ACTION BUTTONS ===== */
.mobile-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.fab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.fab-btn:hover::before,
.fab-btn:active::before {
    transform: scale(1);
}

.fab-phone {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    animation: pulse-phone 2s infinite;
}

.fab-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    animation: pulse-whatsapp 3s infinite;
}

@keyframes pulse-phone {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 12px 30px rgba(0,123,255,0.4); }
}

@keyframes pulse-whatsapp {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 12px 30px rgba(37,211,102,0.4); }
}

.fab-btn:hover {
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.fab-btn:active {
    transform: translateY(-1px);
}

/* ===== ENHANCED BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 100px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(40,167,69,0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    backdrop-filter: blur(10px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(40,167,69,0.4);
    color: white;
}

/* ===== MOBILE RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 768px) {
    .mobile-fab {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }
    
    .fab-btn {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 80px;
        width: 45px;
        height: 45px;
    }
}

/* ===== ENHANCED MOBILE CAROUSEL ===== */
.mobile-indicators {
    bottom: 15px;
}

.mobile-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 4px;
    background-color: rgba(255, 255, 255, 0.6);
    border: none;
    transition: all 0.3s ease;
}

.mobile-indicators button.active {
    background-color: #28a745;
    transform: scale(1.2);
}

/* ===== GENERAL MOBILE STYLES ===== */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        line-height: 1.6;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Enhanced Header & Navigation */
    .top-bar {
        flex-direction: column;
        text-align: center !important;
        padding: 15px 0;
    }
    
    .navbar-brand img {
        width: 45px;
        height: 45px;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    
    .navbar-brand h1 {
        font-size: 1.6rem !important;
        margin-left: 12px !important;
        font-weight: 700;
        background: linear-gradient(135deg, #28a745, #20c997);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    /* Hide desktop contact info on mobile */
    .col-lg-8.col-md-7.d-none.d-lg-block {
        display: none !important;
    }
    
    /* Enhanced Mobile Navigation */
    .navbar {
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
        backdrop-filter: blur(15px);
        background: rgba(40, 167, 69, 0.95) !important;
        border-radius: 0 0 15px 15px;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 15px 0;
    }
    
    .nav-link {
        padding: 15px 20px !important;
        font-size: 16px;
        font-weight: 500;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        transition: all 0.3s ease;
        position: relative;
        border-radius: 8px;
        margin: 5px 10px;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: rgba(255,255,255,0.15);
        color: white !important;
        border-radius: 12px;
        margin: 5px 10px;
        border-bottom: none;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .nav-link::before {
        content: '';
        position: absolute;
        left: 50%;
        bottom: 0;
        width: 0;
        height: 3px;
        background: white;
        transition: all 0.3s ease;
        transform: translateX(-50%);
        border-radius: 2px;
    }
    
    .nav-link:hover::before,
    .nav-link.active::before {
        width: 80%;
    }
    
    /* Enhanced Navbar Toggle */
    .navbar-toggler {
        border: none;
        border-radius: 10px;
        padding: 10px 15px;
        background: rgba(255,255,255,0.15);
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
    }
    
    .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.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    /* Enhanced Carousel */
    .carousel {
        border-radius: 20px;
        overflow: hidden;
        margin: 20px 10px;
        box-shadow: 0 12px 35px rgba(0,0,0,0.2);
    }
    
    .carousel-item {
        position: relative;
    }
    
    .carousel-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, rgba(40,167,69,0.1), rgba(32,201,151,0.1));
        z-index: 1;
        pointer-events: none;
    }
    
    .carousel-caption {
        background: rgba(0,0,0,0.6);
        border-radius: 15px;
        backdrop-filter: blur(15px);
        padding: 20px;
        margin-bottom: 20px;
        z-index: 2;
        border: 1px solid rgba(255,255,255,0.1);
    }
    
    /* Enhanced Sections */
    .container-xxl {
        padding: 30px 15px;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 14px;
        margin-bottom: 20px;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: #28a745;
    }
    
    .display-6 {
        font-size: 1.8rem !important;
        margin-bottom: 25px;
        font-weight: 700;
        line-height: 1.3;
    }
    
    /* Enhanced Cards */
    .card {
        border-radius: 20px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.12);
        transition: all 0.3s ease;
        border: none;
        overflow: hidden;
        margin-bottom: 25px;
        background: white;
    }
    
    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    }
    
    .card-body {
        padding: 25px;
    }
    
    .card-title {
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 15px;
        color: #333;
    }
    
    /* Enhanced Team Items (Toko Kami) */
    .team-item {
        border-radius: 20px;
        background: white;
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        border: none;
        overflow: hidden;
        margin-bottom: 25px;
        padding: 25px;
        height: 450px !important;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
    }
    
    .team-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #28a745, #20c997);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }
    
    .team-item:hover::before {
        transform: scaleX(1);
    }
    
    .team-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    }
    
    .team-image-container {
        position: relative;
        margin-bottom: 20px;
        height: 220px;
        overflow: hidden;
        border-radius: 15px;
        flex-shrink: 0;
    }
    
    .team-image-container img {
        margin-bottom: 0;
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform 0.3s ease;
        border-radius: 15px;
    }
    
    .team-item:hover .team-image-container img {
        transform: scale(1.08);
    }
    
    .team-image-container a {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(40, 167, 69, 0.9);
        color: white;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: all 0.3s ease;
        text-decoration: none;
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
    
    .team-item:hover .team-image-container a {
        opacity: 1;
        background: rgba(40, 167, 69, 1);
        transform: translate(-50%, -50%) scale(1.1);
    }
    
    .team-text {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 180px;
    }
    
    .team-text h6 {
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 12px;
        color: #333;
        line-height: 1.3;
        max-height: 3em;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .team-text p {
        font-size: 0.95rem !important;
        color: #666;
        margin-bottom: 15px;
        line-height: 1.5;
        flex-grow: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
    }
    
    .team-social {
        margin-top: auto;
        padding-top: 15px;
        flex-shrink: 0;
    }

    /* Enhanced Project Items (Gallery) */
    .project-item {
        border-radius: 20px;
        background: white;
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        border: none !important;
        overflow: hidden;
        margin-bottom: 25px;
        padding: 25px;
        height: auto;
        display: flex;
        flex-direction: column;
        min-height: 320px;
        position: relative;
    }
    
    .project-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #28a745, #20c997);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }
    
    .project-item:hover::before {
        transform: scaleX(1);
    }
    
    .project-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    }
    
    .project-item .position-relative {
        margin-bottom: 20px;
        height: 200px;
        overflow: hidden;
        border-radius: 15px;
    }
    
    .project-item img {
        border-radius: 15px;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform 0.3s ease;
    }
    
    .project-item:hover img {
        transform: scale(1.08);
    }
    
    .project-item h6 {
        font-size: 1.1rem;
        font-weight: 600;
        color: #333;
        margin: 0;
        text-align: center;
        margin-top: auto;
    }
    
    .project-item .position-relative a {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(40, 167, 69, 0.9);
        color: white;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: all 0.3s ease;
        text-decoration: none;
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
    
    .project-item:hover .position-relative a {
        opacity: 1;
        background: rgba(40, 167, 69, 1);
        transform: translate(-50%, -50%) scale(1.1);
}
    
    /* Enhanced Buttons */
    .btn {
        border-radius: 30px;
        font-weight: 600;
        padding: 15px 30px;
        transition: all 0.3s ease;
        border: none;
        position: relative;
        overflow: hidden;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn-success {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
        box-shadow: 0 6px 20px rgba(40,167,69,0.3);
    }
    
    .btn-success:hover {
        background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(40,167,69,0.4);
    }
    
    /* Enhanced Stats/Facts Section - FIXED HEIGHT AND CONSISTENCY */
    .fact-item {
        text-align: center;
        padding: 30px 25px;
        background: white;
        border-radius: 20px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        margin-bottom: 25px;
        transition: all 0.3s ease;
        border: 1px solid rgba(40,167,69,0.1);
        position: relative;
        overflow: hidden;
        height: 280px !important; /* Fixed height for consistency */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .fact-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #28a745, #20c997);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }
    
    .fact-item:hover::before {
        transform: scaleX(1);
    }
    
    .fact-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.2);
        border-color: #28a745;
    }
    
    .fact-icon {
        transition: all 0.3s ease;
        margin-bottom: 20px;
        flex-shrink: 0;
    }
    
    .fact-item:hover .fact-icon i {
        transform: scale(1.15);
        color: #20c997 !important;
    }
    
    .fact-item h2 {
        font-size: 2.5rem;
        font-weight: 700;
        color: #333;
        margin-bottom: 15px;
        transition: all 0.3s ease;
        line-height: 1.2;
    }
    
    .fact-item h3 {
        font-size: 1.6rem;
        font-weight: 600;
        color: #333;
        margin-bottom: 10px;
        line-height: 1.2;
    }
    
    .fact-item h6 {
        color: #666;
        margin: 0;
        font-weight: 500;
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .fact-item .text-success {
        color: #28a745 !important;
        font-weight: 700;
    }
    
    /* Mobile Menu Animation */
    .navbar-collapse {
        background: rgba(40, 167, 69, 0.98);
        border-radius: 15px;
        margin-top: 15px;
        padding: 20px;
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255,255,255,0.1);
    }
    
    /* Carousel for Mobile */
    .carousel-item img {
        height: 280px !important;
        object-fit: cover;
        width: 100%;
    }
    
    .carousel-indicators {
        bottom: 15px;
    }
    
    .carousel-indicators button {
        width: 45px;
        height: 45px;
        margin: 0 3px;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .carousel-indicators button img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 6px;
    }
    
    /* Carousel Controls for Mobile */
    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
        background: rgba(0, 0, 0, 0.4);
        border-radius: 0 10px 10px 0;
        backdrop-filter: blur(10px);
    }
    
    .carousel-control-next {
        border-radius: 10px 0 0 10px;
    }
    
    /* Footer Mobile */
    .footer .col-lg-6 {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .footer p {
        font-size: 14px;
        text-align: center;
    }
    
    .footer .btn-link {
        display: block;
        margin: 8px 0;
        text-align: center;
    }
    
    /* Social Media Buttons Mobile */
    .d-flex.pt-2 {
        justify-content: center;
    }
    
    .btn-square {
        margin: 0 8px;
        width: 45px;
        height: 45px;
        border-radius: 12px;
        transition: all 0.3s ease;
    }
    
    .btn-square:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    }
    
    /* Contact Info Mobile */
    .container-fluid.py-4.px-5 {
        padding: 25px 15px !important;
    }
    
    /* Typography Mobile */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.6rem;
    }
    
    h4 {
        font-size: 1.4rem;
    }
    
    h5 {
        font-size: 1.2rem;
    }
    
    h6 {
        font-size: 1.1rem;
    }
    
    /* Spacing Mobile */
    .container-xxl.py-5 {
        padding: 50px 0 !important;
    }
    
    .mb-5 {
        margin-bottom: 3rem !important;
    }
    
    /* Mobile Contact Section */
    .mobile-contact {
        background: linear-gradient(135deg, #28a745, #20c997);
        color: white;
        padding: 25px;
        border-radius: 20px;
        margin: 25px 0;
        text-align: center;
        box-shadow: 0 8px 25px rgba(40,167,69,0.3);
    }
    
    .mobile-contact h6 {
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 20px;
    }
    
    .mobile-contact .btn {
        margin: 8px;
        border-radius: 30px;
        padding: 12px 25px;
        font-weight: 600;
        background: rgba(255,255,255,0.2);
        border: 1px solid rgba(255,255,255,0.3);
        backdrop-filter: blur(10px);
    }
    
    .mobile-contact .btn:hover {
        background: rgba(255,255,255,0.3);
        transform: translateY(-2px);
    }
}

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 15px;
    }
    
    .carousel-item img {
        height: 220px !important;
    }
    
    .fact-item {
        padding: 25px 20px !important;
        height: 250px !important; /* Smaller height for very small screens */
    }
    
    .fact-item h2 {
        font-size: 2rem !important;
    }
    
    .fact-item h3 {
        font-size: 1.4rem !important;
    }
    
    .fact-item h6 {
        font-size: 0.9rem !important;
    }
    
    .fact-icon i {
        font-size: 2.5rem !important;
    }
    
    .navbar-brand h1 {
        font-size: 1.4rem !important;
    }
    
    .section-title {
        font-size: 12px;
    }
    
    .display-6 {
        font-size: 1.6rem !important;
    }
    
    .team-item {
        height: 400px !important;
        padding: 20px;
    }
    
    .project-item {
        height: 300px !important;
        padding: 20px;
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .carousel-item img {
        height: 350px !important;
    }
    
    .navbar-collapse {
        background-color: rgba(40, 167, 69, 0.95);
        border-radius: 10px;
        margin-top: 10px;
        padding: 15px;
    }
    
    .fact-item {
        height: 220px !important; /* Shorter height for landscape */
    }
}

/* Touch-friendly buttons */
@media (max-width: 768px) {
    .btn {
        min-height: 48px;
        min-width: 48px;
        padding: 15px 25px;
    }
    
    .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Ensure clickable areas are large enough */
    a, button {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Loading Spinner Mobile */
@media (max-width: 768px) {
    #spinner .spinner-border {
        width: 4rem !important;
        height: 4rem !important;
    }
    
    #spinner img {
        width: 40px !important;
        height: 40px !important;
    }
}

/* Image Optimization for Mobile */
@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }
    
    .img-fluid {
        width: 100%;
        height: auto;
    }
}

/* Enhanced Image Error Handling and Loading States */
.image-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 15px;
    color: #6c757d;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    width: 100%;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.image-placeholder i {
    margin-bottom: 15px;
    font-size: 36px;
    opacity: 0.5;
    color: #28a745;
}

.image-placeholder span {
    font-size: 14px;
    text-align: center;
    font-weight: 500;
    z-index: 1;
}

.image-placeholder:hover {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e8 100%);
}

img {
    max-width: 100%;
    height: auto;
    transition: all 0.3s ease;
    border-radius: 8px;
}

img[src=""], img:not([src]) {
    opacity: 0;
}

/* Enhanced Loading states */
.image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, rgba(255,255,255,0.8) 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shine 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes loading-shine {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Error handling for carousel images */
.carousel-item img {
    object-fit: cover;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
}

/* Enhanced error message styling */
#error-message {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #f5c6cb;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    animation: slideInRight 0.3s ease;
    padding: 15px 20px;
    font-weight: 500;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* PWA Install Button Enhancement */
.pwa-install {
    position: fixed;
    bottom: 140px;
    right: 20px;
    z-index: 999;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 14px;
    display: none;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-weight: 600;
}

.pwa-install:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(40, 167, 69, 0.4);
    color: white;
}

@media (max-width: 768px) {
    .pwa-install {
        padding: 12px 20px;
        font-size: 13px;
        bottom: 120px;
        right: 15px;
    }
}

/* Owl Carousel Enhancements */
.owl-carousel .owl-nav {
    margin-top: 25px;
}

.owl-carousel .owl-nav button {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    margin: 0 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40,167,69,0.3);
}

.owl-carousel .owl-nav button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40,167,69,0.4);
}

.owl-carousel .owl-dots {
    margin-top: 20px;
}

.owl-carousel .owl-dots .owl-dot {
    margin: 0 5px;
}

.owl-carousel .owl-dots .owl-dot span {
    background: #ccc;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    transition: all 0.3s ease;
}

.owl-carousel .owl-dots .owl-dot.active span {
    background: #28a745;
    transform: scale(1.2);
}

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

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

/* Enhanced focus states for accessibility */
@media (max-width: 768px) {
    .btn:focus,
    .nav-link:focus,
    .fab-btn:focus {
        outline: 3px solid rgba(40, 167, 69, 0.5);
        outline-offset: 2px;
    }
}

/* ===== ENHANCED ANIMATIONS AND EFFECTS ===== */

/* Mobile Notification System */
.mobile-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: white;
        border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    padding: 15px 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    border-left: 4px solid #28a745;
}

.mobile-notification.show {
    transform: translateX(0);
}

.mobile-notification-success {
    border-left-color: #28a745;
}

.mobile-notification-error {
    border-left-color: #dc3545;
}

.mobile-notification-info {
    border-left-color: #17a2b8;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-content i {
    font-size: 18px;
    color: #28a745;
}

/* Enhanced Menu Animations */
.animate-slide-in {
    animation: slideInDown 0.5s ease forwards;
    opacity: 0;
    transform: translateY(-20px);
}

@keyframes slideInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Card Hover Effects */
.card, .team-item, .project-item {
    position: relative;
    overflow: hidden;
}

.card::after, .team-item::after, .project-item::after {
    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;
}

.card:hover::after, .team-item:hover::after, .project-item:hover::after {
    left: 100%;
}

/* Enhanced Button Ripple Effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* Enhanced Loading Animation */
.loading-pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Enhanced Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Mobile Menu Toggle */
.navbar-toggler {
    position: relative;
}

.navbar-toggler-icon {
    transition: transform 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    transform: rotate(90deg);
}

/* Enhanced Image Loading */
img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}

/* Enhanced Touch Feedback */
.touch-feedback {
    transition: transform 0.1s ease;
}

.touch-feedback:active {
    transform: scale(0.98);
}

/* Enhanced Mobile Typography */
@media (max-width: 768px) {
    .text-responsive {
        font-size: clamp(14px, 4vw, 18px);
    }
    
    .heading-responsive {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }
}

/* Enhanced Mobile Spacing */
@media (max-width: 768px) {
    .mobile-spacing {
        padding: clamp(20px, 5vw, 40px) 0;
    }
    
    .mobile-margin {
        margin: clamp(15px, 4vw, 30px) 0;
    }
}

/* Enhanced Mobile Shadows */
@media (max-width: 768px) {
    .mobile-shadow {
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    
    .mobile-shadow-hover:hover {
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }
}

/* Enhanced Mobile Gradients */
.mobile-gradient {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.mobile-gradient-text {
    background: linear-gradient(135deg, #28a745, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Mobile Borders */
.mobile-border {
    border-radius: 15px;
    border: 1px solid rgba(40,167,69,0.1);
}

.mobile-border-hover:hover {
    border-color: #28a745;
}

/* Enhanced Mobile Transitions */
.mobile-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Mobile Focus States */
@media (max-width: 768px) {
    .mobile-focus:focus {
        outline: 3px solid rgba(40, 167, 69, 0.5);
        outline-offset: 2px;
    border-radius: 8px;
    }
}

/* Enhanced Mobile Accessibility */
@media (max-width: 768px) {
    .mobile-accessible {
        min-height: 48px;
        min-width: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-accessible-text {
        font-size: 16px;
        line-height: 1.5;
        color: #333;
    }
}

/* Enhanced Mobile Performance */
@media (max-width: 768px) {
    .mobile-optimized {
        will-change: transform;
        backface-visibility: hidden;
        transform: translateZ(0);
    }
}

/* Enhanced Mobile Interactions */
@media (max-width: 768px) {
    .mobile-interactive {
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    .mobile-interactive:active {
        transform: scale(0.98);
    }
}
