/* Extra custom gradients for landing page specific needs */
.text-gradient {
    background: linear-gradient(90deg, #ffffff, #888888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-grid {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

@keyframes sway {
    0%, 100% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
}
.animate-sway {
    animation: sway 4s ease-in-out infinite;
}

/* ========================================================
   THAI CYBERPUNK AESTHETICS (Phase 5)
   ======================================================== */

/* 1. Cyber-Krajang Background (ลายพื้นหลังเรขาคณิตไทยไซเบอร์) */
.bg-thai-grid {
    background-size: 60px 60px;
    background-image: 
        linear-gradient(to right, rgba(212, 175, 55, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(212, 175, 55, 0.04) 1px, transparent 1px),
        linear-gradient(45deg, rgba(212, 175, 55, 0.02) 25%, transparent 25%, transparent 75%, rgba(212, 175, 55, 0.02) 75%, rgba(212, 175, 55, 0.02)),
        linear-gradient(-45deg, rgba(212, 175, 55, 0.02) 25%, transparent 25%, transparent 75%, rgba(212, 175, 55, 0.02) 75%, rgba(212, 175, 55, 0.02));
    background-position: 0 0, 0 0, 30px 30px, 30px 30px;
}

/* 2. Tech-Yomum Borders (กรอบย่อมุมไซเบอร์ 1px Gold) */
.thai-cyber-border {
    position: relative;
    background: rgba(10, 10, 10, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.thai-cyber-border::before,
.thai-cyber-border::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border: 1px solid #D4AF37;
    transition: all 0.4s ease;
    pointer-events: none;
    opacity: 0.7;
}
.thai-cyber-border::before {
    top: -1px; left: -1px;
    border-right: none;
    border-bottom: none;
}
.thai-cyber-border::after {
    bottom: -1px; right: -1px;
    border-left: none;
    border-top: none;
}
.thai-cyber-border:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.05), 0 5px 30px rgba(0, 0, 0, 0.8);
}
.thai-cyber-border:hover::before {
    width: 25px; height: 25px;
    opacity: 1;
    box-shadow: -2px -2px 12px rgba(212, 175, 55, 0.4);
}
.thai-cyber-border:hover::after {
    width: 25px; height: 25px;
    opacity: 1;
    box-shadow: 2px 2px 12px rgba(212, 175, 55, 0.4);
}

/* 3. Gold Leaf Glow (เอฟเฟกต์ประกายทองคำเปลว) */
.gold-leaf-hover {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.gold-leaf-hover::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 230, 100, 0.3), transparent);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
    z-index: 1;
}
.gold-leaf-hover:hover::before {
    animation: gold-sweep 1.5s infinite;
}
@keyframes gold-sweep {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Optimize Mobile Hero Loading */
.bg-hero-image {
    background-image: url('../assets/header-mobile.webp');
    background-size: cover;
    background-position: center right;
    background-attachment: fixed;
}

@media (min-width: 1024px) {
    .bg-hero-image {
        background-image: url('../assets/header.webp');
    }
}
