/* src/css/pages/index.css */

/* Hero Section */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  text-align: center;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
  color: #111827 !important;
  background: linear-gradient(135deg, #111827 30%, #E4002B 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
  animation: textGradientShift 6s ease infinite, fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 400;
  color: #4b5563 !important;
  text-align: center;
  max-width: 600px;
  margin-bottom: 3.5rem;
  line-height: 1.6;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

@keyframes textGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Roles Layout Grid */
.roles-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 1100px;
  perspective: 1000px;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

/* Premium Card Design (Glassmorphism & Neon Glow) */
.role-card {
  width: 100%;
  max-width: 250px;
  padding: 2.2rem 1.8rem;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

/* Card hover glow and lift */
.role-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: #E4002B !important;
  box-shadow: 0 12px 30px rgba(228, 0, 43, 0.15) !important;
}

/* Subtle overlay shine effect */
.role-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: 0.75s;
}

.role-card:hover::before {
  left: 150%;
  transition: 0.75s;
}

/* Micro-animations inside Cards */
.role-image-container {
  width: 100%;
  height: 140px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: relative;
}

.role-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.role-card:hover .role-image {
  transform: scale(1.1);
}

.role-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111827 !important;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.role-desc {
  font-size: 0.9rem;
  color: #4b5563 !important;
  line-height: 1.5;
  margin-bottom: 2rem;
  min-height: 54px; /* Align buttons horizontally */
}

/* Buttons in Cards */
.role-card .btn-primary,
.role-card .btn-secondary {
  width: 100%;
  padding: 0.85rem 1.5rem;
  border-radius: 14px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.role-card .btn-secondary {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #111827;
}

.role-card .btn-secondary:hover {
  background: #E4002B;
  border-color: #E4002B;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(228, 0, 43, 0.25);
}

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

/* Header Adjustments for modern glassmorphism */
header.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff !important;
  border-bottom: 3px solid #E4002B !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
  padding: 1.2rem 2rem;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header.header h2 {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  background: none !important;
}

/* Responsive Scaling */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2.5rem;
  }
  
  .roles-grid {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .role-card {
    max-width: 320px;
    padding: 2rem 1.5rem;
  }
  
  header.header {
    padding: 1rem 1.2rem;
  }
}


