:root {
    --primary: #0074bd;
    --primary-dark: #005a94;
    --primary-light: #e8f4fc;
    --accent: #ff6b6b;
    --accent-light: #ffe0e0;
    --success: #51cf66;
    --warning: #ffd43b;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 16px;
    --radius-sm: 8px;
    --gradient-primary: linear-gradient(135deg, #0074bd 0%, #005a94 100%);
    --gradient-accent: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Anuphan", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

.mb-15 {
    margin-bottom: 15px;
}

/* Clearfix utility */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Alternating row backgrounds */
.bg-gray {
    background: linear-gradient(135deg, #e3f2fd 0%, #cfd0d4 100%);
    position: relative;
}

.bg-white {
    background: var(--white);
    position: relative;
}

.dashboard-card {
    position: relative;
    border: none;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s;
    cursor: pointer;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dashboard-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.dashboard-card img {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dashboard-card:hover img {
    transform: scale(1.05);
}

.modern-label {
    display: inline-block;
    padding: 4px 12px;
    font-size: 13px;
    border-radius: 5px;
    background-color: var(--primary);
    color: var(--white);
}

.floating-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.floating-icon {
    position: absolute;
    width: 100px;
    opacity: 0.1;
    animation: float 12s infinite ease-in-out;
}

.floating-icon:nth-child(1) {
    top: 10%;
    left: 3%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 30%;
    left: 91%;
    animation-delay: 3s;
}

.floating-icon:nth-child(3) {
    top: 50%;
    left: 10%;
    animation-delay: 5s;
}

.floating-icon:nth-child(4) {
    top: 80%;
    left: 5%;
    animation-delay: 7s;
}

.floating-icon:nth-child(5) {
    top: 60%;
    left: 85%;
    animation-delay: 9s;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Header */
.site-header {
    background: var(--gradient-primary);
    padding: 3rem 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% {
        transform: translate(-50px, -50px) rotate(0deg);
    }
    100% {
        transform: translate(-50px, -50px) rotate(360deg);
    }
}

.header-content {
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.logo-icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.2);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(45deg, #ffffff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-tagline {
    margin: 0;
    opacity: 0.9;
    font-size: 18px;
}

/* Main Content */
.main-content {
    padding: 4rem 0;
    position: relative;
}

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(10px);
}

.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.product-card:hover .product-badge {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 116, 189, 0.3);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: linear-gradient(45deg, var(--gray-100), var(--gray-200));
    transition: transform 0.4s ease;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.4s ease;
    padding: 20px;
    background-color: #caeefb;
}

/* .product-card:hover .product-image img {
  filter: brightness(1.1) contrast(1.2) saturate(1.1);
} */

.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 116, 189, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.product-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #1a2436;
}

.product-title {
    margin-bottom: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.product-card:hover .product-title {
    color: var(--primary);
}

.product-desc {
    color: #ccc;
    font-size: 0.95rem;
    margin: 0 0 1.5rem 0;
    flex: 1;
    line-height: 1.6;
    font-weight: 400;
}

/* .product-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
} */

.btn-demo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 8px;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-demo::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-demo:hover::before {
    left: 100%;
}

.btn-frontend {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 116, 189, 0.3);
    float: right;
}

.btn-frontend:hover {
    transform: translateY(-3px) scale(1.05);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(0, 116, 189, 0.4);
}

.btn-backend {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    float: right;
}

.btn-backend:hover {
    transform: translateY(-3px) scale(1.05);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

.btn-detail {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
    float: right;
}

.btn-detail:hover {
    transform: translateY(-3px) scale(1.05);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.4);
}

.btn-icon {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-icon:hover {
    transform: translateY(-3px) scale(1.05);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.4);
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--gray-800) 0%, #0f172a 100%);
    color: var(--white);
    text-align: center;
    padding: 15px 0 0;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.site-footer p {
    margin: 0 0 20px;
    font-size: 16px;
    opacity: 0.8;
    font-weight: 400;
}

.site-footer ul {
    padding: 0;
    margin: 10px 0;
}

.site-footer ul li {
    display: inline;
    list-style-type: none;
    margin: 0 1rem;
    color: #ccc;
    font-size: 18px;
}

.site-footer ul li a {
    transition: color 0.3s ease;
    color: #ccc;
}

.site-footer ul li a:hover {
    transition: color 0.3s ease;
    color: #fff;
}

.logo-footer {
    width: 150px;
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    border-top: 1px solid #414756;
    line-height: 50px;
}

.copyright p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
    font-weight: 400;
}

/* Scroll Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Pulse animation for badges */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 116, 189, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 116, 189, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 116, 189, 0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: 2rem 0;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .logo-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .main-content {
        padding: 2rem 0;
    }

    .main-content:nth-child(odd),
    .main-content:nth-child(even) {
        transform: none;
        margin: 1rem 0;
    }

    .main-content:nth-child(odd) .container,
    .main-content:nth-child(even) .container {
        transform: none;
    }

    .product-card {
        margin-bottom: 1.5rem;
    }

    .btn-demo {
        padding: 10px 16px;
        font-size: 0.8rem;
        margin-right: 4px;
        margin-bottom: 8px;
    }

    .product-body {
        padding: 1.25rem;
    }

    .product-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 1.5rem 0;
    }

    .logo {
        flex-direction: column;
        gap: 8px;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .header-tagline {
        font-size: 0.9rem;
    }

    .main-content {
        padding: 1.5rem 0;
    }

    .product-links {
        flex-direction: column;
        gap: 4px;
    }

    .btn-demo {
        width: 100%;
        justify-content: center;
        margin-right: 0;
    }
}
