:root {
    /* Primary Palette - Sophisticated Green & Deep Teal */
    --primary: #10b981; /* Emerald Green */
    --primary-glow: rgba(16, 185, 129, 0.25);
    --secondary: #ecfdf5; /* Ultra Light Green */
    --accent: #065f46; /* Deep Emerald */
    
    /* Backgrounds - Modern Slate & White */
    --bg-deep: #f8fafc;
    --bg-main: #ffffff;
    --bg-surface: #ffffff;
    
    /* Glassmorphism Refined */
    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(16, 185, 129, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(16, 185, 129, 0.08);
    
    /* Text - High Contrast */
    --text-bright: #064e3b; /* Deep Forest Green */
    --text-main: #334155;   /* Slate 700 */
    --text-muted: #64748b;  /* Slate 500 */
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Anuphan', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-fast: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7; /* Increased for readability */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-surface);
    border-radius: 10px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography Enhancements */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-bright);
    letter-spacing: -0.01em;
}

.text-gradient {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 2px 10px rgba(16, 185, 129, 0.2));
}

.highlight {
    color: var(--primary);
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    font-family: var(--font-heading);
    gap: 0.75rem;
    font-size: 1rem;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #059669);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.1rem 2.8rem;
    box-shadow: 0 12px 35px var(--primary-glow);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 45px var(--primary-glow);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-bright);
    font-weight: 700;
    backdrop-filter: blur(12px);
    border: 2px solid var(--primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.btn-line {
    background: #00b900;
    color: white;
}

.btn-phone {
    background: var(--accent);
    color: white;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

header.scrolled {
    padding: 0.7rem 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    z-index: 1001;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon-simple {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.logo:hover .logo-icon-simple {
    transform: translate(3px, -3px) scale(1.1);
}

.logo-brand {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-main {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.brand-sub {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: 0.15em;
    margin-top: -2px;
}

/* Fix for Light Mode visibility if needed */
.logo-text span {
    color: var(--primary);
    margin-left: 0.25rem;
    font-weight: 400;
    font-size: 1.25rem;
    opacity: 0.8;
}

.logo .symbol {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #ffffff;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.lang-switch button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.8rem;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
    background: linear-gradient(to right, rgba(255,255,255,0.95) 30%, rgba(255,255,255,0.6) 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    height: 100%;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.05) contrast(1.05);
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.8rem, 10vw, 5.5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2rem;
    color: var(--text-bright);
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 3.5rem;
    max-width: 600px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 1.25rem;
}

/* Sections */
section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 3rem 2rem;
    transition: var(--transition-smooth);
}

.feature-card .icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-bright);
}

.feature-card p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Services */
.services {
    background: #f8fafc;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
}

.service-card {
    flex: 1 1 350px;
    max-width: 400px;
    background: #ffffff;
    border-radius: 32px;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(16, 185, 129, 0.12);
    border-color: var(--primary);
}

.service-image {
    height: 280px;
    position: relative;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 10;
}

.service-info {
    padding: 2.5rem;
    background: #ffffff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.service-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-main);
}

/* CTA Box */
.cta-box {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 48px;
    padding: 5rem 3rem;
    text-align: center;
}

.steps-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin: 4rem 0;
    text-align: left;
}

.step-item {
    display: flex;
    gap: 1.25rem;
}

.step-num {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Footer */
footer {
    padding: 5rem 0 2rem;
    background: #f0fdf4;
    border-top: 1px solid var(--glass-border);
    color: var(--text-main);
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

/* Mobile Specific Optimizations */
@media (max-width: 768px) {
    section {
        padding: 5rem 0;
    }

    .hero {
        text-align: center;
        padding-top: 140px;
        background: linear-gradient(to bottom, rgba(255,255,255,0.95) 50%, rgba(255,255,255,0.8) 100%);
    }

    .hero-bg {
        width: 100%;
        opacity: 0.5;
    }

    .hero-bg::after {
        background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0.3) 100%);
    }

    .hero-content {
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-btns {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    /* Mobile Menu - Full Screen Overlay */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-deep);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: 0.5s cubic-bezier(0.7, 0, 0.3, 1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 600;
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 6px;
        z-index: 1001;
        cursor: pointer;
    }

    .mobile-menu-btn span {
        width: 28px;
        height: 2px;
        background: var(--text-bright);
        transition: var(--transition-smooth);
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .cta-box {
        padding: 3rem 1.5rem;
        border-radius: 32px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Floating Action Buttons for Mobile */
    .mobile-fab {
        position: fixed;
        bottom: 20px;
        left: 20px;
        right: 20px;
        z-index: 999;
        display: flex;
        gap: 10px;
    }

    .mobile-fab .btn {
        flex: 1;
        padding: 0.8rem;
        font-size: 0.9rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
}

/* EV Promotion Section Styles */
.ev-promo {
    background: var(--bg-deep);
    padding: 6rem 0;
}

.ev-promo-box {
    background: linear-gradient(145deg, #05070a 0%, #0f172a 100%);
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: 48px;
    padding: 6rem 3rem;
    text-align: center;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4), 0 0 50px rgba(16, 185, 129, 0.05);
    position: relative;
    overflow: hidden;
}

.ev-promo-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #10b981 0%, #3b82f6 50%, #10b981 100%);
    background-size: 200% auto;
    animation: flowGradient 5s linear infinite;
}

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

.ev-promo-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 3.5rem;
    background: linear-gradient(135deg, #00d2ff 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.ev-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.ev-feature-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    padding: 3rem 2rem;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.ev-feature-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.ev-feature-icon {
    font-size: 3rem;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
}

.ev-feature-item p {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.6;
}

.ev-promo-action {
    margin-bottom: 3rem;
}

.ev-question {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    color: #ffffff;
}

.btn-ev-pulse {
    background: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 100%);
    color: white;
    font-weight: 600;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    border-radius: 100px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
    animation: evPulse 2s infinite;
}

@keyframes evPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(0, 210, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 210, 255, 0);
    }
}

.ev-promo-footer {
    display: flex;
    justify-content: center;
}

.gift-note {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00d2ff;
    padding: 1.2rem 2.5rem;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 1rem;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.25);
    max-width: 90%;
}

.gift-icon {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .ev-promo-box {
        padding: 3rem 1.5rem;
    }
    .ev-promo-title {
        font-size: 1.8rem;
    }
    .btn-ev-pulse {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
    }
    .gift-note {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-content p {
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
}

.hero-content .hero-btns {
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s forwards;
}

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

/* Base Reveal Variables */
:root {
    --reveal-duration: 0.8s;
    --reveal-easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--reveal-duration) var(--reveal-easing), 
                transform var(--reveal-duration) var(--reveal-easing);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity var(--reveal-duration) var(--reveal-easing), 
                transform var(--reveal-duration) var(--reveal-easing);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity var(--reveal-duration) var(--reveal-easing), 
                transform var(--reveal-duration) var(--reveal-easing);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-zoom {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity var(--reveal-duration) var(--reveal-easing), 
                transform var(--reveal-duration) var(--reveal-easing);
}

.reveal-zoom.visible {
    opacity: 1;
    transform: scale(1);
}

/* Hover Floating Effect for EV Icons */
.ev-feature-icon {
    font-size: 3rem;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
    display: inline-block;
    transition: transform 0.3s ease;
}

.ev-feature-item:hover .ev-feature-icon {
    animation: bounceIcon 1.5s infinite;
}

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

/* Stagger Delays for Grids */
.features-grid .feature-card:nth-child(1) { transition-delay: 0.1s; }
.features-grid .feature-card:nth-child(2) { transition-delay: 0.2s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.3s; }
.features-grid .feature-card:nth-child(4) { transition-delay: 0.4s; }

.services-grid .service-card:nth-child(1) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.2s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.3s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.4s; }
.services-grid .service-card:nth-child(5) { transition-delay: 0.5s; }

.ev-features-grid .ev-feature-item:nth-child(1) { transition-delay: 0.1s; }
.ev-features-grid .ev-feature-item:nth-child(2) { transition-delay: 0.2s; }
.ev-features-grid .ev-feature-item:nth-child(3) { transition-delay: 0.3s; }

.steps-v2 .step-item:nth-child(1) { transition-delay: 0.1s; }
.steps-v2 .step-item:nth-child(2) { transition-delay: 0.2s; }
.steps-v2 .step-item:nth-child(3) { transition-delay: 0.3s; }
