/* Global Styles */
:root {
    --primary-color: #ED1C24; /* Thai flag red */
    --secondary-color: #ED1C24; /* Thai flag blue */
    --accent-color: #FFC72C; /* Thai gold */
    --dark-color: #1a1a2e;
    --light-color: #f7fff7;
    --gradient-bg: linear-gradient(135deg, #241D4F 0%, #16213e 100%);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Prompt', sans-serif;
    background: var(--gradient-bg);
    color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 30px;
    padding: 5px;
}

.language-switcher button {
    background: none;
    border: none;
    color: var(--light-color);
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.language-switcher button.active {
    background: var(--primary-color);
}

/* Language Display */
.en, .th {
    display: none;
}

body.lang-en .en {
    display: inline-block;
}

body.lang-th .th {
    display: inline-block;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: relative;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    max-width: 150px; /* Reduce logo size */
    height: auto;
}

.logo-icon {
    font-size: 2.5rem;
    margin-right: 10px;
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.login-btn, .register-btn {
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.login-btn {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.login-btn:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
}

.register-btn {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: var(--light-color);
}

.register-btn:hover {
    background: transparent;
    color: var(--primary-color);
}
.cta-btn {
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 40px;
    transition: all 0.3s ease;
    text-align: center;
}

.cta-btn {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: var(--light-color);
}

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

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    margin: 80px 0;
    position: relative;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--accent-color);
}

.section-description {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.section-tagline {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 0;
    padding: 0;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 949px; /* Specified height */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    color: var(--light-color);
}

.carousel-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.carousel-control {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    margin: 0 10px;
    transition: background 0.3s ease;
}

.carousel-control:hover {
    background: var(--primary-color);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    margin: 0 20px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-indicator.active {
    background: var(--primary-color);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--light-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-description {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-color);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(237, 28, 36, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background: transparent;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(237, 28, 36, 0.6);
}

.fire-emoji {
    margin-left: 10px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.feature-description {
    font-size: 1rem;
}

/* Offer Section */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}
.section-cta{
    text-align: center;
}

.offer-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.offer-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    text-align: center;
}

.offer-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    text-align: center;
}

.offer-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
}

.offer-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Steps Section */
.steps-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 40px 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 250px;
    margin-bottom: 30px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.step-title {
    font-size: 1.2rem;
    color: var(--light-color);
}

/* Signup Form */
.signup-form {
    max-width: 500px;
    margin: 50px auto;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 30px;
}

.form-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--accent-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: var(--primary-color);
    color: var(--light-color);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 30px;
    position: relative;
}

.testimonial-quote {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    text-align: right;
    font-weight: 600;
    color: var(--secondary-color);
}

/* Security Section */
.security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.security-item {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 20px;
}

.security-icon {
    font-size: 2rem;
    margin-right: 20px;
    color: var(--secondary-color);
}

.security-text {
    font-size: 1rem;
}

/* Final CTA */
.final-cta {
    text-align: center;
    padding: 50px 0;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 50px 20px 20px;
    margin-top: 100px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo-img {
    max-width: 120px; /* Reduce footer logo size */
    height: auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-link {
    color: var(--light-color);
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.copyright {
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .carousel-slides {
        height: 700px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 20px;
    }
    
    .auth-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .carousel-slides {
        height: 600px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .carousel-slides {
        height: 500px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .carousel-control {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .carousel-indicator {
        width: 8px;
        height: 8px;
    }
}
