/* Custom Fonts */
body {
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Overline Pill Label */
.overline-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 9999px;
    background: rgba(6, 182, 212, 0.12); /* cyan-500 @ 12% */
    color: #06b6d4; /* cyan-500 */
    font-weight: 600;
    font-size: 0.75rem; /* text-xs */
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dark .overline-pill {
    background: rgba(8, 145, 178, 0.18); /* cyan-600 @ 18% */
    color: #67e8f9; /* cyan-300 */
}

/* 3-item Staggered Reveal */
.stagger-3 .stagger-item {
    opacity: 0;
    animation: fadeIn 0.7s ease-out forwards;
}

.stagger-3 .stagger-item:nth-child(1) { animation-delay: 0.08s; }
.stagger-3 .stagger-item:nth-child(2) { animation-delay: 0.18s; }
.stagger-3 .stagger-item:nth-child(3) { animation-delay: 0.28s; }

/* Optional subtle panel tint utility (used if not relying solely on Tailwind) */
.subtle-tint {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.06), rgba(20, 184, 166, 0.06));
    border: 1px solid rgba(6, 182, 212, 0.15);
}

.dark .subtle-tint {
    background: linear-gradient(135deg, rgba(8, 47, 73, 0.35), rgba(6, 78, 59, 0.35));
    border-color: rgba(34, 197, 94, 0.15);
}

/* Dark Mode */
.dark {
    color-scheme: dark;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* 
 * Enhanced Blob Animations with Customizable Parameters
 * 
 * To adjust blob movement:
 * - Change translate values for distance (current: 30-50px)
 * - Change scale values for size variation (current: 0.9-1.1)
 * - Adjust animation duration in .animate-blob (current: 7s)
 * 
 * To make blobs more prominent:
 * - Increase opacity in HTML (current: opacity-40 dark:opacity-30)
 * - Increase blur-2xl to blur-3xl in HTML for softer edges
 * - Increase w-96 h-96 sizes in HTML (try w-[32rem] h-[32rem])
 */

@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(40px, -60px) scale(1.15);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.85);
    }
}

.animate-blob {
    animation: blob 7s infinite ease-in-out;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Individual blob controls - customize in HTML with Tailwind classes or add CSS here */

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* Hero Content Animation */
.hero-content {
    animation: fadeIn 1s ease-out;
}

/* Problem Cards Hover Effect */
.problem-card {
    transition: all 0.3s ease;
}

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

/* Solution Cards Hover Effect */
.solution-card {
    transition: all 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px) scale(1.02);
}

/* Feature Groups */
.feature-group {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.feature-group:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-group:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-group:nth-child(3) {
    animation-delay: 0.3s;
}

/* Timeline Items */
.timeline-item {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.timeline-item:nth-child(1) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.4s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.6s;
}

/* Form Focus States */
input:focus, select:focus, textarea:focus {
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* Button Hover Effects */
button, a {
    transition: all 0.3s ease;
}

/* Glassmorphism Effect */
.backdrop-blur-lg {
    backdrop-filter: blur(16px);
}

.backdrop-blur {
    backdrop-filter: blur(8px);
}

/* Custom Scrollbar - Auto-hide when not scrolling */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #06b6d4, #14b8a6); /* cyan-500 to teal-500 */
    border-radius: 10px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0891b2, #0d9488); /* cyan-600 to teal-600 */
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #06b6d4 transparent;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #4A90E2 0%, #9B59B6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Shadows */
.card-shadow {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.card-shadow:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Pulse Animation for CTA */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(74, 144, 226, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(155, 89, 182, 0.6);
    }
}

.pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline-item > div {
        width: 100% !important;
        text-align: center !important;
        padding: 0 !important;
        margin: 10px 0;
    }
}

/* Success Message Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#success-message.show {
    display: block !important;
    animation: slideDown 0.5s ease-out;
}

/* Loading Spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    width: 24px;
    height: 24px;
    animation: spin 0.6s linear infinite;
}

/* Select Dropdown Styling */
select option {
    background-color: white;
    color: #1a1a1a;
    padding: 10px;
}

/* Smooth Page Transitions */
section {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

section:nth-child(1) { animation-delay: 0s; }
section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }
section:nth-child(5) { animation-delay: 0.4s; }
section:nth-child(6) { animation-delay: 0.5s; }

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    nav, footer {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
}
