/* ==========================================
   Nguyên Hùng Phát - Custom Styles
   ========================================== */

:root {
    --primary-color: #15803d;
    --accent-color: #d97706;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    color: #334155;
    -webkit-font-smoothing: antialiased;
}

/* Hero Overlay */
.hero-overlay {
    background: linear-gradient(to right, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.4));
}

/* Section Title Pattern */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 16px auto 0;
    border-radius: 2px;
}

.section-title.left::after {
    margin: 16px 0 0 0;
}

/* Masonry Grid */
.masonry-grid {
    column-count: 1;
    column-gap: 1.5rem;
}

@media (min-width: 640px) { 
    .masonry-grid { column-count: 2; } 
}

@media (min-width: 1024px) { 
    .masonry-grid { column-count: 3; } 
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

/* Smooth reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Video Modal */
#video-modal {
    transition: opacity 0.3s ease;
}

.video-nav-btn {
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.2s ease;
    z-index: 20;
}

#video-modal:hover .video-nav-btn {
    opacity: 1;
}

.video-nav-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.video-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

@media (max-width: 768px) {
    .video-nav-btn {
        opacity: 1;
        width: 40px;
        height: 40px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
}

/* Navbar active state */
.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

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

.nav-link:hover::after {
    width: 100%;
    background: var(--accent-color);
}

/* Image hover effect */
.img-hover-zoom {
    overflow: hidden;
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.05);
}
