@tailwind base;
@tailwind components;
@tailwind utilities;

/* ========================= Home Page Styles Start ==================== */
/* Custom green button & animations */
.btn-green {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #16a34a;
    /* green-600 */
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
}

.btn-green:hover {
    background-color: #15803d;
    /* green-700 */
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1f2937 0%, #2d3e2d 100%);
    background-clip: text;
    -webkit-background-clip: text;
}

.card-hover {
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -12px rgba(0, 0, 0, 0.1);
}

.stat-card {
    transition: all 0.2s;
}

.stat-card:hover {
    background-color: #1f2937;
    border-color: #22c55e;
    transform: scale(1.02);
}

/* .hero-gradient {
                 background: linear-gradient(105deg, rgba(0, 0, 0, 0.75) 0%, rgba(22, 101, 52, 0.6) 100%);
            } */

.floating-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

    100% {
        transform: translateY(0px);
    }
}
/* ========================= Home Page Styles End ==================== */

/* ========================= Quick Contact Widget Styles Start ==================== */
#socialActions {
    transition-property: opacity, visibility, transform;
    transition-duration: 0.25s;
    transition-timing-function: cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

#socialActions.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1) !important;
    pointer-events: auto !important;
}

/* Modal animations */
#customFormModal.show {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

#customFormModal.show #modalContent {
    transform: scale(1) !important;
    opacity: 1 !important;
}

/* Override any existing button styles for consistency */
.btn-green {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #16a34a;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
}

.btn-green:hover {
    background-color: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
}

/* ========================= Quick Contact Widget Styles End ==================== */

/* ========================= Frontend Blogs Styles Start ==================== */
.blog-card {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}
.blog-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 20px 25px -12px rgba(0, 0, 0, 0.08),
        0 4px 8px -4px rgba(0, 0, 0, 0.02);
}
.tag-badge {
    transition: all 0.2s;
}
.tag-badge:hover {
    background-color: #e0e7ff;
    color: #1e40af;
    transform: translateY(-1px);
}
.sidebar-link:hover {
    color: #2563eb;
    padding-left: 0.25rem;
    transition: all 0.2s;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 640px) {
    .blog-card .flex-row {
        gap: 0.75rem;
    }
}

.prose img {
    margin: 1.5rem 0;
    border-radius: 1rem;
}

.prose p {
    margin-bottom: 1rem;
    line-height: 1.75;
}
/* ========================= Frontend Blogs Styles End ==================== */


/* ======================= FAQ Accordion Styles Starts ======================= */

.accordion-content {
            transition: all 0.2s ease-in-out;
        }

        .rotate-180 {
            transform: rotate(180deg);
        }

        .accordion-icon i {
            transition: transform 0.2s ease;
        }

/* ======================= FAQ Accordion Styles Ends ======================= */
