@import url('variables.css');
@import url('animations.css');

/* Root style configurations override */
body {
  font-family: var(--font-family-body);
  color: var(--text-primary);
  background-color: var(--primary-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-headings);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* Sub-grid visual decoration for Hero & Call-To-Action backdrops */
.grid-bg-pattern {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(37, 99, 235, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37, 99, 235, 0.02) 1px, transparent 1px);
}

/* Scrollbar customizations */
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: var(--light-gray);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1; /* slate-300 */
  border-radius: 9999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--slate-gray);
}

/* Focus outlines for better keyboard accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 4px;
}

/* ==========================================================================
   Interactive Team Modal & Interactivity Styles
   ========================================================================== */

/* Body scroll lock when modal is active */
body.modal-open {
  overflow: hidden;
}

/* Modal Backdrop Blur and Fade Transitions */
#team-modal {
  transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1), 
              backdrop-filter 300ms cubic-bezier(0.4, 0, 0.2, 1),
              background-color 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

#team-modal.show {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Modal Card Spring Scale-up Transition */
#team-modal-content {
  transition: transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1), 
              opacity 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

#team-modal.show #team-modal-content {
  transform: scale(1) !important;
  opacity: 1 !important;
}

/* Team Card Hover Elevation & Cursor */
.team-card {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Ensure social links container in the card has pointer-events auto but doesn't block card clicks */
.team-card .flex.space-x-2 {
  position: relative;
  z-index: 10;
}

