@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Base resets and transitions */
body {
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Glassmorphism & Surface Helpers */
.glass-panel {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .glass-panel {
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Micro-animations */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.dark .hover-lift:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 4px;
}
.light ::-webkit-scrollbar-thumb {
    background: #d1d5db;
}
::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}

/* Subtle pulse for indicators */
@keyframes softPulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}
.indicator-pulse {
    animation: softPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Base form elements */
input[type="text"], input[type="number"], select, textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 1px #4f46e5;
}

/* Canvas Wrapper for Media Page */
#visualizer-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #0f172a;
}

/* Team Section Styles */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3.5rem 2.5rem;
    margin: 3rem auto 0;
    max-width: 58rem;
}
.team-card {
    text-align: center;
    width: 170px;
}
.team-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    outline: none;
    cursor: pointer;
    user-select: none;
}
.team-photo {
    width: 140px;
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: #f3f4f6;
    border-radius: 4px;
    margin: 0 auto 0.85rem;
    filter: grayscale(1) contrast(1.1);
    transition: filter 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}
.dark .team-photo {
    background-color: #111827;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.team-card-link:hover .team-photo,
.team-card-link:focus .team-photo {
    filter: grayscale(0) contrast(1);
    box-shadow: 0 0 0 2px #4ade80;
}
.dark .team-card-link:hover .team-photo,
.dark .team-card-link:focus .team-photo {
    box-shadow: 0 0 0 2px #4ade80;
}
.team-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    white-space: nowrap;
}
.team-name {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: inherit;
    transition: color 0.3s ease;
}
.team-li {
    color: inherit;
    opacity: 0.75;
    transition: color 0.3s ease, opacity 0.3s ease;
    flex-shrink: 0;
}
.team-card-link:hover .team-name,
.team-card-link:focus .team-name {
    color: #4ade80;
}
.team-card-link:hover .team-li,
.team-card-link:focus .team-li {
    color: #0a66c2;
    opacity: 1;
}

/* Fix for form-range inputs disappearing on WebKit due to appearance-none */
input[type=range].form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: #4f46e5;
    cursor: pointer;
    margin-top: -4px; /* Centers thumb vertically if track is thin */
}
input[type=range].form-range::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: transparent;
    border-radius: 2px;
}
input[type=range].form-range::-moz-range-thumb {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: #4f46e5;
    cursor: pointer;
    border: none;
}
input[type=range].form-range::-moz-range-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: transparent;
    border-radius: 2px;
}
