:root {
    --primary-red: #B12C28;
    --primary-red-dark: #8D130F;
    --primary-red-light: #FDECEA;
    --accent-gold: #F7C263;
    --accent-gold-dark: #E8AC3D;
    --silk-white: #FAF7F0;
    --pure-white: #FFFFFF;
    --ink-black: #1A1A1A;
    --text-color: #333;
    --text-light: #666;
    --glass: rgba(250, 247, 240, 0.9);
    --shadow: 0 10px 30px rgba(177, 44, 40, 0.08);
    --red-gradient: linear-gradient(135deg, #B12C28 0%, #E32520 100%);
    --gold-gradient: linear-gradient(135deg, #F7C263 0%, #E8AC3D 100%);
    --silk-gradient: linear-gradient(180deg, #FAF7F0 0%, #FFFFFF 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Mulish', 'Outfit', sans-serif;
    color: var(--text-color);
    background-color: var(--silk-white);
    line-height: 1.7;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 30c0-16.57 13.43-30 30-30v60c-16.57 0-30-13.43-30-30zM0 30C0 13.43 13.43 0 30 0v60C13.43 60 0 46.57 0 30z' fill='%23B12C28' fill-opacity='0.015' fill-rule='evenodd'/%3E%3C/svg%3E");
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.font-calligraphy {
    font-family: 'Charm', cursive;
}

.sub-header {
    display: block;
    font-size: 1.4rem;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.top-bar {
    background: var(--primary-red);
    color: var(--pure-white);
    padding: 8px 0;
    font-size: 0.8rem;
    font-weight: 600;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.separator {
    opacity: 0.3;
}

.top-social {
    display: flex;
    gap: 15px;
}

.top-social a {
    color: var(--pure-white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.top-social a:hover {
    opacity: 0.8;
}

header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(177, 44, 40, 0.1);
}

header.scrolled .top-bar {
    display: none;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-red);
    letter-spacing: 1px;
    position: relative;
}

.logo::after {
    content: '☯';
    font-size: 0.8rem;
    position: absolute;
    top: -5px;
    right: -15px;
    opacity: 0.5;
}

nav ul {
    display: flex;
    gap: 3rem;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: var(--ink-black);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-red);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
#hero {
    height: 100vh;
    background-color: var(--silk-white);
    position: relative;
    overflow: hidden;
}

.slider-container {
    height: 100%;
    width: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8%;
    opacity: 0;
    visibility: hidden;
    transition: all 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide .hero-content {
    transform: translateY(30px);
    transition: transform 1.2s ease;
}

.slide.active .hero-content {
    transform: translateY(0);
}

.slide .hero-image {
    transform: scale(0.9) translateX(30px);
    transition: all 1.2s ease;
}

.slide.active .hero-image {
    transform: scale(1) translateX(0);
}

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 8%;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border: 2px solid var(--primary-red);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-red);
    width: 30px;
    border-radius: 10px;
}

.decor-mountain {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 300px;
    background-image: url("data:image/svg+xml,%3Csvg width='1000' height='300' viewBox='0 0 1000 300' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 300L150 150L300 220L500 80L700 180L850 120L1000 250V300H0Z' fill='%23B12C28' fill-opacity='0.02'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: contain;
    z-index: 1;
    pointer-events: none;
}

#hero::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(177, 44, 40, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.hero-content {
    max-width: 650px;
    z-index: 2;
    animation: fadeInUp 1.2s ease;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.5rem;
    background: var(--primary-red-light);
    color: var(--primary-red);
    border: 1px solid rgba(177, 44, 40, 0.2);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--ink-black);
    line-height: 1.1;
    font-family: 'Playfair Display', serif;
}

.calligraphy-banner {
    font-family: 'Charm', cursive;
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: -0.5rem;
    display: block;
    opacity: 0.9;
}

.tagline {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-weight: 300;
    border-left: 3px solid var(--primary-red);
    padding-left: 20px;
}

.cta-group {
    display: flex;
    gap: 2rem;
}

.btn {
    padding: 1.2rem 3rem;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.btn.primary {
    background: var(--red-gradient);
    color: var(--pure-white);
    box-shadow: 0 10px 25px rgba(177, 44, 40, 0.15);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn.primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: all 0.6s ease;
}

.btn.primary:hover::after {
    left: 120%;
}

.btn.primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(177, 44, 40, 0.25);
}

.btn.secondary {
    border: 1px solid #ddd;
    color: var(--ink-black);
    background: transparent;
}

.btn.secondary:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    background: var(--primary-red-light);
}

.hero-image {
    width: 500px;
    height: 600px;
    position: relative;
    z-index: 2;
    animation: fadeInRight 1.2s ease;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    mask-image: url("data:image/svg+xml,%3Csvg width='500' height='600' viewBox='0 0 500 600' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M250 0C388.071 0 500 111.929 500 250V600H0V250C0 111.929 111.929 0 250 0Z' fill='black'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='500' height='600' viewBox='0 0 500 600' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M250 0C388.071 0 500 111.929 500 250V600H0V250C0 111.929 111.929 0 250 0Z' fill='black'/%3E%3C/svg%3E");
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.hero-image::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border-right: 2px solid var(--accent-gold);
    border-bottom: 2px solid var(--accent-gold);
    z-index: -1;
}

/* Decorative Clouds */
.decor-cloud {
    position: absolute;
    font-size: 4rem;
    opacity: 0.1;
    z-index: 1;
    animation: floatCloud 20s infinite linear;
    pointer-events: none;
}

.decor-cloud.top-left {
    top: 15%;
    left: 5%;
}

.decor-cloud.bottom-right {
    bottom: 15%;
    right: 5%;
    animation-delay: -10s;
}

@keyframes floatCloud {
    0% {
        transform: translateX(0) translateY(0);
    }

    50% {
        transform: translateX(50px) translateY(-20px);
    }

    100% {
        transform: translateX(0) translateY(0);
    }
}

/* Sections Common */
section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--ink-black);
    position: relative;
    display: inline-block;
}

.section-header h2::before,
.section-header h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 1px;
    background: var(--accent-gold);
}

.section-header h2::before {
    left: -70px;
}

.section-header h2::after {
    right: -70px;
}

/* About Section */
#about {
    background: var(--silk-gradient);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 100px;
    align-items: center;
}

.quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.8rem;
    color: var(--primary-red);
    margin-bottom: 2rem;
    line-height: 1.4;
}

.about-text p {
    margin-bottom: 1.8rem;
    font-size: 1.15rem;
    color: var(--text-light);
    text-align: justify;
}

.highlights {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 30px;
}

.highlights li {
    padding: 1.2rem;
    background: white;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    border-left: 4px solid var(--primary-red);
    font-weight: 600;
    color: var(--ink-black);
}

.about-image img {
    width: 100%;
    border-radius: 0;
    clip-path: circle(45% at 50% 50%);
    border: 1px solid var(--primary-red-light);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Expertise / Services Section */
.service-category {
    margin-bottom: 60px;
}

.category-title {
    font-size: 2rem;
    color: var(--ink-black);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.seal {
    width: 45px;
    height: 45px;
    background: var(--primary-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 4px;
    position: relative;
}

.seal::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.mt-80 {
    margin-top: 80px;
}

.btn-text-small {
    text-decoration: none;
    color: var(--primary-red);
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn-text-small:hover {
    gap: 10px;
}

/* Expertise Section */
#expertise {
    background-color: var(--silk-white);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(177, 44, 40, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(177, 44, 40, 0.02) 0%, transparent 40%);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    border-bottom: 2px solid var(--primary-red-light);
    padding-bottom: 15px;
}

.expertise-card {
    background: white;
    padding: 40px 30px;
    border-radius: 4px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(177, 44, 40, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(177, 44, 40, 0.1);
    border-color: var(--accent-gold);
}

.expertise-card::after {
    content: '☯';
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 3rem;
    opacity: 0.03;
    transition: all 0.4s;
}

.expertise-card:hover::after {
    opacity: 0.08;
    transform: rotate(180deg);
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(247, 194, 99, 0.1);
    pointer-events: none;
    transition: all 0.4s;
    border-radius: 2px;
}

.expertise-card:hover::before {
    border-color: rgba(247, 194, 99, 0.4);
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
}

.expertise-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(177, 44, 40, 0.1);
    border-color: var(--primary-red);
}

.expertise-card .icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    display: block;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

.expertise-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--ink-black);
}

.expertise-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* Events Section */
#events {
    background: #fff;
}

.events-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.event-card {
    background: var(--silk-white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.event-image {
    height: 300px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-body {
    padding: 40px;
    position: relative;
}

.event-body .date {
    font-size: 0.85rem;
    color: var(--primary-red);
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.event-body h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--ink-black);
}

.btn-text {
    text-decoration: none;
    color: var(--primary-red);
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.btn-text:hover {
    gap: 15px;
    color: var(--primary-red-dark);
}

/* Contact Section */
.contact-card {
    background: var(--ink-black);
    color: var(--silk-white);
    padding: 100px 50px;
    border-radius: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0c27.614 0 50 22.386 50 50s-22.386 50-50 50S0 77.614 0 50 22.386 0 50 0zm0 10C27.909 10 10 27.909 10 50s17.909 40 40 40 40-17.909 40-40S72.091 10 50 10z' fill='%23666' fill-opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.contact-card h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: var(--silk-white);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 60px 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.contact-item {
    text-decoration: none;
    color: var(--silk-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all 0.4s ease;
}

.contact-item:hover {
    color: var(--accent-gold);
    transform: translateY(-10px);
}

.contact-item .icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.donation-info {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 2;
}

.donation-info h3 {
    font-size: 1.2rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Footer */
footer {
    padding: 80px 0 40px;
    background: var(--silk-white);
    border-top: 1px solid rgba(177, 44, 40, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.about-col .logo {
    margin-bottom: 20px;
}

.about-col p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-col h3 {
    font-size: 1.2rem;
    color: var(--primary-red);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    text-decoration: none;
    color: var(--text-light);
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--primary-red);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    padding: 8px 20px;
    background: var(--primary-red-light);
    color: var(--primary-red);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--primary-red);
    color: var(--pure-white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-light);
    font-size: 0.9rem;
}

.author a {
    color: var(--ink-black);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid var(--primary-red);
}

/* Floating Actions */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.float-btn:hover {
    transform: scale(1.1) translateY(-5px);
}

.float-btn.phone {
    background: var(--primary-red);
    color: white;
    font-size: 1.5rem;
}

.float-btn.zalo {
    background: #0068ff;
    padding: 12px;
}

.float-btn.zalo img {
    width: 100%;
}

@keyframes spinIcon {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 992px) {

    .about-grid,
    .events-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    #hero {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        height: auto;
        padding: 160px 2rem 100px;
    }

    .hero-image {
        width: 100%;
        max-width: 400px;
        height: 500px;
        margin-bottom: 60px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .tagline {
        border-left: none;
        border-top: 3px solid var(--primary-red);
        padding-left: 0;
        padding-top: 20px;
    }

    .cta-group {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    nav ul {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .contact-links {
        gap: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .floating-actions {
        bottom: 20px;
        right: 20px;
    }

    .float-btn {
        width: 50px;
        height: 50px;
    }
}