/* ==========================================================================
   FINALE & CONTACT SECTION STYLING (SUPERCHARGED, ATTRACTIVE & ANIMATED)
   ========================================================================== */

.finale {
  min-height: 100vh;
  background: var(--acid);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 2px solid var(--ink);
  padding: 0;
  box-sizing: border-box;
}

/* Background animated ambient sheen */
.finale-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(243, 58, 47, 0.12) 0%, rgba(18, 63, 221, 0.08) 45%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  animation: ambientFloat 14s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes ambientFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-8%, 10%) scale(1.15); }
}

.final-main-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--ink);
  min-height: 82vh;
}

/* LEFT SIDE - CONTACT DETAILS */
.final-left {
  padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 4vw, 4.5rem);
  border-right: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  justify-content: flex-start;
  position: relative;
  background: rgba(217, 255, 0, 0.4);
  backdrop-filter: blur(10px);
}

/* Status Bar & Live Clock */
.contact-status-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--ink);
  color: #a3e635;
  border-radius: 999px;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(16, 16, 16, 0.15);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  position: relative;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.8);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.live-clock-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--ink);
  background: rgba(243, 239, 229, 0.85);
  border-radius: 999px;
  font-weight: 500;
  color: var(--ink);
}

.live-clock-badge svg {
  animation: clockRotate 12s linear infinite;
}

@keyframes clockRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Heading Group */
.contact-heading-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-eyebrow {
  font: 500 12px/1 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.8;
  display: block;
}

.contact-hero-title {
  font-size: clamp(54px, 8.5vw, 130px);
  line-height: 0.82;
  letter-spacing: -0.06em;
  font-weight: 900;
  margin: 0;
  text-transform: uppercase;
  color: var(--ink);
}

.contact-hero-title span {
  display: block;
  color: transparent;
  -webkit-text-stroke: clamp(1.5px, 0.2vw, 3px) var(--ink);
  transition: color 0.3s ease, -webkit-text-stroke 0.3s ease;
}

.contact-hero-title:hover span {
  color: var(--red);
  -webkit-text-stroke-color: var(--red);
}

.contact-lead-desc {
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 1.45;
  max-width: 620px;
  margin: 0.5rem 0 0;
  font-weight: 500;
  color: rgba(16, 16, 16, 0.9);
}

/* BIG INTERACTIVE EMAIL SPOTLIGHT CARD */
.contact-email-card {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  border-radius: 18px;
  padding: clamp(1.5rem, 2.5vw, 2.2rem);
  box-shadow: 0 20px 40px -15px rgba(16, 16, 16, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
  overflow: hidden;
}

.contact-email-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px -15px rgba(16, 16, 16, 0.45);
}

.contact-email-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(217, 255, 0, 0.08), transparent);
  animation: cardShimmer 6s infinite;
  pointer-events: none;
}

@keyframes cardShimmer {
  0% { transform: translateX(-100%); }
  50%, 100% { transform: translateX(100%); }
}

.email-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.email-card-tag {
  color: var(--acid);
  font-weight: 600;
}

.response-time-tag {
  color: #a3a3a3;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
}

.email-address-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.big-email-text {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(20px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
  transition: color 0.2s ease, transform 0.2s ease;
  word-break: break-all;
  display: inline-block;
}

.big-email-text:hover {
  color: var(--acid);
  transform: translateX(4px);
}

.email-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s var(--ease);
}

.copy-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.copy-btn:hover {
  background: var(--acid);
  color: var(--ink);
  border-color: var(--acid);
  transform: scale(1.04);
}

.send-btn {
  background: var(--red);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(243, 58, 47, 0.35);
}

.send-btn:hover {
  background: #ff5247;
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 10px 22px rgba(243, 58, 47, 0.5);
}

.send-btn b {
  font-size: 16px;
  transition: transform 0.2s ease;
}

.send-btn:hover b {
  transform: translate(3px, -3px);
}

.copy-toast {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #22c55e;
  color: #ffffff;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* TOPIC CHIPS SELECTOR */
.contact-topic-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.topic-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  opacity: 0.75;
}

.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-chip {
  padding: 8px 14px;
  border: 1px solid var(--ink);
  background: rgba(243, 239, 229, 0.7);
  color: var(--ink);
  border-radius: 999px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  user-select: none;
}

.topic-chip:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

.topic-chip.active {
  background: var(--ink);
  color: var(--acid);
  border-color: var(--ink);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(16, 16, 16, 0.2);
}

/* CARDS GRID (EMAIL, GITHUB, INSTAGRAM, LOCATION) */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 4px;
}

.connect-card {
  background: rgba(243, 239, 229, 0.85);
  border: 1px solid var(--ink);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.24s var(--ease);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
}

.connect-card:hover {
  transform: translateY(-4px);
  background: #ffffff;
  box-shadow: 0 14px 28px -10px rgba(16, 16, 16, 0.18);
  border-color: var(--ink);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-icon-pill {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--acid);
  display: grid;
  place-items: center;
  transition: transform 0.2s var(--ease), background 0.2s ease;
}

.connect-card:hover .card-icon-pill {
  transform: scale(1.1) rotate(5deg);
  background: var(--red);
  color: #ffffff;
}

.card-arrow {
  font-size: 18px;
  font-weight: 700;
  opacity: 0.5;
  transition: transform 0.2s var(--ease), opacity 0.2s ease;
}

.connect-card:hover .card-arrow {
  transform: translate(3px, -3px);
  opacity: 1;
  color: var(--red);
}

.badge-pill {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  background: #dcfce7;
  color: #166534;
  padding: 4px 8px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-subtitle {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  opacity: 0.6;
  text-transform: uppercase;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  word-break: break-word;
}

.card-desc {
  font-size: 11px;
  line-height: 1.35;
  opacity: 0.75;
  margin: 0;
}

/* RIGHT SIDE - GIANT ANIMATED KINETIC BADGE & ORBIT STAGE */
.final-right {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
}

.kinetic-visual-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.final-number {
  position: absolute;
  font-size: clamp(160px, 32vw, 420px);
  font-weight: 900;
  line-height: 0.7;
  letter-spacing: -0.12em;
  color: rgba(243, 58, 47, 0.12);
  user-select: none;
  pointer-events: none;
  transition: transform 0.4s var(--ease);
}

.kinetic-visual-stage:hover .final-number {
  transform: scale(1.05);
  color: rgba(243, 58, 47, 0.18);
}

/* Orbit Rings */
.orbit-rings {
  position: absolute;
  width: min(460px, 80vw);
  height: min(460px, 80vw);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(16, 16, 16, 0.2);
}

.ring-1 {
  animation: orbitSpin 35s linear infinite;
}

.ring-2 {
  inset: 15%;
  border-style: solid;
  border-color: rgba(16, 16, 16, 0.1);
  animation: orbitSpinRev 25s linear infinite;
}

.ring-3 {
  inset: 30%;
  border-style: dashed;
  border-color: rgba(243, 58, 47, 0.25);
  animation: orbitSpin 18s linear infinite;
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbitSpinRev {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* Interactive Floating / Magnetic CTA Button */
.final-cta.animated-cta {
  position: relative;
  z-index: 5;
  width: clamp(200px, 22vw, 280px);
  height: clamp(200px, 22vw, 280px);
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper);
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 20px 50px rgba(16, 16, 16, 0.22);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s ease;
}

.final-cta.animated-cta:hover {
  transform: scale(1.08) rotate(6deg);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 30px 60px rgba(16, 16, 16, 0.35);
}

/* Rotating SVG text ring around CTA */
.rotating-text-ring {
  position: absolute;
  inset: -22px;
  pointer-events: none;
  animation: orbitSpin 16s linear infinite;
  transition: animation-duration 0.3s ease;
}

.final-cta.animated-cta:hover .rotating-text-ring {
  animation-duration: 8s;
}

.rotating-text-ring svg {
  width: 100%;
  height: 100%;
}

.rotating-text-ring text {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  fill: var(--ink);
  text-transform: uppercase;
}

.final-cta.animated-cta:hover .rotating-text-ring text {
  fill: var(--acid);
}

.cta-inner-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 20px;
}

.cta-inner-badge span {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.cta-inner-badge b {
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1;
  transition: transform 0.2s var(--ease), color 0.2s ease;
  color: var(--red);
}

.final-cta.animated-cta:hover .cta-inner-badge b {
  transform: translate(6px, -6px) scale(1.15);
  color: var(--acid);
}

/* MODERNIZED FOOTER STYLING */
.footer {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
  padding: clamp(24px, 3.5vw, 44px) clamp(20px, 4vw, 4.5rem);
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 12px;
  line-height: 1.5;
  position: relative;
  z-index: 2;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 380px;
}

.footer-brand strong {
  font: 800 20px/1.1 'Inter Tight', sans-serif;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.footer-brand span {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(243, 239, 229, 0.7);
}

.footer-brand small {
  margin-top: 6px;
  font: 500 10px/1.4 'DM Mono', monospace;
  text-transform: uppercase;
  color: var(--acid);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-label {
  font: 600 10px/1 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a3a3a3;
  margin-bottom: 6px;
}

.footer a {
  color: rgba(243, 239, 229, 0.85);
  width: max-content;
  font-weight: 500;
  transition: color 0.16s ease, transform 0.16s var(--ease);
}

.footer a:hover {
  color: var(--acid);
  transform: translateX(4px);
}

/* RESPONSIVE DESIGN FOR CONTACT / FINALE */
@media (max-width: 1024px) {
  .final-main-wrap {
    grid-template-columns: 1fr;
  }
  
  .final-left {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
    padding: 3.5rem 1.5rem;
  }
  
  .final-right {
    min-height: 480px;
    padding: 4rem 1.5rem;
  }
  
  .footer {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .big-email-text {
    font-size: 21px;
  }
  
  .email-actions {
    width: 100%;
    justify-content: flex-start;
  }
  
  .action-btn {
    flex: 1;
    justify-content: center;
  }
  
  .footer {
    grid-template-columns: 1fr;
    padding: 30px 18px;
  }
  
  .final-cta.animated-cta {
    width: 190px;
    height: 190px;
  }
  
  .rotating-text-ring text {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-dot,
  .live-clock-badge svg,
  .rotating-text-ring,
  .ring-1,
  .ring-2,
  .ring-3,
  .contact-email-card::before,
  .finale-glow {
    animation: none !important;
  }
}
