/* ============================================================================
   KissanDostAIWeb - Main Stylesheet
   Custom styles, animations, and overrides for Tailwind CSS
   ============================================================================ */

/* ============================================================================
   Typography & General Styles
   ============================================================================ */

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #292929;
}

/* ============================================================================
   Scrollbar Styling
   ============================================================================ */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.15);
}

/* Transparent Scrollbar for Modals */
#privacy-modal ::-webkit-scrollbar,
#terms-modal ::-webkit-scrollbar {
    width: 6px;
}

#privacy-modal ::-webkit-scrollbar-track,
#terms-modal ::-webkit-scrollbar-track {
    background: transparent;
}

#privacy-modal ::-webkit-scrollbar-thumb,
#terms-modal ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

#privacy-modal ::-webkit-scrollbar-thumb:hover,
#terms-modal ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.15);
}

/* ============================================================================
   Selection Styling
   ============================================================================ */

::selection {
    background-color: #d1fae5;
    color: #065f46;
}

/* ============================================================================
   Animations
   ============================================================================ */

/* Fade In Up Animation */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-500 {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image Masking for Soft Edges */
.image-fade-bottom {
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* Details/Accordion Animation */
details[open] summary ~ * {
    animation: sweep 0.3s ease-in-out;
}

@keyframes sweep {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

details > summary {
    list-style: none;
}

details > summary::-webkit-details-marker {
    display: none;
}

/* ============================================================================
   Form Styling
   ============================================================================ */

.custom-focus:focus-within {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
    border-color: #10b981;
}

input:focus,
textarea:focus {
    outline: none;
}

/* ============================================================================
   Toast Notification Animation
   ============================================================================ */

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-down {
    animation: slide-down 0.3s ease-out forwards;
    transition: all 0.3s ease-out;
}

/* ============================================================================
   Responsive Typography
   ============================================================================ */

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
}

/* ============================================================================
   Utility Classes
   ============================================================================ */

.glass-effect {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-emerald-text {
    background: linear-gradient(to right, #059669, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
