/* 
==============================================
   ERP SYSTEM - PREMIUM LANDING PAGE
   Theme: Modern Medical, Clean, Professional
==============================================
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Sarabun:wght@300;400;500;600;700&display=swap');

:root {
    /* Primary Color Palette (Medical/Trust) */
    --primary-hue: 195;
    --primary-main: hsl(var(--primary-hue), 85%, 45%);
    --primary-dark: hsl(var(--primary-hue), 90%, 35%);
    --primary-light: hsl(var(--primary-hue), 80%, 95%);

    /* Accent Colors */
    --accent-gold: hsl(35, 90%, 55%);
    --accent-coral: hsl(4, 80%, 65%);

    /* Neutrals */
    --text-main: hsl(210, 20%, 20%);
    --text-muted: hsl(210, 15%, 50%);
    --text-light: hsl(210, 10%, 95%);
    --bg-body: hsl(210, 20%, 98%);
    --bg-card: hsl(0, 0%, 100%);

    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--primary-main), var(--primary-dark));
    --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(50, 150, 200, 0.2);

    /* Typography */
    --font-heading: 'Sarabun', 'Inter', sans-serif;
    --font-body: 'Sarabun', 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 
   ---------------------------
   Utilities
   ---------------------------
*/
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    gap: 10px;
}

.btn-primary {
    background: var(--grad-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-main);
    color: var(--primary-main);
}

.btn-outline:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 2px;
}

/* 
   ---------------------------
   Header / Navbar
   ---------------------------
*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 20px 0;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    /* Default for scrolled */
}

.logo i {
    color: var(--accent-gold);
}

.header:not(.scrolled) .logo {
    color: white;
}

.header.scrolled .logo {
    color: var(--primary-dark);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    opacity: 0.9;
    transition: 0.3s;
}

.header.scrolled .nav-links a {
    color: var(--text-main);
}

.nav-links a:hover {
    opacity: 1;
    color: var(--accent-gold);
}

.nav-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.header.scrolled .nav-toggle {
    color: var(--text-main);
}

/* 
   ---------------------------
   Hero Section
   ---------------------------
*/
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* Professional Medical Background */
    background: url('https://images.unsplash.com/photo-1538108149393-fbbd81895907?q=80&w=2128&auto=format&fit=crop') no-repeat center center/cover;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(4, 59, 92, 0.85), rgba(8, 102, 142, 0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    padding-top: 80px;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: white;
    line-height: 1.2;
    margin-bottom: 24px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-weight: 700;
}

.hero-text p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    max-width: 600px;
}

/* Login Card (Glassmorphism) */
.hero-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    animation: float 6s ease-in-out infinite;
    max-width: 400px;
    margin: 0 auto;
}

.hero-card h3 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.hero-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.login-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.3s;
    text-decoration: none;
}

.btn-thaid {
    background: #1A3C72;
    color: white;
}

.btn-thaid:hover {
    background: #0f2444;
    transform: translateY(-2px);
}

.btn-signin {
    background: var(--grad-primary);
    color: white;
}

.btn-signin:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #888;
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.divider::before {
    margin-right: 10px;
}

.divider::after {
    margin-left: 10px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* 
   ---------------------------
   Modules Section
   ---------------------------
*/
.modules-section {
    padding: 100px 0;
    background: white;
    position: relative;
    z-index: 10;
    margin-top: -50px;
    border-radius: 40px 40px 0 0;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.module-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.module-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.module-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: var(--primary-main);
    transition: 0.3s;
}

.module-card:hover .module-icon {
    background: var(--primary-main);
    color: white;
}

.module-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.module-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* 
   ---------------------------
   Partners Section
   ---------------------------
*/
.partners-section {
    background: var(--bg-body);
    padding: 80px 0;
}

.partners-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
    align-items: center;
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0.7;
    transition: 0.3s;
}

.partner-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

.partner-item i {
    font-size: 3rem;
    color: var(--primary-main);
}

.partner-item span {
    font-weight: 600;
    color: var(--text-muted);
}

/* 
   ---------------------------
   Footer
   ---------------------------
*/
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-nav h3 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: var(--accent-gold);
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 16px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-nav a:hover {
    color: white;
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* 
   ---------------------------
   Mobile Responsive
   ---------------------------
*/
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 100px;
        gap: 40px;
    }

    .hero-text p {
        margin: 0 auto 32px;
    }

    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 30px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        transition: 0.4s ease;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        color: var(--text-main);
        font-size: 1.1rem;
        display: block;
        padding: 10px 0;
    }

    .nav-toggle {
        display: block;
    }
}