/* Company Info Section - Completely Unique Classes */
.company-info-section {
  padding: 120px 0;
  background: #ffffff;
  position: relative;
}
.company-info-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><polygon fill="rgba(26, 35, 126, 0.05)" points="1000,100 1000,0 0,0 0,60"/></svg>');
  background-size: cover;
  transform: rotateY(-180deg);
}

.company-info-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Header Styles */
.company-info-header {
  text-align: center;
  margin-bottom: 100px;
}

.company-info-title {
  font-size: 2.8rem;
  color: #1d2a56;
  margin-bottom: 1rem;
  font-weight: 700;
  position: relative;
  margin-bottom: 16px;
}
.company-info-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, var(--gold), #ffab00);
  border-radius: 2px;
}

.company-info-subtitle {
  font-size: 1.2rem;
  color: #64748b;
  font-weight: 400;
  margin: 0;
}

/* Company Introduction */
.company-intro-block {
  margin-bottom: 100px;
  text-align: center;
}

.intro-content-area {
  max-width: 800px;
  margin: 0 auto;
}

.intro-main-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1d2a56;
  margin-bottom: 30px;
}

.intro-main-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 60px;
}

.intro-main-text strong {
  color: #0f172a;
  font-weight: 600;
}

.company-key-stats {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-top: 60px;
}

.key-stat-item {
  text-align: center;
}

.key-stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 200;
  color: #1d2a56;
  margin-bottom: 8px;
}

.key-stat-text {
  font-size: 0.95rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Vision Mission */
.vision-mission-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 100px;
}

.vm-block {
  text-align: left;
  padding: 0;
}

.vm-block-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1d2a56;
  margin-bottom: 20px;
  position: relative;
}

.vm-block-title::before {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: #5a8fbc;
}

.vm-block-content {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #475569;
  margin: 0;
}

/* Certificates and Documents */
.certificates-documents-section {
  margin-bottom: 100px;
}

.documents-main-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1d2a56;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.documents-main-title::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: #5a8fbc;
}

.documents-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.document-card {
  background: white;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.document-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.document-image-frame {
  height: 150px;
  overflow: hidden;
  background: #f7fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.document-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.document-card:hover .document-image {
  transform: scale(1.05);
}

.document-info-block {
  padding: 20px;
}

.document-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 8px;
}

.document-description {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 12px;
  line-height: 1.4;
}

.document-year {
  font-size: 0.8rem;
  color: #718096;
  font-weight: 500;
  background: #f7fafc;
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
}

/* Certificate Modal */
.certificate-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.certificate-modal.active {
  display: flex;
  opacity: 1;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  animation: modalFadeIn 0.4s ease forwards;
}

.certificate-modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.modal-image-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
}

.modal-image {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Animation */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Document card hover effect */
.document-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.document-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.document-card:hover .document-image {
  transform: scale(1.05);
}

.document-image {
  transition: transform 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .company-key-stats {
    gap: 50px;
  }

  .vision-mission-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .expertise-areas-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .documents-showcase {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .team-composition-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .company-info-section {
    padding: 80px 0;
  }

  .company-info-wrapper {
    padding: 0 20px;
  }

  .company-info-title {
    font-size: 2.5rem;
  }

  .company-key-stats {
    flex-direction: column;
    gap: 30px;
  }

  .journey-milestone {
    grid-template-columns: 60px 1fr;
    gap: 20px;
  }

  .milestone-year::after {
    right: -11px;
  }

  .documents-showcase {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .team-composition-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .modal-content {
    max-width: 95vw;
    max-height: 95vh;
    margin: 20px;
  }

  .modal-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }

  .modal-image {
    max-height: 85vh;
  }
}

@media (max-width: 480px) {
  .company-info-title {
    font-size: 2rem;
  }

  .intro-main-text {
    font-size: 1.1rem;
  }

  .journey-milestone {
    grid-template-columns: 1fr;
    gap: 15px;
    text-align: center;
  }

  .journey-milestone::after {
    display: none;
  }

  .milestone-year::after {
    display: none;
  }

  .modal-content {
    max-width: 98vw;
    max-height: 98vh;
    margin: 10px;
    border-radius: 12px;
  }

  .modal-close {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
  }
}

/* Loading State */
.modal-image-container.loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid #e2e8f0;
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Zoom cursor */
.document-card::after {
  content: "🔍";
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(59, 130, 246, 0.9);
  color: white;
  padding: 8px;
  border-radius: 50%;
  font-size: 12px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
  pointer-events: none;
}

.document-card:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* Animations */
.company-intro-block,
.vision-mission-wrapper,
.expertise-areas-section,
.experience-journey-section,
.certificates-documents-section,
.team-overview-section {
  opacity: 0;
  transform: translateY(20px);
  animation: companyInfoFadeIn 0.8s ease forwards;
}

.company-intro-block {
  animation-delay: 0.1s;
}
.vision-mission-wrapper {
  animation-delay: 0.2s;
}
.expertise-areas-section {
  animation-delay: 0.3s;
}
.experience-journey-section {
  animation-delay: 0.4s;
}
.certificates-documents-section {
  animation-delay: 0.5s;
}
.team-overview-section {
  animation-delay: 0.6s;
}

@keyframes companyInfoFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
