/* contact.css */

/* Base styling */
.contact.section {
  position: relative;
  background: url('../images/city5.jpeg') center/cover no-repeat;
  color: #fff;
  padding: 6rem 1rem;
  overflow: hidden;
  z-index: 1;
}

/* Dark background tint */
.contact.section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

/* Grey overlay between background and content */
.contact-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20, 20, 20, 0.65); /* darker, cooler tone */
  z-index: 1;
}


/* Glowing lines (top and bottom) */
.contact.section::after,
.contact.section::before {
  content: '';
  position: absolute;
  left: 50%;
  width: 80px;
  height: 2px;
  background: rgba(255,255,255,0.25);
  box-shadow: 0 0 12px rgba(255,255,255,0.3);
  transform: translateX(-50%);
  z-index: 1;
}
.contact.section::before {
  top: 1.5rem;
}
.contact.section::after {
  bottom: 1.5rem;
}

/* Content Wrapper */
.contact-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
  position: relative;
  z-index: 3;
}

.contact-cta, .contact-form {
  flex: 1 1 45%;
}

.contact-cta h2 {
  font-size: 2.5rem;
  font-weight: bold;
}

.contact-cta p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.contact-info div {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.contact-info i {
  margin-right: 10px;
  color: var(--color-accent, #e53935);
}

.contact-info a {
  color: #fff;
  text-decoration: none;
}

/* Features */
.features-grid {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.25rem;
  border-radius: 12px;
  text-align: center;
  flex: 1 1 30%;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.feature-card h4 {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Form */
.contact-form h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-form form {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.8rem;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.contact-form button {
  width: 100%;
  padding: 0.9rem;
  background: #e53935;
  color: white;
  border: none;
  font-weight: bold;
  font-size: 1.1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #ff5a5a;
}

/* Orbs */
.contact.section .orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  filter: blur(8px);
  animation: orbFade 6s ease-in-out forwards;
  z-index: 2;
}

@keyframes orbFade {
  0%   { opacity: 0; transform: scale(0.5); }
  50%  { opacity: 0.4; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.3); }
}

/* Optional scroll animation */
@media screen and (min-width: 768px) {
  .contact.section::before {
    animation: backgroundFade 20s infinite alternate;
  }
}
