/* FiinGrid - Optimized Styles */
:root {
  --primary-color: #1E3A8A;
  --primary-hover: #1E40AF;
  --dark-text: #0F172A;
  --light-text: #4B5563;
  --accent: #1E3A8A;
  --light-accent: #1E40AF;
  --bg-primary: #F9FAFB;
  --bg-white: #FFFFFF;
  --border-color: #E5E7EB;
  --border-light: #F3F4F6;
  --shine-gradient: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.1) 100%);
  --glow-primary: 0 0 20px rgba(30, 58, 138, 0.15);
  --glow-hover: 0 0 30px rgba(30, 58, 138, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark-text);
  background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(30, 58, 138, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(30, 58, 138, 0.02) 0%, transparent 50%),
              radial-gradient(circle at 40% 80%, rgba(30, 58, 138, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Component Styles */
.minimal-badge,
.category-tag {
  color: var(--primary-color);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  border: 1px solid var(--primary-color);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #EFF6FF 0%, #F0F9FF 100%);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.minimal-badge::before,
.category-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transition: left 0.5s ease;
}

.minimal-badge:hover::before,
.category-tag:hover::before {
  left: 100%;
}

.category-tag:hover,
.category-tag.active {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: white;
  box-shadow: var(--glow-primary);
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: white;
  border: none;
  border-radius: 0.375rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: var(--glow-primary);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--shine-gradient);
  transition: left 0.6s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #2563EB 100%);
  box-shadow: var(--glow-hover);
  transform: translateY(-2px);
}

.btn-primary:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.2);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 0.375rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(30, 58, 138, 0.1), transparent);
  transition: left 0.6s ease;
}

.btn-outline:hover::before {
  left: 100%;
}

.btn-outline:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
}

.btn-outline:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.2);
}

.btn-outline:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

/* Testimonials */
.floating-testimonials-container {
  overflow: hidden;
  position: relative;
  padding: 3rem 0;
}

.floating-testimonials-track {
  display: flex;
  width: calc(350px * 10);
}

.floating-testimonial {
  width: 350px;
  flex-shrink: 0;
  margin: 0 15px;
}

/* Company logos */
.company-logo-container {
  position: relative;
  padding: 1.5rem;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 0.5rem;
}

.company-logo-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.company-logo {
  max-height: 60px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(20%) brightness(0.9);
  opacity: 0.8;
}

.company-logo-large {
  max-height: 80px;
  max-width: 200px;
}

.company-logo-small {
  max-height: 45px;
  max-width: 120px;
}

/* Removed scroll animation for simple design */

/* Responsive Design */
@media (max-width: 768px) {
  /* Typography */
  h1 { font-size: 1.875rem; line-height: 1.2; }
  h2 { font-size: 1.5rem; line-height: 1.3; }
  h3 { font-size: 1.25rem; line-height: 1.4; }
  
  /* Layout */
  .hero-section { padding-top: 6rem; padding-bottom: 3rem; }
  .hero-content { text-align: center; padding: 0 1rem; }
  .hero-buttons { flex-direction: column; gap: 1rem; width: 100%; }
  .stats-container { flex-direction: column; gap: 1.5rem; align-items: center; }
  .services-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  
  /* Components */
  .company-logo { max-height: 30px; max-width: 80px; }
  .company-logo-large { max-height: 35px; max-width: 90px; }
  .company-logo-small { max-height: 25px; max-width: 70px; }
  .company-logo-container { padding: 1rem; min-height: 80px; }
  .floating-testimonial { width: 280px; margin: 0 10px; }
  .floating-testimonials-track { width: calc(280px * 10); }
  .chart-container { height: 250px; width: 100%; }
  
  /* Forms & Modals */
  .modal-content { margin: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; }
  .modal-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .form-grid { grid-template-columns: 1fr; gap: 1rem; }
  
  /* Touch targets */
  button, .btn-primary, .btn-outline { min-height: 44px; min-width: 44px; }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.875rem; }
  .hero-section { padding-top: 7rem; padding-bottom: 4rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .company-logo { max-height: 40px; max-width: 100px; }
  .company-logo-large { max-height: 45px; max-width: 110px; }
  .company-logo-small { max-height: 35px; max-width: 90px; }
  .chart-container { height: 300px; }
  .modal-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

/* Desktop */
@media (min-width: 1440px) {
  .container { max-width: 1400px; }
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  .hero-section { padding-top: 8rem; padding-bottom: 6rem; }
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .company-logo { max-height: 60px; max-width: 160px; }
  .company-logo-large { max-height: 80px; max-width: 200px; }
  .company-logo-small { max-height: 45px; max-width: 120px; }
  .chart-container { height: 400px; }
}

/* Select styling */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: white;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

select:focus {
  background-color: white;
  outline: none;
}

select::-ms-expand {
  display: none;
}

select:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 #000;
}

/* Additional utility classes */
.feature-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 100%);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: var(--glow-primary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--shine-gradient);
  transition: left 0.6s ease;
}

.feature-icon:hover::before {
  left: 100%;
}

.feature-icon:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-hover);
}

.testimonial-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%);
  border: 1px solid #E5E7EB;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--shine-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.testimonial-card:hover::before {
  opacity: 1;
}

.testimonial-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(30, 58, 138, 0.1);
  transform: translateY(-4px);
}

.combined-section {
  background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
}

.minimal-divider {
  border-top: 1px solid #E5E7EB;
}

/* Chart container styling */
#universityChart {
  max-width: 100%;
  height: auto;
}



/* New Component Styles */
.resource-card {
  transition: all 0.3s ease;
  cursor: pointer;
  background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%);
  border: 1px solid #E5E7EB;
  border-radius: 0.75rem;
  position: relative;
  overflow: hidden;
}

.resource-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.resource-card:hover::before {
  left: 100%;
}

.resource-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(30, 58, 138, 0.1);
}

.career-role {
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.career-role::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(30, 58, 138, 0.1), transparent);
  transition: left 0.5s ease;
}

.career-role:hover::before {
  left: 100%;
}

.career-role:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(30, 58, 138, 0.1);
}

.career-role.selected {
  background-color: #1E3A8A !important;
  color: white !important;
  transform: scale(1.05);
}

.career-level {
  position: relative;
}

.career-level::after {
  content: '';
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 2rem;
  background: linear-gradient(to bottom, #1E3A8A, transparent);
}

.career-level:last-child::after {
  display: none;
}

/* Dashboard specific styles */
.dashboard-card {
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%);
  border: 1px solid #E5E7EB;
  border-radius: 0.75rem;
  position: relative;
  overflow: hidden;
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--shine-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dashboard-card:hover::before {
  opacity: 1;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1), 0 4px 15px rgba(30, 58, 138, 0.1);
}

.progress-bar {
  transition: width 0.5s ease-in-out;
}

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(30, 58, 138, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(30, 58, 138, 0.4);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes logoScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

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

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

.float-gentle {
  animation: float 6s ease-in-out infinite;
}

.animate-scroll {
  animation: scroll 30s linear infinite;
  width: 200%;
  display: flex;
}

.animate-scroll:hover {
  animation-play-state: paused;
}

.marquee {
  animation: marquee 20s linear infinite;
  white-space: nowrap;
  display: inline-block;
}

.logo-scroll {
  animation: logoScroll 60s linear infinite;
  width: 200%;
  display: flex;
}

.logo-scroll:hover {
  animation-play-state: paused;
}

.shimmer-effect {
  animation: shimmer 2s ease-in-out infinite;
}

.glow-effect {
  animation: glow 3s ease-in-out infinite;
}

/* Resource filter animations */
.resource-card.filtered-out {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.3s ease;
}

.resource-card.filtered-in {
  opacity: 1;
  transform: scale(1);
  transition: all 0.3s ease;
}

/* Career quiz animations */
.quiz-result {
  animation: fadeInUp 0.5s ease-out;
}

/* Focus states for accessibility */
.stat-item:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 0.5rem;
}

.stat-item:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

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

.skip-link:focus {
  top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-primary, .btn-outline {
    border: 2px solid currentColor;
  }
  
  .stat-item {
    border: 1px solid var(--dark-text);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .floating-testimonials-track {
    animation: none;
  }
}

/* Simple Hero Section Styles */
.hero-section {
  background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(30, 58, 138, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(30, 58, 138, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* Simple focus states */
.stat-item:focus,
.company-logo-container:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Navigation shine effects */
nav {
  backdrop-filter: blur(10px);
  background: rgba(249, 250, 251, 0.95) !important;
  border-bottom: 1px solid rgba(229, 231, 235, 0.5) !important;
}

nav a {
  position: relative;
  transition: all 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Additional Mobile Optimizations */
@media (max-width: 768px) {
  .career-role { font-size: 0.75rem; padding: 0.5rem 0.75rem; }
  .resource-card, .dashboard-card { margin-bottom: 1rem; }
  .career-level::after { display: none; }
  .career-level { margin-bottom: 2rem; }
  
  /* Improve touch targets on mobile */
  .stat-item {
    min-height: 44px;
    min-width: 44px;
  }
  
  button, .btn-primary, .btn-outline {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Mobile-specific hero enhancements */
  .hero-section {
    padding-top: 5rem;
    padding-bottom: 3rem;
  }
  
  .company-logo-container {
    padding: 1rem;
    margin: 0.5rem;
  }
  
  .company-logo {
    max-height: 40px;
    max-width: 100px;
  }
  
  .company-logo-large {
    max-height: 45px;
    max-width: 110px;
  }
  
  .company-logo-small {
    max-height: 35px;
    max-width: 90px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .resource-card, .dashboard-card { height: 100%; }
  
  /* Tablet-specific enhancements */
  .hero-section {
    padding-top: 6rem;
    padding-bottom: 4rem;
  }
  
  .company-logo-container {
    padding: 1.5rem;
  }
}

/* Large desktop enhancements */
@media (min-width: 1440px) {
  .hero-section {
    padding-top: 8rem;
    padding-bottom: 6rem;
  }
  
  .company-logo-container {
    padding: 2rem;
  }
  
  .company-logo {
    max-height: 70px;
    max-width: 180px;
  }
  
  .company-logo-large {
    max-height: 90px;
    max-width: 220px;
  }
  
  .company-logo-small {
    max-height: 55px;
    max-width: 140px;
  }
}
