/*
Theme Name: N2 SHINE DETAILING
Description: Car Detailing Theme - Based on P Care Design
Version: 2.0
Author: N2 SHINE
*/

/* ========================================
   ROOT VARIABLES
======================================== */
:root {
    --primary-color: #FEF73B;
    --primary-dark: #E2D435;
    --secondary-color: #1A1B19;
    --accent-color: #E25A18;
    --text-dark: #1A1B19;
    --text-light: #FFFFFF;
    --gray-light: #F5F5F5;
    --gray-medium: #CCCCCC;
    --gray-dark: #666666;
    --gradient-primary: linear-gradient(135deg, #FEF73B 0%, #E2D435 100%);
    --gradient-dark: linear-gradient(135deg, #1A1B19 0%, #2C2D2A 100%);
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
}

/* ========================================
   GLOBAL STYLES
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Prompt', 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #FFFFFF;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0;
}

.text-center {
    text-align: center;
}

/* ========================================
   HERO SLIDER
======================================== */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: var(--secondary-color);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: kenburns 20s infinite;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

@keyframes kenburns {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 27, 25, 0.7) 0%, rgba(26, 27, 25, 0.5) 100%);
    z-index: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    color: var(--text-light);
    width: 90%;
    max-width: 800px;
}

.slide-subtitle {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 0.8s ease-out;
}

.slide-text {
    font-size: 1.5rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out;
}

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

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(254, 247, 59, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-dark);
    font-size: 1.2rem;
}

.slider-nav:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev { left: 30px; }
.slider-nav.next { right: 30px; }

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active,
.dot:hover {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* ========================================
   BUTTONS
======================================== */
.btn-primary,
.btn-secondary,
.btn-price,
.btn-cta {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--text-dark);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(254, 247, 59, 0.4);
}

.btn-secondary {
    background: var(--primary-color);
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(254, 247, 59, 0.4);
}

/* ========================================
   SECTION STYLES
======================================== */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title .pre-title {
    display: block;
    font-size: 1.2rem;
    color: var(--gray-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title .main-title,
.section-title .animated-words {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========================================
   ABOUT SECTION
======================================== */
.about-section {
    background: var(--secondary-color);
    color: var(--text-light);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.about-icon {
    font-size: 4rem;
    color: var(--primary-color);
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.service-item {
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 8px 0;
    color: var(--text-light);
}

/* ========================================
   SERVICES SECTION
======================================== */
.services-section {
    background: #FFFFFF;
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 15px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(254, 247, 59, 0.05) 0%, rgba(254, 247, 59, 0.02) 100%);
}

.service-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-primary);
    color: var(--text-dark);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.service-description {
    font-size: 0.95rem;
    color: var(--gray-dark);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-price {
    margin: 20px 0;
    padding: 15px;
    background: var(--gradient-primary) !important;
    border-radius: 10px;
    border: 2px solid var(--primary-color) !important;
}

.price-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dark) !important;
    margin-bottom: 5px;
    font-weight: 600;
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark) !important;
    display: block;
}

.price-note {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dark) !important;
    margin-top: 5px;
    font-weight: 600;
}

.service-details {
    list-style: none;
    text-align: left;
    margin: 20px 0;
    padding: 0;
}

.service-details li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-dark);
    position: relative;
    padding-left: 20px;
}

.service-details li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.btn-service {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient-primary);
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    margin-top: 10px;
}

.btn-service:hover {
    background: var(--text-dark);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(254, 247, 59, 0.3);
}

/* ========================================
   VIDEO GALLERY
======================================== */
.video-gallery {
    background: #F9F9F9;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.video-item {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.video-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* ========================================
   PROMOTION & PRICE TABLES
======================================== */
.promotion-section {
    background: var(--gradient-dark);
    padding: 60px 0;
}

.promotion-section .section-title .pre-title,
.promotion-section .section-title .animated-words {
    color: var(--text-light);
    -webkit-text-fill-color: var(--primary-color);
}

.price-tables {
    background: linear-gradient(135deg, #1A1B19 0%, #2C2D2A 100%);
    padding: 80px 0;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.price-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    border: 2px solid rgba(254, 247, 59, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.price-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(254, 247, 59, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.price-card:hover::before {
    opacity: 1;
}

.price-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(254, 247, 59, 0.3);
}

.price-card.featured {
    border-color: var(--primary-color);
    background: rgba(254, 247, 59, 0.1);
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-primary);
    color: var(--text-dark);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.price-header h3 {
    color: var(--text-light);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.price-subtitle {
    color: var(--gray-medium);
    font-size: 1rem;
    margin-bottom: 20px;
}

.price-amount {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: var(--gradient-primary) !important;
    border-radius: 15px;
    border: 3px solid #FEF73B;
    box-shadow: 0 5px 20px rgba(254, 247, 59, 0.5);
}

.price-amount .currency {
    font-size: 2rem;
    vertical-align: super;
    color: #1A1B19 !important;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.price-amount .price {
    font-size: 4.5rem;
    font-weight: 900;
    color: #1A1B19 !important;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    line-height: 1;
    display: inline-block;
}

.price-amount .period {
    display: block;
    font-size: 1.1rem;
    color: #1A1B19 !important;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-features {
    list-style: none;
    margin: 30px 0;
}

.price-features li {
    padding: 12px 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-features li i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.price-features li.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.btn-price {
    width: 100%;
    background: var(--gradient-primary);
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
    margin-top: 20px;
}

.btn-price:hover {
    background: transparent;
    color: var(--primary-color);
}

/* ========================================
   PORTFOLIO grid
======================================== */
.portfolio-section {
    background: var(--secondary-color);
    color: var(--text-light);
}

.portfolio-section .section-title .pre-title,
.portfolio-section .section-title .animated-words {
    color: var(--text-light);
    -webkit-text-fill-color: var(--primary-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(254, 247, 59, 0.2);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(254, 247, 59, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay i {
    font-size: 3rem;
    color: var(--text-dark);
}

.portfolio-content {
    padding: 25px;
}

.portfolio-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.portfolio-date {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.portfolio-excerpt {
    margin-top: 15px;
    color: var(--gray-medium);
    line-height: 1.6;
}

/* ========================================
   BLOG SECTION
======================================== */
.blog-section {
    background: #F9F9F9;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.blog-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.blog-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-item:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-content h3 a {
    color: var(--text-dark);
}

.blog-content h3 a:hover {
    color: var(--accent-color);
}

.blog-excerpt {
    color: var(--gray-dark);
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    color: var(--accent-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    color: var(--primary-dark);
}

/* ========================================
   PARTNERS SECTION
======================================== */
.partners-section {
    background: var(--secondary-color);
    padding: 60px 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
}

.partner-logo {
    transition: var(--transition);
    max-width: 180px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img,
.partner-logo svg {
    max-width: 180px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.partner-logo:hover {
    transform: scale(1.1);
}

/* ========================================
   MAP SECTION
======================================== */
.map-section {
    padding: 0;
}

.map-section iframe {
    width: 100%;
    display: block;
}

/* ========================================
   CTA BANNER
======================================== */
.cta-banner {
    background: var(--gradient-primary);
    padding: 60px 0;
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.btn-cta {
    background: var(--text-dark);
    color: var(--primary-color);
    border: 2px solid var(--text-dark);
    font-size: 1.2rem;
    padding: 18px 50px;
}

.btn-cta:hover {
    background: transparent;
    color: var(--text-dark);
    border-color: var(--text-dark);
}

/* ========================================
   MOBILE MENU (Fixed Bottom)
======================================== */
.mobile-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--secondary-color);
    border-top: 2px solid var(--primary-color);
    z-index: 999;
    display: none;
}

.mobile-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.mobile-menu-item {
    text-align: center;
    padding: 15px;
    color: var(--text-light);
    transition: var(--transition);
}

.mobile-menu-item:hover,
.mobile-menu-item.active {
    background: rgba(254, 247, 59, 0.1);
    color: var(--primary-color);
}

.mobile-menu-item i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.mobile-menu-item span {
    font-size: 0.8rem;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-text {
        font-size: 1.2rem;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .slider-nav.prev { left: 15px; }
    .slider-nav.next { right: 15px; }
    
    .section-title .main-title,
    .section-title .animated-words {
        font-size: 2rem;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .price-grid {
        grid-template-columns: 1fr;
    }
    
    .price-card.featured {
        transform: none;
    }
    
    .portfolio-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mobile-menu {
        display: block;
    }
    
    body {
        padding-bottom: 70px;
    }
}

@media (max-width: 480px) {
    .slide-title {
        font-size: 1.5rem;
    }
    
    .slide-text {
        font-size: 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    section {
        padding: 50px 0;
    }
}
