/* ========================================
   CONTACT PAGE — MODERN UPGRADE
   Deep Teal/Amber Glassmorphism Theme
   Polished Animations & Interactive Cards
   ======================================== */

:root {
  /* Deep, Rich Color Palette */
  --bg-start: #020d0a;
  --bg-mid:   #041f17;
  --bg-end:   #0a1a10;

  --orb-green:  rgba(16, 185, 129, 0.55);
  --orb-amber:  rgba(245, 158, 11, 0.45);
  --orb-teal:   rgba(6, 182, 212, 0.35);

  /* Glass card surface */
  --card-bg:     rgba(255, 255, 255, 0.055);
  --card-border: rgba(255, 255, 255, 0.10);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);

  --text-primary:   #f0fdf4;
  --text-secondary: #d1fae5;
  --text-muted:     #86efac;
  --text-dark:      #052e16;

  --accent-emerald: #10b981;
  --accent-amber:   #fbbf24;
  --accent-teal:    #06b6d4;

  --gradient-1: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-2: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --gradient-3: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);

  --hover-glow: 0 0 0 2px rgba(16, 185, 129, 0.3), 0 12px 40px rgba(16, 185, 129, 0.2);

  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --radius-card: 20px;
  --radius-btn:  14px;
}

[data-theme="light"] {
  --bg-start: #f0fdf4;
  --bg-mid:   #ecfdf5;
  --bg-end:   #f8fafc;

  --orb-green:  rgba(16, 185, 129, 0.15);
  --orb-amber:  rgba(245, 158, 11, 0.12);
  --orb-teal:   rgba(6, 182, 212, 0.12);

  --card-bg:     rgba(255, 255, 255, 0.88);
  --card-border: rgba(16, 185, 129, 0.18);
  --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);

  --text-primary:   #064e3b;
  --text-secondary: #065f46;
  --text-muted:     #047857;
  --text-dark:      #022c22;

  --hover-glow: 0 0 0 2px rgba(16, 185, 129, 0.2), 0 12px 30px rgba(16, 185, 129, 0.12);
}

[data-theme="light"] .contact-bg {
  background: radial-gradient(ellipse 80% 60% at 10% 20%, #d1fae5 0%, transparent 60%),
              radial-gradient(ellipse 60% 50% at 90% 80%, #fef3c7 0%, transparent 60%),
              linear-gradient(160deg, #f0fdf4 0%, #ecfdf5 50%, #f8fafc 100%);
}

[data-theme="light"] .typewriter {
  color: #064e3b;
  background: linear-gradient(135deg, #064e3b 30%, #047857);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .hero-subtitle {
  color: #047857;
}

[data-theme="light"] .profile-mini {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.08);
}

[data-theme="light"] .profile-info h3 {
  color: #064e3b;
}

[data-theme="light"] .profile-info p {
  color: #047857;
}

[data-theme="light"] .contact-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(16, 185, 129, 0.22);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .contact-card:hover {
  background: #ffffff;
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.15);
}

[data-theme="light"] .contact-label {
  color: #047857;
}

[data-theme="light"] .contact-value {
  color: #064e3b;
}

[data-theme="light"] .contact-card:hover .contact-value {
  color: #047857;
}

[data-theme="light"] .contact-card[data-category="social"]:hover .contact-value {
  color: #b45309;
}

[data-theme="light"] .contact-card[data-category="academic"]:hover .contact-value {
  color: #0284c7;
}

[data-theme="light"] .contact-action {
  color: #047857;
}

[data-theme="light"] .group-title {
  color: #064e3b;
}

[data-theme="light"] .form-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 16px 40px rgba(6, 78, 59, 0.08);
}

[data-theme="light"] .form-title {
  color: #064e3b;
}

[data-theme="light"] .form-subtitle {
  color: #047857;
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea {
  background: #ffffff;
  border-color: rgba(16, 185, 129, 0.3);
  color: #064e3b;
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-textarea:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

[data-theme="light"] .form-input::placeholder,
[data-theme="light"] .form-textarea::placeholder {
  color: #6ee7b7;
}

[data-theme="light"] .form-note {
  color: #047857;
}

[data-theme="light"] .footer-text {
  color: #065f46;
}

[data-theme="light"] .footer-link {
  color: #b45309;
}

[data-theme="light"] .footer-link:hover {
  color: #064e3b;
}

[data-theme="light"] .social-mini a {
  background: rgba(16, 185, 129, 0.08);
  color: #064e3b;
  border-color: rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .social-mini a:hover {
  background: var(--gradient-1);
  color: #ffffff !important;
  border-color: transparent;
}

/* ===== Base Reset & Typography ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg-start);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 5rem 0; }
.text-center { text-align: center; }

/* ===== Animated Background ===== */
.contact-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 10% 20%, #042a1a 0%, transparent 60%),
              radial-gradient(ellipse 60% 50% at 90% 80%, #1a0a02 0%, transparent 60%),
              linear-gradient(160deg, #010c08 0%, #020f07 50%, #08100a 100%);
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.65;
  animation: float-orb 22s ease-in-out infinite;
  will-change: transform;
}

.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--orb-green) 0%, transparent 65%);
  top: -250px; left: -150px;
  animation-delay: 0s;
}

.orb-2 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, var(--orb-amber) 0%, transparent 65%);
  bottom: -180px; right: -80px;
  animation-delay: -8s;
}

.orb-3 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, var(--orb-teal) 0%, transparent 65%);
  top: 45%; left: 48%;
  transform: translate(-50%, -50%);
  animation-delay: -16s;
}

@keyframes float-orb {
  0%,  100% { transform: translate(0, 0)    scale(1); }
  25%        { transform: translate(40px, -30px) scale(1.06); }
  50%        { transform: translate(-25px, 35px) scale(0.94); }
  75%        { transform: translate(25px, 25px)  scale(1.03); }
}

/* Floating Shapes */
.floating-shapes { position: absolute; inset: 0; pointer-events: none; }

.shape {
  position: absolute;
  font-size: 1.8rem;
  opacity: 0.12;
  animation: float-shape 18s ease-in-out infinite;
  user-select: none;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.4));
}

.shape-1 { top: 12%; left: 8%;  animation-delay: 0s; }
.shape-2 { top: 18%; right: 12%; animation-delay: -5s; font-size: 2.2rem; }
.shape-3 { bottom: 18%; left: 18%; animation-delay: -10s; }
.shape-4 { bottom: 22%; right: 8%;  animation-delay: -15s; font-size: 1.5rem; }

@keyframes float-shape {
  0%, 100% { transform: translateY(0)    rotate(0deg);   opacity: 0.12; }
  50%       { transform: translateY(-35px) rotate(180deg); opacity: 0.22; }
}

/* ===== Hero Section ===== */
.contact-hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 0 3rem;
  position: relative;
}

.hero-content {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-greeting {
  font-size: clamp(2.6rem, 6.5vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  min-height: 1.2em;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.typewriter {
  border-right: 3px solid var(--accent-amber);
  white-space: nowrap;
  overflow: hidden;
  animation: typing 3.5s steps(30) forwards, blink-caret 0.75s step-end infinite;
  color: #fff;
  background: linear-gradient(135deg, #fff 30%, #d1fae5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* override text-shadow for gradient text */
  text-shadow: none;
}

@keyframes typing {
  from { width: 0; }
  to   { width: 100%; }
}

@keyframes blink-caret {
  50% { border-color: transparent; }
}

.cursor {
  animation: blink-caret 1s step-end infinite;
  color: var(--accent-amber);
  font-weight: 300;
  -webkit-text-fill-color: var(--accent-amber);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(209, 250, 229, 0.82);
  margin-bottom: 3rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* Profile Mini Card — Glassmorphic */
.profile-mini {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 1.1rem 1.75rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.08);
  margin-bottom: 2rem;
  animation: float-in 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.5s;
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.profile-mini:hover {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(16, 185, 129, 0.15), inset 0 1px 0 rgba(255,255,255,0.1);
}

@keyframes float-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.profile-avatar {
  width: 68px; height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--accent-emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18), 0 4px 16px rgba(0,0,0,0.3);
}

.profile-info { text-align: left; }

.profile-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
  letter-spacing: -0.2px;
}

.profile-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.profile-location {
  font-size: 0.82rem !important;
  color: rgba(134, 239, 172, 0.7) !important;
  margin-top: 0.2rem !important;
}

/* Availability Badge */
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.4rem;
  background: rgba(16, 185, 129, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #a7f3d0;
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.12), inset 0 1px 0 rgba(255,255,255,0.06);
  animation: badge-pulse 2.5s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.12), inset 0 1px 0 rgba(255,255,255,0.06); }
  50%       { box-shadow: 0 0 30px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255,255,255,0.06); }
}

.status-dot {
  width: 9px; height: 9px;
  background: var(--accent-emerald);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--accent-emerald);
  opacity: 0.35;
  animation: dot-ping 2s ease-out infinite;
}

@keyframes dot-ping {
  0%   { transform: scale(1); opacity: 0.35; }
  100% { transform: scale(2.4); opacity: 0; }
}

.availability-badge small {
  display: block;
  font-size: 0.75rem;
  color: rgba(134, 239, 172, 0.6);
  margin-left: 1rem;
}

/* ===== Section Title ===== */
.group-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: -0.3px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  left: 50%;
  translate: -50%;
}

.group-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  translate: -50%;
  width: 40px;
  height: 2px;
  background: var(--gradient-1);
  border-radius: 2px;
  opacity: 0.7;
}

.group-title.is-visible {
  opacity: 1; transform: translateY(0);
}

/* ===== Contact Methods Grid ===== */
.methods-group { margin-bottom: 4.5rem; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}

/* Contact Card — Glassmorphic */
.contact-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-card);
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px);
  animation: card-entrance 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  text-decoration: none;
}

/* Inner shine layer */
.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 60%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Colored bottom accent line */
.contact-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10%; right: 10%;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-1);
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact-card[data-category="social"]::after   { background: var(--gradient-2); }
.contact-card[data-category="academic"]::after { background: var(--gradient-3); }

.contact-card.is-visible {
  opacity: 1; transform: translateY(0);
}

@keyframes card-entrance {
  to { opacity: 1; transform: translateY(0); }
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(16, 185, 129, 0.28);
  transform: translateY(-6px);
  box-shadow: var(--hover-glow), 0 20px 40px rgba(0, 0, 0, 0.4);
}

.contact-card:hover::before { opacity: 1; }
.contact-card:hover::after  { opacity: 1; transform: scaleX(1); }

.contact-card[data-category="social"]:hover {
  border-color: rgba(245, 158, 11, 0.28);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25), 0 16px 40px rgba(0, 0, 0, 0.35);
}

.contact-card[data-category="academic"]:hover {
  border-color: rgba(6, 182, 212, 0.28);
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.25), 0 16px 40px rgba(0, 0, 0, 0.35);
}

/* Icon */
.contact-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.contact-card[data-category="email"]    .contact-icon { background: var(--gradient-1); }
.contact-card[data-category="social"]   .contact-icon { background: var(--gradient-2); }
.contact-card[data-category="academic"] .contact-icon { background: var(--gradient-3); }

.contact-card:hover .contact-icon {
  transform: scale(1.12) rotate(6deg);
}

/* Text */
.contact-info { flex: 1; min-width: 0; }

.contact-label {
  font-size: 0.73rem;
  color: rgba(134, 239, 172, 0.6);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
}

.contact-value {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.contact-card:hover .contact-value { color: #6ee7b7; }
.contact-card[data-category="social"]:hover   .contact-value { color: #fcd34d; }
.contact-card[data-category="academic"]:hover .contact-value { color: #67e8f9; }

/* Arrow / Copy icon */
.contact-action {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.25);
  transition: color 0.2s ease, transform 0.25s ease;
  flex-shrink: 0;
}

.contact-card:hover .contact-action {
  color: rgba(255, 255, 255, 0.7);
  transform: translateX(4px);
}

/* Copy Tooltip */
.copy-tooltip {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%) scale(0.88);
  background: rgba(5, 46, 22, 0.95);
  backdrop-filter: blur(8px);
  color: #a7f3d0;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  z-index: 10;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.copy-tooltip.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.copy-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 10px;
  background: rgba(5, 46, 22, 0.95);
  border-right: 1px solid rgba(16, 185, 129, 0.3);
  border-bottom: 1px solid rgba(16, 185, 129, 0.3);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  rotate: -45deg;
}

/* ===== Contact Form Section ===== */
.contact-form-section {
  background: rgba(255, 255, 255, 0.018);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.form-card {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.75rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255,255,255,0.08);
  opacity: 0;
  transform: translateY(32px);
  animation: float-in 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.3s;
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981, #06b6d4, #f59e0b);
  border-radius: 28px 28px 0 0;
}

.form-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  text-align: center;
  letter-spacing: -0.4px;
}

.form-subtitle {
  color: rgba(134, 239, 172, 0.7);
  text-align: center;
  margin-bottom: 2.25rem;
  font-size: 1rem;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.97rem;
  color: #f0fdf4;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(134, 239, 172, 0.32);
}

.form-input:hover,
.form-textarea:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
}

.form-input:focus,
.form-textarea:focus {
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12), 0 0 20px rgba(16, 185, 129, 0.06);
  background: rgba(255, 255, 255, 0.07);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.65;
}

/* Send Button */
.btn-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.05rem 2.5rem;
  background: var(--gradient-1);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.35);
}

.btn-send::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.22), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-send::after {
  content: '';
  position: absolute;
  top: -50%; left: -75%;
  width: 50%; height: 200%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn-send:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(16, 185, 129, 0.5), 0 0 0 1px rgba(16, 185, 129, 0.2);
}

.btn-send:hover::before { opacity: 1; }
.btn-send:hover::after  { left: 125%; }

.btn-send:active { transform: translateY(-1px); }

.send-icon { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.btn-send:hover .send-icon { transform: translateX(5px); }

.form-note {
  font-size: 0.82rem;
  color: rgba(134, 239, 172, 0.45);
  text-align: center;
  margin-top: 0.25rem;
}

/* ===== Footer CTA ===== */
.contact-footer { padding: 3rem 0 5rem; }

.footer-text {
  color: rgba(209, 250, 229, 0.75);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.footer-link {
  color: var(--accent-amber);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
  border-bottom: 1px solid transparent;
}

.footer-link:hover {
  color: #fff;
  border-bottom-color: var(--accent-amber);
}

.social-mini {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-mini a {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(209, 250, 229, 0.8);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.social-mini a:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px) scale(1.08);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 12px rgba(16, 185, 129, 0.15);
}

/* ===== Animations & Utilities ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.is-visible { opacity: 1; transform: translateY(0); }

.float-in-delayed { animation-delay: 0.6s !important; }

/* Staggered card entrance */
.contact-grid .contact-card:nth-child(1) { animation-delay: 0.08s; }
.contact-grid .contact-card:nth-child(2) { animation-delay: 0.16s; }
.contact-grid .contact-card:nth-child(3) { animation-delay: 0.24s; }
.contact-grid .contact-card:nth-child(4) { animation-delay: 0.32s; }
.contact-grid .contact-card:nth-child(5) { animation-delay: 0.40s; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }

  .contact-hero {
    min-height: auto;
    padding: 3rem 0 2rem;
  }

  .hero-greeting { font-size: 2.3rem; }

  .hero-subtitle { font-size: 1.05rem; }

  .profile-mini {
    flex-direction: column;
    text-align: center;
    padding: 1.35rem 1.5rem;
    gap: 0.9rem;
  }

  .profile-info { text-align: center; }

  .form-row { grid-template-columns: 1fr; }

  .form-card { padding: 2rem 1.5rem; }

  .availability-badge {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
  }

  .availability-badge small { margin-left: 0; margin-top: 0.2rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }

  .hero-greeting { font-size: 1.9rem; }

  .contact-grid { grid-template-columns: 1fr; }

  .contact-card {
    padding: 1.1rem 1.25rem;
  }

  .contact-icon { width: 44px; height: 44px; font-size: 1.25rem; }

  .contact-value { font-size: 0.92rem; }

  .form-card { padding: 1.6rem 1.25rem; }

  .form-title { font-size: 1.5rem; }

  .btn-send { width: 100%; justify-content: center; padding: 0.95rem 1.75rem; font-size: 0.98rem; min-height: 48px; }
}

@media (max-width: 360px) {
  .hero-greeting { font-size: 1.7rem; }
  .profile-mini { padding: 1.1rem; }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .gradient-orb, .shape, .profile-mini, .contact-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.contact-card:focus-visible {
  outline: 2px solid var(--accent-emerald);
  outline-offset: 2px;
}

.btn-send:focus-visible,
.form-input:focus-visible,
.form-textarea:focus-visible {
  outline: 2px solid var(--accent-amber);
  outline-offset: 2px;
}

/* ===== Print ===== */
@media print {
  .contact-bg, .floating-shapes, .btn-send, .social-mini {
    display: none !important;
  }
  body { background: #fff; color: #000; }
  .contact-card { break-inside: avoid; border: 1px solid #ccc; box-shadow: none; }
}