/* Skip to main content link (accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: #7c3aed;
  color: #fff;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* Focus-visible styles for keyboard navigation */
:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Accounts for fixed header */
  touch-action: manipulation; /* Improves touch response */
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #07001f !important;
  background-image: url("https://www.transparenttextures.com/patterns/football-no-lines.png") !important;
  background-size: cover;
  background-repeat: repeat;
  background-position: center center;
  background-attachment: scroll; /* Changed from fixed for better mobile performance */
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s;
  /* Removed overscroll-behavior: none and overflow-x: hidden that were preventing mobile scrolling */
  width: 100%;
  max-width: 100vw;
  overflow-x: auto; /* Allow horizontal scrolling if needed */
  overflow-y: auto; /* Ensure vertical scrolling works */
  -webkit-overflow-scrolling: touch; /* Enable smooth scrolling on iOS */
}

/* Mobile-specific scrolling fixes */
@media screen and (max-width: 768px) {
  html, body {
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y; /* Allow vertical scrolling */
  }

  #root, .app {
    height: auto;
    min-height: 100vh;
  }
}


/* ===== Floating Glass Navbar ===== */
.header {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 1rem 1rem 0;
  animation: navSlideDown 0.6s ease-out;
}

@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

.glass-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: rgba(15, 12, 41, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.glass-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 1.1rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.glass-nav-link .nav-icon {
  font-size: 1rem;
  line-height: 1;
}

.glass-nav-link .nav-text {
  line-height: 1;
}

.glass-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.glass-nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(76, 201, 240, 0.25), rgba(168, 85, 247, 0.25));
  box-shadow:
    0 0 20px rgba(76, 201, 240, 0.15),
    0 0 0 1px rgba(76, 201, 240, 0.2) inset;
  font-weight: 600;
}

.glass-nav-link:focus-visible {
  outline: 2px solid #c084fc;
  outline-offset: 2px;
}



/* ===== Glass Nav Mobile ===== */
@media (max-width: 768px) {
  .header {
    padding: 0.5rem;
  }

  .glass-nav {
    width: 100%;
    justify-content: space-around;
    gap: 2px;
    padding: 6px 4px;
    border-radius: 20px;
    background: rgba(15, 12, 41, 0.92);
    box-shadow:
      0 -4px 24px rgba(0, 0, 0, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  }

  .glass-nav-link {
    flex-direction: column;
    gap: 2px;
    padding: 0.5rem 0.4rem;
    font-size: 0.68rem;
    min-width: 0;
    flex: 1;
    justify-content: center;
  }

  .glass-nav-link .nav-icon {
    font-size: 1.15rem;
  }

  .glass-nav-link.active {
    background: rgba(76, 201, 240, 0.15);
    box-shadow: 0 0 12px rgba(76, 201, 240, 0.1) inset;
  }


}

@media (max-width: 360px) {
  .glass-nav-link .nav-text {
    display: none;
  }

  .glass-nav-link {
    padding: 0.6rem;
  }

  .glass-nav-link .nav-icon {
    font-size: 1.3rem;
  }
}


:root {
  /* Purple & Black Color Palette */
  --primary-dark: #1a0025;         /* Deep purple-black */
  --primary: #a259f7;              /* Vibrant purple */
  --primary-light: #c084fc;        /* Light purple */
  --secondary: #000000;            /* True black */
  --accent: #7c3aed;               /* Accent purple */
  --text-primary: #f3f0ff;         /* Light purple-white for text */
  --text-secondary: #d1c4e9;       /* Muted lavender for secondary text */
  --bg-dark: #0a0014;              /* Very dark purple-black for backgrounds */
  --bg-card: rgba(124, 58, 237, 0.07);      /* Soft purple card background */
  --bg-card-hover: rgba(162, 89, 247, 0.12);/* Hover effect for cards */
}

/* Light mode overrides */
[data-theme="light"] {
  --primary-dark: #f5f0ff;
  --primary: #7c3aed;
  --primary-light: #a259f7;
  --secondary: #f8f6ff;
  --accent: #6d28d9;
  --text-primary: #1a0025;
  --text-secondary: #4a3660;
  --bg-dark: #f0ebff;
  --bg-card: rgba(124, 58, 237, 0.06);
  --bg-card-hover: rgba(124, 58, 237, 0.1);
}

[data-theme="light"] body {
  background-color: #f5f0ff !important;
  background-image: none !important;
}

/* Theme toggle button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 4px;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: rotate(20deg);
}

[data-theme="light"] .theme-toggle {
  color: #6d28d9;
  background: rgba(109, 40, 217, 0.1);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(109, 40, 217, 0.2);
}

[data-theme="light"] .glass-nav {
  background: rgba(245, 240, 255, 0.85);
  border-color: rgba(124, 58, 237, 0.15);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.1);
}

[data-theme="light"] .glass-nav-link {
  color: rgba(26, 0, 37, 0.6);
}

[data-theme="light"] .glass-nav-link:hover {
  color: #1a0025;
  background: rgba(124, 58, 237, 0.08);
}

[data-theme="light"] .glass-nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.85), rgba(162, 89, 247, 0.85));
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  touch-action: manipulation;
}

#root, .app {
  background: transparent;
  height: auto;
  min-height: 100vh;
}
.nav-link.active,
.nav-link:hover {
  background: rgba(255,255,255,0.98) !important;
  color: var(--primary-dark) !important;
  box-shadow: 
    0 4px 20px rgba(0,123,255,0.25),
    0 0 0 2px rgba(255,255,255,0.4);
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(255,255,255,0.9);
}

.nav-link::before,
.nav-link::after {
  content: '';
  position: absolute;
  opacity: 0;
  transition: 0.4s ease-out;
}

.nav-link::before {
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.3),
    transparent
  );
  transition: 0.5s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-light);
  transform: translateX(-50%);
  transition: width 0.3s ease-out;
}

.nav-link:hover::before {
  left: 100%;
  opacity: 1;
}

.nav-link:hover::after {
  width: 80%;
  opacity: 1;
}

.nav-link.active::after {
  width: 90%;
  opacity: 1;
  background: var(--primary-dark);
}

/* Add pulse animation for active link */
@keyframes subtlePulse {
  0% { box-shadow: 0 4px 20px rgba(0,123,255,0.25), 0 0 0 2px rgba(255,255,255,0.4); }
  50% { box-shadow: 0 4px 25px rgba(0,123,255,0.35), 0 0 0 3px rgba(255,255,255,0.5); }
  100% { box-shadow: 0 4px 20px rgba(0,123,255,0.25), 0 0 0 2px rgba(255,255,255,0.4); }
}

.nav-link.active {
  animation: subtlePulse 2s infinite ease-in-out;
}

.home-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, var(--primary-dark) 0%, var(--secondary) 100%);
  padding: 3rem 0;
}

.home-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.heading {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.heading-name {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 0.5rem;
}

.main-name {
  color: var(--accent);
  font-weight: 800;
  margin-left: 0.5rem;
  letter-spacing: 1px;
}

.wave {
  display: inline-block;
  animation: wave-animation 2s infinite;
  transform-origin: 70% 70%;
}

@keyframes wave-animation {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

.resume-download {
  margin: 1.5rem 0 0.5rem 0;
}

/* Hero CTA Buttons */
.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.3px;
}

.cta-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.45);
  color: #fff;
}

.cta-secondary {
  background: transparent;
  color: var(--primary-light);
  border: 2px solid var(--primary-light);
}

.cta-secondary:hover {
  background: rgba(192, 132, 252, 0.1);
  transform: translateY(-3px);
  color: #fff;
  border-color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }
  .home-section {
    padding: 2rem 0;
    overflow-x: visible;
  }
  .heading, .heading-name {
    font-size: 1.5rem;
  }
}

#skills.container {
  background: linear-gradient(120deg, var(--primary-dark) 0%, var(--secondary) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xl) var(--space-lg);
  margin: var(--space-xl) auto;
  max-width: 1200px;
  position: relative;
  overflow: hidden;
}

#skills.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-light),
    transparent
  );
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: var(--space-xl);
  letter-spacing: 1px;
  text-align: center;
  position: relative;
  padding-bottom: var(--space-md);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  padding: var(--space-md);
}

.col-md-4 {
  flex: 1 1 260px;
  max-width: 320px;
  background: var(--secondary);
  border-radius: 1.2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.09);
  padding: 2rem 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.col-md-4:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 32px rgba(0,123,255,0.13);
}

.col-md-4 h3 {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.col-md-4 ul {
  list-style: none;
  padding: 0;
}

.col-md-4 ul li {
  font-size: 1.05rem;
  color: var(--text-primary);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--text-secondary);
  transition: color 0.2s;
}

.col-md-4 ul li:last-child {
  border-bottom: none;
}

.col-md-4 ul li:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .row {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .col-md-4 {
    max-width: 95vw;
    margin-bottom: 2rem;
  }
}

.resume.section-bg {
  background: linear-gradient(120deg, var(--primary-dark) 0%, var(--secondary) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(124,58,237,0.2);
  padding: var(--space-xl);
  margin: var(--space-xl) auto;
  max-width: 800px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(124,58,237,0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: subtlePulseGlow 4s ease-in-out infinite;
}

@keyframes subtlePulseGlow {
  0%, 100% { box-shadow: var(--shadow-lg), 0 0 20px rgba(76,201,240,0.2); }
  50% { box-shadow: var(--shadow-lg), 0 0 30px rgba(76,201,240,0.4); }
}

.resume.section-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(76,201,240,0.15) 0%,
    rgba(67,97,238,0.05) 30%,
    transparent 70%
  );
  opacity: 0.6;
  animation: shine 20s linear infinite;
}

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

.resume-title {
  font-size: 2rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.resume-content p {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.resume-download .btn {
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 2rem;
  border-radius: 0.7rem;
  font-size: 1.1rem;
  border: none;
  box-shadow: 0 4px 15px rgba(76,201,240,0.3);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.resume-download .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(124,58,237,0.4);
  color: #fff;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
}

@media (max-width: 700px) {
  .resume.section-bg {
    padding: 2rem 1.2rem;
    max-width: 95vw;
    margin: var(--space-lg) auto;
  }
  .resume-title {
    font-size: 1.7rem;
  }
  .resume-content p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }
  .resume-download .btn {
    padding: 0.6rem 1.8rem;
    font-size: 1rem;
  }
}

.contact.section {
  background: linear-gradient(135deg, #0f0c29 0%, #1B1A55 50%, #1B262C 100%);
  border-radius: 1.5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
  padding: 0;
  margin: 2rem auto;
  max-width: 1100px;
  overflow: hidden;
  position: relative;
}

/* Animated background decoration */
.contact.section::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(76, 201, 240, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: contactGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
}

.contact.section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: contactGlow 10s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}

@keyframes contactGlow {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.3) translate(30px, -20px); }
}

/* Hero section */
.contact-hero {
  text-align: center;
  padding: 3rem 2rem 2rem;
  position: relative;
  z-index: 1;
}

.contact-title {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a259f7, #c084fc, #9333ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.8rem;
  letter-spacing: -0.5px;
}

.contact-subtitle {
  font-size: 1.15rem;
  color: rgba(220, 214, 247, 0.8);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Two-column layout */
.contact-layout {
  display: flex;
  gap: 0;
  position: relative;
  z-index: 1;
}

.contact-info-side {
  flex: 1;
  padding: 2.5rem 3rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.2rem;
}

.contact-form-side {
  flex: 1.2;
  background: rgba(255, 255, 255, 0.03);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2.5rem 3rem 3rem;
}

/* Contact method cards */
.contact-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-method-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 1.5rem 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: cardSlideIn 0.5s ease-out both;
  position: relative;
  overflow: hidden;
}

@keyframes cardSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.contact-method-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.contact-method-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--card-accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.contact-method-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.contact-method-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-top: 2px;
}

.contact-method-value {
  font-size: 0.9rem;
  color: #fff;
  font-weight: 500;
  word-break: break-all;
  margin-top: 2px;
}

/* Availability badge */
.contact-availability {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.8rem 1.2rem;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 2rem;
  font-size: 0.9rem;
  color: #4ade80;
  font-weight: 500;
  justify-content: center;
}

.availability-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* Form header */
.contact-form-header {
  margin-bottom: 1.8rem;
}

.contact-form-header h3 {
  font-size: 1.4rem;
  color: #fff;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.contact-form-header p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* Form groups with floating labels */
.form-group {
  position: relative;
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  margin-bottom: 8px;
  transition: color 0.3s;
}

.form-group.focused label {
  color: #c084fc;
}

.form-group.has-error label {
  color: #f87171;
}

/* Contact form redesign */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  max-width: none;
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
  outline: none;
  resize: none;
  font-family: inherit;
  box-sizing: border-box;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #c084fc;
  background: rgba(76, 201, 240, 0.04);
  box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.1);
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1);
}

.contact-form textarea {
  min-height: 120px;
  max-height: 200px;
  line-height: 1.6;
}

.form-field-error {
  color: #f87171;
  font-size: 0.82rem;
  margin: 0.3rem 0 0;
}

/* Submit button */
.contact-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.9rem 1.5rem;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, #a259f7 0%, #7c3aed 50%, #9333ea 100%);
  background-size: 200% 200%;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.contact-submit-btn:hover:not(:disabled) {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(76, 201, 240, 0.25);
}

.contact-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.contact-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.contact-submit-btn .btn-arrow {
  transition: transform 0.3s ease;
  font-size: 1.2rem;
}

.contact-submit-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spinRotate 0.6s linear infinite;
}

@keyframes spinRotate {
  to { transform: rotate(360deg); }
}

/* Success / Error messages */
.form-success-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 1rem;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 0.75rem;
  color: #4ade80;
  font-size: 0.92rem;
  font-weight: 500;
  animation: fadeIn 0.4s ease;
  margin-top: 0.3rem;
}

.form-error-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 1rem;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: 0.75rem;
  color: #f87171;
  font-size: 0.92rem;
  font-weight: 500;
  animation: fadeIn 0.4s ease;
  margin-top: 0.3rem;
}

@media (max-width: 768px) {
  .contact.section {
    margin: 1rem;
    border-radius: 1.2rem;
  }

  .contact-hero {
    padding: 2.5rem 1.5rem 1.5rem;
  }

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

  .contact-subtitle {
    font-size: 1rem;
  }

  .contact-layout {
    flex-direction: column;
  }

  .contact-info-side {
    padding: 1.5rem;
  }

  .contact-form-side {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.5rem;
  }

  .contact-cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  
  .contact-method-card {
    padding: 1.2rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .contact-hero {
    padding: 2rem 1rem 1rem;
  }

  .contact-title {
    font-size: 1.8rem;
  }

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

  .contact-info-side,
  .contact-form-side {
    padding: 1.2rem;
  }

  .contact-form-header h3 {
    font-size: 1.2rem;
  }
}

/* Portfolio Stats Section */
.portfolio-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.stat {
  background: rgba(124, 58, 237, 0.12);
  color: #fff;
  border-radius: 12px;
  padding: 1rem 2rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(162, 89, 247, 0.15);
}
.stat-number {
  font-size: 2.2rem;
  font-weight: bold;
  display: block;
  color: var(--primary-light);
}
.stat-label {
  font-size: 1rem;
  opacity: 0.8;
}

/* GitHub Stats Section */
.github-stats-section {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(120deg, var(--primary-dark) 0%, var(--secondary) 100%);
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

.github-stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.github-stat-card {
  max-width: 495px;
  width: 100%;
  border-radius: 0.8rem;
  border: 1px solid rgba(162, 89, 247, 0.15);
}

.github-stat-wide {
  max-width: 495px;
}

@media (max-width: 768px) {
  .github-stats-grid {
    flex-direction: column;
    align-items: center;
  }

  .github-stat-card {
    max-width: 100%;
  }
}
