/* ============================================
   ADDPAY MODERN CSS - 2026 Edition
   ============================================ */

:root {
    --primary: #0066FF;
    --primary-dark: #0050CC;
    --primary-light: #E8F0FE;
    --accent: #FF8C00;
    --accent-light: #FFF3E0;
    --gradient-1: linear-gradient(135deg, #0066FF 0%, #00C6FF 100%);
    --gradient-2: linear-gradient(135deg, #FF8C00 0%, #FFB347 100%);
    --gradient-hero: linear-gradient(135deg, #0a1628 0%, #0d2847 40%, #0066FF 100%);
    --dark: #0F172A;
    --dark-2: #1E293B;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ RESET & BASE ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Kanit', sans-serif;
    color: var(--gray-700);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.3;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 80px 0;
}

/* ============ NAVBAR ============ */
.navbar-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 12px 0;
    transition: var(--transition);
    z-index: 1050;
}

.navbar-modern.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
}

.navbar-modern .navbar-brand img {
    height: 45px;
    transition: var(--transition);
}

.navbar-modern.scrolled .navbar-brand img {
    height: 38px;
}

.navbar-modern .nav-link {
    color: var(--gray-700) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 18px !important;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.navbar-modern .nav-link:hover,
.navbar-modern .nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-light);
}

.navbar-modern .nav-link.btn-login {
    background: var(--gradient-1);
    color: var(--white) !important;
    padding: 8px 24px !important;
    border-radius: 50px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.navbar-modern .nav-link.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
    background: var(--gradient-1);
}

.navbar-modern .dropdown-menu {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    margin-top: 8px;
    animation: fadeInDown 0.3s ease;
}

.navbar-modern .dropdown-item {
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 400;
    transition: var(--transition);
}

.navbar-modern .dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.navbar-toggler {
    border: none !important;
    padding: 8px;
    box-shadow: none !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.navbar-toggler-icon {
    width: 24px;
    height: 24px;
}

/* ============ TOP BAR ============ */
.top-bar-modern {
    background: var(--gradient-1);
    padding: 8px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

.top-bar-modern a {
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}

.top-bar-modern a:hover {
    color: var(--white);
}

.top-bar-modern i {
    margin-right: 4px;
}

/* ============ HERO SECTION ============ */
.hero-section {
    background: var(--gradient-hero);
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(5deg); }
    66% { transform: translateY(20px) rotate(-3deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title .text-gradient {
    background: linear-gradient(135deg, #00C6FF, #FFB347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
    max-width: 540px;
    margin-bottom: 36px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-visual {
    position: relative;
    z-index: 2;
    animation: fadeInRight 1s ease 0.4s both;
}

.hero-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
    color: var(--white);
}

.hero-card .stat-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    background: linear-gradient(135deg, #fff, #00C6FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-card .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.hero-stat-item {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat-item .number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
}

.hero-stat-item .label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

/* ============ BUTTONS ============ */
.btn-modern {
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-modern {
    background: var(--gradient-2);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.4);
    color: var(--white);
}

.btn-outline-modern {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-modern:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-primary-solid {
    background: var(--gradient-1);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.btn-primary-solid:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
    color: var(--white);
}

/* ============ SECTION HEADERS ============ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.8;
}

/* ============ FEATURE CARDS ============ */
.feature-section {
    background: var(--gray-50);
    padding: 100px 0;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

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

.feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.feature-icon.blue {
    background: var(--primary-light);
    color: var(--primary);
}

.feature-icon.orange {
    background: var(--accent-light);
    color: var(--accent);
}

.feature-icon.green {
    background: #ECFDF5;
    color: #059669;
}

.feature-icon.purple {
    background: #F3E8FF;
    color: #7C3AED;
}

.feature-icon.red {
    background: #FEE2E2;
    color: #DC2626;
}

.feature-icon.teal {
    background: #E0F7FA;
    color: #00838F;
}

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

.feature-card:hover .feature-icon.orange {
    background: var(--accent);
    color: var(--white);
}

.feature-card:hover .feature-icon.green {
    background: #059669;
    color: var(--white);
}

.feature-card:hover .feature-icon.purple {
    background: #7C3AED;
    color: var(--white);
}

.feature-card:hover .feature-icon.red {
    background: #DC2626;
    color: var(--white);
}

.feature-card:hover .feature-icon.teal {
    background: #00838F;
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin: 0;
}

/* ============ SERVICE CARDS ============ */
.service-section {
    background: var(--white);
    padding: 100px 0;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    height: 100%;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card .service-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-card .service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.service-card .service-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.service-card .service-content p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.6;
}

.service-card.highlighted {
    background: var(--gradient-2);
    border: none;
    color: var(--white);
}

.service-card.highlighted h3,
.service-card.highlighted p {
    color: var(--white);
}

.service-card.highlighted p {
    opacity: 0.85;
}

/* ============ CTA SECTION ============ */
.cta-section {
    background: var(--gradient-1);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 30px;
    font-weight: 300;
}

/* ============ FOOTER ============ */
.footer-modern {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 60px;
    padding-bottom: 0;
}

.footer-brand {
    margin-bottom: 16px;
}

.footer-brand img {
    height: 45px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-heading {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.footer-contact-item i {
    color: var(--primary);
    font-size: 1rem;
    margin-top: 4px;
    width: 16px;
    text-align: center;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    font-size: 1rem;
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

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

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-visual {
        margin-top: 40px;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .navbar-modern .navbar-collapse {
        background: var(--white);
        border-radius: var(--radius);
        padding: 16px;
        margin-top: 12px;
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--gray-200);
    }

    section {
        padding: 60px 0;
    }

    .feature-section,
    .service-section {
        padding: 60px 0;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 1.7rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn-modern {
        text-align: center;
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .hero-stat-item .number {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .top-bar-modern {
        font-size: 0.8rem;
    }

    .footer-modern .col-lg-3 {
        margin-bottom: 30px;
    }
}

/* ============ UTILITY ============ */
.text-gradient-blue {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-orange {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.03) 1px, transparent 0);
    background-size: 40px 40px;
}
