.profile-slider-slide {
  animation: profileSlide 0.95s cubic-bezier(.4,0,.2,1);
}

@keyframes profileSlide {
  0% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0);
  }
  45% {
    opacity: 0;
    transform: scale(0.9) rotate(-1.2deg);
    filter: blur(5px);
  }
  55% {
    opacity: 0;
    transform: scale(1.12) rotate(1.2deg);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0);
  }
}
.profile-slider-fade {
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(.6,0,.4,1.2);
}

.profile-circle.media-pending #profileSlider,
.profile-circle.media-pending .skills-icons {
  opacity: 0;
}

.profile-circle #profileSlider,
.profile-circle .skills-icons {
  transition: opacity 0.28s ease;
}

@media (prefers-reduced-motion: reduce) {
  .profile-slider-slide {
    animation: none;
  }
}
/* About Me Section */
.aboutme-section {
  padding-top: 0;
  padding-bottom: 3rem;
}
.aboutme-container {
  display: flex;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: flex-start;
  flex-wrap: wrap;
}
.aboutme-img-col {
  flex: 1 1 340px;
  min-width: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aboutme-img-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 32px #0007;
}
.aboutme-img {
  width: 340px;
  height: 420px;
  object-fit: cover;
  border-radius: 24px;
  display: block;
}
.aboutme-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7em;
  background: #181e20;
  color: #fff;
  border-radius: 14px;
  padding: 0.5em 1.2em;
  box-shadow: 0 2px 16px #0008;
  font-size: 1.1rem;
  font-weight: 500;
  z-index: 2;
}
.aboutme-badge-top {
  top: 18px;
  left: 18px;
}
.aboutme-badge-bottom {
  left: 18px;
  bottom: 18px;
}
.aboutme-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.aboutme-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.aboutme-content-col {
  flex: 2 1 400px;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}
.aboutme-label {
  display: inline-block;
  background: #232b2d;
  color: #fff;
  font-size: 1em;
  font-weight: 600;
  border-radius: 12px;
  padding: 0.2em 1em;
  margin-bottom: 0.5em;
}
.aboutme-title {
  font-size: 2.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2em;
}
.aboutme-green {
  color: #3fff7f;
}
.aboutme-desc {
  color: #bdbdbd;
  font-size: 1.08rem;
  margin-bottom: 1.2em;
}
.aboutme-cards {
  display: flex;
  gap: 1.2em;
  margin-bottom: 1.2em;
  flex-wrap: wrap;
}
.aboutme-card {
  background: #181e20;
  border-radius: 14px;
  box-shadow: 0 2px 12px #0005;
  padding: 1.1em 1.5em;
  display: flex;
  align-items: center;
  gap: 1em;
  min-width: 220px;
  max-width: 260px;
  font-size: 1.05em;
}
.aboutme-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.aboutme-card-desc {
  color: #bdbdbd;
  font-size: 0.98em;
}
.aboutme-quote {
  font-style: italic;
  color: #3fff7f;
  background: none;
  border-left: 3px solid #3fff7f;
  padding-left: 1em;
  margin: 0.5em 0 0 0;
}
@media (max-width: 900px) {
  .aboutme-container {
    flex-direction: column;
    gap: 2.2rem;
    align-items: stretch;
  }
  .aboutme-img {
    width: 100%;
    height: 320px;
    min-width: 0;
  }
}
/* Theme Variables */
:root {
  --bg-main: #101415;
  --bg-navbar: #111112f2;
  --bg-card: #181e20;
  --bg-badge: #101d15;
  --bg-btn: #232b2d;
  --bg-btn-dark: #181e20;
  --bg-footer: #13181a;
  --color-main: #e6e6e6;
  --color-green: #2ecc71;
  --color-green-accent: #3fff7f;
  --color-link: #e6e6e6;
  --color-link-hover: #3fff7f;
  --color-badge: #2ecc71;
}

body {
  background: var(--bg-main);
  color: var(--color-main);
}
.navbar {
  background: var(--bg-navbar);
}
.project-card, .blog-card {
  background: var(--bg-card);
}
.badge {
  background: var(--bg-badge);
  color: var(--color-badge);
}
.green-btn {
  background: var(--color-green);
  color: #101415;
}
.badge-tech {
  background: var(--bg-btn-dark);
  color: var(--color-green);
}
.footer-content, .footer-divider {
  background: var(--bg-footer);
}
.nav-links a {
  color: var(--color-link);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--color-link-hover);
}

/* Light Theme */
body.light {
  --bg-main: #f7f7f9;
  --bg-navbar: #fff;
  --bg-card: #fff;
  --bg-badge: #eafaf1;
  --bg-btn: #eaeaea;
  --bg-btn-dark: #f3f3f3;
  --bg-footer: #f3f3f3;
  --color-main: #232b2d;
  --color-green: #27ae60;
  --color-green-accent: #27ae60;
  --color-link: #232b2d;
  --color-link-hover: #27ae60;
  --color-badge: #27ae60;
}
.theme-toggle {
  background: var(--bg-btn);
  color: var(--color-main);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2em;
  margin-left: 0.5em;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  box-shadow: 0 2px 8px #0002;
}
.theme-toggle:hover {
  background: var(--color-green-accent);
  color: #fff;
}
/* Contact Section */
.contact-section {
  padding-top: 2rem;
  padding-bottom: 3rem;
}
.contact-title {
  text-align: center;
  margin-bottom: 0.5rem;
  color: #3fff7f;
  font-size: 2rem;
}
.contact-intro {
  text-align: center;
  color: #bdbdbd;
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  align-items: start;
}
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
.contact-info-card,
.contact-form-card {
  background: var(--bg-card, #181e20);
  border-radius: 18px;
  padding: 1.75rem;
  border: 1.5px solid #232b2d;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.contact-info-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-info-heading {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.25em 0;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #e6e6e6;
  font-size: 1rem;
  margin: 0;
  text-decoration: none;
  transition: color 0.2s;
}
.contact-email:hover {
  color: #3fff7f;
}
.contact-info-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}
.contact-info-note {
  font-size: 0.85rem;
  color: #888;
  margin: 0.5em 0 0 0;
  line-height: 1.4;
}
.contact-info-note code {
  background: #232b2d;
  padding: 0.15em 0.5em;
  border-radius: 6px;
  font-size: 0.9em;
}
.contact-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.contact-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #232b2d;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
}
.contact-social:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px #3fff7f33;
}
.contact-social svg {
  width: 24px;
  height: 24px;
}
.contact-form-card {
  position: relative;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #e6e6e6;
  margin-bottom: -0.35rem;
}
.contact-form input,
.contact-form textarea {
  padding: 0.85em 1.1em;
  border-radius: 12px;
  border: 1.5px solid #232b2d;
  background: var(--bg-main, #101415);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #666;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #3fff7f;
  box-shadow: 0 0 0 3px rgba(63, 255, 127, 0.15);
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-submit {
  margin-top: 0.25rem;
  width: 100%;
  justify-content: center;
}
.contact-success {
  display: block;
  color: #3fff7f;
  background: rgba(63, 255, 127, 0.1);
  border: 1px solid #3fff7f44;
  border-radius: 12px;
  padding: 1em 1.2em;
  margin-top: 1rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transform: translateY(12px) scale(0.84);
  transform-origin: center;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
}
.contact-success.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  max-height: 140px;
  animation: contactSuccessPop 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.2);
}
@keyframes contactSuccessPop {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.78);
    box-shadow: 0 0 0 rgba(63, 255, 127, 0);
  }
  62% {
    opacity: 1;
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 10px 24px rgba(63, 255, 127, 0.22);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: 0 6px 18px rgba(63, 255, 127, 0.16);
  }
}

/* About Me: timeline link (Aranya-style) */
.aboutme-timeline-link {
  display: inline-block;
  margin-top: 1rem;
  color: #3fff7f;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}
.aboutme-timeline-link:hover {
  color: #8affb7;
  transform: translateX(4px);
}

/* My Journey – vertical timeline (Aranya-style) */
.journey-section h2 {
  margin-bottom: 2.5rem;
}
.timeline {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #3fff7f 0%, #232b2d 100%);
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.5s ease;
}
.timeline-item.revealed {
  opacity: 1;
  transform: translateX(0);
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 0.4rem;
  width: 14px;
  height: 14px;
  margin-left: -6px;
  background: #3fff7f;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(63, 255, 127, 0.2);
  transition: box-shadow 0.3s;
}
.timeline-item.revealed .timeline-dot {
  box-shadow: 0 0 0 4px rgba(63, 255, 127, 0.3), 0 0 20px rgba(63, 255, 127, 0.4);
}
.timeline-content {
  background: var(--bg-card, #181e20);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  border: 1px solid #232b2d;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.timeline-content:hover {
  border-color: #3fff7f44;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.timeline-year {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #3fff7f;
  margin-bottom: 0.35rem;
}
.timeline-content h3 {
  font-size: 1.15rem;
  color: #fff;
  margin: 0 0 0.5rem 0;
}
.timeline-content p {
  color: #bdbdbd;
  font-size: 0.98rem;
  line-height: 1.5;
  margin: 0;
}

/* Experience section (Aranya-style) */
.experience-section h2 {
  margin-bottom: 2rem;
}
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 720px;
}
.experience-card {
  background: var(--bg-card, #181e20);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  border: 1px solid #232b2d;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s, box-shadow 0.2s;
}
.experience-card.revealed {
  opacity: 1;
  transform: translateY(0);
}
.experience-card:hover {
  border-color: #3fff7f44;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}
.experience-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.experience-header h3 {
  font-size: 1.15rem;
  color: #fff;
  margin: 0;
}
.experience-date {
  font-size: 0.9rem;
  color: #3fff7f;
  font-weight: 500;
}
.experience-org {
  color: #bdbdbd;
  font-size: 0.98rem;
  margin: 0 0 1rem 0;
}
.experience-bullets {
  margin: 0;
  padding-left: 1.25rem;
  color: #bdbdbd;
  font-size: 0.95rem;
  line-height: 1.6;
}
.experience-bullets li {
  margin-bottom: 0.35rem;
}
.experience-bullets li:last-child {
  margin-bottom: 0;
}

/* Education Section */
.education-section h2 {
  margin-bottom: 1.5rem;
}
.education-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 640px;
}
.education-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--bg-card, #181e20);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1.5px solid #232b2d;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.education-card:hover {
  border-color: #3fff7f44;
  box-shadow: 0 4px 20px rgba(63, 255, 127, 0.08);
}
.education-icon {
  font-size: 2rem;
  flex-shrink: 0;
}
.education-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.35em 0;
}
.education-school {
  color: #3fff7f;
  font-weight: 500;
  font-size: 1rem;
  margin: 0 0 0.2em 0;
}
.education-meta {
  color: #888;
  font-size: 0.95rem;
  margin: 0 0 0.5em 0;
}
.education-courses {
  color: #bdbdbd;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* Certifications Section */
.certifications-section h2 {
  margin-bottom: 0.5rem;
}
.certifications-intro {
  color: #bdbdbd;
  font-size: 1rem;
  margin-bottom: 1.75rem;
}
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.cert-card {
  background: var(--bg-card, #181e20);
  border-radius: 14px;
  padding: 1.35rem;
  border: 1.5px solid #232b2d;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cert-card:hover {
  border-color: #3fff7f44;
  box-shadow: 0 4px 16px rgba(63, 255, 127, 0.08);
}
.cert-icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.5rem;
}
.cert-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.35em 0;
}
.cert-card p {
  color: #bdbdbd;
  font-size: 0.95rem;
  margin: 0 0 0.5em 0;
  line-height: 1.4;
}
.cert-meta {
  font-size: 0.85rem;
  color: #3fff7f;
  font-weight: 500;
}

/* Project links (Live / Code) */
.project-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.project-link {
  display: inline-block;
  padding: 0.4em 1em;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.project-link-live {
  background: #3fff7f22;
  color: #3fff7f;
  border: 1px solid #3fff7f44;
}
.project-link-live:hover {
  background: #3fff7f;
  color: #101415;
}
.project-link-code {
  background: #232b2d;
  color: #e6e6e6;
  border: 1px solid #232b2d;
}
.project-link-code:hover {
  background: #3fff7f;
  color: #101415;
}

/* Hero: 3 buttons wrap on small screens */
.hero-buttons {
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Footer Styles */
.footer-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #232b2d 0%, #3fff7f33 50%, #232b2d 100%);
  margin-bottom: 1.5em;
}
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1em;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1em;
}
.footer-left {
  color: #bdbdbd;
  font-size: 1rem;
}
.footer-links {
  display: flex;
  gap: 1.2em;
}
.footer-links a {
  color: #e6e6e6;
  text-decoration: none;
  font-size: 1.05rem;
  transition: color 0.18s;
}
.footer-links a:hover {
  color: #3fff7f;
}
.footer-socials {
  display: flex;
  gap: 0.7em;
}
.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #232b2d;
  transition: filter 0.2s, box-shadow 0.2s;
}
.footer-socials a:hover {
  filter: brightness(1.2);
  box-shadow: 0 4px 24px #3fff7f55;
}
.footer-socials svg {
  width: 22px;
  height: 22px;
}
@media (max-width: 700px) {
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7em;
  }
  .footer-links {
    gap: 0.7em;
  }
}
/* Project/Blog Card Styles */
.project-card, .blog-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #181e20;
  box-shadow: 0 2px 16px #0004;
  padding: 0 0 1.5rem 0;
  min-width: 260px;
  max-width: 320px;
  transition: box-shadow 0.22s, transform 0.22s, border 0.22s;
  border: 1.5px solid #232b2d;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.project-card:hover, .blog-card:hover {
  box-shadow: 0 8px 32px #3fff7f44;
  transform: translateY(-8px) scale(1.035);
  border: 1.5px solid #3fff7f;
}
.project-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 18px 18px 0 0;
  margin-bottom: 1rem;
}
.project-card h3, .blog-card h3 {
  margin: 0.7em 0 0.3em 0;
  font-size: 1.18rem;
  color: #fff;
  font-weight: 600;
}
.project-desc {
  color: #bdbdbd;
  font-size: 1.01rem;
  margin-bottom: 0.7em;
  text-align: center;
}
.tech-badges {
  display: flex;
  gap: 0.5em;
  flex-wrap: wrap;
  justify-content: center;
}
.badge-tech {
  background: #232b2d;
  color: #3fff7f;
  border-radius: 8px;
  padding: 0.2em 0.8em;
  font-size: 0.95em;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-top: 0.2em;
  border: 1px solid #3fff7f33;
  transition: background 0.18s, color 0.18s;
  cursor: default;
}
.badge-tech:hover {
  background: #3fff7f;
  color: #101415;
}

/* Skills Section */
.skills-bars {
  max-width: 500px;
  margin: 2rem auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}
.skill-bar {
  display: flex;
  align-items: center;
  gap: 1em;
  font-size: 1.08rem;
  color: #e6e6e6;
}
.skill-label {
  min-width: 90px;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.bar-bg {
  flex: 1;
  background: #232b2d;
  border-radius: 8px;
  height: 14px;
  overflow: hidden;
  position: relative;
}
.bar-fill {
  height: 100%;
  border-radius: 8px;
  transition: width 1.2s cubic-bezier(.6,0,.4,1.2);
}
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Inter:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@600&display=swap');
.navbar {
  font-family: 'Urbanist', 'Montserrat', 'Inter', Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 2rem 0.25rem 2rem;
  background: #111112f2;
  box-shadow: 0 1px 0 #232323;
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 48px;
}
.logo-flex {
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.logo-svg {
  display: flex;
  align-items: center;
}
.logo-svg svg {
  width: 28px;
  height: 20px;
}
.logo-text {
  font-family: 'Urbanist', 'Montserrat', 'Inter', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  color: #fff;
  letter-spacing: 2px;
  margin-left: 0.18em;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0 1.5rem 0 1.5rem;
  font-family: 'Urbanist', 'Montserrat', 'Inter', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
}
.nav-links a {
  color: #e6e6e6;
  text-decoration: none;
  transition: color 0.18s, border-bottom 0.18s;
  padding: 0.2em 0.1em;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active {
  color: #3fff7f;
  border-bottom: 2px solid #3fff7f;
  background: none;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.2em;
}
.hero-title {
  position: relative;
  margin-bottom: 0.2em;
}
.hero-underline {
  display: block;
  width: 220px;
  height: 6px;
  background: none;
  border-bottom: 5px solid #3fff7f;
  border-radius: 50%;
  margin: 0.2em 0 0 0.2em;
  animation: underlineGrow 1.2s cubic-bezier(.6,0,.4,1.2) 0.7s both;
}
@keyframes underlineGrow {
  0% { width: 0; opacity: 0; }
  60% { width: 220px; opacity: 1; }
  100% { width: 220px; opacity: 1; }
}
.badge {
  display: inline-flex;
  align-items: center;
  background: #101d15;
  color: #2ecc71;
  padding: 0.5em 1.2em;
  border-radius: 24px;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  border: 1.5px solid #3fff7f44;
  box-shadow: 0 2px 8px #3fff7f11;
}
.badge::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #3fff7f;
  border-radius: 50%;
  margin-right: 0.7em;
  box-shadow: 0 0 8px #3fff7f77;
}
.location-role {
  display: flex;
  align-items: center;
  gap: 0.7em;
  color: #8affb7;
  font-size: 1.08rem;
  margin-bottom: 1.5em;
}
.location-icon svg {
  vertical-align: middle;
  margin-right: 0.3em;
}
.role-dot {
  color: #3fff7f;
  font-size: 1.2em;
  margin: 0 0.2em;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.7em 2em;
  border: none;
  border-radius: 25px;
  background: #232b2d;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px #3fff7f22;
  outline: none;
}
.green-btn {
  background: #2ecc71;
  color: #101415;
  border: 2px solid #1a3d2b;
}
.dark-btn {
  background: #181e20;
  color: #fff;
  border: 1.5px solid #3fff7f33;
}
.btn:hover, .green-btn:hover, .dark-btn:hover {
  background: #3fff7f;
  color: #101415;
  box-shadow: 0 4px 24px #3fff7f55;
}
.btn:active {
  transform: scale(0.97);
}
.btn-icon {
  font-size: 1.2em;
  margin-right: 0.2em;
}
.social-links {
  margin-top: 1.2em;
  display: flex;
  gap: 1em;
}
.icon-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #232b2d;
  box-shadow: 0 2px 8px #0006;
  transition: filter 0.2s, box-shadow 0.2s;
  border: 1.5px solid #232b2d;
}
.icon-social.linkedin {
  background: #0077b5;
}
.icon-social.github {
  background: #232b2d;
}
.icon-social:hover {
  filter: brightness(1.2);
  box-shadow: 0 4px 24px #3fff7f55;
}
.icon-social svg {
  width: 22px;
  height: 22px;
}
/* Theme background animation layer */
.bg-grid,
.bg-aurora,
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Dark mode: space-like star field */
.bg-grid {
  background:
    repeating-linear-gradient(0deg, rgba(129, 170, 255, 0.09) 0 1px, transparent 1px 62px),
    repeating-linear-gradient(90deg, rgba(129, 170, 255, 0.08) 0 1px, transparent 1px 62px);
  opacity: 0.42;
  animation: gridDrift 34s linear infinite;
}

.bg-aurora {
  inset: -24%;
  background:
    radial-gradient(circle at 8% 86%, rgba(42, 89, 255, 0.2), transparent 40%),
    radial-gradient(circle at 86% 16%, rgba(112, 51, 255, 0.16), transparent 38%),
    radial-gradient(circle at 36% 24%, rgba(63, 255, 127, 0.13), transparent 42%),
    radial-gradient(circle at 64% 82%, rgba(0, 173, 216, 0.14), transparent 45%);
  filter: blur(22px) saturate(1.15);
  opacity: 0.9;
  animation: nebulaPulse 14s ease-in-out infinite alternate;
}

.bg-orbs {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.5) 0 1.2px, transparent 1.9px),
    radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.36) 0 1.35px, transparent 1.9px),
    radial-gradient(circle at 32% 62%, rgba(255, 255, 255, 0.3) 0 1.15px, transparent 1.7px),
    radial-gradient(circle at 90% 74%, rgba(255, 255, 255, 0.24) 0 1.1px, transparent 1.7px),
    radial-gradient(circle at 54% 28%, rgba(173, 214, 255, 0.45) 0 1px, transparent 1.8px),
    radial-gradient(circle at 22% 84%, rgba(220, 236, 255, 0.36) 0 1px, transparent 1.8px);
  background-size: 420px 420px, 520px 520px, 460px 460px, 560px 560px, 500px 500px, 640px 640px;
  animation: starfieldDrift 20s linear infinite;
}

.bg-orbs::before,
.bg-orbs::after {
  content: "";
  position: absolute;
}

.bg-orbs::before {
  inset: 0;
  background:
    radial-gradient(circle at 15% 28%, rgba(255, 255, 255, 0.84) 0 1.2px, transparent 2px),
    radial-gradient(circle at 44% 20%, rgba(255, 255, 255, 0.75) 0 1px, transparent 1.8px),
    radial-gradient(circle at 66% 36%, rgba(255, 255, 255, 0.7) 0 1.1px, transparent 1.9px),
    radial-gradient(circle at 82% 62%, rgba(255, 255, 255, 0.82) 0 1.2px, transparent 2px),
    radial-gradient(circle at 26% 70%, rgba(255, 255, 255, 0.68) 0 1px, transparent 1.8px);
  background-size: 760px 760px;
  opacity: 0.3;
  animation: starTwinkle 4.8s ease-in-out infinite alternate;
}

.bg-orbs::after {
  width: 220px;
  height: 3px;
  top: 18%;
  left: -280px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(170, 220, 255, 0.9), rgba(255, 255, 255, 0));
  box-shadow: 0 0 14px rgba(170, 220, 255, 0.55);
  transform: rotate(-12deg);
  animation: shootingStar 9s linear infinite;
}

/* Keep page content above animated layers */
body {
  position: relative;
  z-index: 1;
}

/* Light mode: daytime sky with soft clouds */
body.light .bg-grid,
.light .bg-grid {
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.8) 0 2px, transparent 2.6px),
    radial-gradient(circle at 76% 26%, rgba(255, 255, 255, 0.62) 0 2px, transparent 2.8px),
    radial-gradient(circle at 34% 70%, rgba(255, 255, 255, 0.52) 0 1.6px, transparent 2.4px),
    linear-gradient(180deg, rgba(200, 234, 255, 0.72) 0%, rgba(227, 245, 255, 0.5) 52%, rgba(245, 251, 255, 0.22) 100%);
  background-size: 560px 560px, 700px 700px, 520px 520px, 100% 100%;
  opacity: 0.95;
  animation: skyDrift 46s linear infinite;
}

body.light .bg-aurora,
.light .bg-aurora {
  inset: -12%;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 205, 96, 0.44), transparent 22%),
    radial-gradient(circle at 78% 22%, rgba(143, 211, 255, 0.42), transparent 30%),
    radial-gradient(circle at 36% 78%, rgba(161, 227, 255, 0.34), transparent 35%);
  filter: blur(24px) saturate(1.08);
  opacity: 0.9;
  animation: daylightSweep 28s ease-in-out infinite alternate;
}

body.light .bg-orbs::before,
.light .bg-orbs::before {
  inset: auto;
  width: 520px;
  height: 220px;
  border-radius: 999px;
  left: -220px;
  top: 15%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.38) 45%, rgba(255, 255, 255, 0) 75%);
  animation: cloudFloatLeft 36s linear infinite;
}

body.light .bg-orbs::after,
.light .bg-orbs::after {
  inset: auto;
  width: 620px;
  height: 250px;
  border-radius: 999px;
  right: -260px;
  bottom: 18%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.54) 0%, rgba(255, 255, 255, 0.32) 48%, rgba(255, 255, 255, 0) 75%);
  animation: cloudFloatRight 42s linear infinite;
}

@keyframes starfieldDrift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, -140px, 0); }
}

@keyframes gridDrift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(62px, 62px, 0); }
}

@keyframes starTwinkle {
  0% { opacity: 0.18; }
  50% { opacity: 0.45; }
  100% { opacity: 0.24; }
}

@keyframes nebulaPulse {
  0% { transform: translate3d(-3%, -2%, 0) scale(1); }
  100% { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

@keyframes orbitDriftLeft {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(calc(100vw + 320px), -44px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes orbitDriftRight {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(calc(-100vw - 360px), 42px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes shootingStar {
  0% {
    transform: translate3d(0, 0, 0) rotate(-12deg);
    opacity: 0;
  }
  8% {
    opacity: 0.85;
  }
  32% {
    transform: translate3d(calc(100vw + 360px), 180px, 0) rotate(-12deg);
    opacity: 0;
  }
  100% {
    transform: translate3d(calc(100vw + 360px), 180px, 0) rotate(-12deg);
    opacity: 0;
  }
}

/* Light mode keeps calmer motion than dark mode */
body.light .bg-grid,
.light .bg-grid {
  animation: skyDrift 46s linear infinite;
}

body.light .bg-grid::before,
.light .bg-grid::before,
body.light .bg-grid::after,
.light .bg-grid::after {
  display: none;
}

@keyframes skyDrift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, -48px, 0); }
}

@keyframes daylightSweep {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); }
  100% { transform: translate3d(2%, 1%, 0) scale(1.04); }
}

@keyframes cloudFloatLeft {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(calc(100vw + 280px), 8px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes cloudFloatRight {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(calc(-100vw - 340px), -10px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-grid,
  .bg-aurora,
  .bg-orbs::before,
  .bg-orbs::after {
    animation: none !important;
  }
}
/* Fade-in animation for sections */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s forwards;
}
.fade-in:nth-child(1) { animation-delay: 0.2s; }
.fade-in:nth-child(2) { animation-delay: 0.4s; }
.fade-in:nth-child(3) { animation-delay: 0.6s; }
.fade-in:nth-child(4) { animation-delay: 0.8s; }
@keyframes fadeInUp {
  to { opacity: 1; transform: none; }
}
/* Modern font weight and spacing */
body, .navbar, .section, .btn, .hero-content h1, .hero-content h2 {
  letter-spacing: 0.01em;
}
.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.1;
}
.hero-content h2 {
  font-size: 1.7rem;
  font-weight: 500;
}
/* Button and card polish */
.btn, .green-btn {
  box-shadow: 0 2px 12px #3fff7f22;
  border: none;
  outline: none;
}
.btn:active {
  transform: scale(0.97);
}
.projects-list, .blogs-list {
  gap: 2.5rem;
}
.projects-list .card, .blogs-list .card {
  background: #181e20;
  border-radius: 18px;
  box-shadow: 0 2px 16px #0004;
  padding: 2rem 1.5rem;
  color: #e6e6e6;
  min-width: 260px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.projects-list .card:hover, .blogs-list .card:hover {
  box-shadow: 0 6px 32px #3fff7f33;
  transform: translateY(-6px) scale(1.03);
}
/* Sticky navbar with active state */
.navbar {
  position: sticky;
  top: 0;
  background: #13181aee;
  backdrop-filter: blur(6px);
  z-index: 10;
}
.nav-links a.active {
  color: #3fff7f;
  border-bottom: 2px solid #3fff7f;
}
/* Responsive improvements */
@media (max-width: 900px) {
  .hero-section {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1rem;
  }
  .hero-image {
    margin-top: 2rem;
    width: 100%;
    justify-content: flex-start;
  }
  .profile-circle {
    width: 180px;
    height: 180px;
  }
  .profile-circle img {
    width: 140px;
    height: 140px;
  }
}
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .section {
    padding: 2rem 1rem 1rem 1rem;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
}
/* Hero section text animation */
.hero-content h1 .green {
  display: inline-block;
  animation: highlightGreen 1.2s cubic-bezier(.6,0,.4,1.2) 0.5s both;
}
@keyframes highlightGreen {
  0% { color: #fff; text-shadow: none; }
  80% { color: #3fff7f; text-shadow: 0 0 16px #3fff7f77; }
  100% { color: #3fff7f; text-shadow: 0 0 8px #3fff7f55; }
}
.icon-shape {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: bold;
  font-size: 1.1rem;
}
/* Go: blue circle with dot eye */
.go-shape {
  background: #00add8;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  position: relative;
}
.go-shape::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 12px;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 8px 0 #fff;
}
/* TypeScript: blue square with TS */
.ts-shape {
  background: #3178c6;
  border-radius: 8px;
  color: #fff;
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* AWS: black bg with orange curve */
.aws-shape {
  background: #232b2d;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  position: relative;
}
.aws-shape::after {
  content: '';
  position: absolute;
  left: 6px;
  bottom: 8px;
  width: 20px;
  height: 6px;
  border-radius: 6px 6px 12px 12px;
  background: linear-gradient(90deg, #ff9900 60%, transparent 100%);
}
/* Docker: blue bg with white box */
.docker-shape {
  background: #2496ed;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  position: relative;
}
.docker-shape::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 14px;
  width: 12px;
  height: 6px;
  background: #fff;
  border-radius: 2px;
}
/* PostgreSQL: blue bg with white elephant trunk */
.postgres-shape {
  background: #336791;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  position: relative;
}
.postgres-shape::after {
  content: '';
  position: absolute;
  left: 14px;
  top: 10px;
  width: 4px;
  height: 12px;
  background: #fff;
  border-radius: 2px 2px 8px 8px;
}
.icon-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.2rem;
  color: #fff;
  margin-right: 0.5em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.icon-social.linkedin {
  background: #0077b5;
}
.icon-social.github {
  background: #232b2d;
}
.icon-social:hover {
  filter: brightness(1.2);
}
.skills-icons .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  color: #fff;
  background: #232b2d;
  border-radius: 12px;
  width: 48px;
  height: 48px;
  box-shadow: 0 2px 8px #0006;
  position: absolute;
  padding: 0;
}
.skills-icons .icon.go {
  left: 50%; top: -24px; transform: translateX(-50%);
  background: #00add8;
}
.skills-icons .icon.ts {
  right: -24px; top: 50%; transform: translateY(-50%);
  background: #3178c6;
}
.skills-icons .icon.aws {
  left: 50%; bottom: -24px; transform: translateX(-50%);
  background: #ff9900;
  color: #232b2d;
}
.skills-icons .icon.docker {
  left: -24px; top: 50%; transform: translateY(-50%);
  background: #2496ed;
}
.skills-icons .icon.postgres {
  left: 50%; right: 50%; top: 100%; transform: translate(-50%, -50%);
  background: #336791;
}
.gallery-img {
  width: 220px;
  height: 160px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 2px 12px #0007;
  transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 24px #3fff7f55;
}
body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #101415;
  color: #e6e6e6;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

html,
body {
  overscroll-behavior-y: contain;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: #13181a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  font-weight: bold;
  font-size: 1.5rem;
  color: #3fff7f;
  letter-spacing: 2px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
}
.nav-links a {
  color: #e6e6e6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: #3fff7f;
}
.hero-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4rem 3rem 2rem 3rem;
  min-height: 80vh;
  background: radial-gradient(circle at 30% 30%, #1a2224 0%, #101415 100%);
}
.hero-content {
  max-width: 600px;
}
.badge {
  display: inline-block;
  background: rgba(63,255,127,0.1);
  color: #3fff7f;
  padding: 0.4em 1em;
  border-radius: 20px;
  font-size: 1rem;
  margin-bottom: 1.2rem;
}
.highlight {
  color: #fff;
  font-weight: bold;
}
.green {
  color: #3fff7f;
}
.hero-content h1 {
  font-size: 2.8rem;
  margin: 0.2em 0 0.2em 0;
}
.hero-content h2 {
  font-size: 1.5rem;
  font-weight: 400;
  color: #b0ffcc;
  margin: 0.2em 0 1em 0;
}
.hero-content p {
  font-size: 1.1rem;
  color: #bdbdbd;
  margin-bottom: 1.2em;
}
.location-role {
  color: #8affb7;
  font-size: 1rem;
  margin-bottom: 1.5em;
}
.hero-buttons {
  display: flex;
  gap: 1.2em;
  margin-bottom: 1.5em;
}
.btn {
  padding: 0.7em 2em;
  border: none;
  border-radius: 25px;
  background: #232b2d;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.green-btn {
  background: #3fff7f;
  color: #101415;
}
.btn:hover {
  background: #3fff7f;
  color: #101415;
}
.social-links {
  margin-top: 1em;
  display: flex;
  gap: 1em;
}
.social-links img {
  width: 32px;
  height: 32px;
  filter: grayscale(1) brightness(1.5);
  transition: filter 0.2s;
}
.social-links img:hover {
  filter: none;
}
.hero-image {
  position: relative;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-circle {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: #101415;
  box-shadow: 0 0 32px 0 rgba(63,255,127,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border: none;
}
.profile-circle img {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  border: none;
}
.skills-icons {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0; top: 0;
  pointer-events: none;
}
.icon {
  position: absolute;
  width: 48px;
  height: 48px;
  background: #232b2d;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 2px 8px #0006;
}
.icon.go { left: 50%; top: -24px; transform: translateX(-50%); }
.icon.ts { right: -24px; top: 50%; transform: translateY(-50%); }
.icon.aws { left: 50%; bottom: -24px; transform: translateX(-50%); }
.icon.docker { left: -24px; top: 50%; transform: translateY(-50%); }
.icon.postgres { left: 50%; right: 50%; top: 100%; transform: translate(-50%, -50%); display: none; }
.section {
  padding: 4rem 3rem 2rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}
.section h2 {
  color: #3fff7f;
  font-size: 2rem;
  margin-bottom: 2rem;
}
.projects-list, .blogs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  max-width: 400px;
}
.contact-form input, .contact-form textarea {
  padding: 1em;
  border-radius: 10px;
  border: none;
  background: #232b2d;
  color: #fff;
  font-size: 1rem;
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
footer {
  text-align: center;
  padding: 2rem 0 1rem 0;
  color: #bdbdbd;
  font-size: 1rem;
  background: #13181a;
  margin-top: 2rem;
}
@media (max-width: 900px) {
  .hero-section {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1rem;
  }
  .hero-image {
    margin-top: 2rem;
    width: 100%;
    justify-content: flex-start;
  }
  .profile-circle {
    width: 220px;
    height: 220px;
  }
  .profile-circle img {
    width: 180px;
    height: 180px;
  }
}
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .section {
    padding: 2rem 1rem 1rem 1rem;
  }
}

/* Blog List Styles */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2.5rem;
}
.blog-card {
  background: var(--card-bg, #181e20);
  color: var(--text-color, #fff);
  border-radius: 18px;
  box-shadow: 0 2px 16px #0004;
  padding: 2rem 2rem 1.5rem 2rem;
  max-width: 350px;
  min-width: 270px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px #0006;
}
.blog-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.2em 0;
  color: var(--accent, #00e6b8);
}
.blog-meta {
  font-size: 0.98rem;
  color: #aaa;
  margin-bottom: 0.5em;
}
.blog-summary {
  font-size: 1.08rem;
  color: var(--text-color, #e0e0e0);
  flex: 1;
}
.blog-readmore {
  align-self: flex-start;
  background: var(--accent, #00e6b8);
  color: #181e20;
  padding: 0.5em 1.2em;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  margin-top: 0.5em;
}
.blog-readmore:hover {
  background: #fff;
  color: var(--accent, #00e6b8);
}
@media (max-width: 900px) {
  .blog-list {
    flex-direction: column;
    align-items: center;
  }
  .blog-card {
    max-width: 95vw;
    min-width: 0;
  }
}

/* Modern Blog Page Styles */
.blog-header {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 0.2em;
}
.blog-emoji {
  font-size: 2.1rem;
}
.blog-header h1 {
  font-size: 2.1rem;
  font-weight: 800;
  margin: 0;
  color: var(--accent, #00e6b8);
}
.blog-count {
  font-size: 1.1rem;
  color: #aaa;
  font-weight: 500;
}
.blog-desc {
  color: #aaa;
  font-size: 1.08rem;
  margin-bottom: 1.5em;
}
.blog-search-wrap {
  margin-bottom: 2.2em;
}
.blog-search {
  width: 100%;
  max-width: 420px;
  padding: 0.9em 1.2em;
  border-radius: 1.5em;
  border: none;
  background: #181e20;
  color: #fff;
  font-size: 1.08rem;
  box-shadow: 0 2px 12px #0002;
  outline: none;
  transition: box-shadow 0.2s;
}
.blog-search:focus {
  box-shadow: 0 4px 24px #0004;
}
.blog-list-modern {
  display: flex;
  flex-direction: column;
  gap: 2.2em;
}
.blog-row {
  display: flex;
  align-items: flex-start;
  gap: 1.5em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid #222;
}
.blog-date {
  min-width: 56px;
  color: #aaa;
  font-size: 1.05rem;
  font-weight: 500;
  margin-top: 0.2em;
}
.blog-thumb {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 12px #0003;
}
.blog-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}
.blog-title-modern {
  font-size: 1.13rem;
  font-weight: 700;
  margin: 0 0 0.2em 0;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.3em;
}
.blog-pin {
  font-size: 1.1em;
  color: #00e6b8;
}
.blog-summary-modern {
  color: #aaa;
  font-size: 1.01rem;
  margin-bottom: 0.2em;
}
.blog-tags {
  display: flex;
  gap: 0.5em;
  flex-wrap: wrap;
}
.blog-tags span {
  background: #23282b;
  color: #00e6b8;
  font-size: 0.97rem;
  border-radius: 8px;
  padding: 0.18em 0.7em;
  font-weight: 500;
}
@media (max-width: 700px) {
  .blog-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7em;
  }
  .blog-thumb {
    width: 100%;
    height: 38vw;
    max-height: 120px;
  }
}

/* Mobile-first finishing: nav menu, hero buttons, and card layout */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid #2a3134;
  border-radius: 10px;
  background: #1a2022;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: #e6e6e6;
  transition: transform 0.28s ease, opacity 0.2s ease;
}

@media (max-width: 900px) {
  .navbar {
    position: sticky;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 1rem;
  }

  .nav-right {
    margin-left: auto;
    gap: 0.5rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    order: 3;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-8px);
    transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
    border-top: 1px solid transparent;
  }

  .nav-links a {
    display: block;
    padding: 0.78rem 0.25rem;
    border-bottom: none;
  }

  .navbar.nav-open .nav-links {
    max-height: 60vh;
    opacity: 1;
    transform: translateY(0);
    margin-top: 0.35rem;
    border-top-color: #273033;
  }

  .navbar.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .navbar.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .navbar.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero-buttons {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 0.72rem;
    margin-top: 1rem;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }

  .projects-list,
  .blogs-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-card,
  .blog-card,
  .projects-list .card,
  .blogs-list .card {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-bottom: 0;
    align-items: stretch;
    padding-bottom: 1.2rem;
  }

  .project-card h3,
  .blog-card h3,
  .project-desc,
  .tech-badges,
  .project-links {
    text-align: left;
    justify-content: flex-start;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .project-thumb {
    width: 100%;
    height: clamp(160px, 42vw, 220px);
  }
}

@media (max-width: 520px) {
  .hero-content h1 {
    font-size: 1.85rem;
  }

  .hero-content h2 {
    font-size: 1.12rem;
  }

  .section {
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }
}

/* Projects, blogs, and skills upgrade (scoped to prevent regressions) */
.section-lead {
  margin: -1rem 0 1.75rem;
  max-width: 760px;
  color: #aab5b8;
  line-height: 1.6;
  font-size: 1.02rem;
}

.project-section-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: -0.6rem 0 1.25rem;
}

.project-section-meta span {
  border: 1px solid #365046;
  background: #17231d;
  color: #b8ffd1;
  border-radius: 999px;
  padding: 0.24rem 0.64rem;
  font-size: 0.79rem;
  font-weight: 600;
}

#projects .projects-list,
#blogs .blogs-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

#projects .projects-list {
  max-width: 980px;
  margin: 0 auto;
}

#projects .project-card,
#blogs .blog-card {
  min-width: 0;
  max-width: none;
  width: 100%;
  border: 1px solid #293336;
  border-radius: 20px;
  background: linear-gradient(180deg, #1a2224 0%, #151c1e 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  align-items: stretch;
  margin-bottom: 0;
}

#projects .project-card {
  max-width: 310px;
  justify-self: center;
}

#projects .project-card:hover,
#blogs .blog-card:hover {
  border-color: #3fff7f66;
  transform: translateY(-7px);
  box-shadow: 0 18px 30px rgba(14, 23, 20, 0.48);
}

#projects .project-thumb,
#blogs .project-thumb {
  height: 160px;
  margin-bottom: 0;
}

.project-content,
.blog-content-wrap {
  padding: 0.88rem 0.9rem 1rem;
}

.project-kicker {
  margin: 0 0 0.48rem;
  color: #6efaa0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#projects .project-card h3,
#blogs .blog-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

#projects .project-desc,
#blogs .project-desc {
  margin: 0.6rem 0 0;
  text-align: left;
  color: #c5cfd2;
  line-height: 1.48;
  font-size: 0.9rem;
}

.project-highlights {
  margin: 0.7rem 0 0;
  padding-left: 1rem;
  color: #b8c3c6;
  line-height: 1.42;
  font-size: 0.84rem;
}

.project-highlights li + li {
  margin-top: 0.36rem;
}

.project-proof-grid {
  margin-top: 0.66rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.project-proof-grid .project-proof:last-child {
  grid-column: 1 / -1;
}

.project-proof {
  border: 1px solid #324246;
  background: #172023;
  border-radius: 11px;
  padding: 0.5rem 0.56rem;
  font-size: 0.74rem;
  color: #c5d2d6;
  line-height: 1.45;
}

.project-proof span {
  display: block;
  color: #97ffbf;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 0.18rem;
}

.project-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.95rem;
}

.project-meta-chip {
  font-size: 0.79rem;
  color: #d2ffe0;
  border: 1px solid #355542;
  background: #1a2a21;
  border-radius: 999px;
  padding: 0.22rem 0.66rem;
}

#projects .tech-badges,
#blogs .tech-badges {
  justify-content: flex-start;
  margin-top: 0.92rem;
}

#projects .badge-tech,
#blogs .badge-tech {
  border-radius: 999px;
  padding: 0.3rem 0.72rem;
  font-size: 0.76rem;
}

#projects .project-links {
  margin-top: 0.8rem;
}

#projects .project-link {
  appearance: none;
  border: 1px solid transparent;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.2;
  padding: 0.38rem 0.72rem;
  border-radius: 10px;
  font-size: 0.78rem;
}

.project-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.58rem;
  color: #9dffbf;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.project-read-more::after {
  content: "+";
  font-size: 0.95rem;
  line-height: 1;
}

.project-read-more[aria-expanded="true"]::after {
  content: "-";
}

.project-read-more:hover {
  color: #d2ffe2;
  border-color: #9dffbf;
}

.project-more-content {
  margin-top: 0.62rem;
  border: 1px solid #355053;
  background: linear-gradient(180deg, #182326 0%, #141d1f 100%);
  border-radius: 12px;
  padding: 0.74rem 0.82rem;
  color: #c2d0d4;
  font-size: 0.82rem;
  line-height: 1.5;
}

.project-more-content p {
  margin: 0;
}

.project-more-content ul {
  margin: 0.48rem 0 0;
  padding-left: 1rem;
}

.project-more-content li + li {
  margin-top: 0.32rem;
}

.project-cta-note {
  margin: 0.5rem 0 0;
  color: #8ea3aa;
  font-size: 0.76rem;
}

.blog-meta {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: #8ea2a8;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.blog-read-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.95rem;
  color: #8fffb6;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.blog-read-link:hover {
  color: #c8ffd9;
  border-color: #8fffb6;
}

#blogs .skills-layout {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}

#blogs .skills-bars {
  margin: 0;
  max-width: none;
  background: #141b1d;
  border: 1px solid #273033;
  border-radius: 18px;
  padding: 1rem;
}

#blogs .skill-bar {
  gap: 0.72rem;
}

#blogs .skill-label {
  min-width: 112px;
  font-size: 0.95rem;
}

#blogs .bar-bg {
  height: 12px;
}

.skill-percent {
  min-width: 38px;
  text-align: right;
  color: #b7c7cb;
  font-size: 0.86rem;
  font-weight: 600;
}

.skills-panel {
  background: linear-gradient(160deg, #14231c 0%, #11191b 100%);
  border: 1px solid #29523f;
  border-radius: 18px;
  padding: 1rem;
}

.skills-panel h3 {
  margin: 0 0 0.72rem;
  color: #a8ffcb;
  font-size: 1rem;
}

.skills-panel ul {
  margin: 0;
  padding-left: 1rem;
  color: #c6d3d7;
  line-height: 1.55;
  font-size: 0.93rem;
}

.skills-mini-grid {
  margin-top: 0.92rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.58rem;
}

.skills-mini-card {
  background: rgba(30, 46, 39, 0.75);
  border: 1px solid #355746;
  border-radius: 12px;
  padding: 0.7rem;
  font-size: 0.79rem;
  color: #d6e3e7;
}

.skills-mini-card span {
  display: block;
  color: #a8ffcb;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

body.light .section-lead {
  color: #4d5961;
}

body.light .project-section-meta span {
  border-color: #b9d8c8;
  background: #edf8f2;
  color: #255740;
}

body.light #projects .project-card,
body.light #blogs .blog-card {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8f9 100%);
  border-color: #dde5e8;
  box-shadow: 0 12px 24px rgba(15, 28, 30, 0.08);
}

body.light #projects .project-desc,
body.light #blogs .project-desc,
body.light .project-highlights,
body.light .skills-panel ul,
body.light .skill-percent,
body.light .skills-mini-card {
  color: #3d4a51;
}

body.light .project-proof {
  border-color: #d4e4ea;
  background: #ffffff;
  color: #3f4e55;
}

body.light .project-proof span {
  color: #1e7a4e;
}

body.light .project-cta-note {
  color: #5b6a71;
}

body.light .project-read-more {
  color: #1f7a4f;
}

body.light .project-read-more:hover {
  color: #125236;
  border-color: #1f7a4f;
}

body.light .project-more-content {
  border-color: #d5e4e9;
  background: #ffffff;
  color: #3d4d54;
}

body.light .project-meta-chip {
  border-color: #a8d4bb;
  background: #edf8f1;
  color: #245b3f;
}

body.light #blogs .skills-bars {
  background: #ffffff;
  border-color: #dde7e6;
}

body.light .skills-panel {
  background: linear-gradient(160deg, #f1f9f4 0%, #edf4f7 100%);
  border-color: #b9d6c7;
}

body.light .skills-mini-card {
  background: #ffffff;
  border-color: #d5e6df;
}

@media (max-width: 1100px) {
  #projects .projects-list,
  #blogs .blogs-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  #blogs .skills-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  #projects .projects-list,
  #blogs .blogs-list {
    grid-template-columns: 1fr;
  }

  .project-section-meta {
    margin-top: -0.35rem;
  }

  .project-proof-grid {
    grid-template-columns: 1fr;
  }

  .project-proof-grid .project-proof:last-child {
    grid-column: auto;
  }

  #projects .project-thumb,
  #blogs .project-thumb {
    height: clamp(165px, 48vw, 220px);
  }
}

/* About me upgrade (scoped) */
#aboutme.aboutme-section {
  padding-top: 0.4rem;
}

#aboutme .aboutme-container {
  gap: 2rem;
}

#aboutme .aboutme-img-wrap {
  border: 1px solid #2f3a3d;
  background: #13191b;
}

#aboutme .aboutme-content-col {
  gap: 1rem;
}

#aboutme .aboutme-title {
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

#aboutme .aboutme-desc {
  margin-bottom: 0;
  line-height: 1.65;
}

#aboutme .aboutme-desc-secondary {
  color: #aab8bd;
}

.aboutme-stats {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.aboutme-stat-item {
  border: 1px solid #324044;
  background: #141c1e;
  border-radius: 14px;
  padding: 0.78rem 0.75rem;
}

.aboutme-stat-number {
  display: block;
  color: #8fffb6;
  font-weight: 700;
  font-size: 1.22rem;
}

.aboutme-stat-label {
  display: block;
  margin-top: 0.18rem;
  color: #c4d0d4;
  font-size: 0.8rem;
}

#aboutme .aboutme-cards {
  margin-bottom: 0.2rem;
}

#aboutme .aboutme-card {
  border: 1px solid #2e383b;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s, border-color 0.2s;
}

#aboutme .aboutme-card:hover {
  transform: translateY(-4px);
  border-color: #3fff7f55;
}

.aboutme-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.aboutme-tag {
  border: 1px solid #365145;
  background: #17231d;
  color: #b9ffcf;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.24rem 0.64rem;
}

#aboutme .aboutme-quote {
  margin: 0.25rem 0 0;
  color: #98ffbe;
}

.aboutme-actions {
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.aboutme-timeline-link {
  color: #b8ffcf;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  font-weight: 600;
  transition: color 0.2s, border-color 0.2s;
}

.aboutme-timeline-link:hover {
  color: #deffea;
  border-color: #b8ffcf;
}

body.light #aboutme .aboutme-img-wrap {
  border-color: #d9e3e8;
  background: #ffffff;
}

body.light #aboutme .aboutme-desc-secondary,
body.light .aboutme-stat-label,
body.light .aboutme-timeline-link {
  color: #3f4d54;
}

body.light .aboutme-stat-item {
  border-color: #d6e3e8;
  background: #ffffff;
}

body.light #aboutme .aboutme-card {
  border-color: #dde7ea;
  box-shadow: 0 8px 20px rgba(30, 44, 47, 0.08);
}

body.light .aboutme-tag {
  border-color: #b8d7c6;
  background: #eff8f3;
  color: #235840;
}

body.light #aboutme .aboutme-quote {
  color: #1f7a4f;
  border-left-color: #1f7a4f;
}

body.light .aboutme-timeline-link:hover {
  color: #1f7a4f;
  border-color: #1f7a4f;
}

@media (max-width: 960px) {
  .aboutme-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  #aboutme .aboutme-title {
    font-size: 1.8rem;
  }

  .aboutme-stats {
    grid-template-columns: 1fr;
  }

  .aboutme-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Dedicated contact page polish */
.contact-page .contact-section {
  padding-top: 2.6rem;
}

.contact-page .contact-hero {
  max-width: 860px;
  margin: 0 auto 1.8rem;
  text-align: center;
}

.contact-page .contact-badge {
  display: inline-block;
  border: 1px solid #365548;
  background: #17241e;
  color: #b8ffd1;
  border-radius: 999px;
  padding: 0.24rem 0.72rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.contact-page .contact-title {
  margin: 0.9rem 0 0.5rem;
  font-size: clamp(2rem, 4.8vw, 2.9rem);
  line-height: 1.15;
}

.contact-page .contact-intro {
  max-width: 700px;
  margin-bottom: 1rem;
  color: #b7c3c8;
}

.contact-page .contact-quick-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.contact-page .contact-quick-meta span {
  border: 1px solid #34484f;
  background: #152024;
  color: #cbe4ec;
  border-radius: 999px;
  padding: 0.22rem 0.64rem;
  font-size: 0.8rem;
}

.contact-page .contact-grid {
  max-width: 1020px;
  gap: 1.25rem;
}

.contact-page .contact-info-card,
.contact-page .contact-form-card {
  border: 1px solid #2e3b3f;
  border-radius: 20px;
  background: linear-gradient(180deg, #1a2224 0%, #151c1e 100%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.contact-page .contact-info-card {
  gap: 0.75rem;
}

.contact-page .contact-form-card {
  padding-top: 1.35rem;
}

.contact-page .contact-form-intro {
  margin: 0 0 1rem;
  color: #b2c0c5;
  font-size: 0.94rem;
  line-height: 1.5;
}

.contact-page .contact-info-item {
  padding: 0.5rem 0.2rem;
  border-radius: 10px;
}

.contact-page .contact-info-item:hover {
  background: rgba(63, 255, 127, 0.05);
}

.contact-page .contact-availability {
  margin-top: 0.35rem;
  border: 1px solid #355448;
  background: #17261f;
  border-radius: 12px;
  padding: 0.75rem 0.82rem;
}

.contact-page .contact-availability h4 {
  margin: 0 0 0.28rem;
  color: #a8ffcb;
  font-size: 0.93rem;
}

.contact-page .contact-availability p {
  margin: 0;
  color: #c4d2d7;
  font-size: 0.89rem;
  line-height: 1.45;
}

.contact-page .contact-social {
  min-width: 44px;
}

.contact-page .contact-social span {
  color: #cbe3ea;
  font-weight: 700;
  font-size: 0.8rem;
}

.contact-page .contact-form input,
.contact-page .contact-form textarea {
  border-color: #2f3c40;
  background: rgba(16, 23, 25, 0.9);
}

.contact-page .contact-form input:focus,
.contact-page .contact-form textarea:focus {
  border-color: #62f9a2;
  box-shadow: 0 0 0 3px rgba(98, 249, 162, 0.14);
}

.contact-page .contact-success {
  background: rgba(63, 255, 127, 0.12);
}

body.light.contact-page .contact-badge {
  border-color: #b8d8c6;
  background: #edf8f2;
  color: #1f6b45;
}

body.light.contact-page .contact-intro {
  color: #4e5d64;
}

body.light.contact-page .contact-quick-meta span {
  border-color: #ccdde5;
  background: #f4f9fc;
  color: #38515b;
}

body.light.contact-page .contact-info-card,
body.light.contact-page .contact-form-card {
  border-color: #d8e4e9;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fa 100%);
  box-shadow: 0 14px 24px rgba(17, 30, 34, 0.08);
}

body.light.contact-page .contact-form-intro,
body.light.contact-page .contact-availability p,
body.light.contact-page .contact-social span {
  color: #40525a;
}

body.light.contact-page .contact-availability {
  border-color: #bfdccf;
  background: #edf8f3;
}

body.light.contact-page .contact-availability h4 {
  color: #1f774d;
}

body.light.contact-page .contact-form input,
body.light.contact-page .contact-form textarea {
  background: #ffffff;
  border-color: #d7e3e8;
  color: #243239;
}

@media (max-width: 900px) {
  .contact-page .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .contact-page .contact-section {
    padding-top: 1.4rem;
  }

  .contact-page .contact-info-card,
  .contact-page .contact-form-card {
    padding: 1rem;
  }

  .contact-page .contact-quick-meta {
    justify-content: flex-start;
  }
}

/* About Me visual refresh */
#aboutme.aboutme-section {
  position: relative;
  isolation: isolate;
  padding-top: 1rem;
}

#aboutme.aboutme-section::before {
  content: "";
  position: absolute;
  inset: 0.5rem 0.8rem auto;
  height: 340px;
  border-radius: 24px;
  background:
    radial-gradient(140% 120% at 0% 0%, rgba(63, 255, 127, 0.14) 0%, rgba(63, 255, 127, 0) 55%),
    radial-gradient(120% 100% at 100% 20%, rgba(0, 173, 216, 0.2) 0%, rgba(0, 173, 216, 0) 50%);
  z-index: -1;
  pointer-events: none;
}

#aboutme .aboutme-container {
  gap: 2.2rem;
  align-items: stretch;
}

#aboutme .aboutme-img-wrap {
  border: 1px solid #3a474a;
  border-radius: 26px;
  background: #0f1517;
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.35);
}

#aboutme .aboutme-img {
  filter: saturate(1.04) contrast(1.03);
}

#aboutme .aboutme-badge {
  border: 1px solid #39584a;
  background: rgba(16, 26, 23, 0.86);
  backdrop-filter: blur(4px);
}

#aboutme .aboutme-content-col {
  background: linear-gradient(180deg, rgba(20, 28, 31, 0.93) 0%, rgba(17, 24, 26, 0.92) 100%);
  border: 1px solid #2f3f44;
  border-radius: 24px;
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.25);
}

#aboutme .aboutme-label {
  background: #1a2a24;
  color: #9dfec4;
  border: 1px solid #375848;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.74rem;
  padding: 0.3rem 0.75rem;
}

#aboutme .aboutme-title {
  font-size: clamp(1.95rem, 3.1vw, 2.45rem);
  letter-spacing: -0.02em;
}

#aboutme .aboutme-desc {
  color: #d8e2e5;
  font-size: 1rem;
}

#aboutme .aboutme-desc-secondary {
  color: #afbec3;
}

.aboutme-stats {
  gap: 0.78rem;
}

.aboutme-stat-item {
  border: 1px solid #3b4e54;
  border-radius: 16px;
  background: linear-gradient(180deg, #172024 0%, #131b1e 100%);
  padding: 0.82rem 0.8rem;
}

.aboutme-stat-number {
  font-size: 1.28rem;
  color: #98ffc0;
}

.aboutme-stat-label {
  color: #becdd2;
  letter-spacing: 0.01em;
}

#aboutme .aboutme-card {
  border: 1px solid #394b50;
  border-radius: 16px;
  background: linear-gradient(180deg, #172024 0%, #131b1e 100%);
}

#aboutme .aboutme-card:hover {
  transform: translateY(-5px);
  border-color: #6dc897;
}

.aboutme-tag {
  border-color: #46725e;
  background: #162822;
  color: #c9ffe0;
  padding: 0.26rem 0.72rem;
}

#aboutme .aboutme-quote {
  border-left-width: 4px;
  border-left-color: #69d79d;
  color: #b8ffd6;
  background: rgba(24, 41, 34, 0.5);
  border-radius: 12px;
  padding: 0.72rem 0.9rem;
}

.aboutme-actions {
  margin-top: 0.5rem;
}

.aboutme-actions .green-btn {
  min-height: 42px;
  padding: 0.58rem 1.02rem;
}

.aboutme-timeline-link {
  color: #c5ffdd;
}

body.light #aboutme.aboutme-section::before {
  background:
    radial-gradient(140% 120% at 0% 0%, rgba(39, 174, 96, 0.15) 0%, rgba(39, 174, 96, 0) 55%),
    radial-gradient(120% 100% at 100% 20%, rgba(21, 114, 182, 0.15) 0%, rgba(21, 114, 182, 0) 50%);
}

body.light #aboutme .aboutme-content-col {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fb 100%);
  border-color: #d9e4ea;
  box-shadow: 0 18px 30px rgba(23, 39, 44, 0.09);
}

body.light #aboutme .aboutme-label {
  background: #edf8f1;
  border-color: #bfdcc8;
  color: #1f7a4f;
}

body.light #aboutme .aboutme-desc {
  color: #2e3b42;
}

body.light #aboutme .aboutme-desc-secondary,
body.light .aboutme-stat-label {
  color: #4a5a62;
}

body.light .aboutme-stat-item,
body.light #aboutme .aboutme-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  border-color: #d8e6eb;
}

body.light .aboutme-tag {
  background: #eff8f3;
  border-color: #bfdacb;
  color: #256044;
}

body.light #aboutme .aboutme-quote {
  color: #256044;
  border-left-color: #27ae60;
  background: rgba(39, 174, 96, 0.08);
}

@media (max-width: 900px) {
  #aboutme .aboutme-content-col {
    padding: 1rem;
  }
}

@media (max-width: 640px) {
  #aboutme.aboutme-section::before {
    inset: 0.5rem 0.3rem auto;
    height: 260px;
  }

  #aboutme .aboutme-content-col {
    border-radius: 18px;
  }
}

/* Final navbar polish overrides */
.navbar {
  min-height: 64px;
  padding: 0.72rem 1.2rem;
  border-bottom: 1px solid rgba(130, 149, 157, 0.26);
  backdrop-filter: blur(10px);
}

.logo-flex {
  flex-shrink: 0;
}

.nav-links {
  margin: 0 auto;
  padding: 0.22rem;
  gap: 0.28rem;
  border: 1px solid #283337;
  border-radius: 999px;
  background: rgba(17, 24, 26, 0.82);
}

.nav-links li {
  display: flex;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.54rem 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  border-bottom: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}

.nav-links a:hover,
.nav-links a.active {
  color: #d8ffe9;
  border-bottom: 0;
  border-color: #3f7d5b;
  background: linear-gradient(180deg, rgba(39, 174, 96, 0.28) 0%, rgba(29, 123, 74, 0.2) 100%);
}

.nav-right {
  gap: 0.6rem;
}

body.light .navbar {
  border-bottom-color: #dde5e8;
}

body.light .nav-links {
  background: rgba(255, 255, 255, 0.9);
  border-color: #dbe4e7;
}

body.light .nav-links a:hover,
body.light .nav-links a.active {
  color: #145539;
  border-color: #afd8c0;
  background: linear-gradient(180deg, #eff8f3 0%, #e6f3ec 100%);
}

@media (max-width: 900px) {
  .navbar {
    min-height: 58px;
    padding: 0.62rem 0.85rem;
  }

  .nav-links {
    border-radius: 14px;
    margin-top: 0;
    padding: 0.35rem;
    background: #151d20;
    border-color: #2a3539;
  }

  .nav-links a {
    justify-content: flex-start;
    width: 100%;
    border-radius: 10px;
    padding: 0.72rem 0.82rem;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(63, 255, 127, 0.14);
    border-color: #3f7d5b;
  }

  body.light .nav-links {
    background: #ffffff;
    border-color: #dbe4e7;
  }

  body.light .nav-links a:hover,
  body.light .nav-links a.active {
    background: #edf8f2;
    border-color: #afd8c0;
  }
}

/* Navbar corrective fixes */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .logo-flex {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
}

.navbar .logo {
  text-decoration: none;
  color: inherit;
}

.navbar #primaryNav.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0 auto;
  min-height: 52px;
}

.navbar #primaryNav.nav-links a {
  white-space: nowrap;
  text-underline-offset: 0;
}

.navbar #primaryNav.nav-links a:focus-visible {
  outline: 2px solid #77d9ff;
  outline-offset: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  margin-left: 0.9rem;
}

@media (max-width: 1050px) {
  .navbar #primaryNav.nav-links {
    gap: 0.2rem;
  }

  .navbar #primaryNav.nav-links a {
    font-size: 0.92rem;
    padding: 0.5rem 0.76rem;
  }
}

@media (max-width: 900px) {
  .navbar #primaryNav.nav-links {
    min-height: 0;
    margin: 0;
  }

  .nav-right {
    margin-left: auto;
  }
}

/* Keep hero badge text on a single line */
.hero-content .badge {
  white-space: nowrap;
  width: fit-content;
  max-width: 100%;
}

/* Keep anchored sections clear of sticky navbar during smooth scrolling */
section[id] {
  scroll-margin-top: 84px;
}

/* Tighten top spacing so the badge sits closer to the navbar */
.hero-section {
  padding-top: 2.4rem;
}

@media (max-width: 900px) {
  .hero-section {
    padding-top: 1.35rem;
  }
}

@media (max-width: 520px) {
  .hero-content .badge {
    font-size: 0.9rem;
    padding: 0.44em 0.86em;
  }
}

/* Hero profile redesign */
.hero-image {
  width: 390px;
  height: 390px;
}

.profile-circle {
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #162128 0%, #0f171d 72%);
  border: 0.3px solid rgba(163, 230, 255, 0.24);
  box-shadow:
    0 0 0 1px rgba(9, 15, 22, 0.52);
  position: relative;
}

.profile-circle::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 0.3px solid rgba(150, 212, 255, 0.18);
  pointer-events: none;
}

.profile-circle img {
  width: 278px;
  height: 278px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 0.3px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.skills-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.skills-icons .icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  border: 0.3px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
  left: 50%;
  top: 50%;
  margin-left: -25px;
  margin-top: -25px;
  --orbit-angle: 0deg;
  /* 330px circle => border radius is 165px */
  --orbit-radius: 165px;
  animation: orbitItem 12s linear infinite;
}

.skills-icons .icon.go {
  --orbit-angle: 0deg;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
}

.skills-icons .icon.ts {
  --orbit-angle: 90deg;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
}

.skills-icons .icon.aws {
  --orbit-angle: 180deg;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
}

.skills-icons .icon.docker {
  --orbit-angle: 270deg;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
}

@keyframes orbitItem {
  0% {
    transform: rotate(var(--orbit-angle)) translateY(calc(-1 * var(--orbit-radius))) rotate(calc(-1 * var(--orbit-angle)));
  }
  100% {
    transform: rotate(calc(var(--orbit-angle) + 360deg)) translateY(calc(-1 * var(--orbit-radius))) rotate(calc(-1 * (var(--orbit-angle) + 360deg)));
  }
}

@media (max-width: 900px) {
  .hero-image {
    width: 320px;
    height: 320px;
    margin-top: 1.35rem;
  }

  .profile-circle {
    width: 278px;
    height: 278px;
  }

  .profile-circle::before {
    inset: 10px;
  }

  .profile-circle img {
    width: 232px;
    height: 232px;
  }

  .skills-icons .icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    margin-left: -22px;
    margin-top: -22px;
    /* 278px circle => border radius is 139px */
    --orbit-radius: 139px;
  }
}

/* About Me cards + icons redesign */
#aboutme .aboutme-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 0.45rem;
}

#aboutme .aboutme-card {
  min-width: 0;
  max-width: none;
  border-radius: 18px;
  padding: 1rem 1rem;
  gap: 0.82rem;
  border: 1px solid #365056;
  background: linear-gradient(180deg, rgba(22, 31, 35, 0.95) 0%, rgba(18, 27, 30, 0.95) 100%);
  box-shadow: 0 10px 20px rgba(2, 8, 11, 0.28);
  align-items: flex-start;
}

#aboutme .aboutme-card:hover {
  transform: translateY(-3px);
  border-color: #71d89f;
}

#aboutme .aboutme-card b {
  display: inline-block;
  margin-bottom: 0.18rem;
  font-size: 0.95rem;
  line-height: 1.3;
}

#aboutme .aboutme-card-desc {
  display: block;
  line-height: 1.35;
}

#aboutme .aboutme-card-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  overflow: hidden;
  margin-top: 0.1rem;
}

#aboutme .aboutme-card-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

#aboutme .aboutme-card-frontend {
  border-color: #2f6152;
}

#aboutme .aboutme-card-core {
  border-color: #355f72;
}

#aboutme .aboutme-card-growth {
  border-color: #3c6654;
}

@media (max-width: 860px) {
  #aboutme .aboutme-cards {
    grid-template-columns: 1fr;
  }
}

/* About Me photo card redesign */
#aboutme .aboutme-img-col {
  align-items: stretch;
}

#aboutme .aboutme-img-wrap {
  border: 1px solid #365056;
  border-radius: 26px;
  background: linear-gradient(165deg, #111a1d 0%, #0c1316 100%);
  box-shadow: 0 16px 30px rgba(3, 10, 14, 0.34);
  padding: 0.62rem;
}

#aboutme .aboutme-img {
  width: 100%;
  max-width: 370px;
  height: 470px;
  border-radius: 20px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(255, 255, 255, 0.08);
  filter: saturate(1.03) contrast(1.04);
}

#aboutme .aboutme-badge {
  border: 1px solid #365056;
  background: rgba(12, 19, 22, 0.86);
  border-radius: 16px;
  padding: 0.56rem 0.92rem;
  box-shadow: 0 8px 16px rgba(2, 9, 12, 0.34);
  backdrop-filter: blur(6px);
}

#aboutme .aboutme-badge-top {
  top: 14px;
  left: 14px;
}

#aboutme .aboutme-badge-bottom {
  left: 14px;
  bottom: 14px;
}

#aboutme .aboutme-badge-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

#aboutme .aboutme-badge-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

#aboutme .aboutme-badge-text b {
  font-size: 1.06rem;
  line-height: 1.1;
}

#aboutme .aboutme-badge-text span {
  color: #c8d6da;
}

body.light #aboutme .aboutme-img-wrap {
  border-color: #d7e3e8;
  background: linear-gradient(165deg, #ffffff 0%, #f4f9fb 100%);
  box-shadow: 0 12px 24px rgba(24, 38, 43, 0.1);
}

body.light #aboutme .aboutme-badge {
  border-color: #d6e2e7;
  background: rgba(255, 255, 255, 0.9);
}

body.light #aboutme .aboutme-badge-text span {
  color: #4a5b62;
}

@media (max-width: 860px) {
  #aboutme .aboutme-img {
    max-width: 100%;
    height: 420px;
  }

  #aboutme .aboutme-badge {
    padding: 0.5rem 0.78rem;
  }

  #aboutme .aboutme-badge-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
}

/* About Me photo card redesign v3 */
#aboutme .aboutme-img-col {
  align-items: flex-start;
}

#aboutme .aboutme-img-wrap {
  position: relative;
  width: min(100%, 420px);
  border-radius: 30px;
  padding: 0.7rem;
  border: 1px solid rgba(114, 160, 178, 0.5);
  background:
    linear-gradient(165deg, rgba(16, 25, 28, 0.98) 0%, rgba(10, 16, 19, 0.98) 100%);
  box-shadow:
    0 22px 34px rgba(2, 8, 12, 0.35),
    0 0 0 1px rgba(35, 78, 91, 0.5) inset;
}

#aboutme .aboutme-img {
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  filter: saturate(1.05) contrast(1.05);
}

#aboutme .aboutme-badge {
  gap: 0.62rem;
  border-radius: 15px;
  padding: 0.54rem 0.82rem;
  border: 1px solid rgba(95, 144, 160, 0.75);
  background: rgba(10, 15, 18, 0.82);
  box-shadow: 0 10px 18px rgba(1, 7, 11, 0.36);
}

#aboutme .aboutme-badge-top {
  top: 18px;
  left: 18px;
}

#aboutme .aboutme-badge-bottom {
  right: 18px;
  left: auto;
  bottom: 18px;
}

#aboutme .aboutme-badge-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

#aboutme .aboutme-badge-text b {
  font-size: 1rem;
}

#aboutme .aboutme-badge-text span {
  font-size: 0.88rem;
}

body.light #aboutme .aboutme-img-wrap {
  border-color: #cfdfe6;
  background: linear-gradient(165deg, #ffffff 0%, #f2f8fb 100%);
  box-shadow:
    0 16px 26px rgba(25, 39, 44, 0.12),
    0 0 0 1px rgba(190, 213, 224, 0.75) inset;
}

body.light #aboutme .aboutme-badge {
  border-color: #cddde5;
  background: rgba(255, 255, 255, 0.92);
}

@media (max-width: 860px) {
  #aboutme .aboutme-img-wrap {
    width: min(100%, 380px);
    border-radius: 24px;
    padding: 0.58rem;
  }

  #aboutme .aboutme-img {
    border-radius: 18px;
  }

  #aboutme .aboutme-badge {
    padding: 0.46rem 0.7rem;
  }

  #aboutme .aboutme-badge-top {
    top: 14px;
    left: 14px;
  }

  #aboutme .aboutme-badge-bottom {
    right: 14px;
    bottom: 14px;
  }
}

/* Contact template v2 */
.contact-page .contact-template-v2 {
  padding-top: 2.2rem;
}

.contact-page .contact-shell {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.1rem;
  align-items: stretch;
}

.contact-page .contact-rail {
  border-radius: 18px;
  background: rgba(7, 11, 14, 0.5);
  border: 1px solid #2f363a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 0.8rem 0.45rem;
}

.contact-page .contact-rail-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d4d8da;
  background: #565f66;
  text-decoration: none;
  transition: transform 0.18s, filter 0.18s;
}

.contact-page .contact-rail-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
}

.contact-page .contact-rail-btn-active {
  color: #101416;
  background: #e7c44e;
}

.contact-page .contact-canvas {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #2e3438;
  background:
    linear-gradient(160deg, rgba(10, 12, 16, 0.5) 0%, rgba(7, 10, 13, 0.5) 100%),
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 40%);
  box-shadow: 0 26px 38px rgba(0, 0, 0, 0.28);
}

.contact-page .contact-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='180' height='180' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23111417' fill-opacity='0.42'%3E%3Cpolygon points='10,18 80,8 58,84'/%3E%3Cpolygon points='120,18 170,34 136,92'/%3E%3Cpolygon points='22,118 94,104 56,174'/%3E%3Cpolygon points='112,120 176,106 148,176'/%3E%3C/g%3E%3C/svg%3E") repeat;
  opacity: 0.32;
  pointer-events: none;
}

.contact-page .contact-top-socials {
  position: absolute;
  right: 1rem;
  top: 0.9rem;
  z-index: 2;
  display: flex;
  gap: 0.4rem;
}

.contact-page .contact-top-socials a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(215, 215, 215, 0.7);
  background: #ffffff;
  color: #121417;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.contact-page .contact-top-socials a svg {
  width: 16px;
  height: 16px;
  display: block;
}

.contact-page .contact-top-socials a:hover {
  transform: translateY(-1px);
  filter: brightness(0.95);
}

.contact-page .contact-template-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 1.2rem;
  align-items: end;
  padding: 3rem 1.4rem 1.3rem;
}

.contact-page .contact-template-form-col {
  max-width: 420px;
  padding: 0.35rem 0.15rem 0;
}

.contact-page .contact-template-title {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.contact-page .contact-template-title span {
  color: #e7c44e;
}

.contact-page .contact-template-lead {
  margin: 0.72rem 0 1.2rem;
  max-width: 360px;
  font-size: 0.9rem;
  color: #c1c9ce;
  line-height: 1.55;
}

.contact-page .contact-form-v2 {
  gap: 0.72rem;
  max-width: 360px;
}

.contact-page .contact-form-v2 .contact-label {
  font-size: 0.78rem;
  color: #d6dde1;
  margin-bottom: -0.2rem;
}

.contact-page .contact-form-v2 input,
.contact-page .contact-form-v2 textarea {
  border-radius: 11px;
  border: 1px solid #3b444b;
  background: rgba(197, 208, 214, 0.13);
  color: #f3f5f6;
  padding: 0.68rem 0.85rem;
}

.contact-page .contact-form-v2 input::placeholder,
.contact-page .contact-form-v2 textarea::placeholder {
  color: #97a5ad;
}

.contact-page .contact-form-v2 textarea {
  min-height: 102px;
}

.contact-page .contact-form-v2 input:focus,
.contact-page .contact-form-v2 textarea:focus {
  border-color: #e7c44e;
  box-shadow: 0 0 0 3px rgba(231, 196, 78, 0.15);
}

.contact-page .contact-submit-btn {
  margin-top: 0.45rem;
  width: max-content;
  min-width: 118px;
  border: none;
  border-radius: 999px;
  background: #e7c44e;
  color: #1a1f24;
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.64rem 1rem;
  cursor: pointer;
}

.contact-page .contact-submit-btn:hover {
  filter: brightness(1.04);
}

.contact-page .contact-template-visual-col {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  isolation: isolate;
}

.contact-page .contact-template-visual-col::before {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 14px;
  width: 360px;
  height: 330px;
  border-radius: 36% 64% 57% 43% / 43% 33% 67% 57%;
  background: #e7c44e;
  box-shadow: 0 18px 36px rgba(5, 9, 12, 0.2);
  z-index: 0;
}

.contact-page .contact-template-visual-col::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: 0;
  width: 380px;
  height: 350px;
  border-radius: 36% 64% 57% 43% / 43% 33% 67% 57%;
  border: 4px solid #eef2f5;
  background: transparent;
  z-index: 0;
}

.contact-page .contact-template-blob {
  display: none;
}

.contact-page .contact-template-blob::before {
  content: none;
}

.contact-page .contact-template-blob::after {
  content: none;
}

.contact-page .contact-template-overlay {
  position: absolute;
  right: 50%;
  bottom: -2px;
  width: 268px;
  height: 62px;
  transform: translateX(53%) rotate(0deg);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(68, 185, 214, 0.82) 0%, rgba(28, 121, 154, 0.84) 100%),
    linear-gradient(90deg, rgba(160, 244, 255, 0.2) 0%, rgba(160, 244, 255, 0) 46%, rgba(160, 244, 255, 0.18) 100%);
  border: 1px solid rgba(184, 240, 249, 0.78);
  box-shadow:
    0 10px 20px rgba(1, 8, 12, 0.48),
    inset 0 0 22px rgba(76, 230, 255, 0.3),
    inset 0 1px 0 rgba(228, 252, 255, 0.34);
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}

.contact-page .contact-template-overlay::before {
  content: "RAKIB MAHAMUD";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: "Luckiest Guy", "Baloo 2", "Fredoka", "Arial Rounded MT Bold", cursive; 
  font-size: 1.54rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: none;
  color: #f4fdff;
  text-shadow:
    0 2px 0 rgba(6, 34, 47, 0.82),
    0 6px 12px rgba(6, 26, 36, 0.74),
    0 0 10px rgba(101, 231, 255, 0.56);
  white-space: nowrap;
  padding: 0.2rem 0.48rem;
  border: 1px solid rgba(171, 242, 250, 0.52);
  border-radius: 6px;
  background: rgba(10, 31, 43, 0.54);
}

.contact-page .contact-template-overlay::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44px;
  left: -30%;
  background: linear-gradient(110deg, rgba(118, 242, 255, 0) 0%, rgba(118, 242, 255, 0.56) 50%, rgba(118, 242, 255, 0) 100%);
  animation: contactOverlayShine 2.8s ease-in-out infinite;
}

@keyframes contactOverlayShine {
  0% {
    left: -30%;
    opacity: 0;
  }
  30% {
    opacity: 0.88;
  }
  100% {
    left: 120%;
    opacity: 0;
  }
}

.contact-page .contact-template-photo {
  position: absolute;
  right: 50%;
  bottom: -6px;
  width: min(106%, 1500px);
  max-width: 1500px;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
  z-index: 3;
  display: block;
  margin: 0;
  transform: translateX(56%);
}

body.light.contact-page .contact-rail {
  background: rgba(242, 247, 250, 0.96);
  border-color: #d3dee4;
}

body.light.contact-page .contact-canvas {
  border-color: #d5e2e8;
  background: linear-gradient(160deg, #f8fbfd 0%, #eef4f8 100%);
  box-shadow: 0 20px 34px rgba(26, 38, 45, 0.12);
}

body.light.contact-page .contact-canvas::before {
  opacity: 0.12;
}

body.light.contact-page .contact-template-title,
body.light.contact-page .contact-template-form-col .contact-label {
  color: #16252d;
}

body.light.contact-page .contact-template-visual-col::before {
  box-shadow: 0 14px 28px rgba(18, 28, 34, 0.14);
}

body.light.contact-page .contact-template-visual-col::after {
  border-color: #dce5ea;
}

body.light.contact-page .contact-template-overlay {
  background:
    linear-gradient(180deg, rgba(127, 184, 207, 0.86) 0%, rgba(94, 152, 179, 0.86) 100%),
    linear-gradient(90deg, rgba(188, 225, 239, 0.34) 0%, rgba(188, 225, 239, 0) 46%, rgba(188, 225, 239, 0.3) 100%);
  border-color: rgba(96, 128, 145, 0.46);
  box-shadow:
    0 8px 14px rgba(35, 53, 64, 0.22),
    inset 0 0 12px rgba(255, 255, 255, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

body.light.contact-page .contact-template-overlay::before {
  color: rgba(25, 60, 78, 0.96);
  text-shadow:
    0 1px 0 rgba(242, 250, 255, 0.84),
    0 4px 8px rgba(113, 160, 180, 0.34);
  border-color: rgba(102, 147, 166, 0.46);
  background: rgba(240, 248, 252, 0.72);
}

body.light.contact-page .contact-template-lead {
  color: #3f535d;
}

body.light.contact-page .contact-form-v2 input,
body.light.contact-page .contact-form-v2 textarea {
  background: rgba(255, 255, 255, 0.88);
  border-color: #cad8df;
  color: #1f2d33;
}

@media (max-width: 980px) {
  .contact-page .contact-shell {
    grid-template-columns: 1fr;
  }

  .contact-page .contact-rail {
    flex-direction: row;
    justify-content: flex-start;
    padding: 0.62rem 0.7rem;
  }

  .contact-page .contact-template-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    padding-top: 3.2rem;
  }

  .contact-page .contact-template-form-col {
    max-width: 100%;
  }

  .contact-page .contact-form-v2 {
    max-width: 100%;
  }

  .contact-page .contact-template-visual-col {
    min-height: 340px;
  }

  .contact-page .contact-template-visual-col::before {
    width: 292px;
    height: 266px;
    right: 50%;
    transform: translateX(50%);
    bottom: 14px;
  }

  .contact-page .contact-template-visual-col::after {
    width: 308px;
    height: 282px;
    right: 50%;
    transform: translateX(52%);
    bottom: 8px;
  }

  .contact-page .contact-template-photo {
    right: 50%;
    bottom: -2px;
    width: min(108%, 320px);
    max-width: 320px;
    transform: translateX(52%);
  }

  .contact-page .contact-template-overlay {
    width: 214px;
    height: 48px;
    bottom: 46px;
    transform: translateX(54%) rotate(0deg);
  }

  .contact-page .contact-template-overlay::before {
    font-size: 0.76rem;
    letter-spacing: 0.03em;
  }
}

@media (max-width: 620px) {
  .contact-page .contact-template-v2 {
    padding-top: 1.1rem;
  }

  .contact-page .contact-canvas {
    border-radius: 18px;
  }

  .contact-page .contact-top-socials {
    right: 0.7rem;
    top: 0.7rem;
    gap: 0.32rem;
  }

  .contact-page .contact-top-socials a {
    width: 30px;
    height: 30px;
  }

  .contact-page .contact-top-socials a svg {
    width: 14px;
    height: 14px;
  }

  .contact-page .contact-template-grid {
    padding: 2.8rem 0.9rem 0.9rem;
  }

  .contact-page .contact-template-visual-col {
    min-height: 248px;
  }

  .contact-page .contact-template-visual-col::before {
    width: 216px;
    height: 194px;
    bottom: 18px;
  }

  .contact-page .contact-template-visual-col::after {
    width: 228px;
    height: 204px;
    transform: translateX(56%);
    bottom: 12px;
  }

  .contact-page .contact-template-photo {
    width: min(108%, 230px);
    max-width: 230px;
    transform: translateX(52%);
    bottom: 4px;
  }

  .contact-page .contact-template-overlay {
    width: 158px;
    height: 36px;
    bottom: 30px;
    transform: translateX(56%) rotate(0deg);
  }

  .contact-page .contact-template-overlay::before {
    font-size: 0.58rem;
    letter-spacing: 0.02em;
    padding: 0.12rem 0.22rem;
  }
}

/* Featured projects card redesign (final override) */
#projects .projects-list {
  gap: 1.45rem;
}

#projects .project-card {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(140, 255, 196, 0.18);
  background:
    radial-gradient(circle at 12% -8%, rgba(97, 229, 155, 0.2), transparent 56%),
    linear-gradient(170deg, #1a2326 0%, #12191b 62%, #0f1416 100%);
  box-shadow: 0 14px 34px rgba(6, 12, 14, 0.5);
  overflow: hidden;
}

#projects .project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

#projects .project-card[data-tone="cyan"] {
  border-color: rgba(111, 230, 255, 0.2);
  background:
    radial-gradient(circle at 12% -8%, rgba(109, 223, 255, 0.2), transparent 56%),
    linear-gradient(170deg, #18242a 0%, #12181b 62%, #0e1417 100%);
}

#projects .project-card[data-tone="amber"] {
  border-color: rgba(255, 206, 124, 0.25);
  background:
    radial-gradient(circle at 12% -8%, rgba(255, 198, 107, 0.18), transparent 56%),
    linear-gradient(170deg, #241f17 0%, #17130f 62%, #13100d 100%);
}

#projects .project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(146, 255, 199, 0.45);
  box-shadow: 0 22px 42px rgba(6, 12, 14, 0.58);
}

#projects .project-thumb-wrap {
  position: relative;
  overflow: hidden;
}

#projects .project-thumb-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 16, 19, 0.9) 100%);
}

#projects .project-thumb {
  display: block;
  width: 100%;
  height: 178px;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.45s ease;
}

#projects .project-card:hover .project-thumb {
  transform: scale(1.08);
}

#projects .project-card-label {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 1;
  border: 1px solid rgba(197, 255, 221, 0.6);
  background: rgba(7, 16, 13, 0.74);
  color: #d8ffea;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

#projects .project-content {
  padding: 1rem 1rem 1.1rem;
}

#projects .project-kicker {
  color: #8dffc0;
}

#projects .project-proof {
  background: rgba(13, 24, 27, 0.8);
  border-color: rgba(157, 243, 198, 0.24);
}

#projects .project-proof span {
  color: #b0ffd2;
}

#projects .project-meta-chip {
  border-color: rgba(115, 196, 154, 0.55);
  background: rgba(28, 44, 38, 0.82);
}

#projects .badge-tech {
  border: 1px solid rgba(145, 255, 203, 0.28);
  background: rgba(20, 29, 31, 0.78);
}

#projects .project-link {
  border-radius: 999px;
  padding: 0.45rem 0.82rem;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

#projects .project-read-more {
  margin-top: 0.7rem;
}

#projects .project-more-content {
  border-color: rgba(125, 216, 176, 0.36);
  background: linear-gradient(180deg, rgba(21, 33, 35, 0.96) 0%, rgba(15, 23, 25, 0.98) 100%);
}

body.light #projects .project-card {
  border-color: rgba(44, 112, 78, 0.24);
  background:
    radial-gradient(circle at 12% -8%, rgba(70, 194, 129, 0.2), transparent 56%),
    linear-gradient(170deg, #ffffff 0%, #f5f8f8 62%, #edf3f3 100%);
  box-shadow: 0 16px 30px rgba(15, 28, 30, 0.1);
}

body.light #projects .project-card[data-tone="cyan"] {
  border-color: rgba(38, 128, 156, 0.24);
  background:
    radial-gradient(circle at 12% -8%, rgba(84, 184, 213, 0.24), transparent 56%),
    linear-gradient(170deg, #fefefe 0%, #f2f8fb 62%, #edf4f8 100%);
}

body.light #projects .project-card[data-tone="amber"] {
  border-color: rgba(151, 111, 41, 0.28);
  background:
    radial-gradient(circle at 12% -8%, rgba(242, 187, 88, 0.24), transparent 56%),
    linear-gradient(170deg, #fefcf7 0%, #f8f3e8 62%, #f3ecdf 100%);
}

body.light #projects .project-card-label {
  border-color: rgba(22, 90, 60, 0.3);
  background: rgba(250, 255, 252, 0.84);
  color: #1f5b42;
}

body.light #projects .project-proof {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(139, 187, 167, 0.38);
}

body.light #projects .badge-tech {
  border-color: rgba(124, 171, 151, 0.35);
  background: rgba(255, 255, 255, 0.86);
}

body.light #projects .project-more-content {
  border-color: rgba(132, 180, 160, 0.36);
  background: linear-gradient(180deg, #ffffff 0%, #f4f8f8 100%);
}

@media (max-width: 900px) {
  #projects .projects-list {
    gap: 1.15rem;
  }

  #projects .project-card {
    max-width: 360px;
  }
}

@media (max-width: 700px) {
  #projects .project-card {
    max-width: min(100%, 440px);
  }

  #projects .project-content {
    padding: 0.9rem 0.88rem 0.98rem;
  }

  #projects .project-thumb {
    height: clamp(180px, 56vw, 228px);
  }
}

/* Hero visual style to match screenshot direction */
#hero .hero-image {
  width: 446px;
  height: 446px;
}

#hero .profile-circle {
  width: 304px;
  height: 304px;
  border-radius: 50%;
  overflow: visible;
  border: 3px solid rgba(29, 40, 44, 0.95);
  box-shadow:
    0 0 0 2px rgba(42, 255, 145, 0.22),
    0 0 26px rgba(36, 255, 154, 0.48),
    0 0 62px rgba(26, 166, 98, 0.34);
}

#hero .profile-circle::before {
  inset: 8px;
  border: 1px solid rgba(26, 38, 42, 0.66);
}

#hero .profile-circle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: none;
  box-shadow: none;
  object-fit: cover;
  object-position: center;
}

#hero .skills-icons {
  pointer-events: none;
}

#hero .skills-icons .icon {
  width: 52px;
  height: 52px;
  margin-left: -26px;
  margin-top: -26px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(9, 13, 16, 0.84);
  box-shadow: 0 8px 22px rgba(3, 7, 9, 0.5);
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  --orbit-angle: 0deg;
  --orbit-radius: 194px;
  animation: orbitItem 13.8s linear infinite;
}

#hero .skills-icons .icon svg {
  width: 30px;
  height: 30px;
}

#hero .skills-icons .icon.go {
  --orbit-angle: 0deg;
}

#hero .skills-icons .icon.ts {
  --orbit-angle: 60deg;
}

#hero .skills-icons .icon.aws {
  --orbit-angle: 120deg;
}


#hero .skills-icons .icon.docker {
  --orbit-angle: 180deg;
}

#hero .skills-icons .icon.postgres {
  --orbit-angle: 240deg;
  display: flex;
}

#hero .skills-icons .icon.graph {
  --orbit-angle: 300deg;
}

body.light #hero .profile-circle {
  border-color: rgba(31, 59, 45, 0.92);
  box-shadow:
    0 0 0 2px rgba(49, 188, 116, 0.26),
    0 0 22px rgba(57, 188, 125, 0.26),
    0 0 44px rgba(40, 142, 97, 0.22);
}

body.light #hero .skills-icons .icon {
  border-color: rgba(42, 78, 60, 0.18);
  background: rgba(251, 254, 252, 0.94);
  box-shadow: 0 8px 20px rgba(34, 62, 49, 0.16);
}

@media (max-width: 1024px) {
  #hero .hero-image {
    width: 408px;
    height: 408px;
  }

  #hero .profile-circle {
    width: 274px;
    height: 274px;
  }

  #hero .skills-icons .icon {
    --orbit-radius: 178px;
  }
}

@media (max-width: 700px) {
  #hero .hero-image {
    width: 356px;
    height: 356px;
    margin-top: 1.1rem;
  }

  #hero .profile-circle {
    width: 242px;
    height: 242px;
  }

  #hero .skills-icons .icon {
    width: 42px;
    height: 42px;
    margin-left: -21px;
    margin-top: -21px;
    --orbit-radius: 158px;
  }

  #hero .skills-icons .icon svg {
    width: 24px;
    height: 24px;
  }
}

/* Global mobile compact pass */
@media (max-width: 700px) {
  body {
    font-size: 15px;
  }

  .navbar {
    padding: 0.5rem 0.85rem;
  }

  .logo-text {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
  }

  .section {
    padding: 2.1rem 0.9rem;
  }

  .section h2,
  .aboutme-title,
  .hero-title {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
    line-height: 1.2;
  }

  .section-lead,
  .hero-content p,
  .aboutme-desc {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .hero-section {
    gap: 1rem;
    padding-top: 1.35rem;
  }

  .hero-content {
    gap: 0.7rem;
  }

  .hero-content h2 {
    font-size: 1rem;
    line-height: 1.35;
  }

  .hero-content .badge {
    font-size: 0.72rem;
    padding: 0.28rem 0.52rem;
  }

  .location-role {
    gap: 0.35rem;
    font-size: 0.8rem;
    flex-wrap: wrap;
  }

  .hero-buttons {
    gap: 0.42rem;
  }

  .hero-buttons .btn,
  .btn {
    padding: 0.44rem 0.68rem;
    border-radius: 10px;
    font-size: 0.8rem;
  }

  .social-links {
    gap: 0.44rem;
  }

  .icon-social {
    width: 30px;
    height: 30px;
  }

  #hero .hero-image {
    width: 318px;
    height: 318px;
  }

  #hero .profile-circle {
    width: 220px;
    height: 220px;
  }

  #hero .skills-icons .icon {
    width: 40px;
    height: 40px;
    margin-left: -20px;
    margin-top: -20px;
    --orbit-radius: 140px;
  }

  #hero .skills-icons .icon svg {
    width: 22px;
    height: 22px;
  }

  #aboutme .aboutme-container,
  #education .education-grid,
  #experience .experience-grid,
  #projects .projects-list,
  #blogs .blogs-list,
  .journey-list,
  .certifications-grid {
    gap: 0.75rem;
  }

  #aboutme .aboutme-img-col,
  #aboutme .aboutme-content-col,
  #education .education-card,
  #experience .experience-card,
  #projects .project-card,
  #blogs .blog-card,
  .journey-item,
  .cert-card,
  .timeline-content {
    border-radius: 14px;
  }

  #aboutme .aboutme-img-col {
    min-width: 0;
  }

  #aboutme .aboutme-stats {
    gap: 0.5rem;
  }

  #aboutme .aboutme-stat-item {
    padding: 0.58rem 0.52rem;
  }

  #aboutme .aboutme-stat-number {
    font-size: 1.05rem;
  }

  #aboutme .aboutme-cards,
  #aboutme .aboutme-tags {
    gap: 0.46rem;
  }

  #aboutme .aboutme-card {
    padding: 0.6rem 0.62rem;
  }

  #aboutme .aboutme-tag {
    font-size: 0.72rem;
    padding: 0.2rem 0.52rem;
  }

  #projects .project-content,
  #blogs .blog-content-wrap,
  .education-card,
  .experience-card,
  .journey-item,
  .cert-card {
    padding: 0.78rem 0.74rem;
  }

  #projects .project-card h3,
  #blogs .blog-card h3,
  .education-card h3,
  .experience-card h3 {
    font-size: 0.96rem;
    line-height: 1.35;
  }

  #projects .project-desc,
  #blogs .project-desc,
  .education-card p,
  .experience-card p,
  .journey-item p,
  .cert-card p {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  #projects .project-proof-grid {
    gap: 0.35rem;
  }

  #projects .project-proof {
    padding: 0.42rem 0.46rem;
    font-size: 0.7rem;
  }

  #projects .tech-badges,
  #blogs .tech-badges {
    gap: 0.34rem;
    margin-top: 0.65rem;
  }

  #projects .badge-tech,
  #blogs .badge-tech {
    font-size: 0.68rem;
    padding: 0.22rem 0.5rem;
  }

  #projects .project-links {
    gap: 0.42rem;
    margin-top: 0.62rem;
  }

  #projects .project-link {
    font-size: 0.7rem;
    padding: 0.34rem 0.56rem;
  }

  .timeline-content,
  .journey-item,
  .education-card,
  .experience-card {
    min-height: 0;
  }

  .footer {
    padding: 1.2rem 0.9rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 1.9rem 0.72rem;
  }

  .hero-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-buttons .btn:last-child {
    grid-column: 1 / -1;
  }

  #hero .hero-image {
    width: 288px;
    height: 288px;
  }

  #hero .profile-circle {
    width: 202px;
    height: 202px;
  }

  #hero .skills-icons .icon {
    --orbit-radius: 126px;
  }
}
