/* Dialogyx Brand Styles - ORIGINAL WITH MINIMAL ACCESSIBILITY FIXES */
/* Custom CSS for brand colors and animations */
:root {
    --brand-navy: #1E3A5F;
    --brand-teal: #00A8A8;
    --brand-orange: #FF6B35;
    --brand-green: #2ECC71;
}

body {
    font-family: 'Sora', sans-serif;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 40%, #94a3b8 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Transparent overlays for sections */
.hero-bg {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.section-alt {
    background: rgba(248, 250, 252, 0.45);
    backdrop-filter: blur(10px);
}

.brand-gradient {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-teal) 50%, var(--brand-orange) 100%);
}

.dialogyx-gradient {
    background: linear-gradient(135deg, var(--brand-navy) 0%, #8B4513  100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Organic shape animations */
.organic-shape {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morphing 8s ease-in-out infinite;
}

@keyframes morphing {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Blinking cursor */
.cursor-blink {
    animation: blink 1.2s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Brain icon pulse */
.brain-pulse {
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Coming soon badge animation */
.coming-soon-badge {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 4px 20px rgba(0, 168, 168, 0.3); }
    to { box-shadow: 0 8px 30px rgba(0, 168, 168, 0.6); }
}

/* Responsive shapes - only show on larger screens */
.shape-lg {
    display: none;
}

@media (min-width: 1024px) {
    .shape-lg {
        display: block;
    }
}

.shape-xl {
    display: none;
}

@media (min-width: 1280px) {
    .shape-xl {
        display: block;
    }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 50;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Additional responsive styles */
@media (max-width: 768px) {
    .text-6xl {
        font-size: 3rem;
    }
    
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .organic-shape {
        transform: scale(0.7);
    }
    
    .coming-soon-badge {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}

/* ACCESSIBILITY FIXES - Enhanced focus states and contrast */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 3px solid var(--brand-teal);
    outline-offset: 2px;
    /* ACCESSIBILITY FIX: Stronger focus indicator */
}

/* ACCESSIBILITY FIX: Improved button contrast and hover states */
button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* ACCESSIBILITY FIX: Ensure sufficient contrast for text on background */
[style*="color: #1e3a5f"] {
    /* Original color maintained - already has good contrast */
    color: #1e3a5f !important;
}

/* Hover effects */
.hover-lift:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease-in-out;
}

/* ACCESSIBILITY FIX: Enhanced hover states for better UX */
.hover\:text-teal-600:hover {
    color: #0d9488 !important; /* Slightly darker for better contrast */
}

.hover\:bg-teal-700:hover {
    background-color: #0f766e !important;
}

.hover\:opacity-80:hover {
    opacity: 0.8;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ACCESSIBILITY FIX: High contrast mode support */
@media (prefers-contrast: high) {
    .dialogyx-gradient {
        background: var(--brand-navy);
        background-clip: initial;
        -webkit-background-clip: initial;
        -webkit-text-fill-color: initial;
        color: var(--brand-navy);
    }
    
    .organic-shape {
        opacity: 0.3 !important;
    }
    
    .hero-bg,
    .section-alt {
        background: rgba(255, 255, 255, 0.9) !important;
    }
}

/* ACCESSIBILITY FIX: Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .organic-shape,
    .floating,
    .brain-pulse,
    .coming-soon-badge,
    .cursor-blink {
        animation: none !important;
    }
    
    .hover-lift:hover {
        transform: none !important;
    }
    
    * {
        transition: none !important;
    }
}

/* Print styles */
@media print {
    .organic-shape,
    .floating,
    .brain-pulse,
    .coming-soon-badge {
        animation: none !important;
    }
    
    .hero-bg,
    .section-alt {
        background: white !important;
        backdrop-filter: none !important;
    }
    
    .dialogyx-gradient {
        background: var(--brand-navy) !important;
        background-clip: initial !important;
        -webkit-background-clip: initial !important;
        -webkit-text-fill-color: initial !important;
        color: var(--brand-navy) !important;
    }
}
