/**
 * EmbeddedMind LLC - Custom CSS Enhancements
 * Modern "young tech" aesthetic with improved accessibility
 */

/* ========================================
   Additional Modern Design Enhancements
   ======================================== */

/* Background pattern for tech aesthetic */
body {
    background-color: #ffffff;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(244, 98, 58, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(13, 202, 240, 0.02) 0%, transparent 50%);
}

/* Improved section backgrounds */
.bg-light {
    background-color: #f9fafb !important;
}

/* Enhanced masthead */
header.masthead {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 100vh;
    padding-top: 10rem;
    padding-bottom: 6rem;
}

header.masthead::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(244, 98, 58, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(13, 202, 240, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Improved button hover effects */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Card hover enhancements */
.card {
    overflow: hidden;
    background: #ffffff;
}

.card-header {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

/* Improved licensing cards */
.licensing-card {
    border-radius: 1rem;
    overflow: hidden;
}

.licensing-card .card-header {
    padding: 2rem 1.5rem;
}

.licensing-card .card-body {
    padding: 2rem 1.5rem;
}

/* IP card improvements */
.ip-card {
    padding: 2rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.ip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

/* Improved list styling */
ul.list-unstyled li {
    position: relative;
    padding-left: 0.25rem;
}

/* Enhanced form elements */
.form-control:focus,
.form-select:focus {
    border-width: 2px;
}

.form-control::placeholder {
    color: #9ca3af;
}

/* Button size adjustments */
.btn-xl {
    padding: 1.25rem 2.5rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    border-radius: 0.5rem;
}

/* Improved divider */
hr.divider {
    opacity: 1;
}

/* Social button enhancements */
.btn-social {
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-social i {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation improvements */
#mainNav {
    transition: all 0.3s ease;
}

#mainNav.navbar-shrink {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
}

/* Responsive typography adjustments */
@media (max-width: 767px) {
    h1, .h1 {
        font-size: 2.5rem;
    }
    
    h2, .h2 {
        font-size: 2rem;
    }
    
    .btn-xl {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
}

/* Improved spacing for sections */
section {
    scroll-margin-top: 80px; /* Account for fixed navbar */
}

/* Alert enhancements */
.alert {
    border: none;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Fade-in animation for messages */
.fade-message {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-message.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Footer enhancements */
footer {
    border-top: 1px solid #e5e7eb;
}

footer a {
    transition: all 0.2s ease;
}

footer a:hover {
    color: var(--color-primary) !important;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Focus visible improvements for better accessibility */
*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Skip to content link (for screen readers) */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* Print styles */
@media print {
    header.masthead,
    nav,
    footer,
    .btn,
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a {
        text-decoration: underline !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
