:root {
    --primary-color: #0D47A1;
    /* Deep Blue */
    --secondary-color: #FF6F00;
    /* Amber/Orange */
    --text-color: #333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --font-main: 'Kanit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-btn {
    background: linear-gradient(135deg, var(--primary-color), #1976D2);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #1565C0, #0D47A1);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?q=80&w=2531&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 1rem;
    margin-top: 60px;
    /* Header height */
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
    background-color: #e65100;
    transform: translateY(-2px);
}

/* Services Section */
.services {
    padding: 4rem 5%;
    background-color: var(--light-bg);
    text-align: center;
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 0.5rem auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Why Choose Us */
.why-choose-us {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    text-align: left;
    padding: 1rem;
}

.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Portfolio */
.portfolio {
    padding: 4rem 5%;
    background-color: var(--light-bg);
    text-align: center;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    height: 250px;
    background-color: #ddd;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

/* Contact Section */
.contact {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
}

.contact-map {
    flex: 1.5;
    min-width: 300px;
    height: 400px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: #333;
    color: var(--white);
    padding: 2rem 5%;
    text-align: center;
}

footer a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 1rem 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: breathe 2s infinite ease-in-out;
}

@keyframes breathe {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
}

.float-btn:hover {
    animation-play-state: paused;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.line-btn {
    background-color: #06C755;
    /* Line Green */
}

.phone-btn {
    background-color: #0D47A1;
    /* Primary Blue */
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Sequential Pulse Animation */
@keyframes sequentialPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    }

    5% {
        transform: scale(1.05);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    }

    10% {
        transform: scale(1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    }
}

/* Apply animation to visible service cards */
.service-card.visible {
    animation: sequentialPulse 8s infinite ease-in-out;
}

/* Stop animation on hover */
.service-card:hover {
    animation: none;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Staggered delays for grids */
.services-grid .service-card:nth-child(1) {
    transition-delay: 0.1s;
    animation-delay: 1.1s;
}

.services-grid .service-card:nth-child(2) {
    transition-delay: 0.2s;
    animation-delay: 2.1s;
}

.services-grid .service-card:nth-child(3) {
    transition-delay: 0.3s;
    animation-delay: 3.1s;
}

.services-grid .service-card:nth-child(4) {
    transition-delay: 0.4s;
    animation-delay: 4.1s;
}

.services-grid .service-card:nth-child(5) {
    transition-delay: 0.5s;
    animation-delay: 5.1s;
}

.services-grid .service-card:nth-child(6) {
    transition-delay: 0.6s;
    animation-delay: 6.1s;
}

.services-grid .service-card:nth-child(7) {
    transition-delay: 0.7s;
    animation-delay: 7.1s;
}

.services-grid .service-card:nth-child(8) {
    transition-delay: 0.8s;
    animation-delay: 8.1s;
}

.portfolio-grid .portfolio-item:nth-child(1) {
    transition-delay: 0.1s;
}

.portfolio-grid .portfolio-item:nth-child(2) {
    transition-delay: 0.2s;
}

.portfolio-grid .portfolio-item:nth-child(3) {
    transition-delay: 0.3s;
}

.portfolio-grid .portfolio-item:nth-child(4) {
    transition-delay: 0.4s;
}

.portfolio-grid .portfolio-item:nth-child(5) {
    transition-delay: 0.5s;
}

.portfolio-grid .portfolio-item:nth-child(6) {
    transition-delay: 0.6s;
}

.features-grid .feature-item:nth-child(1) {
    transition-delay: 0.1s;
}

.features-grid .feature-item:nth-child(2) {
    transition-delay: 0.2s;
}

.features-grid .feature-item:nth-child(3) {
    transition-delay: 0.3s;
}

.features-grid .feature-item:nth-child(4) {
    transition-delay: 0.4s;
}