/* นำเข้าฟอนต์ Kanit */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;500;700&display=swap');

body {
    font-family: 'Kanit', sans-serif;
    background-color: #050308;
    color: white;
}

/* =========================================
   Hero background (ธีมชมพู-ดำ-ม่วงอ่อน)
========================================= */
.hero-bg {
    position: relative;
    background:
        radial-gradient(circle at 20% 25%, rgba(244, 114, 182, 0.16), transparent 45%),
        radial-gradient(circle at 80% 20%, rgba(196, 181, 253, 0.16), transparent 45%),
        radial-gradient(circle at 50% 95%, rgba(168, 85, 247, 0.14), transparent 55%),
        #050308;
}

.hero-blob {
    position: absolute;
    border-radius: 9999px;
    filter: blur(70px);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

.hero-blob-1 {
    top: -10%;
    left: -8%;
    width: 380px;
    height: 380px;
    background: #f472b6;
    animation: blobFloat 14s ease-in-out infinite;
}

.hero-blob-2 {
    bottom: -15%;
    right: -10%;
    width: 420px;
    height: 420px;
    background: #a78bfa;
    animation: blobFloat 18s ease-in-out infinite reverse;
}

.hero-blob-3 {
    top: 40%;
    left: 60%;
    width: 260px;
    height: 260px;
    background: #c4b5fd;
    animation: blobFloat 11s ease-in-out infinite;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -25px) scale(1.08); }
    66% { transform: translate(-25px, 20px) scale(0.94); }
}

/* =========================================
   ข้อความไล่สีแบบมีประกาย
========================================= */
.gradient-text {
    background: linear-gradient(90deg, #f9a8d4, #c4b5fd, #f472b6, #c4b5fd, #f9a8d4);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmerText 8s linear infinite;
}

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

/* =========================================
   ปุ่มไล่สี / ปุ่มขอบ
========================================= */
.btn-gradient {
    background: linear-gradient(135deg, #ec4899, #a855f7);
    background-size: 180% 180%;
    background-position: 0% 0%;
    transition: background-position 0.5s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 20px -6px rgba(236, 72, 153, 0.5);
}

.btn-gradient:hover {
    background-position: 100% 100%;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -6px rgba(236, 72, 153, 0.65);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(244, 114, 182, 0.4);
    transition: border-color 0.3s, transform 0.2s, background 0.3s;
}

.btn-outline:hover {
    border-color: #f472b6;
    background: rgba(244, 114, 182, 0.1);
    transform: translateY(-2px);
}

.btn-outline:hover .icon-arrow,
.cta-link:hover .icon-arrow {
    transform: translateX(4px);
}

/* =========================================
   โลโก้
========================================= */
.logo-spin {
    animation: logoPulse 3s ease-in-out infinite;
    transform-origin: center;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 0 rgba(244, 114, 182, 0)); }
    50% { transform: scale(1.15) rotate(20deg); filter: drop-shadow(0 0 6px rgba(244, 114, 182, 0.7)); }
}

/* =========================================
   การ์ดบริการ
========================================= */
.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: left;
    transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(244, 114, 182, 0.5);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px -20px rgba(168, 85, 247, 0.45);
}

.service-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: transform 0.4s ease;
}

.service-icon svg {
    width: 1.6rem;
    height: 1.6rem;
}

.service-card:hover .service-icon,
.extra-card:hover .service-icon {
    transform: scale(1.15) rotate(-6deg);
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #f472b6;
    font-size: 0.85rem;
    font-weight: 700;
    transition: color 0.2s;
}

.cta-link:hover {
    color: #f9a8d4;
}

.cta-link .icon-arrow {
    width: 1rem;
    height: 1rem;
    transition: transform 0.25s ease;
}

/* =========================================
   การ์ดบริการเสริม
========================================= */
.extra-card {
    display: block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.extra-card:hover {
    transform: translateY(-6px);
    border-color: rgba(196, 181, 253, 0.6);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px -20px rgba(196, 181, 253, 0.45);
}

/* =========================================
   ไทม์ไลน์ความเป็นมา
========================================= */
.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid rgba(244, 114, 182, 0.3);
}

.timeline-item {
    position: relative;
    padding-bottom: 2.25rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2.4rem;
    top: 0.3rem;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    background: #f472b6;
    animation: dotPulse 2.4s ease-in-out infinite;
}

@keyframes dotPulse {
    0% { box-shadow: 0 0 0 0 rgba(244, 114, 182, 0.45); }
    70% { box-shadow: 0 0 0 10px rgba(244, 114, 182, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 114, 182, 0); }
}

.timeline-date {
    color: #f472b6;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}
