﻿.DA-body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  /*  min-height: 100vh;*/
    padding: 10px; /* Reduced from 20px */
}

.DA-container {
    max-width: 1400px;
    margin: 0 auto;
}

.DA-header {
    text-align: center;
    margin-bottom: 10px; /* Further reduced to minimize height */
    padding: 5px; /* Further reduced to minimize height */
}

    .DA-header h1 {
        font-size: 3rem;
        color: #2c3e50;
        margin-bottom: 2px; /* Further reduced to minimize height */
        text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    }

    .DA-header p {
        font-size: 1.2rem;
        color: #7f8c8d;
        max-width: 600px;
        margin: 0 auto;
        line-height: 1.6;
    }

.DA-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px; /* Further reduced to minimize height */
    margin-bottom: 10px; /* Further reduced to minimize height */
}

.DA-project-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
    cursor: pointer;
    background: white;
}

    .DA-project-item:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    }

.DA-project-image {
    width: 100%;
    height: 180px; /* Reduced from 250px to minimize overall height */
    background-size: cover;
    background-position: center;
    position: relative;
}

.DA-project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.8) 0%, rgba(155, 89, 182, 0.8) 100%);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.DA-project-item:hover .DA-project-overlay {
    opacity: 1;
}

.DA-project-title {
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    padding: 0 20px;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.DA-project-item:hover .DA-project-title {
    transform: translateY(0);
}

.DA-project-info {
    padding: 10px; /* Further reduced to minimize height */
    background: white;
}

.DA-project-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px; /* Reduced from 8px */
}

.DA-project-location {
    font-size: 0.9rem;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .DA-project-location::before {
        content: "📍";
    }

/* Floating Action Buttons */
.DA-fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10001;
}

.DA-fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    background: white; /* default background for Zalo */
    padding: 0;
}

    .DA-fab:hover {
        transform: scale(1.1);
        box-shadow: 0 12px 35px rgba(0,0,0,0.4);
    }

/* Zalo button */
.DA-fab-zalo {
    background: #fff; /* white background like Zalo */
    position: relative; /* để chứa vòng tròn */
    background: #fff;
    animation: ring 1s infinite; /* hiệu ứng rung như trước */
    overflow: visible;
}
    .DA-fab-zalo::before,
    .DA-fab-zalo::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        border: 2px solid #ff0000; /* màu xanh Zalo */
        border-radius: 50%;
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
        animation: ripple 2s infinite;
    }

    /* Vòng tròn thứ 2 trễ hơn để tạo hiệu ứng nối tiếp */
    .DA-fab-zalo::after {
        animation-delay: 1s;
    }

/* Animation sóng */
@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}
/* Zalo icon image inside button */
.zalo-icon {
    width: 60%;
    height: 60%;
    object-fit: contain;
    animation: ring 1s infinite;
}
@keyframes ring {
    0% {
        transform: rotate(0);
    }

    10% {
        transform: rotate(15deg);
    }

    20% {
        transform: rotate(-15deg);
    }

    30% {
        transform: rotate(10deg);
    }

    40% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(5deg);
    }

    60% {
        transform: rotate(-5deg);
    }

    70% {
        transform: rotate(2deg);
    }

    80% {
        transform: rotate(-2deg);
    }

    100% {
        transform: rotate(0);
    }
}
  
.DA-fab-top {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

/* Modal */
.DA-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    animation: DA-fadeIn 0.3s ease;
}

.DA-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}

.DA-modal img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.DA-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

    .DA-close:hover {
        opacity: 0.7;
    }

@keyframes DA-fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .DA-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .DA-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px; /* Reduced from 15px */
    }

    .DA-header {
        margin-bottom: 15px; /* Reduced spacing for mobile */
        padding: 8px;
    }

        .DA-header h1 {
            font-size: 2.5rem;
            margin-bottom: 4px; /* Reduced from original */
        }

    .DA-project-image {
        height: 200px;
    }

    .DA-project-info {
        padding: 12px; /* Reduced from 15px */
    }

    .DA-fab-container {
        bottom: 20px;
        right: 20px;
    }

    .DA-fab {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .DA-gallery {
        grid-template-columns: 1fr;
        gap: 30px; /* Further reduced for small screens */
        margin-bottom: 15px; /* Reduced bottom margin */
    }

    .DA-body {
        padding: 8px; /* Further reduced for mobile */
    }

    .DA-header {
        margin-bottom: 12px; /* Further reduced */
        padding: 5px;
    }

        .DA-header h1 {
            font-size: 2rem;
            margin-bottom: 3px;
        }

    .DA-project-info {
        padding: 10px; /* Reduced for small screens */
    }
}
