.contact-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 2rem;
    background: url('../images/contact-bg.jpg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
  }
  
  #contactCard {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 400px;
    perspective: 1000px;
  }
  
  .card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: rgba(255, 255, 255, 0.5); /* Transparent white */
    backdrop-filter: blur(8px);          /* Glassy effect */
    border-radius: 12px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.6s ease-in-out;
  }
  
  .front {
    z-index: 2;
  }
  
  .back {
    transform: rotateY(180deg);
  }
  
  #contactCard.flipped .front {
    transform: rotateY(180deg);
  }
  
  #contactCard.flipped .back {
    transform: rotateY(0);
    z-index: 3;
  }
  
  form input,
  form textarea {
    width: 100%;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
  }
  
  form button {
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
  }
  

  /* Mobile view CSS */

.contact-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 1rem;
    min-height: 100vh;
    background: url('../images/contact-bg.jpg') center/cover no-repeat;
  }
  
  #contactCard {
    perspective: 1000px;
    width: 100%;
    max-width: 500px;
    transition: transform 0.6s;
  }
  
  .card-face {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  
  .card-face h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .card-face input,
  .card-face textarea {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
  }
  
  .card-face button {
    padding: 0.75rem;
    background: #2c3e50;
    color: white;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .card-face button:hover {
    background: #1f2e3a;
  }
  
  /* Flip effect */
  #contactCard.flipped .front {
    display: none;
  }
  #contactCard.flipped .back {
    display: block;
  }
  
  .back {
    display: none;
    text-align: center;
  }
  
  /* Responsive behavior */
  @media (max-width: 768px) {
    .contact-section {
      padding: 2rem 1rem;
    }
  
    .card-face {
      padding: 1.5rem;
    }
  
    .card-face h2 {
      font-size: 1.5rem;
    }
  
    .card-face input,
    .card-face textarea {
      font-size: 0.95rem;
    }
  }
  