/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #0d0d0d;
  color: #eee;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* Background blobs */
body::before,
body::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  animation: float 8s ease-in-out infinite alternate;
}

body::before {
  background: rgba(255,255,255,0.1);
  top: 10%;
  left: -10%;
}

body::after {
  background: rgba(200,200,200,0.08);
  bottom: 10%;
  right: -10%;
  animation-delay: 2s;
}

/* Container */
.contact-container {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: auto;
  text-align: center;
  animation: fadeIn 1.2s ease-in-out;
}

.contact-title {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: #fff;
  letter-spacing: 1px;
}

.contact-subtitle {
  font-size: 1.2rem;
  color: #bbb;
  margin-bottom: 3rem;
}

/* Box */
.contact-box {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(25,25,25,0.7);
  padding: 2.5rem;
  border-radius: 18px;
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 35px rgba(0,0,0,0.6);
  transition: transform 0.4s ease;
  position: relative;
}

.contact-box:hover {
  transform: scale(1.01);
}

/* Left Panel */
.contact-left {
  flex: 1 1 350px;
  text-align: left;
  animation: slideInLeft 1s ease;
}

.contact-left h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #fff;
}

.contact-left p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #ccc;
}

.contact-left a {
  color: #eee;
  text-decoration: none;
  transition: color 0.3s, text-shadow 0.3s;
}

.contact-left a:hover {
  color: #fff;
  text-shadow: 0 0 6px #fff;
}

.socials {
  margin: 1.2rem 0;
}

.socials a {
  color: #bbb;
  font-size: 1.6rem;
  margin-right: 15px;
  transition: transform 0.4s, color 0.4s, text-shadow 0.4s;
}

.socials a:hover {
  color: #fff;
  transform: rotate(12deg) scale(1.15);
  text-shadow: 0 0 12px #fff;
}

/* Animated divider */
.contact-left hr {
  height: 3px;
  border: none;
  margin: 2rem 0;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  animation: shine 2s linear infinite;
}

/* Map */
.contact-left iframe {
  aspect-ratio: 16/9;
  border-radius: 12px;
  width: 100%;
  border: 2px solid rgba(255,255,255,0.1);
}

/* Right Panel */
.contact-right {
  flex: 1 1 400px;
  background: rgba(20,20,20,0.7);
  padding: 2rem;
  border-radius: 16px;
  text-align: left;
  box-shadow: inset 0 0 15px rgba(255,255,255,0.05);
  animation: slideInRight 1s ease;
}

.contact-right h2 {
  margin-bottom: 1.5rem;
  color: #fff;
}

/* Floating Label Inputs */
.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

input,
textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(40,40,40,0.7);
  color: #eee;
  font-size: 1rem;
  transition: all 0.4s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #fff;
  box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* Labels */
label {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  font-size: 0.95rem;
  color: #aaa;
  pointer-events: none;
  transition: 0.3s ease;
}

input:focus + label,
input:not(:placeholder-shown) + label,
textarea:focus + label,
textarea:not(:placeholder-shown) + label {
  top: -8px;
  left: 8px;
  font-size: 0.8rem;
  color: #fff;
  background: #222;
  padding: 0 6px;
  border-radius: 4px;
}

/* Button */
button[type="submit"] {
  padding: 0.9rem 1.8rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #bbb);
  color: #111;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
  position: relative;
  overflow: hidden;
}

button[type="submit"]:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 18px rgba(255,255,255,0.25);
}

/* Confirmation Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #222;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s, transform 0.4s;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.team-footer {
  text-align: center;
  padding: 2rem;
  background: #111;
  font-size: 0.9rem;
  color: #777;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-container {
    padding: 2rem 1rem;
  }

  .contact-title {
    font-size: 2.2rem;
  }

  .contact-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .contact-box {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .contact-left, 
  .contact-right {
    flex: 1 1 100%;
    text-align: center;
  }

  .contact-left h2,
  .contact-right h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .contact-left p {
    font-size: 0.95rem;
  }

  .socials {
    margin: 1rem 0;
  }

  .socials a {
    font-size: 1.4rem;
    margin-right: 12px;
  }

  .contact-left iframe {
    width: 100%;
    height: 220px;
    margin-top: 1rem;
  }

  .contact-right {
    padding: 1.5rem;
  }

  .form-group {
    margin-bottom: 1.2rem;
  }

  input,
  textarea {
    padding: 0.85rem;
    font-size: 0.95rem;
  }

  label {
    font-size: 0.85rem;
  }

  button[type="submit"] {
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 1rem;
  }

  .team-footer {
    padding: 1.5rem 1rem;
    font-size: 0.85rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes shine {
  from { background-position: -200px; }
  to { background-position: 200px; }
}

@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-30px); }
}
