/* General Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #2D394C;
    /* background-color: #f9f9f9; */
    line-height: 1.5;
    position: relative;
    overflow-x: hidden;
    padding-inline: 40px;
}

/* Background Folders */
.background-folders {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;  /* Let clicks pass through to content */
}

/* Folder container styling */
.folders-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Base folder styling */
.folder {
    position: absolute;
    opacity: 0;
    transform-origin: center bottom;
    width: 30vmin;  /* Responsive size based on viewport */
    height: auto;
    max-width: 800px;
}

/* Individual folder animations */
.folder-back {
    z-index: -3;
    animation: unfoldBack 1.5s ease-out forwards 0.3s;
}

.folder-middle {
    z-index: -2;
    animation: unfoldMiddle 1.3s ease-out forwards 0.6s;
}

.folder-front {
    z-index: -1;
    animation: unfoldFront 1.1s ease-out forwards 0.9s;
}

/* Keyframe animations with opacity first, then movement */
@keyframes unfoldBack {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    30% {
        opacity: 0.3;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    100% {
        opacity: 0.3;
        transform: translate(-15%, -10%) rotate(-25deg) scale(1.2);
    }
}

@keyframes unfoldMiddle {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    30% {
        opacity: 0.5;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    100% {
        opacity: 0.5;
        transform: translate(-5%, -3%) rotate(-10deg) scale(1.1);
    }
}

@keyframes unfoldFront {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    30% {
        opacity: 0.8;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    100% {
        opacity: 0.8;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

/* Header */
.header {
    position: relative;
    z-index: 40;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #ffffff00;
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo h1 {
    font-size: 1.5rem;
    margin-left: 0.5rem;
    color: #2D394C;
}

/* Placeholder logo icon */
.logo-icon {

    /* background-color: #ccc; */
    border-radius: 4px;
}

.header-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.header-nav a {
    text-decoration: none;
    color: #2D394C;
    font-weight: 500;
}

.header-nav a:hover {
    opacity: 0.7;
}

/* Hero Section */
.hero {
    position: relative;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem;
    background-color: #fff;
}

.hero-text {
    flex: 1 1 400px;
    margin-right: 2rem;
}

.hero-text h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 400px;
}

#saibaMaisBtn {
    background-color: #2D394C;
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 4px;
    text-decoration: none;
}

#saibaMaisBtn:hover {
    background-color: #495167;
}

/* Hero Image (folder icon placeholder) */
.hero-image {
    flex: 1 1 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}



/* Services Section Styling */
.services-intro {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

          .services-grid {
              display: grid;
              grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
              gap: 2rem;
              max-width: 1400px;
              /* ensures no more than 3 cards horizontally */
              margin: 0 auto;
          }


.service-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon img {
  max-width: 100%;
  max-height: 100%;
}

.service-card h4 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  color: #333;
}

.service-card p {
  color: #666;
  margin-bottom: 0;
  line-height: 1.5;
}

.services-cta {
  text-align: center;
  margin-top: 2rem;
}

.service-btn {
  padding: 12px 24px;
  font-size: 1rem;
  background-color: #2D394C;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.service-btn:hover {
  background-color: #495167;
}


/* Services & About */
.services-about {
    position: relative;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    background-color: #fefefe;
}

.services,
.about {
    flex: 1 1 300px;
    margin-top: 40px;
}

.services h3,
.about h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: #2D394C;
}

.services ul {
    list-style: disc inside;
    margin-bottom: 1rem;
}

.services-placeholder {
    width: 100%;
    height: 100px;
    background-color: #d0b091;
    border-radius: 4px;
    margin-top: 1rem;
}

/* Contact Section */
.contact {
    position: relative;
    z-index: 10;
    padding: 2rem;
    background-color: #fff;
    margin-top:100px;
}

.contact h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

.contact-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 50%;
    width: 160px;
    height: 160px;
    box-shadow: 0 6px 24px rgba(44, 62, 80, 0.12), 0 1.5px 4px rgba(44, 62, 80, 0.10);
    margin-bottom: 1rem;
    overflow: hidden;
}

.contact-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.10);
    transition: transform 0.3s cubic-bezier(.4,2,.6,1);
}

.contact-photo img:hover {
    transform: scale(1.04) rotate(-2deg);
}

.contact-details h4 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.contact-details .role {
    color: #777;
    margin-bottom: 1rem;
}

.contact-details a {
    color: #2D394C;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    position: relative;
    z-index: 10;
    background-color: #fff;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #eee;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo .logo-icon {
    width: 30px;
    height: 30px;
}

.footer-logo span {
    font-weight: 600;
}

/* Map Container Styles */
.map-container {
  margin-top: 2rem;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 8px 8px 16px #d1d1d6, -8px -8px 16px #ffffff;
}

.map-container h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #2D394C;
}

.map-container iframe {
  display: block;
  border-radius: 8px;
}

@media (max-width: 600px) {
  body {
    padding-inline: 8px;
    overflow-x: hidden;
  }
  .header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0.5rem;
  }
  .header-logo {
    margin-bottom: 0.5rem;
  }
  .header-nav {
    display: none;
  }
  .hero {
    flex-direction: column;
    padding: 1rem 0.5rem;
    gap: 1.5rem;
  }
  .hero-text {
    margin-right: 0;
    text-align: center;
  }
  .hero-text h2 {
    font-size: 2.2rem;
  }
  .hero-image {
    margin-top: 1rem;
    position: absolute;
  }
  .services-grid {
    grid-template-columns: none;
  }
  .service-card {
    padding: 1rem;
  }
  .about, .services, .contact {
    padding: 1rem 0.5rem;
    margin-top: 32px;
  }
  .contact-content {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }
  .contact-photo {
    width: 110px;
    height: 110px;
  }
  .footer {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    text-align: center;
  }
  .map-container {
    margin-top: 1rem;
    border-radius: 8px;
  }
  .map-container iframe {
    height: 200px;
  }
  /* Make background folders icon larger and centered only on mobile */
    .background-folders {
      z-index: 0;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 100vw;
      height: 60vw;
      max-width: 100vw;
      max-height: 80vw;
    }
    .folders-container {
      top: -50px;
      width: 100vw;
      height: 60vw;
      max-width: 100vw;
      max-height: 80vw;
      justify-content: center;
      align-items: flex-start;
    }
    .folder {
      width: 80vw;
      max-width: 100vw;
      left: 50%;
      transform: translateX(-50%);
    }
}

