/* Homepage Styles - Premium Design System */

:root {
    --primary: #2d3463;
    --primary-light: #3e488a;
    --accent: #e6b12a;
    --dark: #1e293b;
    --light: #f8fafc;
    --bg-subtle: #f1f5f9;
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(45, 52, 99, 0.12);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body {
    font-family: 'Kanit', sans-serif;
    color: var(--dark);
    background: var(--bg-subtle);
    overflow-x: hidden;
}

/* Background Decorations */
.bg-decoration {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(45, 52, 99, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(80px);
}

.blob-1 {
    top: -200px;
    right: -200px;
    animation: floatBlob 20s infinite alternate;
}

.blob-2 {
    bottom: -200px;
    left: -200px;
    background: radial-gradient(circle, rgba(230, 177, 42, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    animation: floatBlob 25s infinite alternate-reverse;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

main {
    padding-top: 180px;
    padding-bottom: 100px;
    min-height: 100vh;
}

/* Page Intro */
.page-intro {
    text-align: center;
    margin-bottom: 70px;
}

.page-intro h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.page-intro p {
    font-size: 1.25rem;
    color: #64748b;
    font-weight: 300;
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.service-card {
    background: #fff;
    padding: 50px 40px;
    border-radius: 28px;
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--primary);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(45, 52, 99, 0.1);
}

.service-card:hover::before {
    opacity: 1;
}

.icon-wrapper {
    width: 90px;
    height: 90px;
    background: #f8fafc;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    transition: var(--transition);
    position: relative;
}

.icon-wrapper i {
    font-size: 36px;
    color: var(--primary);
    z-index: 1;
}

.service-card:hover .icon-wrapper {
    background: var(--primary);
    transform: rotate(8deg) scale(1.05);
}

.service-card:hover .icon-wrapper i {
    color: #fff;
}

.service-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary);
}

.service-card p {
    color: #64748b;
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

/* --- Stats Section --- */
.stats-container {
    background: #fff;
    border-radius: 35px;
    padding: 50px;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 1s ease 0.4s backwards;
}

.stat-box {
    text-align: center;
    padding: 20px;
    position: relative;
}

.stat-box:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: #e2e8f0;
}

.stat-box h3 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-box p {
    font-size: 0.9rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin: 0;
}

@keyframes fadeInUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 991px) {
    .stat-box:not(:last-child)::after {
        display: none;
    }

    .page-intro h1 {
        font-size: 2.2rem;
    }

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