/* Font definition */
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap; /* Prevent invisible text during font loading */
}

/* Global reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Hide horizontal overflow */
html, body {
  overflow-x: hidden;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Body styling */
body {
  font-family: "Poppins", sans-serif;
  font-weight: bold;
  line-height: 1.6;
  background-color: #1f2122;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
}

/* Fade in animation */
@keyframes fadeIn {
  to {
      opacity: 1;
  }
}

/* Initial state for fade-in elements */
.fade-in {
  width: 100%;
  padding: 20px;
  opacity: 0.1;
}

.fade-in2 {
  width: 100%;
  padding: 20px;
  opacity: 0.1;
}

/* Main page content layout */
.page-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

/* Spacer for layout */
.spacer {
  margin: 0 auto;
  word-spacing: 2px;
  padding-top: 20px;
  width: 97%;
}

/* About container styling */
.about-container,
.about-container2,
.about-container3 {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 90%;
  max-width: 1300px;
  margin: 20px auto; 
  align-items: center;
}

/* Icon styling */
.icons {
  align-items: center;
  max-width: 50px;
  user-select: none;
}

.icon1, .icon2, .icon3, .icon4 {
  margin: 10px 0;
}

/* About card styling */
.about-card2,
.about-card3,
.about-card4,
.about-card5 {
  position: relative;
  background-color: #27292a;
  border-radius: 24px;
  transition: transform 0.3s, box-shadow 0.3s;
  width: 100%;
  max-width: 1300px;
  margin-top: 20px;
  padding: 20px;
}

.about-card {
  position: relative;
  background-color: #27292a;
  border-radius: 24px;
  transition: transform 0.3s, box-shadow 0.3s;
  width: 100%;
  max-width: 1300px;
  padding: 20px;
  margin-top: 130px;
}

/* Image styling within about card */
.about-card img {
  display: block;
  border-radius: 8px;
  width: 95%;
  height: auto;
  margin: 0 auto;
  user-select: none;
}

/* Hover effects for about cards */
.about-card:hover,
.about-card2:hover,
.about-card3:hover,
.about-card4:hover,
.about-card5:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Container styling */
.container,
.container2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 20px;
}

/* About title styling */
.about-title {
  position: absolute;
  font-size: 1rem;
  text-align: left;
  top: 0;
  width: 120%;
  margin: 20px 0;
  transition: font-size 0.3s ease;
}

/* About text styling */
.about-text {
  position: absolute;
  top: 0;
  left: 0;
  padding: 20px;
  color: #ededed;
  font-size: 2rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%; 
  text-align: left;
  margin-left: 25px;
  transition: font-size 0.3s ease, line-height 0.3s ease, margin-left 0.3s ease;
}

/* About content layout */
.about-content {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

/* Icon container styling */
.icons {
  display: flex;
  flex-direction: column;
  margin-right: 20px;
}

/* Icon image styling */
.icons img {
  margin-bottom: 15px;
  width: 50px;
  height: auto; 
}

/* Text section layout */
.about-text2 {
  flex: 1;
}

/* Text section styling */
.text-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

/* Icon wrapper layout */
.icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Icon wrapper image styling */
.icon-wrapper img {
  margin-bottom: 10px;
  height: auto;
}

/* Heading styling */
h4 {
  color: #e56699;
  font-size: 32px;
}

h2 {
  color: #e56699;
  font-size: 32px;
}

/* Image container styling */
.image-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
}

/* Image styling */
.image {
  width: 100%;
  height: auto;
  display: block;
}

/* Button styling */
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  border-radius: 50px;
  background: #e56699;
  color: #ededed;
  font-size: 18px;
  padding: 15px 30px;
  text-decoration: none;
  user-select: none;
  margin: 20px auto;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Button hover effect */
.btn:hover {
  background: #ededed;
  color: #e56699;
}

/* Extra galleries toggle styling */
.extra-galleries {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
}

.extra-galleries.open {
  max-height: 1000px;
}

.extra-galleries.open ~ .btn {
  margin-top: 20px;
}

/* -----------------------------Responsive Design----------------------------- */

/* Media query for tablet responsiveness */
@media (max-width: 768px) {
  .about-text {
    font-size: 1.5rem;
    line-height: 1.1;
    margin-left: 5px;
  }

  .about-title {
    font-size: 0.6rem;
  }

  .about-content {
    flex-direction: column;
    align-items: center;
  }

  .text-section {
    align-items: center;
  }
}

/* Media query for mobile responsiveness */
@media (max-width: 480px) {
  .about-card {
    width: 80%;
  }

  .about-text  {
      font-size: 1rem;
      line-height: 0.9;
      margin-left: -5px;
  }

  .about-title {
    font-size: 0.4rem;
  }
}



/* Responsive Design */
@media (max-width: 1920px) {
  .page-content {
      width: 100%;
      padding: 0 15px;
  }

  .about-container,
  .about-container2 {
      width: 90%;
  }

  .about-container3 {
      width: 100%;
  }

  .icons {
      max-width: 30px;
  }

  .about-card {
      width: 100%;
  }

  .btn {
      font-size: 16px;
      padding: 10px 20px;
  }
}
