:root {
    /* Light Theme (Default) - สีสันสวยงาม */
    --primary-color: #3b82f6;
    --secondary-color: #f8fafc;
    --background-color: #ffffff;
    --surface-color: #f1f5f9;
    --surface-color-dark: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --accent-color: #ec4899;
    --border-color: #e2e8f0;
    --hover-bg: #f8fafc;
    --hover-border: #3b82f6;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
    /* Dark Theme - โทนดำและเทา อ่านง่าย */
    --primary-color: #ffffff;
    --secondary-color: #1a1a1a;
    --background-color: #000000;
    --surface-color: #0a0a0a;
    --surface-color-dark: #111111;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --accent-color: #404040;
    --border-color: #333333;
    --hero-overlay: rgba(0, 0, 0, 0.8);
    --hover-bg: #1a1a1a;
    --hover-border: #666666;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.4);
}

[data-theme="pink"] {
    --primary-color: #ec4899;
    --secondary-color: #fdf2f8;
    --surface-color: #fce7f3;
    --surface-color-dark: #fbcfe8;
    --background-color: #ffffff;
    --text-primary: #831843;
    --text-secondary: #be185d;
    --accent-color: #db2777;
    --border-color: #fbcfe8;
    --hover-bg: #fdf2f8;
    --hover-border: #ec4899;
    --card-shadow: 0 4px 6px -1px rgba(236, 72, 153, 0.1), 0 2px 4px -1px rgba(236, 72, 153, 0.06);
}


body {
    font-family: 'Noto Sans Thai', sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
    line-height: 1.6;
}

.font-small {
    font-size: 0.875rem !important;
}

.font-large {
    font-size: 1.125rem !important;
}

/* Top Bar - ด้านขวา */
.top-bar {
    background: var(--surface-color);
    padding: 8px 0;
    font-size: 0.875rem;
    box-shadow: 0 1px 0 var(--border-color);
}

.top-bar .controls {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
}

/* Main Navigation - ด้านซ้าย */
.main-nav {
    background: var(--background-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--card-shadow);
}

.logo {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.quote-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quote-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.quote-btn:hover::before {
    left: 100%;
}

.quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Control Styles */
.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-switcher {
    background: var(--surface-color);
    border-radius: 25px;
    padding: 4px;
    box-shadow: var(--card-shadow);
}

.theme-btn {
    border: none;
    background: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin: 0 1px;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.theme-btn:hover {
    background: var(--hover-bg);
    color: var(--text-secondary);
    transform: scale(1.1);
}

.theme-btn.active {
    background: var(--primary-color);
    color: white;
}

.font-controls {
    background: var(--surface-color);
    border-radius: 20px;
    padding: 4px 12px;
    box-shadow: var(--card-shadow);
}

.font-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: bold;
    padding: 4px 8px;
    transition: all 0.3s ease;
}

.font-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.font-btn.active {
    color: var(--primary-color);
}

.language-switcher {
    background: var(--surface-color);
    border-radius: 20px;
    padding: 4px 12px;
    box-shadow: var(--card-shadow);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 4px 8px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.lang-btn.active {
    color: var(--primary-color);
}

/* Navigation Menu */
.navbar-nav .nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::before {
    width: 80%;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.navbar-nav .dropdown-menu {
    background: var(--background-color);
    border: none;
    box-shadow: var(--card-shadow);
    border-radius: 12px;
    overflow: hidden;
}

.navbar-nav .dropdown-item {
    color: var(--text-primary);
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.navbar-nav .dropdown-item:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    transform: translateX(5px);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

[data-theme="dark"] .swiper-slide {
    background: linear-gradient(135deg, #000000 0%, #202020 100%);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 80%;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-overlay, rgba(0,0,0,0.3));
    z-index: 1;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: var(--surface-color);
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: var(--background-color);
}

.service-card {
    background: var(--background-color);
    border: none;
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.4s ease;
    height: 100%;
    color: var(--text-primary);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--hover-border), #ff6b6b, #4ecdc4, var(--hover-border));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 22px;
    background-size: 400% 400%;
}

.service-card:hover::before {
    opacity: 1;
    animation: borderFlow 3s linear infinite;
}

@keyframes borderFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: var(--hover-bg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-card:hover h5,
.service-card:hover p,
.service-card:hover i {
    color: var(--text-primary) !important;
}

.service-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

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

/* Package Section */
.package-section {
    padding: 80px 0;
    background: var(--surface-color);
}

.package-card {
    background: var(--background-color);
    border: none;
    border-radius: 20px;
    padding: 50px 30px;
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
}

.package-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 22px;
    background-size: 400% 400%;
}

.package-card:hover::before {
    opacity: 1;
    animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.package-card.featured {
    background: linear-gradient(135deg, var(--surface-color), var(--background-color));
    transform: scale(1.05);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.package-card.featured::before {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--primary-color));
}

.package-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.package-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.package-price {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Package Card Buttons */
.package-card .btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.package-card .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.package-card .btn:hover::before {
    left: 100%;
}

.package-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Footer */
.footer {
    background: var(--surface-color-dark);
    padding: 60px 0 30px;
    color: var(--text-primary);
}

.footer h5 {
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer a:hover::before {
    width: 100%;
}

.footer a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.copyright {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    color: var(--text-secondary);
}

/* Text Colors */
/* Dark Theme Specific Fixes */
[data-theme="dark"] .logo {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

[data-theme="dark"] .navbar-nav .nav-link {
    color: #ffffff !important;
}

[data-theme="dark"] .navbar-nav .nav-link:hover {
    color: #ffffff !important;
    background: #333333;
}

[data-theme="dark"] .service-card,
[data-theme="dark"] .package-card {
    background: #111111;
    border: 1px solid #333333;
}

[data-theme="dark"] .service-card h5,
[data-theme="dark"] .package-card h4,
[data-theme="dark"] .about-section h2,
[data-theme="dark"] .slide-content h1 {
    color: #ffffff !important;
}

[data-theme="dark"] .service-card p,
[data-theme="dark"] .package-card p,
[data-theme="dark"] .about-section p,
[data-theme="dark"] .footer p,
[data-theme="dark"] .slide-content p,
[data-theme="dark"] .text-muted {
    color: #cccccc !important;
}

[data-theme="dark"] .package-price {
    color: #ffffff !important;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
}

[data-theme="dark"] .service-card i {
    color: #cccccc !important;
    background: none !important;
    -webkit-text-fill-color: #cccccc !important;
}

/* Hover Effects สำหรับ Dark Theme */
[data-theme="dark"] .service-card:hover,
[data-theme="dark"] .package-card:hover {
    background: #1a1a1a;
    border-color: #666666;
    transform: translateY(-5px);
}

[data-theme="dark"] .service-card:hover::before,
[data-theme="dark"] .package-card:hover::before {
    opacity: 1;
    animation: darkBorderFlow 2s linear infinite;
    background: linear-gradient(45deg, #666666, #999999, #666666);
}

@keyframes darkBorderFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

[data-theme="dark"] .service-card:hover h5,
[data-theme="dark"] .service-card:hover p,
[data-theme="dark"] .service-card:hover i,
[data-theme="dark"] .package-card:hover h4,
[data-theme="dark"] .package-card:hover p {
    color: #ffffff !important;
}

/* ปุ่มใน Dark Theme */
[data-theme="dark"] .package-card .btn {
    background: #333333;
    color: #ffffff;
}

[data-theme="dark"] .package-card .btn:hover {
    background: #444444;
    color: #ffffff;
}

[data-theme="dark"] .quote-btn {
    background: #333333;
    color: #ffffff;
}

[data-theme="dark"] .quote-btn:hover {
    background: #444444;
    color: #ffffff;
}

/* Navigation Hover ใน Dark Theme */
[data-theme="dark"] .navbar-nav .nav-link::before {
    background: #666666;
}

[data-theme="dark"] .navbar-nav .nav-link:hover::before {
    width: 80%;
    background: #ffffff;
}

/* Dropdown ใน Dark Theme */
[data-theme="dark"] .navbar-nav .dropdown-menu {
    background: #111111;
    border: 1px solid #333333;
}

[data-theme="dark"] .navbar-nav .dropdown-item {
    color: #ffffff;
}

[data-theme="dark"] .navbar-nav .dropdown-item:hover {
    background: #333333;
    color: #ffffff;
}

/* Controls ใน Dark Theme */
[data-theme="dark"] .theme-switcher,
[data-theme="dark"] .font-controls,
[data-theme="dark"] .language-switcher {
    background: #111111;
    border: 1px solid #333333;
}

[data-theme="dark"] .theme-btn,
[data-theme="dark"] .font-btn,
[data-theme="dark"] .lang-btn {
    color: #cccccc;
}

[data-theme="dark"] .lang-btn:hover {
    /*background: #333333;*/
    color: #ffffff;
}

[data-theme="dark"] .font-btn.active,
[data-theme="dark"] .lang-btn.active {
    /*background: #666666;*/
    color: #ffffff;
}
[data-theme="dark"] .theme-btn.active,[data-theme="dark"] .theme-btn:hover{  color: var(--text-secondary);}

/* Light Theme Specific Improvements */
[data-theme="light"] {
    /* เพิ่มสีสันให้ Light Theme */
    --primary-color: #3b82f6;
    --accent-color: #ec4899;
    --hover-bg: linear-gradient(135deg, #fef7ff, #f0f9ff);
    --hover-border: #8b5cf6;
}

[data-theme="light"] .service-card:hover {
    background: var(--hover-bg);
}

[data-theme="light"] .package-card:hover {
    background: var(--hover-bg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-card,
    .package-card {
        margin-bottom: 20px;
    }
    
    .service-card:hover,
    .package-card:hover {
        transform: translateY(-5px);
    }
    
    .package-card.featured {
        transform: scale(1);
    }
    
    .package-card.featured:hover {
        transform: translateY(-5px);
    }
}