/* ===============================
   FEATURES SECTION
   =============================== */

.features-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 25% 25%, rgba(232, 199, 66, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 75% 75%, rgba(244, 208, 63, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.features-section .container {
    position: relative;
    z-index: 2;
}

.features-section .section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #e8c742, #f4d03f, #e8c742);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(232, 199, 66, 0.3);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(232, 199, 66, 0.1), rgba(244, 208, 63, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #e8c742;
    box-shadow: 0 20px 40px rgba(232, 199, 66, 0.2);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(10deg);
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.feature-card:hover .feature-title {
    color: #e8c742;
}

.feature-text {
    font-size: 1rem;
    color: #cccccc;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* ===============================
   MOBILE BOTTOM NAVIGATION
   =============================== */

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(20, 20, 20, 0.95));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 2px solid rgba(232, 199, 66, 0.3);
    z-index: 1000;
    padding: 0.5rem 0;
    display: none; /* แสดงเฉพาะมobile */
}

.mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0.25rem;
    text-decoration: none;
    color: #cccccc;
    transition: all 0.3s ease;
    position: relative;
    min-width: 60px;
}

.mobile-bottom-nav .nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #e8c742, #f4d03f);
    transition: width 0.3s ease;
    border-radius: 0 0 3px 3px;
}

.mobile-bottom-nav .nav-item.active::before {
    width: 100%;
}

.mobile-bottom-nav .nav-item.active {
    color: #e8c742;
}

.mobile-bottom-nav .nav-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    transition: transform 0.3s ease;
}

.mobile-bottom-nav .nav-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

.mobile-bottom-nav .nav-item.active .nav-icon img {
    filter: brightness(1.2);
}

.mobile-bottom-nav .nav-item:hover .nav-icon {
    transform: scale(1.1);
}

.mobile-bottom-nav .nav-item.active .nav-icon {
    transform: scale(1.2);
}

.mobile-bottom-nav span {
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
    line-height: 1;
}

/* ===============================
   FOOTER
   =============================== */

.footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #cccccc;
    padding: 3rem 0 1rem;
    position: relative;
    margin-bottom: 70px; /* เว้นที่สำหรับ mobile nav */
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e8c742, transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e8c742;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #e8c742, transparent);
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #aaaaaa;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

.footer-section ul li a::before {
    content: '▸';
    color: #e8c742;
    margin-right: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover::before {
    opacity: 1;
}

.footer-section ul li a:hover {
    color: #e8c742;
    padding-left: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888888;
    font-size: 0.9rem;
}

/* ===============================
   RESPONSIVE DESIGN
   =============================== */

/* Desktop */
@media (min-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
    
    .feature-card {
        padding: 3rem 2rem;
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .features-section {
        padding: 60px 0;
    }
    
    .features-section .section-title {
        font-size: 2.2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem 1.25rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .feature-title {
        font-size: 1.2rem;
    }
    
    .mobile-bottom-nav {
        display: flex;
    }
    
    .footer {
        margin-bottom: 70px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .features-section {
        padding: 40px 0;
    }
    
    .features-section .section-title {
        font-size: 1.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }
    
    .feature-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
    }
    
    .feature-text {
        font-size: 0.9rem;
    }
    
    .mobile-bottom-nav {
        padding: 0.25rem 0;
    }
    
    .mobile-bottom-nav .nav-item {
        padding: 0.4rem 0.2rem;
        min-width: 50px;
    }
    
    .mobile-bottom-nav .nav-icon {
        font-size: 1.3rem;
    }
    
    .mobile-bottom-nav span {
        font-size: 0.65rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 320px) {
    .features-section .section-title {
        font-size: 1.6rem;
    }
    
    .mobile-bottom-nav .nav-item {
        min-width: 45px;
    }
    
    .mobile-bottom-nav .nav-icon {
        font-size: 1.2rem;
    }
    
    .mobile-bottom-nav span {
        font-size: 0.6rem;
    }
}

/* Hide mobile nav on desktop */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
    
    .footer {
        margin-bottom: 0;
    }
}

/* ===============================
   PERFORMANCE OPTIMIZATIONS
   =============================== */

/* GPU Acceleration */
.feature-card {
    will-change: transform;
    transform: translateZ(0);
}

.mobile-bottom-nav .nav-item {
    will-change: transform;
    transform: translateZ(0);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .feature-card {
        transition: none;
    }
    
    .mobile-bottom-nav .nav-item {
        transition: none;
    }
}