/* ============================================
   contact.css
   Theme: Dark green, glassmorphism, precise animations
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: black;
  color: white;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  overflow-x: hidden; /* Prevent gaps */
}

/* ── NEW SCROLL ANIMATIONS (Up & Down compatible) ── */
/* Using clip-path for a sharp, sleek wipe reveal */
.clip-reveal {
  clip-path: inset(100% 0 0 0); /* Wipe from bottom */
  transform: translateY(20px);
  opacity: 0;
  transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1),
              transform 0.8s cubic-bezier(0.77, 0, 0.175, 1),
              opacity 0.8s ease;
}
.clip-reveal.in-view {
  clip-path: inset(0 0 0 0);
  transform: translateY(0);
  opacity: 1;
}

/* Clip reveal from the right side */
.clip-reveal-right {
  clip-path: inset(0 0 0 100%);
  transform: translateX(30px);
  opacity: 0;
  transition: clip-path 0.9s cubic-bezier(0.77, 0, 0.175, 1),
              transform 0.9s cubic-bezier(0.77, 0, 0.175, 1),
              opacity 0.9s ease;
}
.clip-reveal-right.in-view {
  clip-path: inset(0 0 0 0);
  transform: translateX(0);
  opacity: 1;
}

/* Blur reveal for soft fading text/elements */
.blur-reveal {
  filter: blur(10px);
  opacity: 0;
  transform: scale(0.95);
  transition: filter 0.8s ease-out, opacity 0.8s ease-out, transform 0.8s ease-out;
}
.blur-reveal.in-view {
  filter: blur(0px);
  opacity: 1;
  transform: scale(1);
}

/* ── CSS-only scroll animations (no JS needed) ── */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to   { opacity: 1; transform: translateX(0); }
}

.scroll-in-left {
  animation: slideInLeft 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-timeline: view();
  animation-range: entry 10% cover 40%;
}

.scroll-in-right {
  animation: slideInRight 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-timeline: view();
  animation-range: entry 10% cover 40%;
}


/* ── BUTTON OVERLAY ANIMATION (NO POP-UP) ── */
/* A sleek glass cover slides over the button on hover */
.glass-btn {
  position: relative;
  overflow: hidden;
  padding: 0.75rem 2.2rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(0, 255, 156, 0.35);
  background: rgba(0, 255, 156, 0.06);
  color: white;
  font-family: 'Franklin Gothic Medium', Arial, sans-serif;
  letter-spacing: 0.5px;
  z-index: 1;
  transition: border-color 0.4s ease;
  /* NO transform popup for this specific request! */
}

/* The glossy glass pane */
.glass-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  z-index: -1;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
              opacity 0.4s ease;
}

.glass-btn:hover {
  border-color: #00ff9c;
}

.glass-btn:hover::before {
  opacity: 1;
  transform: scaleX(1);
}


.contact-hero {
  width: 100%;
  padding: 7rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-hero .green-line {
  width: 120px;
  height: 4px;
  background: #00ff9c;
  margin: 0 auto 2.5rem;
  border-radius: 99px;
  box-shadow: 0 0 30px rgba(0, 255, 156, 0.5);
}

.contact-hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 900;
}

.contact-hero p {
  color: #777;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
  font-family: Cambria, Georgia, serif;
}


/* ── CONTACT LAYOUT ── */
.contact-section {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.h1s {
  background: linear-gradient(90deg, #00ff9c, lightgreen);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-header p {
  color: #aaa;
  font-size: 1.1rem;
  font-family: Cambria, Georgia, serif;
  text-align: center;
}

.contact-container {
  display: flex;
  gap: 4rem;
  width: 100%;
  justify-content: space-between;
}

/* Contact Info left panel */
.contact-info {
  flex: 1;
  max-width: 450px;
  background: #050505;
  border: 1px solid #111;
  border-radius: 20px;
  padding: 3rem 2.5rem;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: white;
}

.contact-info p {
  color: #888;
  font-family: Cambria, Georgia, serif;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

.icon {
  font-size: 1.5rem;
  background: rgba(0, 255, 156, 0.1);
  padding: 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 156, 0.2);
}

.details h4 {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 0.3rem;
}
.details p {
  margin-bottom: 0;
  color: #999;
}


/* Contact Form right panel */
.contact-form-wrapper {
  flex: 1.2;
  background: #030a05;
  border: 1px solid rgba(0, 255, 156, 0.15);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: inset 0 0 40px rgba(0, 255, 156, 0.02);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  color: #00ff9c;
  font-size: 0.9rem;
  letter-spacing: 1px;
  font-weight: bold;
}

.input-group input, 
.input-group select, 
.input-group textarea {
  background: black;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 0.9rem 1.2rem;
  color: white;
  font-family: 'Franklin Gothic Medium', Arial, sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.input-group input:focus, 
.input-group select:focus, 
.input-group textarea:focus {
  outline: none;
  border-color: #00ff9c;
  box-shadow: 0 0 15px rgba(0, 255, 156, 0.1);
}

.form-submit-btn {
  margin-top: 1rem;
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
}

/* Footer elements */
.footer-divider {
  width: 91%;
  margin: 0 auto 2rem;
  background-color: lightgreen;
  border: none;
  height: 2px;
}

footer {
  width: 91%;
  padding: 0 0 2rem 0;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #555;
  flex-wrap: wrap;
  gap: 1rem;
}

footer a { color: #555; text-decoration: none; transition: color 0.3s;}
footer a:hover { color: #00ff9c; }

/* Responsive adjustments */
@media (max-width: 900px) {
  .contact-hero { padding-top: 100px; text-align: center; }
  .contact-hero p { margin: 0 auto; width: 90%; }
  .contact-container {
    flex-direction: column;
    gap: 3rem;
    align-items: center;
  }
  .contact-info, .contact-form-wrapper {
    max-width: 100%;
    text-align: center;
  }
  .info-item { flex-direction: column; align-items: center; }
}

@media (max-width: 600px) {
  .contact-form-wrapper, .contact-info {
    padding: 2rem 1.5rem;
  }
  .contact-hero h1 { font-size: 2.2rem; }
}
