/* =============================================
   EDEN MCM - Custom Styles
   กระเบื้องหินเทียม MCM
   ============================================= */

/* ---- Base Reset & Smooth Scroll ---- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    overflow-x: hidden;
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F2F4F7;
}
::-webkit-scrollbar-thumb {
    background: #2E86DE;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1B2A4A;
}

/* ---- Selection Color ---- */
::selection {
    background: rgba(46, 134, 222, 0.2);
    color: #1B2A4A;
}

/* ---- Hero Section ---- */
.hero-gradient {
    background: linear-gradient(135deg, #1B2A4A 0%, #162240 30%, #1C548C 70%, #2E86DE 100%);
}

.hero-pattern {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(86, 204, 242, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(46, 134, 222, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 60% 80%, rgba(86, 204, 242, 0.06) 0%, transparent 50%);
}

.hero-float {
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ---- Glass Card ---- */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ---- Product Card ---- */
.product-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(27, 42, 74, 0.15);
}

.product-card .product-image {
    transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-card .product-overlay {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

/* ---- Feature Card ---- */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(27, 42, 74, 0.1);
}

.feature-card .feature-icon {
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 10px 30px rgba(46, 134, 222, 0.3);
}

/* ---- Section Styles ---- */
.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #2E86DE, #56CCF2);
    border-radius: 2px;
    margin: 0 auto;
}

/* ---- Stats Counter ---- */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(46, 134, 222, 0.05), transparent 30%);
    animation: statRotate 8s linear infinite;
}

@keyframes statRotate {
    100% { transform: rotate(360deg); }
}

/* ---- Category Filter ---- */
.category-btn {
    transition: all 0.3s ease;
}

.category-btn.active,
.category-btn:hover {
    background: linear-gradient(135deg, #2E86DE, #56CCF2);
    color: white;
    box-shadow: 0 8px 25px rgba(46, 134, 222, 0.3);
    transform: translateY(-2px);
}

/* ---- Contact Form ---- */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: #F2F4F7;
}

.form-input:focus {
    border-color: #2E86DE;
    background: white;
    box-shadow: 0 0 0 4px rgba(46, 134, 222, 0.1);
    outline: none;
}

/* ---- Navbar Scroll State ---- */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* ---- Animated Underline ---- */
.animated-underline {
    position: relative;
}

.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #2E86DE, #56CCF2);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.animated-underline:hover::after {
    width: 100%;
}

/* ---- Shimmer Loading ---- */
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---- Pulse Dot ---- */
.pulse-dot {
    position: relative;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -12px;
    width: 6px;
    height: 6px;
    background: #2E86DE;
    border-radius: 50%;
    transform: translateY(-50%);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
    50% { opacity: 0.5; transform: translateY(-50%) scale(1.5); }
}

/* ---- Gradient Text ---- */
.gradient-text {
    background: linear-gradient(135deg, #2E86DE, #56CCF2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Parallax-like Section ---- */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (max-width: 768px) {
    .parallax-section {
        background-attachment: scroll;
    }
}

/* ---- Breadcrumb ---- */
.breadcrumb a {
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #56CCF2;
}

/* ---- Toast Notification ---- */
.toast {
    animation: toastSlideIn 0.4s ease, toastFadeOut 0.4s ease 3.6s forwards;
}

@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastFadeOut {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}

/* ---- Gallery Lightbox ---- */
.lightbox-overlay {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 640px) {
    .hero-gradient {
        min-height: 500px;
    }
}

/* ---- Print Styles ---- */
@media print {
    nav, footer, #scrollToTop, .no-print {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
