/* ========================================================================= */
/* ========================= CONTACT US SECTION ============================ */
/* ========================================================================= */

/* Integrating Project Variables */
:root {
  --glass-surface: linear-gradient(165deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 40%, rgba(255, 255, 255, 0.05) 100%);
  --glass-border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Ensure font import is at the top of your main CSS file */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100;300;400;500;700&display=swap');

.contact-us {
  background: url('/assets/blackhole\ 2.jpeg') center center/cover no-repeat;
  padding: 100px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 200px;
  /* Applying Project Font Style */
  font-family: 'Outfit', sans-serif; 
}

.contact-window {
  /* Applying Project Glass Style */
  background: var(--glass-surface);
  backdrop-filter: blur(40px) saturate(160%);
  -webkit-backdrop-filter: blur(40px) saturate(160%);
  border: var(--glass-border);
  border-radius: 40px; /* Matched project card radius */
  box-shadow: 0 40px 100px rgba(0,0,0,0.7);
  
  width: 90%;
  max-width: 1000px;
  overflow: hidden;
  color: #fff;
  margin-bottom: 50px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.window-header {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 15px 25px;
  display: flex;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dot {
  height: 12px;
  width: 12px;
  border-radius: 50%;
  display: inline-block;
}
.red { background-color: #ff5f56; }
.yellow { background-color: #ffbd2e; }
.green { background-color: #27c93f; }

.contact-content {
  display: flex;
  flex-wrap: wrap;
  padding: 40px;
  gap: 40px;
}

.left-box { flex: 1; min-width: 280px; }

.left-box h1 {
  /* Applying Project Title Style */
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem); 
  letter-spacing: 5px;
  text-transform: uppercase;
  background: linear-gradient(to bottom, #fff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.contact-info {
  margin-top: 150px;
  /* Applying Project Tagline/Sub Style */
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
  letter-spacing: 1px;
}

.right-box { flex: 1; min-width: 280px; }

.right-box form {
  display: flex;
  flex-direction: column;
}

/* ===== Premium glass fields ===== */
.right-box input,
.right-box textarea {
  font-family: 'Outfit', sans-serif;
  appearance: none;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  color: #fff;
  font-size: 16px;
  outline: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.right-box input::placeholder,
.right-box textarea::placeholder {
  color: rgba(255, 255, 255, .3);
  font-weight: 300;
}

.right-box input:focus,
.right-box textarea:focus {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, 0.5);
}

.right-box textarea { min-height: 140px; resize: vertical; }

.button-row { display: flex; justify-content: flex-end; }

button.send {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 10px 30px;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  color: #ffffff;
  transition: all 0.3s ease;
}

button.send:hover {
  background: #fff;
  color: #000;
  box-shadow: 0 0 20px #fff;
}

/* 🌐 RESPONSIVENESS (Based on Project CSS logic) */
@media screen and (max-width: 900px) {
  .contact-content { flex-direction: column; padding: 30px; gap: 40px; }
  .left-box { text-align: center; }
  .left-box h1 { font-size: 2.2rem; }
  .contact-info { margin-top: 40px; text-align: center; }
  .button-row, .window-header { justify-content: center; }
}

@media screen and (max-width: 480px) {
  .contact-us { padding: 60px 10px; }
  .contact-window { width: 100%; border-radius: 25px; }
  .left-box h1 { font-size: 1.8rem; letter-spacing: 3px; }
  .right-box input, .right-box textarea { font-size: 15px; }
  button.send { width: 100%; } /* Better mobile UX */
}




/* Premium Glass Modal Styling */
.glass-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    animation: fadeIn 0.4s ease forwards;
}

.glass-modal-content {
    background: var(--glass-surface);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: var(--glass-border);
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    color: #fff;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    transform: translateY(20px);
    animation: slideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.glass-modal-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.glass-modal-content p {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 25px;
}

.modal-close-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 12px 35px;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255,255,255,0.4);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Optional: Loading spinner for the send button */
.loader {
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: rotation 1s linear infinite;
    margin-right: 8px;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}