/* Modern Company Profile Redesign with Professional Style */

/* Base Section Styles */
#company-profile {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f5f7ff 100%);
}

/* Decorative Background Elements - Simplified */
#company-profile::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, rgba(59,130,246,0) 70%);
  border-radius: 50%;
  animation: float 15s ease-in-out infinite;
}

#company-profile::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 35%;
  height: 35%;
  background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, rgba(16,185,129,0) 70%);
  border-radius: 50%;
  animation: float 18s ease-in-out infinite 2s;
}

/* Title Animation */
#company-profile h2 {
  position: relative;
  display: inline-block;
}

#company-profile h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 3px;
  background: #00476B;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#company-profile:hover h2::after {
  transform: scaleX(1);
}

/* Container for the Redesigned Cards */
.company-profile-cards {
  position: relative;
  z-index: 10;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

/* Professional Card Styles */
.profile-card {
  background: white;
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Subtle Card Hover Effects - Professional Style */
.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(31, 38, 135, 0.12);
  border-color: rgba(59, 130, 246, 0.2);
}

/* Card Header with Subtle Icon Animation */
.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.card-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    background: #00476B;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 4px 15px rgba(0, 71, 107, 0.3);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

/* Subtle Icon Hover Effect */
.profile-card:hover .card-icon {
    transform: scale(1.05);
    box-shadow: 0 5px 18px rgba(0, 71, 107, 0.35);
}

.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00476B;
    transition: width 0.4s ease;
}

.profile-card:hover .card-title::after {
  width: 100%;
}

/* Stats Grid with Subtle Animation */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.stat-item {
  text-align: center;
  padding: 0.75rem 0.5rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 0.75rem;
  border: 1px solid rgba(226, 232, 240, 0.5);
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

/* Staggered animation for stats */
.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #00476B;
    margin-bottom: 0.3rem;
    line-height: 1.1;
    position: relative;
    overflow: hidden;
}

.stat-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
  line-height: 1.2;
  word-wrap: break-word;
  hyphens: auto;
}

.profile-card:hover .stat-item {
    background: rgba(0, 71, 107, 0.05);
    border-color: rgba(0, 71, 107, 0.3);
    transform: translateY(-3px);
}

/* Description Text with Subtle Animation */
.card-description {
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.card-description::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #00476B;
    border-radius: 2px;
}

/* Features Grid with Subtle Hover Effects */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 0.875rem;
  border: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    background: #00476B;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.875rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
}

.feature-text {
  font-size: 0.9rem;
  color: #374151;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.feature-item:hover {
    background: rgba(0, 71, 107, 0.1);
    border-color: rgba(0, 71, 107, 0.3);
}

.feature-item:hover .feature-icon {
  transform: scale(1.05);
}

/* Badges with Subtle Animation */
.badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.badge {
    display: flex;
    align-items: center;
    padding: 0.625rem 0.875rem;
    background: rgba(0, 71, 107, 0.08);
    border: 1px solid rgba(0, 71, 107, 0.2);
    border-radius: 2rem;
    font-size: 0.75rem;
    color: #00476B;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.badge i {
  margin-right: 0.375rem;
  font-size: 0.75rem;
}

.badge:hover {
    background: rgba(0, 71, 107, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 71, 107, 0.2);
}

/* Card Variations with Different Accent Colors */
.profile-card.rd .card-icon,
.profile-card.rd .feature-icon {
    background: #00476B;
}

.profile-card.manufacturing .card-icon,
.profile-card.manufacturing .feature-icon {
    background: #00476B;
}

.profile-card.applications .card-icon,
.profile-card.applications .feature-icon {
    background: #00476B;
}

/* Animation Keyframes - Simplified */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
  .cards-container {
    gap: 1.5rem;
  }
  
  .profile-card {
    padding: 1.75rem;
  }
  
  .stat-item {
    min-height: 70px;
  }
  
  .stat-number {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .cards-container {
    grid-template-columns: 1fr;
  }
  
  .profile-card {
    padding: 1.5rem;
  }
  
  .stats-grid {
    gap: 0.5rem;
  }
  
  .card-icon {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.5rem;
  }
}

/* Add minimal styles for JavaScript interactions */
.card-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 71, 107, 0.3);
  transform: scale(0);
  animation: ripple 0.8s ease-out;
  pointer-events: none;
  z-index: 2;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}