/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #f8f9fa;
  min-height: 100vh;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
  overscroll-behavior: none;
}

.container {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 40px;
}

.logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

.logo::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #28a745, #20c997);
  z-index: -1;
}

.logo-img {
  border-radius: 50%;
  object-fit: cover;
}

.company-name {
  color: #2c3e50;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.tagline {
  color: #6c757d;
  font-size: 18px;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Main Contact Card */
.contact-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  text-align: center;
}

.contact-card h2 {
  color: #2c3e50;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 15px;
}

.contact-card p {
  color: #6c757d;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Contact Buttons */
.contact-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.contact-btn {
  background: white;
  border: 2px solid #e9ecef;
  color: #2c3e50;
  padding: 18px 15px;
  border-radius: 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  font-size: 16px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(40, 167, 69, 0.1), transparent);
  transition: left 0.5s ease;
}

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

.contact-btn:hover {
  border-color: #28a745;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(40, 167, 69, 0.2);
}

.contact-btn:active {
  transform: translateY(-1px);
}

.btn-icon {
  font-size: 20px;
  margin-right: 12px;
  display: flex;
  align-items: center;
}

.btn-icon i {
  font-size: 22px;
  color: #28a745;
}

.btn-text {
  flex: 1;
  text-align: left;
  font-weight: 600;
}

.btn-arrow {
  font-size: 16px;
  color: #28a745;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
}

.btn-arrow i {
  font-size: 14px;
}

.contact-btn:hover .btn-arrow {
  transform: translateX(5px);
}

/* Share Section */
.share-section {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin-bottom: 30px;
}

.share-section h3 {
  color: #2c3e50;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
}

.share-section p {
  color: #6c757d;
  font-size: 16px;
  margin-bottom: 25px;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.social-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  flex-shrink: 0;
}

.social-btn::after {
  content: attr(title);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: #6c757d;
  white-space: nowrap;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-btn:hover::after {
  opacity: 1;
}

.social-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-btn i {
  font-size: 24px;
}

.copy-btn {
  background: linear-gradient(135deg, #e5e5e5 0%, #d5d5d5 100%);
  color: #666;
  transition: all 0.3s ease;
}

.copy-btn.copied {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  transform: scale(1.1);
}

.twitter-btn {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #000;
}

.facebook-btn {
  background: linear-gradient(135deg, #1877f2 0%, #166fe5 100%);
  color: white;
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
}

.linkedin-btn {
  background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
  color: white;
}

.messenger-btn {
  background: linear-gradient(135deg, #006aff 0%, #0056cc 100%);
  color: white;
}

.snapchat-btn {
  background: linear-gradient(135deg, #fffc00 0%, #ffeb3b 100%);
  color: #333;
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px 0;
}

.join-text {
  color: #6c757d;
  font-size: 14px;
  font-weight: 500;
}

.copyright {
  color: #6c757d;
}

.copyright p {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #6c757d;
}

.copyright-sub {
  font-size: 12px;
  color: #95a5a6;
  font-style: italic;
}

/* More Button */
.more-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border: 2px solid #e9ecef;
  color: #2c3e50;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.more-btn:hover {
  border-color: #28a745;
  transform: rotate(90deg);
  box-shadow: 0 10px 25px rgba(40, 167, 69, 0.2);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.show {
  display: flex;
}

.share-modal {
  background: white;
  border-radius: 20px;
  width: 600px;
  height: max-content;
  padding: 30px;
  max-width: 90vw;
  position: relative;
  animation: slideUp 0.3s ease;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: #f8f9fa;
  color: #2c3e50;
}

.share-content {
  margin: 25px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.share-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.share-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.share-company-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #2c3e50;
  position: relative;
  z-index: 1;
}

.share-description {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 15px;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.share-url-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.share-url {
  font-size: 12px;
  color: #28a745;
  font-weight: 600;
  background: #f8f9fa;
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-block;
  position: relative;
  z-index: 1;
  border: 1px solid #e9ecef;
}

.url-copy-btn {
  background: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.url-copy-btn:hover {
  background: #20c997;
  transform: scale(1.05);
}

.url-copy-btn.copied {
  background: #20c997;
  transform: scale(1.1);
}

/* Location and Address Modal */
.location-modal, .address-modal, .certificates-modal {
  background: white;
  border-radius: 20px;
  width: 600px;
  max-width: 90vw;
  max-height: 80vh;
  position: relative;
  animation: slideUp 0.3s ease;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  overflow: visible;
}

.location-modal .modal-header, .address-modal .modal-header, .certificates-modal .modal-header {
  padding: 25px 25px 0;
}

.location-modal .modal-content, .address-modal .modal-content, .certificates-modal .modal-content {
  padding: 25px;
  max-height: 60vh;
  overflow-y: auto;
  z-index: 1000;
  position: relative;
  overflow-x: visible;
}

.map-container {
  width: 100%;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.map-container::before {
  content: "Loading map...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #6c757d;
  font-size: 14px;
  z-index: 1;
  opacity: 0.7;
}

.map-container iframe[src] + div {
  display: none;
}

.address-content {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 20px;
}

.address-content h4 {
  color: #2c3e50;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
}

.address-content p {
  color: #6c757d;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Certificates Modal Styles */
.certificates-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.certificates-content h4 {
  color: #2c3e50;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.certificates-subtitle {
  color: #6c757d;
  font-size: 14px;
  margin-bottom: 25px;
  font-style: italic;
}

.certificates-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: visible;
  padding-right: 10px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.certificate-card {
  display: flex;
  background: #f8f9fa;
  border-radius: 15px;
  padding: 20px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  gap: 20px;
  align-items: center;
  cursor: pointer;
  position: relative;
  z-index: 999999;
  margin: 5px 0;
}

.certificate-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #28a745;
  background: #e8f5e8;
  z-index: 999999;
}

.certificate-card::after {
  content: "Click to view";
  position: absolute;
  top: 10px;
  right: 15px;
  background: #28a745;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.certificate-card:hover::after {
  opacity: 1;
}

.certificate-image {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #e9ecef;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.certificate-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.certificate-details {
  flex: 1;
  text-align: left;
}

.certificate-name {
  color: #2c3e50;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.certificate-description {
  color: #6c757d;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.certificate-meta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.certificate-category {
  background: #28a745;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.certificate-validity {
  color: #6c757d;
  font-size: 12px;
  font-weight: 500;
}

.loading-certificates {
  text-align: center;
  padding: 40px;
  color: #6c757d;
}

.loading-certificates i {
  font-size: 24px;
  margin-bottom: 10px;
  color: #28a745;
}

.certificate-error {
  text-align: center;
  padding: 40px;
  color: #dc3545;
}

.certificate-error i {
  font-size: 24px;
  margin-bottom: 10px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes shimmer {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.click-effect {
  animation: clickPulse 0.3s ease;
}

@keyframes clickPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding: 0 10px;
  }

  .company-name {
    font-size: 28px;
  }

  .tagline {
    font-size: 16px;
  }

  .contact-card {
    padding: 30px 20px;
  }

  .contact-buttons {
    grid-template-columns: 1fr;
  }

  .contact-btn {
    padding: 20px 15px;
    font-size: 15px;
  }

  .logo {
    width: 80px;
    height: 80px;
  }

  .social-buttons {
    gap: 10px;
  }

  .social-btn {
    width: 50px;
    height: 50px;
  }

  .social-btn i {
    font-size: 20px;
  }
  
  /* Certificates responsive styles */
  .certificate-card {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .certificate-image {
    width: 100px;
    height: 70px;
  }
  
  .certificate-details {
    text-align: center;
  }
  
  .certificate-meta {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  body {
    padding: 15px;
  }

  .company-name {
    font-size: 24px;
  }

  .contact-card {
    padding: 25px 15px;
  }

  .contact-btn {
    padding: 18px 12px;
    font-size: 14px;
  }

  .logo {
    width: 70px;
    height: 70px;
  }

  .more-btn {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}
