/* ===== THEME VARIABLES ===== */

/* Light Theme */
:root {
  --bg-main: #ffffff;
  --bg-section: #f9fafb;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.7);

  --text-main: #111111;
  --text-muted: #6b7280;
  --text-light: #9ca3af;

  --border-soft: rgba(0, 0, 0, 0.08);

  --accent: #ff4ecd;
  --accent-2: #9b5dcd;

  /* Button / UI colors (merged) */
  --bg-color: #ffffff;
  --text-color: #111111;
  --btn-bg: #f0f0f0;

  /* header sizing used to offset page content when headers are fixed */
  --top-header-height: 50px; /* height reserved for .top-header (approx) */
  --navbar-height: 75px; /* height of .navbar-custom */
}

/* Dark Theme */
.dark-theme {
  --bg-main: #000000;
  --bg-section: #050505;
  --bg-card: #0f172a;
  --bg-glass: rgba(0, 0, 0, 0.65);

  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-light: #9ca3af;

  --border-soft: rgba(255, 255, 255, 0.08);

  --accent: #ff4ecd;
  --accent-2: #aa42ff;

  /* Button / UI colors (merged) */
  --bg-color: #0f172a;
  --text-color: #f8fafc;
  --btn-bg: #1e293b;
}

/* Contact page styles (contact_style.css) */
:root {
  --contact-max: 1100px;
}

.contact-page {
  padding: 20px 20px;
  background: transparent;
}

.contact-inner {
  max-width: var(--contact-max);
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 28px;
}

.contact-form {
  flex: 1 1 100%;
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 28px;
  border-radius: 12px;
  position: relative;
  z-index: 0;
  will-change: transform, opacity;
  /* pop-up card animation: appear from below with a soft overshoot */
  animation: popUp 620ms cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.contact-form h2 {
  text-align: center;
  margin: 0 0 8px 0;
  font-size: 1.6rem;
}

.contact-sub {
  text-align: center;
  margin: 0 0 18px 0;
  color: var(--accent-2);
}

.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.form-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-col label {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form-col input,
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--text-muted);
  background: var(--bg-glass);
  color: var(--text-color);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-submit {
  margin-top: 14px;
  padding: 12px 20px;
  border-radius: 8px;
  width: 100%;
}

/* Decorative soft background and input focus animation */
.contact-form::before {
  content: "";
  position: absolute;
  inset: -6px;
  z-index: -1;
  border-radius: 14px;
  background: radial-gradient(
      circle at 10% 10%,
      rgba(99, 102, 241, 0.04),
      transparent 12%
    ),
    linear-gradient(135deg, rgba(236, 72, 153, 0.01), rgba(79, 70, 229, 0.01));
  filter: blur(8px);
  opacity: 0.9;
}

@keyframes popUp {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(0.96);
    filter: blur(2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  }
  60% {
    opacity: 1;
    transform: translateY(-8px) scale(1.03);
    filter: blur(0);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.09);
  }
  85% {
    transform: translateY(4px) scale(0.995);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  }
}

.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.6);
  transform: translateY(-1px);
  transition: box-shadow 180ms, border-color 180ms, transform 150ms;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-inner {
    flex-direction: column;
    padding: 16px;
  }
  .contact-inner.single-column {
    align-items: center;
  }
  .contact-form {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .form-row {
    flex-direction: column;
  }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  .contact-image img,
  .contact-form,
  .contact-inner {
    transition: none !important;
    animation: none !important;
  }
}
