/* ── Keyframes ── */

/* Blur + rise — premium Apple-style text reveal */
@keyframes blurFadeUp {
  from { opacity: 0; transform: translateY(18px); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Panel entries — travel + subtle scale */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-56px) scale(0.97); }
  to   { opacity: 1; transform: translateX(0)     scale(1); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(56px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Image zoom-in with fade */
@keyframes imgReveal {
  from { opacity: 0.4; transform: scale(1.08); }
  to   { opacity: 1;   transform: scale(1); }
}

/* Elegant light sweep across image */
@keyframes shimmerSweep {
  0%   { transform: translateX(-160%) skewX(-12deg); opacity: 0; }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { transform: translateX(260%) skewX(-12deg); opacity: 0; }
}

/* Glow orb breathing */
@keyframes glowPulse {
  0%, 100% { opacity: 0.85; }
  50%       { opacity: 0.3; }
}

/* Envelope float */
@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}


/* ── Glow wrap ── */
.contact-glow-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.contact-glow-wrap::before {
  content: '';
  position: fixed;
  left: -400px;
  top: 40%;
  transform: translateY(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(208, 98, 178, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 6s ease-in-out infinite;
}
.contact-glow-wrap::after {
  content: '';
  position: fixed;
  right: -400px;
  top: 40%;
  transform: translateY(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(37, 193, 241, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 6s 3s ease-in-out infinite;
}

/* ── Split layout ── */
.contact-split {
  display: flex;
  min-height: 100vh;
  width: 100%;
  padding-top: 140px;
  box-sizing: border-box;
  font-family: 'Google Sans Flex', var(--font-sans), sans-serif;
  position: relative;
  z-index: 1;
}

/* ── Left: image panel ── */
.contact-split-img {
  width: 50%;
  position: relative;
  overflow: hidden;
  padding: 16px 12px 20px 20px;
  flex-shrink: 0;
  animation: slideInLeft 1s 0s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.contact-img-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.contact-split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  animation: imgReveal 1.6s 0.05s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Polar-star style glow: bright point + soft rays on image panel */
.contact-split-img::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 15%;
  width: 280px;
  height: 280px;
  background: radial-gradient(
    circle at center,
    rgba(37, 193, 241, 0.35) 0%,
    rgba(37, 193, 241, 0.12) 35%,
    transparent 65%
  );
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
  z-index: 1;
  animation: polarStarPulse 4s ease-in-out infinite;
}
.contact-split-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 70%
  );
  border-radius: 16px;
  animation: shimmerSweep 1.8s 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  pointer-events: none;
  z-index: 2;
}

@keyframes polarStarPulse {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.08); }
}

/* ── Right: form panel ── */
.contact-split-form {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 64px;
  box-sizing: border-box;
  animation: slideInRight 1s 0.08s cubic-bezier(0.16, 1, 0.3, 1) both;
  position: relative;
}

.contact-form-wrap {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.contact-form-wrap h2 {
  font-family: 'Google Sans Flex', var(--font-sans), sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 28px;
  animation: blurFadeUp 0.8s 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── Form fields ── */
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form-row:nth-child(1) { animation: fadeUp 0.7s 0.52s cubic-bezier(0.16, 1, 0.3, 1) both; }
.contact-form-row:nth-child(2) { animation: fadeUp 0.7s 0.64s cubic-bezier(0.16, 1, 0.3, 1) both; }

.contact-form .field {
  margin-bottom: 20px;
}

.contact-form .field.full {
  grid-column: 1 / -1;
  animation: fadeUp 0.7s 0.76s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 0 10px;
  font-family: var(--font-sans), sans-serif;
  font-size: 15px;
  color: #8797AD;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(135, 151, 173, 0.35);
  border-radius: 0;
  box-sizing: border-box;
  transition: border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #8797AD;
  transition: opacity 0.3s ease;
}

.contact-form input:focus::placeholder,
.contact-form textarea:focus::placeholder {
  opacity: 0.5;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: rgba(37, 193, 241, 0.65);
  color: #fff;
  box-shadow: 0 2px 0 rgba(37, 193, 241, 0.1);
}

.contact-form textarea {
  min-height: 90px;
  resize: vertical;
}

.contact-form button {
  margin-top: 8px;
  animation: fadeUp 0.7s 0.88s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.contact-form button:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ── Email info ── */
.contact-email-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  animation: fadeUp 0.7s 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.contact-email-info .env-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatIcon 3.5s ease-in-out infinite;
}

.contact-email-info .env-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.85;
}

.contact-email-info .env-label {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.contact-email-info .env-value {
  font-size: 14px;
  color: #8797AD;
}

.contact-email-info .env-value a {
  color: #8797AD;
  text-decoration: none;
  transition: color 0.25s ease;
}

.contact-email-info .env-value a:hover { color: #fff; }

/* ── Success message ── */
.success {
  color: var(--green);
  margin-bottom: 16px;
  font-weight: 500;
  animation: blurFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .contact-split-img { width: 45%; }
  .contact-split-form { width: 55%; padding: 40px 36px; }
}

@media (max-width: 768px) {
  .contact-split {
    flex-direction: column;
    padding-top: 72px;
  }
  .contact-split-img {
    width: 100%;
    height: 300px;
    padding: 16px 16px 8px;
    flex-shrink: 0;
  }
  .contact-split-form {
    width: 100%;
    padding: 36px 24px 48px;
    align-items: flex-start;
  }
  .contact-form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 480px) {
  .contact-split { padding-top: 64px; }
  .contact-split-img { height: 220px; }
  .contact-split-form { padding: 28px 20px 40px; }
  .contact-form-wrap h2 { font-size: 22px; }
  .contact-form button { width: 100%; text-align: center; }
  .contact-email-info { flex-direction: column; align-items: flex-start; gap: 10px; }
}
