/* 
 * NaYoo Style Banner CSS - แบบ Banner เชียงรายน่าอยู่
 * Version: 1.0
 * Date: 2024-01-15
 * 
 * สไตล์ Banner ตามแบบ https://nayoo.co/chiangrai
 */

/* ===== NAYOO STYLE BANNER ===== */
.nayoo-banner {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 25%, #43e97b 75%, #38f9d7 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* Background Pattern */
.nayoo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="80" r="3" fill="white" opacity="0.08"/><circle cx="40" cy="60" r="1.5" fill="white" opacity="0.12"/></svg>');
    background-size: 100px 100px;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(0px) translateY(0px); }
    25% { transform: translateX(10px) translateY(-10px); }
    50% { transform: translateX(-5px) translateY(-15px); }
    75% { transform: translateX(-10px) translateY(5px); }
}

/* Banner Container */
.nayoo-banner-container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
}

/* Left Content */
.nayoo-banner-content {
    color: white;
    text-align: left;
}

.nayoo-banner-title {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Sarabun', 'Noto Sans Thai', sans-serif;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.nayoo-banner-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
}

.nayoo-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.nayoo-banner-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(34, 197, 94, 0.5);
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.nayoo-banner-cta:active {
    transform: translateY(-1px);
}

/* Right Side - Project Cards */
.nayoo-project-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    opacity: 0.95;
}

.nayoo-project-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 140px;
}

.nayoo-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.nayoo-project-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #22c55e;
}

.nayoo-project-card h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-family: 'Sarabun', sans-serif;
}

.nayoo-project-card p {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.4;
}

/* Banner Dots Indicator */
.nayoo-banner-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 20;
}

.nayoo-banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nayoo-banner-dot.active {
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    transform: scale(1.2);
}

.nayoo-banner-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Building Icons Background */
.nayoo-building-icons {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 0 2rem 1rem;
    z-index: 5;
}

.nayoo-building-icon {
    width: 40px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px 4px 0 0;
    position: relative;
    opacity: 0.6;
}

.nayoo-building-icon::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.nayoo-building-icon::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

/* Contact Info Strip */
.nayoo-contact-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(34, 197, 94, 0.9);
    color: white;
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 15;
}

.nayoo-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nayoo-contact-item i {
    font-size: 1rem;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 1024px) {
    .nayoo-banner-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .nayoo-project-cards {
        grid-template-columns: repeat(4, 1fr);
        justify-content: center;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .nayoo-banner-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nayoo-banner {
        height: 400px;
        padding: 1.5rem 1rem;
    }
    
    .nayoo-banner-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .nayoo-banner-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .nayoo-banner-cta {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .nayoo-project-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        max-width: 300px;
    }
    
    .nayoo-project-card {
        padding: 1rem;
        min-width: auto;
    }
    
    .nayoo-project-card img {
        width: 45px;
        height: 45px;
    }
    
    .nayoo-project-card h3 {
        font-size: 0.75rem;
    }
    
    .nayoo-project-card p {
        font-size: 0.625rem;
    }
    
    .nayoo-contact-strip {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .nayoo-building-icons {
        height: 80px;
        padding: 0 1rem 0.5rem;
    }
    
    .nayoo-building-icon {
        width: 25px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .nayoo-banner {
        height: 350px;
    }
    
    .nayoo-banner-title {
        font-size: 1.75rem;
    }
    
    .nayoo-banner-subtitle {
        font-size: 0.875rem;
    }
    
    .nayoo-project-cards {
        grid-template-columns: 1fr 1fr;
        max-width: 250px;
    }
    
    .nayoo-project-card {
        padding: 0.75rem;
    }
    
    .nayoo-banner-dots {
        bottom: 1rem;
    }
    
    .nayoo-banner-dot {
        width: 8px;
        height: 8px;
    }
}

/* ===== ANIMATION ENHANCEMENTS ===== */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.nayoo-banner-content {
    animation: slideInFromLeft 1s ease-out;
}

.nayoo-project-cards {
    animation: slideInFromRight 1s ease-out 0.3s both;
}

.nayoo-banner-dots {
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Pulse effect for CTA button */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
    }
    50% {
        box-shadow: 0 8px 25px rgba(34, 197, 94, 0.6);
    }
}

.nayoo-banner-cta {
    animation: pulse 3s ease-in-out infinite;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .nayoo-banner::before,
    .nayoo-banner-content,
    .nayoo-project-cards,
    .nayoo-banner-dots,
    .nayoo-banner-cta {
        animation: none !important;
    }
    
    .nayoo-banner-cta:hover,
    .nayoo-project-card:hover {
        transform: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .nayoo-banner {
        background: linear-gradient(135deg, #000080 0%, #006400 100%);
    }
    
    .nayoo-project-card {
        background: #ffffff;
        border: 2px solid #000000;
    }
    
    .nayoo-banner-cta {
        background: #000000;
        color: #ffffff;
        border: 2px solid #ffffff;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .nayoo-project-card {
        background: rgba(31, 41, 55, 0.95);
        color: #ffffff;
    }
    
    .nayoo-project-card h3 {
        color: #ffffff;
    }
    
    .nayoo-project-card p {
        color: #d1d5db;
    }
}

