﻿html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.hero-section {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient( rgba(28, 61, 94, 0.5), rgba(28, 61, 94, 0.8) ), url('../images/xathuongduc.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.content-wrapper {
    position: relative;
    z-index: 10;
}

.hero-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.tag-line {
    width: 30px;
    height: 1px;
    background: #f3a100;
}

.tag-text {
    letter-spacing: 4px;
    font-size: 0.8rem;
    color: #f3a100;
    font-weight: 600;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    text-shadow: 0 5px 20px rgba(0,0,0,0.4);
    line-height: 1.2;
    letter-spacing: -1px;
}

    .hero-title .highlight {
        color: #f3a100;
        font-style: italic;
        display: inline-block;
    }

.hero-description {
    max-width: 650px;
    margin: 0 auto;
    font-weight: 300;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
}

.btn-vr-glow {
    background: #f3a100;
    color: #000;
    font-weight: 700;
    padding: 16px 45px;
    border: none;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    .btn-vr-glow:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(243, 161, 0, 0.4);
        background: #ffb41f;
    }

.btn-outline-custom {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 16px 45px;
    backdrop-filter: blur(5px);
    transition: 0.3s;
}

    .btn-outline-custom:hover {
        background: #fff;
        color: #000;
    }

.scroll-down-wrapper {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.mouse-scroll {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    position: relative;
    margin-bottom: 8px;
}

    .mouse-scroll::before {
        content: '';
        width: 4px;
        height: 4px;
        background: #f3a100;
        position: absolute;
        left: 50%;
        top: 8px;
        transform: translateX(-50%);
        border-radius: 50%;
        animation: scroll-dot 2s infinite;
    }

@keyframes scroll-dot {
    0% {
        opacity: 0;
        top: 8px;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        top: 25px;
    }
}

.scroll-text {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
}

.leaf-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.leaf {
    position: absolute;
    background: #f3a100;
    opacity: 0.5;
    border-radius: 2px 80% 5px 80%;
    animation: fall linear infinite;
    filter: blur(0.5px);
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
}

.hero-content-frame {
    position: relative;
    padding: 40px 0;
    margin: 0 auto;
    width: 100%;
    display: block;
}

    .hero-content-frame::before {
        content: "";
        position: absolute;
        top: 52px;
        left: 0;
        right: calc(50% + 180px);
        bottom: 0;
        border: 2px solid #f3a100;
        border-right: none;
        border-radius: 20px 0 0 20px;
        pointer-events: none;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0.7;
    }

    .hero-content-frame::after {
        content: "";
        position: absolute;
        top: 52px;
        right: 0;
        left: calc(50% + 180px);
        bottom: 0;
        border: 2px solid #f3a100;
        border-left: none;
        border-radius: 0 20px 20px 0;
        pointer-events: none;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0.7;
    }

    .hero-content-frame:hover::before,
    .hero-content-frame:hover::after {
        opacity: 1;
        border-width: 3px;
        box-shadow: none;
    }

    .hero-content-frame:hover::before {
        right: calc(50% + 200px);
    }

    .hero-content-frame:hover::after {
        left: calc(50% + 200px);
    }

.hero-tag {
    position: relative;
    z-index: 10;
    margin-bottom: 40px;
}

.tag-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #f3a100;
    letter-spacing: 4px;
    padding: 0 20px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.hero-content-frame:hover .tag-text {
    letter-spacing: 6px;
    text-shadow: 0 0 10px rgba(243, 161, 0, 0.5);
}

.hero-description {
    padding-bottom: 25px;
}

@keyframes fall {
    0% {
        top: -10%;
        transform: translateX(0) rotate(0deg);
    }

    25% {
        transform: translateX(60px) rotate(45deg);
    }

    50% {
        transform: translateX(-60px) rotate(110deg);
    }

    75% {
        transform: translateX(40px) rotate(170deg);
    }

    100% {
        top: 110%;
        transform: translateX(0) rotate(220deg);
    }
}

@media (max-width: 992px) {
    .hero-content-frame::before {
        right: calc(50% + 100px);
    }

    .hero-content-frame::after {
        left: calc(50% + 100px);
    }

    .hero-content-frame:hover::before {
        right: calc(50% + 95px);
    }

    .hero-content-frame:hover::after {
        left: calc(50% + 95px);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 0.95rem;
        padding: 0 15px;
    }

    .hero-content-frame::before {
        top: 50px;
        right: calc(50% + 80px);
    }

    .hero-content-frame::after {
        top: 50px;
        left: calc(50% + 80px);
    }

    .hero-content-frame:hover::before {
        right: calc(50% + 75px);
    }

    .hero-content-frame:hover::after {
        left: calc(50% + 75px);
    }
}

@media (max-width: 576px) {
    .hero-content-frame::before,
    .hero-content-frame::after {
        border-width: 1.5px;
        top: 45px;
    }

    .hero-content-frame::before {
        right: calc(50% + 60px);
    }

    .hero-content-frame::after {
        left: calc(50% + 60px);
    }

    .hero-content-frame:hover::before {
        right: calc(50% + 55px);
    }

    .hero-content-frame:hover::after {
        left: calc(50% + 55px);
    }
}

@media (max-width: 480px) {
    .hero-content-frame::before,
    .hero-content-frame::after {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .tag-text {
        font-size: 0.7rem;
        letter-spacing: 3px;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 0.85rem;
    }
}
