/* style.css – professional blue-gray theme, optimized performance */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: #59c99c;
  color: #2c3e50;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  color: #2c3e50;
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  border-bottom: 4px solid #3498db;
  padding-bottom: 0.5rem;
  letter-spacing: 1px;
}

/* Banner */
.banner {
  background: #ffffff;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-bottom: 1px solid #e9ecef;
}
.banner img {
  max-width: 100%;
  height: auto;
  max-height: 130px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.banner img:hover {
  transform: scale(1.02);
}

/* Navbar – sticky, clean */
.navbar {
  background: #2c3e50;
  padding: 0.8rem 1rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.navbar a {
  color: #ecf0f1;
  text-decoration: none;
  margin: 0 0.8rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  border-radius: 40px;
  background: rgba(255,255,255,0.08);
  display: inline-block;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.navbar a:hover {
  background: #3498db;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52,152,219,0.3);
}
.navbar a.active-nav {
  background: #3498db;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52,152,219,0.3);
}

/* Offset for sticky navbar (used with scroll-margin-top) */
section[id] {
  scroll-margin-top: 80px;
}

/* Founder section */
.founder {
  background: #ffffff;
  border-radius: 28px;
  padding: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.founder:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px rgba(0,0,0,0.1);
}
.founder-text {
  flex: 2;
  min-width: 280px;
}
.founder-text h2 {
  color: #2c3e50;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}
.founder-img {
  flex: 0 0 220px;
}
.founder-img img {
  width: 100%;
  border-radius: 50%;
  border: 4px solid #e9ecef;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.founder-img img:hover {
  transform: scale(1.02);
}

/* About section */
#about {
  margin: 3rem 0;
}
.about-wrap {
  display: flex;
  flex-wrap: wrap;
  background: #ffffff;
  border-radius: 28px;
  padding: 2.5rem;
  gap: 2rem;
  align-items: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.about-text {
  flex: 2;
  min-width: 280px;
}
.about-text p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.about-pdf-icon {
  flex: 0 0 200px;
  text-align: center;
}
.about-pdf-icon a {
  display: inline-block;
  text-decoration: none;
  color: #2c3e50;
  transition: transform 0.2s ease;
}
.about-pdf-icon i {
  font-size: 5rem;
  color: #e67e22;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.about-pdf-icon span {
  display: block;
  font-weight: 600;
  margin-top: 0.5rem;
  font-size: 1.2rem;
}
.about-pdf-icon a:hover {
  transform: translateY(-4px);
}

/* Recognition & Gallery grids – portrait cards */
.recognition-grid,
.gallery-grid {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}
.recognition-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.cert-image,
.gallery-image {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  background: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cert-image:hover,
.gallery-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px rgba(0,0,0,0.15);
}
.cert-image img,
.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
  padding: 15px 10px 10px;
  font-weight: 600;
  text-align: center;
  font-size: 1.2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  transition: background 0.2s ease;
}
.cert-image:hover .overlay-text,
.gallery-image:hover .overlay-text {
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.2));
}

/* Products */
.product-category {
  background: #ffffff;
  border-radius: 32px;
  padding: 2rem 1.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-category:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px rgba(0,0,0,0.1);
}
.category-title {
  font-size: 2rem;
  font-weight: 600;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 0.5px;
}
.product-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.8rem;
}
.product-images img {
  width: 280px;
  height: 200px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
  transition: all 0.25s ease;
  border: 2px solid #e9ecef;
}
.product-images img:hover {
  transform: scale(1.02) translateY(-3px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
  border-color: #3498db;
}

/* Working process */
.process-image {
  text-align: center;
  margin: 3rem 0;
}
.process-image img {
  max-width: 100%;
  border-radius: 28px;
  border: 1px solid #e9ecef;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}
.process-image img:hover {
  transform: scale(1.01);
}

/* Management grid */
.management-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 2.5rem 0;
}
.person-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 1.8rem 1rem;
  width: 210px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  transition: all 0.25s ease;
  border: 1px solid #e9ecef;
}
.person-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.person-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #e9ecef;
  margin-bottom: 1rem;
  transition: transform 0.2s ease;
}
.person-card img:hover {
  transform: scale(1.02);
}
.person-card h3 {
  color: #2c3e50;
  font-size: 1.2rem;
  margin: 0.5rem 0;
}
.person-card .role {
  color: #3498db;
  font-weight: 600;
  margin: 0.3rem 0;
  font-size: 0.9rem;
}
.person-card a {
  color: #3498db;
  text-decoration: none;
  word-break: break-word;
}
.person-card a:hover {
  text-decoration: underline;
}

/* Contact section */
#contact {
  margin: 3rem 0;
}
.contact-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  background: #ffffff;
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.map-container {
  flex: 1 1 400px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 15px rgba(0,0,0,0.05);
}
.map-container iframe {
  width: 100%;
  height: 350px;
  border: 0;
  display: block;
}
.contact-details {
  flex: 1 1 300px;
  padding: 1rem;
}
.contact-details h3 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
}
.contact-details p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.contact-details i {
  font-size: 1.5rem;
  color: #3498db;
  width: 2rem;
}

/* Footer */
footer {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 2rem;
  text-align: center;
  border-radius: 28px 28px 0 0;
  font-size: 1rem;
}
footer a {
  color: #3498db;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/* Floating buttons */
.float-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}
.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.float-btn.call {
  background: #1e88e5;
}
.float-btn:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Lightbox Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  cursor: default;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 1001;
}

.close-modal:hover {
  color: #ccc;
}

/* Make images clickable */
.cert-image img,
.gallery-image img {
  cursor: pointer;
  transition: opacity 0.2s;
}

.cert-image img:hover,
.gallery-image img:hover {
  opacity: 0.9;
}

/* Helper for performance */
.product-images img,
.person-card img,
.cert-image img,
.gallery-image img,
.founder-img img {
  will-change: transform;
}