/* Hero Component Styles - Modern Redesign 2025 */
.specialty-hero {
  position: relative;
  min-height: 600px;
  margin-bottom: var(--spacing-xl);
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, #001233 0%, #023e8a 100%);
  width: 100%;
  box-shadow: var(--shadow-md);
}

/* Animated background elements */
.specialty-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(109, 213, 237, 0.3), transparent 25%),
    radial-gradient(circle at 80% 80%, rgba(255, 126, 95, 0.2), transparent 25%);
  z-index: 1;
  animation: pulse 8s ease-in-out infinite alternate;
}

.specialty-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  transform: rotate(-45deg);
  z-index: 1;
  animation: shimmer 15s linear infinite;
}

@keyframes pulse {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

@keyframes shimmer {
  0% { transform: rotate(-45deg) translateX(-30%) translateY(10%); }
  100% { transform: rotate(-45deg) translateX(30%) translateY(-10%); }
}

.specialty-hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--spacing-xl);
  position: relative;
  z-index: 2;
  padding: var(--spacing-xxl) var(--spacing-xl);
  width: 100%;
  max-width: 95%;
  margin: 0 auto;
}

.specialty-hero-content {
  position: relative;
  z-index: 3;
}

.specialty-title {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  color: white;
  text-shadow: 0 2px 15px rgba(0,0,0,0.2);
  animation: fadeInUp 0.8s ease;
  background: linear-gradient(to right, #ffffff, #6dd5ed);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  letter-spacing: -0.02em;
  line-height: 1.1;
  position: relative;
}

.specialty-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #ff7e5f, transparent);
  border-radius: 2px;
}

.specialty-description {
  font-size: var(--font-size-lg);
  margin: var(--spacing-xl) 0;
  max-width: 600px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  animation: fadeInUp 1s ease;
  font-weight: 300;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Quiz CTA Element - replaces the image */
.quiz-cta-element {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatIn 1.2s ease-out;
}

.quiz-card-link {
  text-decoration: none;
  display: block;
  cursor: pointer;
  z-index: 10;
}

.quiz-card {
  width: 320px;
  height: 320px;
  perspective: 1000px;
  cursor: pointer;
  position: relative;
  z-index: 10;
}

.quiz-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.quiz-card-link:hover .quiz-card-inner {
  transform: rotateY(15deg) translateY(-10px);
}

.quiz-card-front {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.3),
    0 0 0 2px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  overflow: hidden;
}

.quiz-icon {
  font-size: 50px;
  background: linear-gradient(to right, #ff7e5f, #feb47b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.quiz-title {
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin-bottom: 15px;
}

.quiz-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin-bottom: 25px;
}

.take-quiz-btn {
  background: linear-gradient(to right, #ff7e5f, #feb47b);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 126, 95, 0.4);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  z-index: 20;
}

.take-quiz-btn::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: -100%;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    rgba(255, 255, 255, 0) 100%);
  transition: all 0.6s ease;
}

.quiz-card-link:hover .take-quiz-btn::after {
  left: 100%;
}

/* Quiz Card Effects */
.quiz-card::before, 
.quiz-card::after {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  z-index: -1;
  opacity: 0.6;
  filter: blur(30px);
}

.quiz-card::before {
  background: radial-gradient(circle, rgba(255, 126, 95, 0.4) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: float 6s ease-in-out infinite alternate;
}

.quiz-card::after {
  background: radial-gradient(circle, rgba(109, 213, 237, 0.4) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  animation: float 8s ease-in-out infinite alternate-reverse;
}

/* Floating particles around the quiz card */
.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  z-index: 1;
}

.particle:nth-child(1) {
  top: 20%;
  left: 10%;
  animation: particleFloat 8s infinite ease-in-out;
}

.particle:nth-child(2) {
  top: 60%;
  left: 80%;
  width: 12px;
  height: 12px;
  animation: particleFloat 12s infinite ease-in-out reverse;
}

.particle:nth-child(3) {
  top: 80%;
  left: 30%;
  animation: particleFloat 10s infinite ease-in-out;
}

.particle:nth-child(4) {
  top: 30%;
  left: 70%;
  width: 6px;
  height: 6px;
  animation: particleFloat 14s infinite ease-in-out reverse;
}

.particle:nth-child(5) {
  top: 50%;
  left: 40%;
  animation: particleFloat 16s infinite ease-in-out;
}

@keyframes particleFloat {
  0% { transform: translate(0, 0); }
  50% { transform: translate(20px, 20px); }
  100% { transform: translate(0, 0); }
}

@keyframes float {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-20px) scale(1.1); }
}

@keyframes floatIn {
  0% { opacity: 0; transform: translateY(30px) translateX(20px); }
  100% { opacity: 1; transform: translateY(0) translateX(0); }
}

.specialty-competitiveness {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInUp 0.9s ease;
  margin-bottom: var(--spacing-md);
  position: relative;
}

.competitiveness-hero-div {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: var(--spacing-sm);
  position: relative;
  padding-right: var(--spacing-md);
}

.competitiveness-hero-div::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.competitiveness-label {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--border-radius-xl);
  font-weight: 700;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  margin-left: var(--spacing-xs);
}

.competitiveness-label::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  20% { left: 100%; }
  100% { left: 100%; }
}

.competitiveness-label.very-high {
  background: linear-gradient(90deg, #ff4d4d, #ff0000);
  color: white;
  box-shadow: 0 0 20px rgba(255, 77, 77, 0.4);
}

.competitiveness-label.high {
  background: linear-gradient(90deg, #ff9933, #ff7e00);
  color: white;
  box-shadow: 0 0 20px rgba(255, 153, 51, 0.4);
}

.competitiveness-label.medium {
  background: linear-gradient(90deg, #ffcc00, #ffa700);
  color: var(--text-charcoal);
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.4);
}

.competitiveness-label.low {
  background: linear-gradient(90deg, #66cc66, #33cc33);
  color: white;
  box-shadow: 0 0 20px rgba(102, 204, 102, 0.4);
}

.competitiveness-label.very-low {
  background: linear-gradient(90deg, #33cc99, #00cc99);
  color: white;
  box-shadow: 0 0 20px rgba(51, 204, 153, 0.4);
}

.hero-actions {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  animation: fadeInUp 1.1s ease;
  margin-top: var(--spacing-lg);
}

.hero-actions .btn {
  font-weight: 600;
  padding: 1rem 2rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero-actions .btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(255,255,255,0.1), transparent);
  z-index: -1;
  transition: all 0.3s ease;
}

.hero-actions .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.hero-actions .btn:hover::after {
  height: 50%;
}

.hero-actions .btn-primary {
  background: linear-gradient(135deg, #ffffff, #f5f7fa);
  color: #023e8a;
  border: none;
}

.hero-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-actions .btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.hero-actions .btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.8);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Hero Section */
@media (max-width: 1200px) {
  .specialty-title {
    font-size: 3.5rem;
  }
  
  .specialty-hero .container {
    max-width: 95%;
  }
}

@media (max-width: 992px) {
  .specialty-hero .container {
    grid-template-columns: 1fr;
    max-width: 95%;
  }
  
  .specialty-hero-content {
    text-align: center;
    order: 2;
  }
  
  .specialty-description {
    margin: var(--spacing-lg) auto;
  }
  
  .specialty-competitiveness {
    justify-content: center;
    margin: 0 auto var(--spacing-md);
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .quiz-cta-element {
    margin-bottom: var(--spacing-lg);
    order: 1;
  }
  
  .quiz-card {
    margin: 0 auto;
    width: 350px;
    height: 350px;
  }
  
  .quiz-card-front {
    padding: 30px;
  }
  
  .quiz-icon {
    font-size: 45px;
    margin-bottom: 18px;
  }
  
  .quiz-title {
    font-size: 22px;
    margin-bottom: 14px;
  }
  
  .quiz-description {
    font-size: 14px;
    margin-bottom: 22px;
  }
  
  .take-quiz-btn {
    padding: 12px 24px;
    font-size: 15px;
  }
  
  .specialty-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .competitiveness-hero-div::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .specialty-hero {
    min-height: auto;
    padding: var(--spacing-xl) 0;
  }
  
  .specialty-hero .container {
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  .specialty-title {
    font-size: 3rem;
  }
  
  .specialty-description {
    font-size: var(--font-size-md);
  }

  .quiz-cta-element {
    margin-bottom: var(--spacing-lg);
    order: 1;
  }
  
  .quiz-card {
    width: 320px;
    height: 320px;
    margin: 0 auto;
  }
  
  .quiz-card-front {
    padding: 25px;
  }
  
  .quiz-icon {
    font-size: 40px;
    margin-bottom: 15px;
  }
  
  .quiz-title {
    font-size: 20px;
    margin-bottom: 12px;
  }
  
  .quiz-description {
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.4;
  }
  
  .take-quiz-btn {
    padding: 10px 20px;
    font-size: 14px;
    min-height: 44px; /* Touch-friendly minimum height */
  }
  
  /* Improve touch targets on mobile */
  .quiz-card-link {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Disable hover effects on touch devices */
  .quiz-card-link:hover .quiz-card-inner {
    transform: none;
  }
  
  .quiz-card-link:hover .take-quiz-btn::after {
    left: -100%;
  }
}

@media (max-width: 576px) {
  .specialty-hero .container {
    padding: var(--spacing-lg) var(--spacing-sm);
    max-width: 95%;
  }
  
  .specialty-title {
    font-size: 2.5rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
    margin-right: 0;
    margin-bottom: var(--spacing-sm);
  }
  
  .quiz-card {
    width: 280px;
    height: 280px;
  }
  
  .quiz-card-front {
    padding: 20px;
  }
  
  .quiz-icon {
    font-size: 35px;
    margin-bottom: 12px;
  }
  
  .quiz-title {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .quiz-description {
    font-size: 12px;
    margin-bottom: 15px;
    line-height: 1.3;
  }
  
  .take-quiz-btn {
    padding: 8px 16px;
    font-size: 13px;
    min-height: 44px; /* Touch-friendly minimum height */
  }
  
  /* Improve touch targets on mobile */
  .quiz-card-link {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Disable hover effects on touch devices */
  .quiz-card-link:hover .quiz-card-inner {
    transform: none;
  }
  
  .quiz-card-link:hover .take-quiz-btn::after {
    left: -100%;
  }
  
  .specialty-competitiveness {
    flex-direction: column;
    gap: var(--spacing-sm);
    width: auto;
  }
  
  .competitiveness-hero-div {
    padding-right: 0;
    margin-right: 0;
  }
  
  .competitiveness-hero-div::after {
    display: none;
  }
  
  .competitiveness-label {
    margin-left: 0;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .quiz-card-link:hover .quiz-card-inner {
    transform: none;
  }
  
  .quiz-card-link:hover .take-quiz-btn::after {
    left: -100%;
  }
  
  .take-quiz-btn {
    min-height: 44px;
  }
  
  .quiz-card-link {
    min-height: 44px;
    min-width: 44px;
  }
}