.demo-iframe {
    border-bottom: #93dbfc 5px solid;
}

.iframe-placeholder {
    position: absolute;
    top: 0;
}

/* Custom Styles */
:root {
    --primary: #0b3c5d;
    --primary-light: #1d5b79;
    --secondary: #1e88e5;
    --secondary-light: #42a5f5;
    --accent: #ff9800;
    --accent-light: #ffb74d;
    --light: #f8fafc;
    --dark: #0f172a;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --success: #4caf50;
    --warning: #ffc107;
    --danger: #f44336;
    --info: #03a9f4;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    touch-action: manipulation;
}

body {
    font-family: "Poppins", sans-serif;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background-color: var(--secondary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 6px -1px rgba(30, 136, 229, 0.2),
        0 2px 4px -1px rgba(30, 136, 229, 0.1);
}

.btn-primary:hover {
    background-color: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(30, 136, 229, 0.3),
        0 4px 6px -2px rgba(30, 136, 229, 0.1);
}

.btn-secondary {
    background-color: white;
    color: var(--secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    border: 1px solid var(--secondary);
    box-shadow: 0 4px 6px -1px rgba(30, 136, 229, 0.1),
        0 2px 4px -1px rgba(30, 136, 229, 0.05);
}

.btn-secondary:hover {
    background-color: var(--secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(30, 136, 229, 0.2),
        0 4px 6px -2px rgba(30, 136, 229, 0.1);
}

.btn-accent {
    background-color: var(--accent);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 6px -1px rgba(255, 152, 0, 0.2),
        0 2px 4px -1px rgba(255, 152, 0, 0.1);
}

.btn-accent:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(255, 152, 0, 0.3),
        0 4px 6px -2px rgba(255, 152, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    border: 1px solid var(--secondary);
}

.btn-outline:hover {
    background-color: var(--secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(30, 136, 229, 0.2),
        0 4px 6px -2px rgba(30, 136, 229, 0.1);
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 2px;
}

.card {
    transition: all 0.3s ease;
    border-radius: 0.75rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.feature-icon {
    background-color: rgba(30, 136, 229, 0.1);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.process-step {
    position: relative;
}

.process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 30px;
    right: -50%;
    width: 100%;
    height: 2px;
    background-color: var(--gray-light);
    z-index: -1;
}

.step-number {
    background-color: var(--secondary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.testimonial {
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 5rem;
    color: rgba(30, 136, 229, 0.1);
    font-family: serif;
    line-height: 1;
}

/* Navbar styles */
.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: white !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.navbar.scrolled .nav-link {
    color: var(--dark) !important;
}

.navbar.scrolled .logo-text {
    color: var(--dark) !important;
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background-color: white;
    z-index: 100;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    padding: 2rem;
}

.mobile-menu.active {
    left: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Pricing table */
.pricing-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pricing-card:hover {
    border-color: var(--secondary);
    transform: scale(1.03);
}

.pricing-card.popular {
    border-color: var(--secondary);
    transform: scale(1.05);
}

/* Template card */
.template-card {
    overflow: hidden;
    position: relative;
    border: #93dbfc 1px solid;
    border-radius: 7px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.template-card .overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.template-card:hover .overlay-content {
    transform: translateY(0);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 1920px;
    height: 80vh;
    max-height: calc(90vh - 80px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0B3C5D;
}

.modal-iframe-container {
    flex: 1;
    position: relative;
    overflow: auto;
}

.modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.modal-close i {
    font-size: 20px;
    color: #333;
}

.modal-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #fff;
    z-index: 10;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1E88E5;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #42A5F5;
}

/* Gradient backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg,
            var(--primary) 0%,
            var(--primary-light) 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg,
            var(--secondary) 0%,
            var(--secondary-light) 100%);
}

.bg-gradient-accent {
    background: linear-gradient(135deg,
            var(--accent) 0%,
            var(--accent-light) 100%);
}


/* Service box with hover effect */
.service-box {
    border-top: 4px solid var(--secondary);
    transition: all 0.3s ease;
}

.service-box:hover {
    border-top-color: var(--accent);
}

/* Feature list styling */
.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary);
    font-weight: bold;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .process-step:not(:last-child)::after {
        display: none;
    }

    .hero-content {
        padding-top: 6rem;
    }

    .modal-content {
        width: 95%;
        height: 90vh;
    }

    .mobile-menu-btn {
        display: block !important;
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 50;
        background-color: var(--secondary);
        color: white;
        width: 3rem;
        height: 3rem;
        border-radius: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    /* Hide iframe overlay on mobile */
    .iframe-overlay {
        display: none;
    }

    /* Style for preview image on mobile */
    .preview-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
}

/* iPad Specific Styles */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }

    h1 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .md\:grid-cols-5 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .modal-content {
        width: 80%;
        max-width: 900px;
        height: 70vh;
    }

    .gap-8 {
        gap: 1.5rem !important;
    }

    .gap-12 {
        gap: 2rem !important;
    }

    .md\:flex.space-x-6 {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }

    .md\:flex.space-x-6 a {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }

    .p-8 {
        padding: 1.5rem !important;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
    }

    .testimonial {
        padding: 1.5rem !important;
    }

    .pricing-card {
        padding: 1.5rem !important;
    }

    .stat-counter {
        font-size: 2rem;
    }

    .process-step:not(:last-child)::after {
        display: none;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        padding: 0.75rem !important;
    }

    footer .grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 2rem !important;
    }
}

/* Stats counter */
.stat-counter {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

/* Badge styling */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background-color: var(--primary);
    color: white;
}

.badge-secondary {
    background-color: var(--secondary);
    color: white;
}

.badge-accent {
    background-color: var(--accent);
    color: white;
}

.badge-success {
    background-color: var(--success);
    color: white;
}

/* Floating elements */
.floating-element {
    position: absolute;
    z-index: 1;
    opacity: 0.1;
}

.floating-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: var(--secondary);
}

.floating-square {
    width: 200px;
    height: 200px;
    background-color: var(--accent);
    transform: rotate(45deg);
}

/* Cải tiến: Thêm lớp bảo vệ */
.protected-content {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Cải tiến: Thêm lớp cảnh báo */
.security-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    font-size: 1.5rem;
    text-align: center;
    padding: 2rem;
}

.security-warning button {
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--danger);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
}

/* Cải tiến: Thêm hiệu ứng mờ cho nội dung khi có cảnh báo */
.content-blur {
    filter: blur(10px);
    pointer-events: none;
}