/* Humaximus Website - Main Styles */
/* CarePilot-Inspired Medical Design */

:root {
    --navy-primary: #1C1C29;
    --blue-accent: #4D71E0;
    --blue-light: #EFF6FF;
    --gray-100: #F8FAFC;
    --gray-500: #64748B;
    --gray-900: #0F172A;
}

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    color: var(--gray-900);
    background: var(--gray-100);
}

.smooth-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.btn-primary {
    background: var(--blue-accent);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #3D5FC9;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(77, 113, 224, 0.3);
}

.underline-animation {
    position: relative;
    display: inline-block;
}

.underline-animation::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--blue-accent);
    transition: width 0.3s ease;
}

.underline-animation:hover::after {
    width: 100%;
}

.chart-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    height: 300px;
    max-height: 400px;
}

@media (min-width: 768px) {
    .chart-container {
        height: 350px;
    }
}

.tab-active {
    border-bottom: 2px solid var(--blue-accent);
    color: var(--navy-primary);
    font-weight: 600;
}

.tab-inactive {
    color: var(--gray-500);
}

.arch-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--blue-accent) !important;
}

.selected-node {
    border-color: var(--blue-accent) !important;
    background-color: var(--blue-light) !important;
}

.perspective-btn-active {
    background-color: var(--blue-accent);
    color: white !important;
    box-shadow: 0 4px 12px rgba(77, 113, 224, 0.3);
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--blue-accent);
    cursor: pointer;
    margin-top: -10px;
    box-shadow: 0 0 0 4px rgba(77, 113, 224, 0.2);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #cbd5e1;
    border-radius: 2px;
}

/* Page-specific utilities */
.hero-gradient {
    background: var(--navy-primary);
}

.section-light {
    background: white;
}

.section-gray {
    background: var(--gray-100);
}

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

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

/* Email button hover effect */
.email-button:hover {
    background: var(--blue-accent) !important;
    color: white !important;
}

/* Scroll offset for sticky navigation */
section[id] {
    scroll-margin-top: 5rem;
}

@media (min-width: 768px) {
    section[id] {
        scroll-margin-top: 8rem;
    }
}

/* Hero section spacing - 60% reduction from standard */
.hero-spacing {
    padding-top: 2.4rem;
    padding-bottom: 2.4rem;
}

@media (min-width: 768px) {
    .hero-spacing {
        padding-top: 3.2rem;
        padding-bottom: 3.2rem;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    /* Better touch targets */
    button, a {
        min-height: 44px;
        min-width: 44px;
    }

    /* Improved text readability */
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }

    /* Better spacing for mobile */
    .py-24 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .py-32 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    /* Responsive grid improvements */
    .grid {
        grid-gap: 1.5rem;
    }

    /* Make cards more mobile-friendly */
    .rounded-3xl {
        border-radius: 1.5rem;
    }

    /* Improve button sizing on mobile */
    .btn-primary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Reduce section spacing for all screens (60% total reduction) */
.py-24 {
    padding-top: 2.4rem;
    padding-bottom: 2.4rem;
}

.py-32 {
    padding-top: 3.2rem;
    padding-bottom: 3.2rem;
}

/* Tablet optimizations */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Adjust spacing for tablets */
    .max-w-7xl {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .py-24 {
        padding-top: 2.4rem;
        padding-bottom: 2.4rem;
    }

    .py-32 {
        padding-top: 3.2rem;
        padding-bottom: 3.2rem;
    }
}

/* Desktop spacing optimization */
@media (min-width: 1025px) {
    .py-24 {
        padding-top: 2.4rem;
        padding-bottom: 2.4rem;
    }

    .py-32 {
        padding-top: 3.2rem;
        padding-bottom: 3.2rem;
    }
}
