/* ============================================================
   Site na navbar sathe match thay tevo dark gradient bg
   ============================================================ */
#contact-section {
    background: var(--color-primary);
    isolation: isolate;
}

/* ============================================================
   1) AURORA BACKGROUND — slow-moving blurred color blobs
   Chip-orbit ni jagya e have "living" gradient background chhe.
   ============================================================ */
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .35;
  mix-blend-mode: screen;
  will-change: transform;
  pointer-events: none;
}
.aurora-blob.b1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #34d399 0%, transparent 70%);
  top: -180px; left: -120px;
  animation: drift1 22s ease-in-out infinite;
}
.aurora-blob.b2 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, #38bdf8 0%, transparent 70%);
  bottom: -160px; right: -100px;
  animation: drift2 26s ease-in-out infinite;
}
.aurora-blob.b3 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #a78bfa 0%, transparent 70%);
  top: 40%; left: 45%;
  animation: drift3 30s ease-in-out infinite;
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(80px, 60px) scale(1.15); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-70px, -50px) scale(1.1); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -50%) scale(1.25) rotate(20deg); }
}

/* ============================================================
   SHINE SWEEP + ARROW — hover micro-interaction for the
   contact cards (no images, purely light/motion based).
   ============================================================ */
.contact-card {
  position: relative;
}
.contact-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255,255,255,.16) 45%,
    rgba(255,255,255,.28) 50%,
    rgba(255,255,255,.16) 55%,
    transparent 100%
  );
  transform: skewX(-18deg);
  pointer-events: none;
  transition: left .7s cubic-bezier(.16,.84,.44,1);
}
.contact-card:hover::after {
  left: 130%;
}

/* small arrow that slides in on hover, added next to the label text */
.contact-card .card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  opacity: 0;
  transform: translate(-6px, 2px);
  transition: opacity .3s ease, transform .3s cubic-bezier(.34,1.56,.64,1);
}
.contact-card:hover .card-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* ============================================================
   TEXT MICRO-ANIMATION inside each card (label + value)
   ============================================================ */
.contact-card .card-label {
  transition: opacity .3s ease, transform .3s ease, letter-spacing .3s ease;
}
.contact-card:hover .card-label {
  opacity: .9;
  letter-spacing: .12em;
  transform: translateX(3px);
}

.contact-card .card-value {
  position: relative;
  display: inline-block;
  transition: color .3s ease, transform .35s cubic-bezier(.16,.84,.44,1);
}

.contact-card .card-value::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 1px;
  background: currentColor;
  transition: width .45s cubic-bezier(.16,.84,.44,1);
}
.contact-card:hover .card-value::after {
  width: 100%;
}

/* ============================================================
   2) CURSOR SPOTLIGHT — subtle glow that follows the mouse
   across the whole section, tracked via --mx / --my (set in JS)
   ============================================================ */
.cursor-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    480px circle at var(--mx, 50%) var(--my, 30%),
    rgba(255,255,255,.07),
    transparent 60%
  );
  transition: opacity .3s ease;
}

/* faint grid texture for depth, masked by the spotlight */
.grain-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .25;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 75%);
}

/* ============================================================
   3) SPLIT-TEXT HEADING REVEAL
   Har word ek <span> ma wrap thai ne stagger sathe fade+rise
   thai ne aave chhe (JS thi auto-split thay chhe).
   ============================================================ */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.split-word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform .9s cubic-bezier(.16,.84,.44,1);
}
.split-word.reveal-in > span {
  transform: translateY(0);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.16,.84,.44,1), transform .8s cubic-bezier(.16,.84,.44,1);
}
[data-reveal].reveal-in {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="cards"] .contact-card:nth-child(1) { transition-delay: .05s; }
[data-reveal="cards"] .contact-card:nth-child(2) { transition-delay: .12s; }
[data-reveal="cards"] .contact-card:nth-child(3) { transition-delay: .19s; }
[data-reveal="cards"] .contact-card:nth-child(4) { transition-delay: .26s; }

/* ============================================================
   4) GLOW-BORDER MAGNETIC CARDS
   Cursor position (--x, --y, JS thi set) par ek radial glow
   card ni border/background par follow thay chhe.
   ============================================================ */
.contact-card {
  position: relative;
  transform-style: preserve-3d;
  transition: transform .25s ease, border-color .3s ease, background .3s ease;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    220px circle at var(--x, 50%) var(--y, 50%),
    rgba(255,255,255,.16),
    transparent 65%
  );
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.contact-card:hover::before { opacity: 1; }
.contact-card:hover {
  border-color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.07);
}
.contact-card .card-icon {
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.contact-card:hover .card-icon {
  transform: scale(1.12) rotate(-6deg);
}

/* ============================================================
   5) MAGNETIC SOCIAL ICONS
   ============================================================ */
.social-icon {
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .3s ease, color .3s ease;
}
.social-icon:hover {
  transform: translateY(-4px) scale(1.08);
}

/* heading: always-visible solid white text + a light sweep overlay for shimmer */
.gt-heading {
  position: relative;
  color: #fff;
  display: inline-block;
}
.gt-heading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 48%, transparent 66%);
  background-size: 250% 100%;
  mix-blend-mode: overlay;
  animation: sheen 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sheen {
  0%   { background-position: 160% 0; }
  100% { background-position: -60% 0; }
}

@media (max-width: 768px) {
  .aurora-blob.b3 { display: none; }
  .cursor-spotlight { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-blob { animation: none !important; }
  .gt-heading { animation: none !important; }
  [data-reveal], .split-word > span { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   CONTACT FORM — floating labels + focus animations
   ============================================================ */
.form-field {
  position: relative;
}
.form-input {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  padding: 18px 14px 8px;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color .25s ease, background .25s ease;
  appearance: none;
}
.form-input:focus {
  border-color: #fff;
  background: rgba(255,255,255,.10);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  padding-top: 22px;
}
.form-select {
  color: #fff;
  cursor: pointer;
}
.form-select option {
  color: #111;
}

.form-label {
  position: absolute;
  left: 14px;
  top: 16px;
  color: rgba(255,255,255,.45);
  font-size: 15px;
  pointer-events: none;
  transition: top .2s ease, font-size .2s ease, color .2s ease;
}
/* float the label up when focused or filled (via :placeholder-shown trick) */
.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  top: 6px;
  font-size: 11px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .06em;
}
/* the <select> has no placeholder-shown state the same way, so float its label whenever a value is chosen */
select.form-input:valid + .form-label {
  top: 6px;
  font-size: 11px;
  color: #7dd3fc;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.form-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  background: #fff;
  color: #0b1620;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
}
.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(255,255,255,.35);
}
.form-submit-btn:active {
  transform: translateY(0);
}

@media (max-width:640px){

    .contact-card{
        padding:10px 12px !important;
    }

    .contact-card .card-icon{
        width:30px !important;
        height:30px !important;
    }

    .contact-card .card-value{
        font-size:20px !important;
    }

    
    
}