/* =========================================
   1. SETUP & FONTS
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
    --theme-red-dark: #8B0000;
    --theme-gold-light: #F9F295;
    --theme-gold-medium: #E0AA3E;
    --theme-gold-dark: #B88A44;
}

body {
    font-family: 'Prompt', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #f8fafc;
}

html {
    scroll-behavior: smooth;
}

/* =========================================
   2. HERO SECTION
   ========================================= */
@keyframes heroZoom {
    0% {
        transform: scale(1); /* ขนาดปกติ */
    }
    100% {
        transform: scale(1.15); /* ซูมขยายขึ้น 15% */
    }
}

.hero-wrapper {
    position: relative;
    height: 650px;
    overflow: hidden; /* สำคัญมาก! เพื่อไม่ให้ภาพที่ซูมล้นออกมาบัง Scrollbar */
    margin-top: 80px; 
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2c0b0e;
}

.hero-bg-fixed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* เผื่อความสูงไว้สำหรับ Parallax หรือ Animation */
    background-color: #5f0a0a; 
    
    /* รูปพื้นหลัง */
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)), url('../images/V1.jpg');
    
    background-size: cover;
    background-position: center;
    z-index: 0;
    
    /* --- ส่วนที่เพิ่มเข้ามาเพื่อทำ Animation --- */
    /* ชื่อ keyframes | เวลา 25วิ | เล่นวนซ้ำ | เล่นสลับหน้า-หลัง (ซูมเข้าแล้วซูมออก) | จังหวะนุ่มนวล */
    animation: heroZoom 25s infinite alternate ease-in-out;
    
    /* ช่วยให้ลื่นขึ้นและไม่กระตุก */
    will-change: transform;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    text-align: center;
}

/* =========================================
   3. TEXT THEME 
SUBMARUM REAL ESTATE
By TheSuperland Nakhonnayok
   ========================================= */
.text-gold-red-theme {
    /* ไล่สี: ทองสว่าง -> ทองเข้ม -> เริ่มอมแดง -> แดงเข้ม */
    background: linear-gradient(
        to bottom, 
        #F9F295 0%,   /* ทองสว่างสุด (ยอด) */
        #E0AA3E 40%,  /* ทองเข้ม (กลางบน) */
        #C5582D 70%,  /* ส้มทองแดง (ตัวเชื่อมสี) */
        #8B0000 100%  /* แดงเลือดหมู (ฐาน) */
    );
    
    -webkit-background-clip: text;
    background-clip: text; 
    
    -webkit-text-fill-color: transparent;
    color: transparent;
    
    /* เพิ่มเงาบางๆ ให้ตัวหนังสือลอยเด่นขึ้น */
    filter: drop-shadow(0px 2px 2px rgba(139, 0, 0, 0.3));
    
    letter-spacing: 0.05em;
}


/* =========================================
   4. ANIMATIONS
   ========================================= */
@keyframes luxuryFadeInUp {
    0% { opacity: 0; transform: translateY(40px); filter: blur(5px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.animate-luxury { 
    opacity: 0; 
    animation: luxuryFadeInUp 1.5s cubic-bezier(0.25, 1, 0.5, 1) both; 
}

.delay-300 { animation-delay: 0.3s; }

/* Shine Effect */
@keyframes shine-pass {
    0% { left: -100%; opacity: 0; }
    20% { opacity: 0.6; }
    100% { left: 100%; opacity: 0; }
}

.hover-shine { position: relative; overflow: hidden; }

/* Shine สีขาว/ทอง */
.hover-shine::before {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: -100%; 
    width: 50%; 
    height: 100%;
    
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.6), transparent);
    
    transform: skewX(-25deg); 
    pointer-events: none;
}

.group:hover .hover-shine::before { animation: shine-pass 0.8s ease-in-out forwards; }