/*-- Use For Custom Styling - e-TAXAPP Modern & Performance Upgrade --*/

/* Global Typography & Reset */
body, html {
    overflow-x: hidden !important;
    max-width: 100%;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Sans Thai', sans-serif !important;
}

p {
    font-weight: 400;
    line-height: 1.7;
}

h1, .h1 {
    font-size: 2.75rem;
    line-height: 1.35;
    letter-spacing: -0.5px;
}

section[id] {
    scroll-margin-top: 90px;
}

#home {
    padding-top: 140px !important;
    padding-bottom: 70px !important;
    min-height: auto;
}

.font-weight-600 { font-weight: 600 !important; }
.font-weight-700 { font-weight: 700 !important; }
.font-weight-800 { font-weight: 800 !important; }
.font-weight-900 { font-weight: 900 !important; }

.text-blue {
    color: #0d6efd !important;
}

.bg-light-blue {
    background-color: rgba(13, 110, 253, 0.08) !important;
}

/* Dynamic Smooth Animations */
@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

.animate-float {
    animation: floatAnimation 4.5s ease-in-out infinite;
}

.img-square {
    width: 100%;
    height: auto !important;
    object-fit: contain !important;
    aspect-ratio: auto !important;
    border-radius: 12px;
}

/* Glassmorphism Navigation Bar */
.navbar-top-default {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(13, 110, 253, 0.1);
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
}

.header-appear .navbar-top-default {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(13, 110, 253, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
}

.navbar-top-default .navbar-nav .nav-link {
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    color: #2b2d42 !important;
    padding: 8px 16px !important;
    transition: color 0.25s ease;
}

.navbar-top-default .navbar-nav .nav-link:hover,
.navbar-top-default .navbar-nav .nav-link.active {
    color: #0d6efd !important;
}

/* Modern Card & Shadow Styles */
.shadow-premium {
    box-shadow: 0 12px 35px rgba(13, 110, 253, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.35s ease-in-out;
}

.shadow-premium:hover {
    box-shadow: 0 20px 45px rgba(13, 110, 253, 0.15), 0 6px 18px rgba(0, 0, 0, 0.05) !important;
}

.radius-small {
    border-radius: 16px !important;
}

.about-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(13, 110, 253, 0.08) !important;
}

.about-box:hover {
    transform: translateY(-6px);
    border-color: rgba(13, 110, 253, 0.25) !important;
}

/* Pricing Section Cards */
.pricing-item {
    border: 1px solid rgba(13, 110, 253, 0.1) !important;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 20px !important;
}

.pricing-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(13, 110, 253, 0.16) !important;
}

.bg-navy,
.card.bg-navy,
.pricing-item.bg-navy {
    background: linear-gradient(145deg, #0b132b 0%, #1c2541 100%) !important;
    background-color: #0b132b !important;
    color: #ffffff !important;
    border: 1px solid rgba(13, 110, 253, 0.3) !important;
}

.bg-navy .pricing-header h4,
.bg-navy .price h3,
.bg-navy ul li,
.bg-navy .pricing-features li {
    color: #ffffff !important;
}


/* Buttons Styling */
.btn-setting {
    border-radius: 50px !important;
    padding: 12px 28px !important;
    font-weight: 600 !important;
    letter-spacing: 0.4px;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.btn-blue {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%) !important;
    border: none !important;
    color: #fff !important;
}

.btn-blue:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.35) !important;
}

.btn-success {
    background: linear-gradient(135deg, #198754 0%, #157347 100%) !important;
    border: none !important;
    color: #fff !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, #157347 0%, #146c43 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(25, 135, 84, 0.35) !important;
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 54px;
    height: 54px;
    background: #0d6efd;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
    z-index: 1050;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    text-decoration: none !important;
    border: none;
    outline: none;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    background: #0b5ed7;
    box-shadow: 0 12px 30px rgba(13, 110, 253, 0.5);
}

.scroll-top-btn i {
    font-size: 20px;
}

/* Contact Section Custom Design */
.contact-section-custom {
    background: linear-gradient(135deg, #0b0f19 0%, #111827 100%) !important;
    position: relative;
    overflow: hidden;
    padding: 90px 0 !important;
    border-radius: 30px 30px 0 0;
}

.contact-section-custom::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.15) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.contact-section-custom::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(229, 123, 255, 0.08) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.contact-info-icon {
    background: rgba(13, 110, 253, 0.15) !important;
    transition: all 0.3s ease;
}

.contact-info-item:hover .contact-info-icon {
    background: rgba(13, 110, 253, 0.3) !important;
    transform: scale(1.08);
}

.contact-form-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
    border-radius: 24px !important;
}

/* Side Menu Off-canvas Navigation for Mobile */
.side-menu {
    background: linear-gradient(180deg, #0b132b 0%, #1c2541 100%) !important;
    z-index: 2000 !important;
}

.side-menu .side-nav .nav-link {
    font-size: 18px !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: color 0.2s ease, transform 0.2s ease;
}

.side-menu .side-nav .nav-link:hover {
    color: #0d6efd !important;
    transform: translateX(6px);
}

/* ===================================================
   Responsive Mobile & Tablet Optimization (< 992px & < 768px)
====================================================== */

@media screen and (max-width: 991px) {
    #home {
        min-height: auto !important;
        padding-top: 130px !important;
        padding-bottom: 60px !important;
    }

    .hero-btns {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }

    .hero-btns .btn-setting {
        margin-right: 0 !important;
    }

    h1, .h1 {
        font-size: 2.5rem !important;
        line-height: 1.3 !important;
    }

    .main-title h2 {
        font-size: 1.8rem !important;
    }

    .contact-section-custom {
        padding: 60px 0 !important;
        margin-top: 60px !important;
    }

    .pricing-item {
        margin-bottom: 30px;
    }

    .img-square {
        height: auto !important;
        aspect-ratio: auto !important;
    }
}

@media screen and (max-width: 767px) {
    #home {
        padding-top: 110px !important;
        padding-bottom: 40px !important;
    }

    h1, .h1 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }

    h2, .h2 {
        font-size: 1.6rem !important;
        line-height: 1.35 !important;
    }

    h3, .h3 {
        font-size: 1.35rem !important;
        line-height: 1.4 !important;
    }

    p, .font-16, .font-19 {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns a {
        width: 100%;
        text-align: center;
    }

    .pricing-item {
        padding: 30px 20px !important;
    }

    .pricing-item .price h3 {
        font-size: 38px !important;
    }

    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }

    .scroll-top-btn i {
        font-size: 18px;
    }

    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-content {
        border-radius: 16px !important;
    }

    .contact-form-card {
        padding: 24px 18px !important;
    }
}

@media screen and (max-width: 480px) {
    h1, .h1 {
        font-size: 1.75rem !important;
    }

    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}