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

body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  background-color: #f4f4f4;
  color: #333;
  overflow-x: hidden;
}
.logo {
  display: flex;
  flex-direction: column;
}

.logo h1 {
  line-height: 1;
  margin-bottom: 5px;
}

.logo-motto {
  font-size: 13px;
  color: #333;
  font-style: italic;
  letter-spacing: 0.5px;
  font-weight: 400;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-header {
  background: #fff;
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav ul li {
  margin-left: 30px;
}

.main-nav ul li a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 600;
  position: relative;
  padding: 5px 0;
  transition: 0.3s ease;
}

.main-nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #e67e22;
  transition: 0.3s ease;
}

.main-nav ul li a:hover {
  color: #e67e22;
  transform: translateY(-2px);
}

.main-nav ul li a:hover::after {
  width: 100%;
}
.main-nav a:hover {
  color: #0077ff;
}

.hero-section {
  height: 50vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("image/pp.jpg") center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-title {
  font-size: 7rem;
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", Times, serif;
}

.gallery-section {
  padding: 80px 0;
}

.cards-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  padding: 50px 20px;
  width: 100%;
  margin: 0 auto;
}

.cards-wrapper::-webkit-scrollbar {
  display: none;
}

.philosophy-card {
  flex: 0 1 270px;
  min-width: 250px;
  height: 450px;
  perspective: 1000px;
  margin: 10px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.philosophy-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-front {
  background: white;
  display: flex;
  flex-direction: column;
}

.card-front img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.front-content {
  padding: 20px;
  text-align: center;
}

.front-content h3 {
  margin-bottom: 10px;
  color: #2c3e50;
}
.front-content p {
  font-style: italic;
  font-size: 0.9rem;
  color: #7f8c8d;
}

.card-back {
  background: #2c3e50;
  color: white;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  text-align: center;
}

.card-back h3 {
  color: #e67e22;
  margin-bottom: 20px;
}
.card-back p {
  line-height: 1.6;
  font-size: 1rem;
}

.main-footer {
  background: #1a252f;
  color: white;
  padding: 40px 0;
  text-align: center;
}

.social-links a {
  color: #e67e22;
  margin: 0 10px;
  text-decoration: none;
}
@media (max-width: 768px) {
  .cards-wrapper {
    justify-content: center;
  }
}
