/**
 * Kaisergarten - Intro Section Modern Chinese Design
 * Elegant Chinese-inspired design with traditional elements and modern aesthetics
 */

/* Main Section - Sophisticated Chinese Background */
.intro-section-modern {
    position: relative;
    padding: 2.5rem 0 2rem; /* Mobile first: reduced from 4rem */
    background: 
        linear-gradient(135deg, 
            #fafafa 0%, 
            #ffffff 25%,
            #f8f3ed 50%,
            #ffffff 75%,
            #fafafa 100%
        );
    overflow: hidden;
}

/* Tablet */
@media (min-width: 768px) {
    .intro-section-modern {
        padding: 3.5rem 0 3rem;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .intro-section-modern {
        padding: 4rem 0 3.5rem;
    }
}

/* Traditional Chinese Pattern Background */
.intro-modern-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Subtle cloud pattern */
        radial-gradient(ellipse at 10% 30%, rgba(196, 30, 58, 0.02) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 70%, rgba(250, 183, 0, 0.03) 0%, transparent 40%),
        /* Traditional Chinese lattice pattern */
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(196, 30, 58, 0.01) 35px, rgba(196, 30, 58, 0.01) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(250, 183, 0, 0.01) 35px, rgba(250, 183, 0, 0.01) 70px);
    opacity: 1;
}

/* Floating Chinese Decorative Elements */
.intro-modern-bg::before,
.intro-modern-bg::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 30, 58, 0.05) 0%, transparent 70%);
    animation: floatAnimation 20s ease-in-out infinite;
}

.intro-modern-bg::before {
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.intro-modern-bg::after {
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(250, 183, 0, 0.06) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes floatAnimation {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(40px, 10px) scale(1.02); }
}

/* Content Container with Chinese Frame */
.intro-modern-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.intro-modern-content::before,
.intro-modern-content::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) 1;
    opacity: 0.25;
    z-index: -1;
}

.intro-modern-content::before {
    top: -20px;
    left: -20px;
    border-right: none;
    border-bottom: none;
}

.intro-modern-content::after {
    bottom: -20px;
    right: -20px;
    border-left: none;
    border-top: none;
}

/* Chinese-Style Badge with Traditional Elements */
.intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95), 
        rgba(248, 243, 237, 0.95)
    );
    backdrop-filter: blur(20px);
    border: 2px solid transparent;
    border-image: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 50%, 
        var(--primary-color) 100%
    ) 1;
    color: var(--primary-color);
    padding: 0.85rem 2rem;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 1.75rem;
    box-shadow: 
        0 4px 20px rgba(196, 30, 58, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Chinese Seal-like decorative element */
.intro-badge::before {
    content: '美味';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: var(--primary-color);
    opacity: 0.15;
    font-weight: 900;
    letter-spacing: 0;
}

.intro-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(250, 183, 0, 0.1) 50%, 
        transparent 100%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.intro-badge:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 30px rgba(196, 30, 58, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.intro-badge:hover::after {
    transform: translateX(100%);
}

/* Modern Title with Chinese Calligraphy Inspiration */
.intro-modern-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, 
        var(--dark-color) 0%,
        var(--primary-color) 50%,
        var(--dark-color) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    position: relative;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

/* Traditional Chinese Underline */
.intro-modern-title::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--primary-color) 15%,
        var(--secondary-color) 50%,
        var(--primary-color) 85%,
        transparent 100%
    );
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(196, 30, 58, 0.3);
}

/* Decorative Chinese Corner Elements */
.intro-modern-title::before {
    content: '美';
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    color: var(--secondary-color);
    opacity: 0.2;
    font-weight: 900;
}

/* Modern Description with Better Typography */
.intro-modern-description {
    font-size: 1.15rem;
    line-height: 1.75;
    color: #444;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    position: relative;
    padding: 0 1.5rem;
}

.intro-modern-description::before,
.intro-modern-description::after {
    content: '❋';
    position: absolute;
    color: var(--secondary-color);
    font-size: 1rem;
    opacity: 0.35;
    top: 0;
}

.intro-modern-description::before {
    left: 0;
}

.intro-modern-description::after {
    right: 0;
}

/* Features Grid - Chinese-Inspired Cards */
.intro-features-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Tablet: 2 columns */
@media (min-width: 769px) and (max-width: 1024px) {
    .intro-features-modern {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        margin-top: 2.5rem;
    }
    
    .feature-card-modern {
        padding: 2rem 1.5rem;
    }
    
    .feature-icon-modern {
        width: 75px;
        height: 75px;
        font-size: 2.2rem;
    }
    
    .feature-card-modern h3 {
        font-size: 1.2rem;
    }
}

.feature-card-modern {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%,
        rgba(248, 243, 237, 0.95) 100%
    );
    border: 2px solid rgba(196, 30, 58, 0.1);
    border-radius: 0;
    padding: 2.25rem 1.75rem;
    text-align: center;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Traditional Chinese Corner Brackets */
.feature-card-modern::before,
.feature-card-modern::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    border: 2px solid var(--primary-color);
    opacity: 0.3;
    transition: all 0.5s ease;
}

.feature-card-modern::before {
    top: 12px;
    left: 12px;
    border-right: none;
    border-bottom: none;
}

.feature-card-modern::after {
    bottom: 12px;
    right: 12px;
    border-left: none;
    border-top: none;
}

/* Top Gradient Bar */
.feature-card-modern > *:first-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%,
        var(--secondary-color) 50%,
        var(--primary-color) 100%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-card-modern:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--secondary-color);
    box-shadow: 
        0 25px 60px rgba(196, 30, 58, 0.15),
        0 0 0 1px rgba(250, 183, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%,
        rgba(250, 183, 0, 0.08) 100%
    );
}

.feature-card-modern:hover::before,
.feature-card-modern:hover::after {
    opacity: 0.7;
    width: 32px;
    height: 32px;
}

.feature-card-modern:hover > *:first-child::before {
    opacity: 1;
}

/* Chinese Lantern-Inspired Icon */
.feature-icon-modern {
    width: 85px;
    height: 85px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, 
        var(--primary-color) 0%,
        #d32f4f 50%,
        var(--secondary-color) 100%
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.4rem;
    box-shadow: 
        0 15px 40px rgba(196, 30, 58, 0.3),
        inset 0 -3px 0 rgba(0, 0, 0, 0.1),
        inset 0 3px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Outer Glow Ring */
.feature-icon-modern::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 3px solid transparent;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: all 0.5s ease;
}

/* Inner Decorative Ring */
.feature-icon-modern::after {
    content: '';
    position: absolute;
    inset: -15px;
    border: 2px dashed rgba(250, 183, 0, 0.3);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.5s ease;
}

.feature-card-modern:hover .feature-icon-modern {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 
        0 20px 50px rgba(196, 30, 58, 0.4),
        inset 0 -3px 0 rgba(0, 0, 0, 0.15),
        inset 0 3px 0 rgba(255, 255, 255, 0.3);
}

.feature-card-modern:hover .feature-icon-modern::before {
    opacity: 1;
    transform: scale(1.1);
}

.feature-card-modern:hover .feature-icon-modern::after {
    opacity: 1;
    transform: rotate(180deg) scale(1.2);
}

.feature-card-modern h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
    letter-spacing: 0.3px;
    position: relative;
    transition: color 0.3s ease;
}

.feature-card-modern:hover h3 {
    color: var(--primary-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .intro-section-modern {
        padding: 2.5rem 0 2rem;
    }
    
    .intro-modern-content {
        padding: 0 1.5rem;
    }
    
    .intro-modern-content::before,
    .intro-modern-content::after {
        display: none; /* Hide decorative corners on mobile */
    }
    
    .intro-badge {
        font-size: 0.7rem;
        padding: 0.7rem 1.3rem;
        margin-bottom: 1.2rem;
        letter-spacing: 1.5px;
    }
    
    .intro-badge::before {
        display: none;
    }
    
    .intro-modern-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .intro-modern-title::before {
        display: none; /* Hide decorative Chinese char on mobile */
    }
    
    .intro-modern-title::after {
        width: 60px;
        height: 3px;
        bottom: -12px;
    }
    
    .intro-modern-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
        line-height: 1.65;
    }
    
    .intro-modern-description::before,
    .intro-modern-description::after {
        display: none; /* Hide decorative symbols on mobile */
    }
    
    /* MOBILE: Transform cards into compact horizontal pills */
    .intro-features-modern {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .feature-card-modern {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1.25rem;
        border-radius: 50px;
        background: linear-gradient(135deg, 
            rgba(196, 30, 58, 0.08) 0%,
            rgba(250, 183, 0, 0.06) 100%
        );
        border: 1.5px solid rgba(196, 30, 58, 0.15);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
        flex: 0 1 auto;
        width: auto;
        max-width: calc(50% - 0.5rem);
        transition: all 0.3s ease;
    }
    
    /* Remove all decorative elements from mobile pills */
    .feature-card-modern::before,
    .feature-card-modern::after {
        display: none;
    }
    
    .feature-card-modern > *:first-child::before {
        display: none;
    }
    
    .feature-card-modern:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(196, 30, 58, 0.12);
    }
    
    .feature-icon-modern {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 1rem;
        margin: 0;
        box-shadow: 0 2px 8px rgba(196, 30, 58, 0.2);
    }
    
    .feature-icon-modern::before,
    .feature-icon-modern::after {
        display: none;
    }
    
    .feature-card-modern h3 {
        font-size: 0.9rem;
        font-weight: 600;
        margin: 0;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .intro-section-modern {
        padding: 2rem 0 1.5rem;
    }
    
    .intro-modern-title {
        font-size: 1.5rem;
    }
    
    .intro-modern-description {
        font-size: 0.9rem;
        line-height: 1.6;
        padding: 0;
    }
    
    /* Extra small mobile: Full-width pills with smaller icons */
    .intro-features-modern {
        gap: 0.6rem;
        margin-top: 1.25rem;
    }
    
    .feature-card-modern {
        max-width: 100%;
        width: 100%;
        justify-content: center;
        padding: 0.65rem 1rem;
    }
    
    .feature-icon-modern {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 0.9rem;
    }
    
    .feature-card-modern h3 {
        font-size: 0.85rem;
    }
}
