/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9; /* light background */
  color: #333;
}

/* Section styling */
.social-designs {
  padding: 80px 20px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #4a005f; /* purple accent */
}

/* Card container grid */
.card-container {
  display: grid;
  grid-template-columns: repeat(3, 306px); /* exactly 3 per row */
  grid-auto-rows: 306px; /* fixed row height */
  gap: 25px;
  justify-content: center;
}

/* Card styling */
.card {
  width: 306px;
  height: 306px;
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6); /* glass effect */
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Card hover effect */
.card:hover {
  transform: translateY(-10px) scale(1.07);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  border: 2px solid #4a005f; /* subtle purple border on hover */
}

/* Images inside cards */
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 30px;
}

/* Fade-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}
/* Typing effect for home heading */
.hero-text h1.typing {
  font-size: 3rem;
  color: #4a005f; /* purple accent */
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #4a005f; /* cursor effect */
}

.hero-text h1.typing span {
  display: inline-block;
  animation: typing 2s steps(20) forwards, blink 0.7s step-end infinite;
}

/* Stagger second line */
.hero-text h1.typing span:nth-child(2) {
  animation-delay: 2.2s; /* delay after first line finishes */
}

/* Typing animation */
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

/* Cursor blinking */
@keyframes blink {
  50% { border-color: transparent; }
}

/* Responsive */
@media(max-width: 1000px) {
  .card-container {
    grid-template-columns: repeat(2, 1fr); /* 2 per row */
  }
}

@media(max-width: 700px) {
  .card-container {
    grid-template-columns: 1fr; /* 1 per row */
  }

  .card {
    width: 90%;
    height: auto;
  }
}
