/* Custom Styles for Incube Management Services */

/* Fonts */
body {
    font-family: 'Inter', sans-serif;
}

.font-montserrat {
    font-family: 'Montserrat', sans-serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

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

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

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

.animate-pulse {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Navigation Links */
.nav-link {
    color: inherit;
    font-weight: 500;
    text-decoration: none;
}

.nav-link-button {
    /* Legacy class (kept for compatibility): make it look like normal nav links */
    display: inline;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-weight: 500;
    text-decoration: none;
}

/* Minimal navbar interaction (no hover effects) */
#navbar,
#navbar * {
    transition: none !important;
    animation: none !important;
}

/* Extra safety: neutralize any accidental hover transforms/shadows inside navbar */
#navbar *:hover {
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
}

/* Baseline: anchors in navbar never change on hover/focus */
#navbar a,
#navbar a:visited,
#navbar a:hover,
#navbar a:focus,
#navbar a:focus-visible,
#navbar a:active {
    text-decoration: none !important;
}

/* Force navbar links to never "hover change" color/underline (only active link is styled) */
#navbar a.nav-link,
#navbar a.nav-link:visited,
#navbar a.nav-link:hover,
#navbar a.nav-link:focus,
#navbar a.nav-link:focus-visible,
#navbar a.nav-link:active {
    color: #111827 !important; /* slate-900 */
    text-decoration: none !important;
    background: transparent !important;
    background-color: transparent !important;
}

#navbar a {
    transition: none !important;
}

#navbar a:hover,
#navbar a:focus,
#navbar a:focus-visible,
#navbar a:active {
    color: inherit !important;
    text-decoration: none !important;
    background: transparent !important;
    background-color: transparent !important;
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
}

#navbar img {
    transition: none !important;
}

#navbar img:hover {
    transform: none !important;
}

/* Active nav link underline (brand color) */
#navbar a.nav-link.text-red-600.font-semibold,
#navbar a.nav-link.text-red-600.font-semibold:hover {
    color: #dc2626 !important;
    text-decoration: underline !important;
    text-decoration-color: currentColor;
    text-decoration-thickness: 2px;
    text-underline-offset: 10px;
}

/* Active mobile nav link underline */
#navbar #mobile-menu a.text-red-600.font-semibold,
#navbar #mobile-menu a.text-red-600.font-semibold:hover {
    color: #dc2626 !important;
    text-decoration: underline !important;
    text-decoration-color: currentColor;
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
}

/* No hover effects for legacy class */
.nav-link-button:hover,
.nav-link-button:focus,
.nav-link-button:focus-visible,
.nav-link-button:active {
    background: transparent !important;
    color: inherit !important;
    text-decoration: none !important;
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
}

/* Animation for nav links when header is hovered */
.nav-animate {
    animation: navLinkBounce 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes navLinkBounce {
    0% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
    50% {
        transform: translateY(0);
    }
    70% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Buttons */
.btn-primary {
    @apply bg-red-600 text-white px-8 py-4 rounded-lg font-semibold text-lg hover:bg-red-700 transition-all duration-300 shadow-lg hover:shadow-xl transform hover:-translate-y-1 inline-flex items-center;
}

.btn-secondary {
    @apply bg-white text-red-600 px-8 py-4 rounded-lg font-semibold text-lg hover:bg-gray-50 transition-all duration-300 shadow-lg hover:shadow-xl border-2 border-red-600 transform hover:-translate-y-1 inline-flex items-center;
}

/* Card Hover Effects */
.value-card {
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-8px);
}

.challenge-card {
    transition: all 0.3s ease;
}

.challenge-card:hover {
    transform: translateY(-4px);
}

/* Hero Section Background */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(239, 68, 68, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(156, 163, 175, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b91c1c;
}

/* Form Inputs Focus State */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Loading State for Forms */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

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

/* Shadow Utilities */
.shadow-custom {
    box-shadow: 0 10px 30px -5px rgba(220, 38, 38, 0.2);
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

/* Navbar Scroll Effect */
#navbar.scrolled {
    /* Disabled: keep navbar static (no scroll animation/effect). */
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: none !important;
}

#mobile-menu.show {
    display: block;
    animation: none !important;
}

/* Image Hover Effects */
img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Quote Styling */
blockquote {
    border-left: 4px solid #dc2626;
    padding-left: 1.5rem;
    font-style: italic;
    color: #4b5563;
}

/* Table Styles (if needed) */
table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #111827;
}

/* Print Styles */
@media print {
    nav,
    footer,
    .no-print {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Visible for Keyboard Navigation */
*:focus-visible {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

/* Transition for All Interactive Elements */
a,
button,
input,
select,
textarea {
    transition: all 0.3s ease;
}

/* Custom Badge */
.badge {
    @apply inline-block px-3 py-1 text-sm font-semibold rounded-full;
}

.badge-red {
    @apply bg-red-100 text-red-800;
}

.badge-gray {
    @apply bg-gray-100 text-gray-800;
}

/* Divider */
.divider {
    @apply border-t border-gray-200 my-8;
}

/* Content Max Width */
.content-wrapper {
    @apply max-w-7xl mx-auto px-4;
}

/* Grid Auto Fit */
.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Prose Styling for Long-form Content */
.prose {
    @apply text-gray-600 leading-relaxed;
}

.prose h2 {
    @apply text-2xl font-bold text-gray-900 mt-8 mb-4;
}

.prose h3 {
    @apply text-xl font-bold text-gray-900 mt-6 mb-3;
}

.prose p {
    @apply mb-4;
}

.prose ul,
.prose ol {
    @apply ml-6 mb-4;
}

.prose li {
    @apply mb-2;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #dc2626;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notification */
.toast {
    @apply fixed bottom-4 right-4 bg-white shadow-2xl rounded-lg p-4 z-50 transform transition-all duration-300;
}

.toast.show {
    @apply translate-x-0 opacity-100;
}

.toast.hide {
    @apply translate-x-full opacity-0;
}

/* Success/Error States */
.success {
    @apply bg-green-50 border-l-4 border-green-500 text-green-700 p-4 rounded;
}

.error {
    @apply bg-red-50 border-l-4 border-red-500 text-red-700 p-4 rounded;
}

.warning {
    @apply bg-yellow-50 border-l-4 border-yellow-500 text-yellow-700 p-4 rounded;
}

.info {
    @apply bg-blue-50 border-l-4 border-blue-500 text-blue-700 p-4 rounded;
}

/* Utility Classes */
.text-balance {
    text-wrap: balance;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Overlay */
.overlay {
    @apply fixed inset-0 bg-black bg-opacity-50 z-40;
}

/* Modal */
.modal {
    @apply fixed inset-0 flex items-center justify-center z-50 p-4;
}

.modal-content {
    @apply bg-white rounded-2xl shadow-2xl max-w-2xl w-full max-h-screen overflow-y-auto;
}

/* Feature List */
.feature-list {
    @apply space-y-3;
}

.feature-list li {
    @apply flex items-start;
}

.feature-list li::before {
    content: '✓';
    @apply text-red-600 font-bold mr-3 text-xl flex-shrink-0;
}
