/* =======================
   General Page Styles
   ======================= */
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #333333;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: #ffffff;
}

h1, h2, h4 {
  color: #111827;
  margin-top: 0;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-weight: normal;
  font-size: 1.5rem;
  color: #555555;
}

p {
  font-size: 0.95rem;
}

/* =======================
   Hero Section
   ======================= */
.hero {
  text-align: center;
  padding: 6rem 1rem;
  background: linear-gradient(to right, #f0f4f8, #ffffff);
  border-radius: 8px;
  margin-bottom: 3rem;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.button-primary {
  text-decoration: none;
  color: white;
  background-color: #0070f3;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  margin: 0 0.5rem;
  font-weight: bold;
  transition: 0.3s;
}

.button-primary:hover {
  background-color: #005bb5;
}

.button-secondary {
  text-decoration: none;
  color: white;
  background-color: #28a745;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  margin: 0 0.5rem;
  font-weight: bold;
  transition: 0.3s;
}

.button-secondary:hover {
  background-color: #1e7e34;
}

/* =======================
   Section Separators
   ======================= */
hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 3rem 0;
}

/* =======================
   Project Cards Container
   ======================= */
.project-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* =======================
   Flip Card
   ======================= */
.flip-card {
  width: 250px;
  perspective: 1000px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideIn 0.5s forwards;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  min-height: 150px;
  text-align: center;
  transition: transform 0.8s, box-shadow 0.3s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Front & Back Faces */
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 0.5rem;
}

.flip-card-front {
  background: #ffffff;
}

.flip-card-back {
  background: #f9fafb;
  transform: rotateY(180deg);
}

/* =======================
   Fade + Slide Animation
   ======================= */
@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =======================
   Responsive Adjustments
   ======================= */
@media (max-width: 600px) {
  .flip-card {
    width: 100%;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero h2 {
    font-size: 1.25rem;
  }
}
