/* Custom base styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Work Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

.font-sans {
    font-family: 'Work Sans', sans-serif;
}

.font-mono {
    font-family: 'Roboto Mono', monospace;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Custom utilities */
.text-balance {
    text-wrap: balance;
}

/* Custom focus styles for accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid #5F7A8A;
    outline-offset: 2px;
}

/* Portfolio category filters */
.category-filter {
    transition: all 0.3s ease;
}

.category-filter:hover {
    background-color: rgba(241, 245, 249, 0.8);
}

/* Portfolio items hover effect */
.portfolio-item {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

/* Portfolio overlay */
@media (hover: hover) {
    /* Only apply hover effects on devices that support hover */
    .group:hover .group-hover\:opacity-100 {
        opacity: 1;
    }

    .group:hover .group-hover\:scale-105 {
        transform: scale(1.05);
    }
}

/* For touch devices, make overlay always visible but with less opacity */
@media (hover: none) {
    .group .absolute.inset-0 {
        opacity: 0.8;
    }
}

/* Pricing section styling */
.category-filter {
    transition: all 0.2s ease;
}

/* Make the comparison table responsive */
/* Make the comparison table responsive */
@media (max-width: 768px) {
    .overflow-x-auto {
        margin: 0 -20px;
        padding: 0 20px;
        width: calc(100% + 40px);
    }

    table th,
    table td {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 12px;
    }

    table th:first-child,
    table td:first-child {
        padding-left: 16px;
    }

    table th:last-child,
    table td:last-child {
        padding-right: 16px;
    }
}

/* Pricing card hover effects */
@media (hover: hover) {
    .bg-white.rounded-xl.shadow-sm:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .bg-white.rounded-xl.shadow-md {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .bg-white.rounded-xl.shadow-md: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);
    }
}

/* Helper classes for pricing tiers */
.pricing-best-value {
    position: relative;
}

.pricing-best-value::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5F7A8A, #E8D6B0);
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

/* Contact section platform buttons */
.contact-platform-button {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-platform-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Instagram gradient background */
.bg-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

/* Contact benefits hover animation */
.benefit-card {
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

/* Mobile optimizations for contact section */
@media (max-width: 768px) {
    .platform-button-text {
        font-size: 14px;
    }

    .platform-icon {
        width: 40px;
        height: 40px;
    }
}

/* Floating CTA styles */
#floating-cta {
    transition: bottom 0.3s ease;
}

#floating-cta-button-desktop {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#floating-cta-button-mobile {
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

/* Adjust padding for pages with the mobile floating CTA */
@media (max-width: 767px) {
    body {
        padding-bottom: 60px; /* Height of the mobile CTA */
    }

    footer {
        margin-bottom: 60px; /* Make sure footer content isn't covered */
    }
}

/* Messenger popup styles */
#messenger-popup {
    backdrop-filter: blur(5px);
}

/* Platform buttons in popup */
#messenger-popup a {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#messenger-popup a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Privacy Policy modal specific styles */
#privacy-policy-modal .prose {
    line-height: 1.7;
    color: #475569;
}

#privacy-policy-modal h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: #1e293b;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

#privacy-policy-modal p {
    margin-bottom: 1rem;
}

#privacy-policy-modal ul {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    list-style-type: disc;
}

#privacy-policy-modal li {
    margin-bottom: 0.375rem;
}

#privacy-policy-modal strong {
    font-weight: 600;
    color: #334155;
}

/* Modal animation styles */
#privacy-policy-modal.visible {
    pointer-events: auto;
}

#privacy-policy-modal.invisible {
    pointer-events: none;
}

/* Mobile optimization for privacy policy */
@media (max-width: 640px) {
    #privacy-policy-modal .prose {
        font-size: 0.9rem;
    }

    #privacy-policy-modal h3 {
        font-size: 1.25rem;
    }
}

/* Legal modals common styles */
.legal-modal .prose {
    line-height: 1.7;
    color: #475569;
}

.legal-modal h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: #1e293b;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-modal p {
    margin-bottom: 1rem;
}

.legal-modal ul, .legal-modal ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.legal-modal ul {
    list-style-type: disc;
}

.legal-modal ol {
    list-style-type: decimal;
}

.legal-modal li {
    margin-bottom: 0.375rem;
}

.legal-modal strong {
    font-weight: 600;
    color: #334155;
}

/* Modal animation styles */
#privacy-policy-modal.visible,
#terms-of-service-modal.visible {
    pointer-events: auto;
}

#privacy-policy-modal.invisible,
#terms-of-service-modal.invisible {
    pointer-events: none;
}

/* Mobile optimization for legal modals */
@media (max-width: 640px) {
    .legal-modal .prose {
        font-size: 0.9rem;
    }

    .legal-modal h3 {
        font-size: 1.25rem;
    }
}