/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  background: #fef8f6;
  color: #510202;
  text-align: center;
}

/* ===== TYPOGRAPHY ===== */
h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* ===== FADE-IN EFFECT ===== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
section[id] {
  scroll-margin-top: 100px;
}
@media (max-width: 768px) {
  section[id] {
    scroll-margin-top: 130px;
  }
}

/* ===== NAVBAR ===== */
/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  width: 95%;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #400202;
  padding: 10px 20px;
  color: white;
  border-radius: 15px;
  box-shadow: 0 0 0 transparent;
  transition: all 0.3s ease-in-out;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 👇 Shadow effect and reduced padding on scroll */
.navbar.scrolled {
  background-color: #300101;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 6px 18px;
  width: 92%;
}

.logo-name {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-name img {
  height: 50px;
  width: auto;
  border-radius: 5px;
}
.logo-name span {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: bold;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}
.nav-links li a {
  text-decoration: none;
  color: white;
  font-size: 16px;
  transition: color 0.3s;
}
.nav-links li a:hover {
  color: #ffd700;
}
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 15px;
    background-color: #400202;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    padding: 15px 20px;
    text-align: left;
    width: 220px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    z-index: 1000;
  }

  .nav-links.show {
    display: flex;
    max-height: 500px; /* Adjust if you have more links */
    opacity: 1;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1000;
}

.hamburger span {
  display: block;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: 0.4s;
}

/* Transform into 'X' */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


}

#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: #a03d00; /* Match your website's theme color */
  z-index: 10000;
  transition: width 0.25s ease-out;
}


/* ===== HERO SECTION ===== */
.hero {
  background: url('https://images.unsplash.com/photo-1503264116251-35a269479413?auto=format&fit=crop&w=1950&q=80') center/cover no-repeat;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-content {
  text-align: center;
  background: rgba(255,255,255,0.85);
  padding: 3rem;
  border-radius: 20px;
  max-width: 600px;
}
.hero h1 {
  font-size: 2.5rem;
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
}

.certificate-container img {
  width: 100%;
  max-width: 400px;              /* ✅ Restrict maximum width on desktop */
  height: auto;
  border-radius: 12px;
  border: 4px solid #6b3e26;     /* ✅ Brown border */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
}

@media (max-width: 600px) {
  .certificate-container img {
    max-width: 280px;           /* ✅ Smaller on mobile screens */
  }
}


/* ===== GALLERY ===== */
.gallery-section {
  background: #faf6f1;
  padding: 60px 20px;
}
.section-title {
  font-size: 2rem;
  font-weight: bold;
  color: #4a2c09;
  text-align: center;
  margin-bottom: 40px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}

/* ===== WORKS SECTION ===== */
.works-section {
  background-color: #fefaf6;
  text-align: center;
  padding: 4rem 2rem;
}
.works-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.work-item {
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.work-item img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 10px;
  transition: transform 0.3s ease;
}
.work-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.work-item:hover img {
  transform: scale(1.05);
}
.work-item p {
  margin-top: 10px;
  font-weight: 600;
  color: #4a2c09;
}

/* ===== TEAM SECTION ===== */
.team-container {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 2rem;
}
.member {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.member img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ===== MODALS (Team, Gallery, Works) ===== */
.modal,
.image-modal {
  display: flex;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* 👇 Show class toggled via JavaScript */
.modal.show {
  opacity: 1;
  pointer-events: auto;
}

/* Modal content transitions */
.modal-content {
  position: relative;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animate content when modal is shown */
.modal.show .modal-content {
  transform: scale(1);
  opacity: 1;
}

/* 👇 Stacked layout for team modal body */
.modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

/* Image styling */
.modal-body img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Text section */
.modal-text h3 {
  font-size: 2rem;
  color: #4a2c09;
}
.modal-text h4 {
  font-size: 1.2rem;
  color: #6b3e26;
}
.modal-text p {
  font-size: 1rem;
  color: #333;
  text-align: justify;
  padding: 0 10px;
}

/* Close button */
.close, .image-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  transition: color 0.3s ease;
}
.close:hover,
.close:focus,
.image-close:hover {
  color: #000;
}


/* ===== RECOGNITION SECTION ===== */
.recognitions-section {
  background-color: #fdf7f2;
  text-align: center;
  padding: 4rem 2rem;
}

.recognition-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 2rem;
}

.recognition-gallery img {
  width: 200px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.recognition-gallery img:hover {
  transform: scale(1.05);
}

/* ===== IMAGE MODAL ===== */
.image-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.image-modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
  border-radius: 12px;
  box-shadow: 0 0 20px #000;
  cursor: default;
}

.image-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
}
.image-close:hover {
  color: #ffd700;
}

/* ===== CONTACT FORM ===== */
form {
  display: grid;
  gap: 1rem;
  max-width: 600px;
  margin: auto;
}
input, textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100%;
}
button {
  background: #6b3e26;
  color: #fff;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}
button:hover {
  background: #d98c54;
}
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: space-between;
}
.contact-left,
.contact-right {
  flex: 1;
  min-width: 300px;
}
.contact-right iframe {
  width: 100%;
  height: 450px;
  border-radius: 10px;
}

/* ===== PRELOADER ===== */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff9f5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  animation: fadeOut 1s ease 3.5s forwards;
}
.logo-intro {
  animation: fadeInUp 1.2s ease forwards;
  padding: 0 20px;
  text-align: center;
  opacity: 0;
  animation-delay: 0.2s;
}
.logo-intro img {
  width: 100px;
  border-radius: 10px;
  margin-bottom: 15px;
}
.logo-intro h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #4a2c09;
}
.loading-bar {
  margin-top: 30px;
  width: 200px;
  max-width: 80%;
  height: 6px;
  background-color: #ddd;
  overflow: hidden;
  border-radius: 10px;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 2s;
}
.progress {
  height: 100%;
  width: 0;
  background-color: #a03d00;
  animation: loading 2s ease-in-out forwards;
  animation-delay: 2.1s;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes loading {
  0% { width: 0%; }
  100% { width: 100%; }
}
@keyframes fadeOut {
  to { opacity: 0; visibility: hidden; }
}

/* ===== FOOTER ===== */
footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 1.5rem;
}
