/* Text Content */
.contact-info {
  position: relative;
  z-index: 1;
  text-align: center;
}

.contact-info strong {
  font-size: 1.1rem;
  letter-spacing: 0.3px;
  display: block;
  margin-bottom: 6px;
  color: #fff;
}

.contact-info span {
  font-size: 0.88rem;
  opacity: 0.75;
  display: block;
  word-break: break-all;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-info span {
  opacity: 1;
  color: #00ffd5;
}

.contact-info small {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: 8px;
  display: block;
  font-style: italic;
}

/* Copy Status Badge */
.copy-status {
  position: absolute;
  top: -10px;
  right: -10px;
  background: linear-gradient(135deg, #00ffd5, #00c2ff);
  color: #000;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0;
  transform: scale(0.8) translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.copy-status.show {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Response Time Badge */
.response-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(0, 255, 213, 0.15);
  border-radius: 20px;
  font-size: 0.75rem;
  color: #00ffd5;
  margin-top: 8px;
}

.response-badge::before {
  content: "⚡";
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* CTA Section */
.contact-cta {
  margin-top: 60px;
  text-align: center;
}

.contact-cta p {
  font-size: 0.95rem;
  opacity: 0.7;
  margin-bottom: 20px;
}

.quick-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #00ffd5, #00c2ff);
  color: #000;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 255, 213, 0.3);
}

.quick-email-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 255, 213, 0.5);
}

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

/* Availability Status */
.availability-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  padding: 10px 20px;
  background: rgba(26, 26, 26, 0.6);
  border-radius: 30px;
  backdrop-filter: blur(10px);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00ffd5;
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 213, 0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(0, 255, 213, 0);
  }
}

.availability-status span {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* =====================================
   FLOATING CONTACT BUTTON
===================================== */
#contact-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #00ffd5, #00c2ff);
  color: #000;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 10px 30px rgba(0, 255, 213, 0.4);
  transition: all 0.3s ease;
}

#contact-fab:hover {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 15px 40px rgba(0, 255, 213, 0.6);
}

#contact-fab:active {
  transform: scale(1.05);
}

/* =====================================
   RESPONSIVE
===================================== */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 6%;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-terminal {
    margin-top: 60px;
  }

  .hero-terminal .terminal-window {
    max-width: 100%;
  }

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

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

  .project-card img {
    height: 160px;
  }

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

  .about-animation {
    margin-top: 30px;
  }

  .ai-demo {
    min-height: auto;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .ai-demo-box {
    padding: 22px;
  }

  #contact-fab {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

  .contact {
    padding: 80px 6%;
  }

  .contact h2 {
    font-size: 2.2rem;
  }

  .contact-links {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-card {
    padding: 24px 20px;
  }

  .contact-card:active {
    transform: scale(0.98);
  }

  .contact-methods {
    gap: 12px;
  }

  .method-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .thinking-upgrade {
    flex-direction: column;
    align-items: stretch;
  }

  .think-step {
    width: 100%;
  }

  .think-arrow {
    transform: rotate(90deg);
    animation: none;
  }

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

/* Force Lottie render */
lottie-player {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
} =====================================
   GLOBAL RESET
===================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html,
body {
  overflow-x: hidden;
}

body {
  background: #0f0f0f;
  color: #ffffff;
}

/* =====================================
   SECTIONS
===================================== */
section {
  padding: 80px 10%;
}

/* =====================================
   PAGE LOADER
===================================== */
.loader {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease;
}

.loader span {
  color: #00ffd5;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

body.loaded .loader {
  opacity: 0;
  pointer-events: none;
}

/* =====================================
   HERO
===================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#hero-canvas {
  position: absolute;
  inset: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
}

.hero h1 {
  font-size: 4rem;
}

.hero span {
  color: #00ffd5;
}

.hero-buttons {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hero-buttons a {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  background: #00ffd5;
  color: #000;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.3s ease;
}

.hero-buttons a:hover {
  transform: scale(1.05);
}

/* =====================================
   TERMINAL HERO INTRO
===================================== */
.terminal-center {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.terminal-window {
  background: #0b0b0b;
  border-radius: 14px;
  width: 100%;
  max-width: 720px;
  box-shadow: 0 20px 40px rgba(0, 255, 213, 0.18);
  overflow: hidden;
}

.terminal-header {
  background: #111;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-header .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f56;
}

.dot.yellow {
  background: #ffbd2e;
}

.dot.green {
  background: #27c93f;
}

.terminal-title {
  margin-left: auto;
  font-size: 0.75rem;
  color: #888;
  font-family: monospace;
}

#terminal-text {
  padding: 24px 28px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #d6d6d6;
  min-height: 260px;
  white-space: pre-wrap;
}

/* =====================================
   ABOUT
===================================== */
.about {
  text-align: left;
}

.about h2 {
  margin-bottom: 10px;
}

.about > p {
  margin-bottom: 20px;
  opacity: 0.85;
}

.about-text {
  margin-top: 20px;
  max-width: 900px;
  line-height: 1.6;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.about-text-block {
  max-width: 900px;
}

.about-animation {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  background: rgba(3, 3, 3, 0.1);
  opacity: 0;
  transform: translateX(50px) scale(0.9);
  transition: all 0.8s ease;
}

.about-animation.active {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.about-animation lottie-player {
  display: block;
  width: 400px;
  height: 400px;
  filter: drop-shadow(0 0 18px rgba(0, 255, 213, 0.25));
  visibility: visible;
  opacity: 1;
}

/* ===================================== HOW I THINK SECTION - FIXED ALIGNMENT ===================================== */
.thinking {
  min-height: auto;
  text-align: center;
  padding: 80px 10%;
}

.thinking h2 {
  margin-bottom: 10px;
  font-size: 2.5rem;
}

.thinking-intro {
  margin-top: 15px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.85;
  line-height: 1.6;
}

.thinking-upgrade {
  margin-top: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: nowrap;
  padding: 20px 0;
}

.think-step {
  background: linear-gradient(145deg, #1a1a1a, #121212);
  padding: 26px 22px;
  width: 240px;
  min-height: 200px;
  border-radius: 14px;
  text-align: center;
  position: relative;
  cursor: default;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 255, 213, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.think-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(0, 255, 213, 0.3);
  border-color: rgba(0, 255, 213, 0.5);
}

.think-step h3 {
  color: #00ffd5;
  font-size: 1.1rem;
  margin-bottom: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.think-step p {
  font-size: 0.85rem;
  opacity: 0.85;
  line-height: 1.5;
  text-align: center;
}

.think-step::after {
  content: attr(data-metric);
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 255, 213, 0.15);
  color: #00ffd5;
  padding: 6px 12px;
  border-radius: 14px;
  font-size: 0.72rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.think-step:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(4px);
}

.think-arrow {
  font-size: 2rem;
  color: #00ffd5;
  opacity: 0.6;
  flex-shrink: 0;
  animation: thinkArrowPulse 2s infinite;
}

@keyframes thinkArrowPulse {
  0%, 100% {
    opacity: 0.4;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(6px);
  }
}

/* RESPONSIVE FOR MOBILE */
@media (max-width: 768px) {
  .thinking-upgrade {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .think-step {
    width: 100%;
    min-height: auto;
  }

  .think-arrow {
    transform: rotate(90deg);
    font-size: 1.8rem;
    animation: thinkArrowPulseMobile 2s infinite;
  }

  @keyframes thinkArrowPulseMobile {
    0%, 100% {
      opacity: 0.4;
      transform: rotate(90deg) translateX(0);
    }
    50% {
      opacity: 1;
      transform: rotate(90deg) translateX(6px);
    }
  }
}

/* =====================================
   EXPERIENCE
===================================== */
.experience {
  text-align: left;
}

.experience h2 {
  margin-bottom: 20px;
}

.exp-card {
  margin-top: 30px;
  padding: 25px;
  background: #1a1a1a;
  border-radius: 14px;
}

.exp-card h3 {
  margin-bottom: 6px;
}

.exp-card span {
  font-size: 0.85rem;
  opacity: 0.7;
}

.exp-card p {
  margin-top: 12px;
  line-height: 1.6;
}

.exp-card ul {
  margin-top: 15px;
  padding-left: 18px;
}

.exp-card li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* =====================================
   SKILLS
===================================== */
.skills {
  text-align: left;
}

.skills h2 {
  margin-bottom: 10px;
}

.skills-intro {
  margin-top: 14px;
  max-width: 720px;
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: 30px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.skill-card {
  background: linear-gradient(145deg, #1a1a1a, #121212);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s;
  transform-style: preserve-3d;
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.6);
}

.skill-card.active {
  box-shadow: 0 36px 80px rgba(0, 255, 213, 0.35);
}

.skill-card.active .skill-body {
  display: block;
}

.skill-card.active .toggle {
  transform: rotate(45deg);
}

.skill-card.inactive {
  opacity: 0.4;
}

.skill-header {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.skill-header h3 {
  font-size: 1.05rem;
  color: #00ffd5;
}

.toggle {
  font-size: 1.4rem;
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.skill-body {
  display: none;
  padding: 0 22px 22px;
  text-align: left;
}

.skill-summary {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 10px;
}

.skill-body ul {
  padding-left: 18px;
  margin-bottom: 10px;
}

.skill-body li {
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 6px;
}

.skill-impact {
  font-size: 0.82rem;
  color: #00ffd5;
  opacity: 0.9;
}

.featured-skill {
  border: none;
  box-shadow: 0 0 0 rgba(0, 255, 213, 0);
}

.featured-skill:hover {
  box-shadow: 0 0 24px rgba(0, 255, 213, 0.35);
}

/* =====================================
   CERTIFICATIONS
===================================== */
.certifications {
  min-height: auto;
  text-align: left;
}

.certifications h2 {
  margin-bottom: 20px;
}

.cert-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.cert-card {
  background: #1a1a1a;
  padding: 22px;
  border-radius: 14px;
  transition: transform 0.3s ease;
  text-align: left;
}

.cert-card:hover {
  transform: translateY(-6px);
}

.cert-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: #00ffd5;
}

.cert-card p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.cert-card span,
.cert-card .cert-focus {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  opacity: 0.7;
  line-height: 1.4;
}

.cert-link {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #00ffd5;
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid rgba(0, 255, 213, 0.4);
  border-radius: 20px;
  width: fit-content;
  transition: all 0.25s ease;
}

.cert-link:hover {
  background: rgba(0, 255, 213, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 255, 213, 0.25);
}

.featured-badge {
  display: inline-block;
  background: linear-gradient(135deg, #00ffd5, #00c2ff);
  color: #000;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 10px;
}

/* =====================================
   PROJECTS
===================================== */
.projects {
  padding: 80px 10%;
  margin-bottom: 120px;
  text-align: left;
}

.projects h2 {
  margin-bottom: 30px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
  background: #1a1a1a;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

.project-content {
  flex-grow: 1;
  text-align: left;
}

.project-content h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.project-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-points {
  padding-left: 18px;
  font-size: 0.88rem;
  opacity: 0.9;
}

.project-points li {
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #2a2a2a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  opacity: 0.85;
  gap: 14px;
  flex-wrap: wrap;
}

.project-link {
  color: #00ffd5;
}

.project-actions {
  display: flex;
  gap: 14px;
}

.project-demo {
  color: #00ffd5;
  font-weight: 600;
  position: relative;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: all 0.25s ease;
  animation: neonPulse 3s infinite;
}

.project-demo::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #00ffd5, #00c2ff);
  opacity: 0.6;
  border-radius: 2px;
}

.project-demo:hover {
  color: #000;
  background: linear-gradient(135deg, #00ffd5, #00c2ff);
  box-shadow: 0 0 12px rgba(0, 255, 213, 0.6), 0 0 24px rgba(0, 194, 255, 0.4);
  transform: translateY(-1px);
  text-decoration: underline;
}

.project-demo.disabled {
  opacity: 0.5;
  cursor: default;
  animation: none;
}

@keyframes neonPulse {
  0% {
    box-shadow: 0 0 10px rgba(0, 255, 213, 0.4);
  }
  50% {
    box-shadow: 0 0 22px rgba(0, 255, 213, 0.7);
  }
  100% {
    box-shadow: 0 0 10px rgba(0, 255, 213, 0.4);
  }
}

/* =====================================
   NIA AI REASONING HOVER
===================================== */
.nia-ai-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10, 10, 10, 0.95), rgba(15, 15, 15, 0.98));
  opacity: 0;
  pointer-events: none;
  padding: 22px;
  border-radius: 14px;
  transition: opacity 0.35s ease;
}

.project-card:hover .nia-ai-overlay {
  opacity: 1;
  pointer-events: auto;
}

.nia-ai-overlay h4 {
  color: #00ffd5;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.nia-ai-overlay pre {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #d6d6d6;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 12px;
  border-radius: 8px;
}

.nia-note {
  margin-top: 12px;
  font-size: 0.75rem;
  line-height: 1.4;
  opacity: 0.85;
}

/* =====================================
   AI DEMO
===================================== */
.ai-demo {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 120px;
}

.ai-demo-text {
  margin-top: 15px;
  max-width: 600px;
  opacity: 0.85;
  line-height: 1.6;
}

.ai-demo-center {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 35px;
}

.ai-demo-box {
  width: 100%;
  max-width: 720px;
  background: #111;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  text-align: left;
}

.ai-demo-box textarea {
  width: 100%;
  height: 140px;
  padding: 15px;
  background: #1a1a1a;
  border: none;
  border-radius: 12px;
  color: #fff;
  resize: none;
  outline: none;
}

.ai-demo-box button {
  margin-top: 15px;
  padding: 12px 22px;
  border-radius: 30px;
  border: none;
  background: #00ffd5;
  color: #000;
  cursor: pointer;
  font-weight: 500;
}

.demo-output {
  margin-top: 20px;
  padding: 18px;
  background: #0f0f0f;
  border-radius: 12px;
  min-height: 80px;
}

.demo-output p,
.demo-output ul {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.9;
}

.demo-output pre {
  white-space: pre-wrap;
  font-family: monospace;
  font-size: 0.85rem;
}

.demo-output .placeholder {
  opacity: 0.5;
}

/* =====================================
   ENHANCED CONTACT SECTION
===================================== */
.contact {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 100px 10%;
}

/* Animated Background Grid */
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 255, 213, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 213, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
  pointer-events: none;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

/* Glowing Orbs */
.contact::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 255, 213, 0.15), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbPulse 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes orbPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.6;
  }
}

.contact-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  width: 100%;
}

.contact h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #00ffd5, #00c2ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(0, 255, 213, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(0, 255, 213, 0.8));
  }
}

.contact-subtext {
  margin-top: 12px;
  max-width: 600px;
  opacity: 0.85;
  line-height: 1.8;
  font-size: 1.1rem;
  margin-left: auto;
  margin-right: auto;
}

.contact-highlight {
  color: #00ffd5;
  font-weight: 600;
}

/* Contact Method Selector */
.contact-methods {
  margin: 50px 0 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.method-btn {
  padding: 12px 28px;
  background: rgba(26, 26, 26, 0.6);
  border: 2px solid rgba(0, 255, 213, 0.2);
  border-radius: 30px;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.method-btn:hover {
  border-color: rgba(0, 255, 213, 0.6);
  background: rgba(0, 255, 213, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 255, 213, 0.2);
}

.method-btn.active {
  background: linear-gradient(135deg, #00ffd5, #00c2ff);
  color: #000;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 0 30px rgba(0, 255, 213, 0.5);
}

/* Contact Cards Grid */
.contact-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.contact-card {
  background: linear-gradient(145deg, rgba(26, 26, 26, 0.8), rgba(18, 18, 18, 0.9));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 213, 0.1);
  border-radius: 20px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

/* Animated Border */
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, #00ffd5, #00c2ff, #00ffd5);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.contact-card:hover::before {
  opacity: 1;
  animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Glow Effect */
.contact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 255, 213, 0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.contact-card:hover::after {
  opacity: 1;
}

.contact-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(0, 255, 213, 0.3);
  border-color: rgba(0, 255, 213, 0.4);
}

/* Icon Container */
.contact-icon {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 255, 213, 0.2), rgba(0, 194, 255, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(0, 255, 213, 0.3), rgba(0, 194, 255, 0.2));
  box-shadow: 0 0 30px rgba(0, 255, 213, 0.4);
}


/* Add this to your CSS file */

/* ===================================== ANIMATED BACKGROUND GRID ===================================== */
.animated-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.animated-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 255, 213, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 213, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

.animated-bg::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 255, 213, 0.08), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbPulse 8s ease-in-out infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

@keyframes orbPulse {
  0%, 100% { 
    transform: translate(-50%, -50%) scale(1); 
    opacity: 0.3; 
  }
  50% { 
    transform: translate(-50%, -50%) scale(1.2); 
    opacity: 0.6; 
  }
}

/* Hide background on hero section only */
.hero .animated-bg {
  display: none;
}
