﻿/*
assets/css/main.css

Purpose:
- Main compiled CSS file (often generated from src/scss).
- Enqueued via functions.php or inc/enqueue.php.
*/

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(1000px 600px at 10% -10%, rgba(88, 246, 255, 0.14), transparent 60%),
    radial-gradient(900px 520px at 100% 0%, rgba(178, 136, 255, 0.2), transparent 55%),
    linear-gradient(180deg, #0b0f1a, #0f172a);
  min-height: 100vh;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  z-index: 1000;
  font-family: var(--font-sans);
  color: var(--text);
}

.nav-shell {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  border-radius: var(--nav-radius);
  background: var(--nav-glass);
  border: 1px solid var(--nav-border);
  backdrop-filter: blur(16px);
  box-shadow: var(--nav-shadow);
  transition: background var(--speed) var(--ease),
    border-color var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease);
}

.site-header.is-scrolled .nav-shell {
  background: var(--nav-glass-strong);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
  color: var(--text);
}

.brand-text {
  font-family: var(--font-signature);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-desktop .menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.nav-desktop .menu li {
  margin: 0;
}

.nav-desktop .menu a,
.nav-link {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--speed) var(--ease);
}

.nav-desktop .menu a::after,
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--speed) var(--ease);
}

.nav-desktop .menu a:hover,
.nav-desktop .menu a.is-active,
.nav-desktop .current-menu-item > a,
.nav-desktop .current-menu-ancestor > a,
.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}

.nav-desktop .menu a:hover::after,
.nav-desktop .menu a.is-active::after,
.nav-desktop .current-menu-item > a::after,
.nav-desktop .current-menu-ancestor > a::after,
.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.cta-button {
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(88, 246, 255, 0.28), rgba(178, 136, 255, 0.36));
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: box-shadow var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.cta-button:hover {
  box-shadow: 0 0 18px rgba(88, 246, 255, 0.4);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}

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

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

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

.nav-drawer {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(360px, 92vw);
  border-radius: var(--nav-radius);
  background: rgba(12, 18, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--nav-shadow);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
  transition: transform 320ms var(--ease), opacity 320ms var(--ease);
}

.nav-drawer.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nav-drawer-inner {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.nav-mobile .menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.nav-mobile .menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease), transform var(--speed) var(--ease);
  position: relative;
}

.nav-mobile .menu a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 8px rgba(88, 246, 255, 0.4);
}

.nav-mobile .menu a:hover,
.nav-mobile .menu a.is-active,
.nav-mobile .current-menu-item > a,
.nav-mobile .current-menu-ancestor > a {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.cta-button.full {
  width: 100%;
  text-align: center;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 1100;
  width: auto;
  height: auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: #0b1427;
  color: var(--text);
}

.nav-desktop a:focus-visible,
.nav-mobile a:focus-visible,
.cta-button:focus-visible,
.nav-toggle:focus-visible,
.btn:focus-visible,
.filter-pill:focus-visible,
.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.site-content {
  padding-top: 120px;
}

.site-content [id] {
  scroll-margin-top: 120px;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px 80px;
}

.section {
  padding: 72px 0;
  position: relative;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 32px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--muted);
}

.glass-panel {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.page-hero {
  padding-top: 10px;
}

.page-hero-inner {
  padding: 28px;
  display: grid;
  gap: 12px;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 20px;
  align-items: center;
}

.about-hero-media img {
  width: 100%;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  max-height: 220px;
  object-fit: cover;
}

.page-content {
  padding: 24px;
  color: var(--muted);
}

.about-image {
  min-height: 220px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(88, 246, 255, 0.12), rgba(178, 136, 255, 0.2));
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-image::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
}

.about-image-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(178, 136, 255, 0.65), transparent 70%);
  right: 16%;
  top: 20%;
  filter: blur(2px);
  animation: floatGlow 7s ease-in-out infinite;
}

.about-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
}

.about-page-side {
  display: grid;
  gap: 16px;
}

.about-inline-image {
  margin: 18px 0 0;
}

.about-inline-image img {
  width: 100%;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-page-grid {
  display: grid;
  gap: 24px;
}

.upload-panel {
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
}

.upload-panel::after {
  content: "";
  position: absolute;
  inset: -80px;
  background: radial-gradient(circle at 70% 20%, rgba(88, 246, 255, 0.25), transparent 60%);
  opacity: 0.8;
  pointer-events: none;
  z-index: -1;
}

.upload-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
}

.page-template-page-portfolio .upload-panel,
.page-template-page-portfolio .portfolio-grid {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.post-type-archive-portfolio .portfolio-grid {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.portfolio-card {
  overflow: hidden;
  display: grid;
  gap: 16px;
  padding: 0;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.45);
}

.portfolio-media {
  display: block;
  width: 100%;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  background: rgba(8, 14, 26, 0.6);
}

.portfolio-media img {
  width: 100%;
  display: block;
  height: auto;
}

.media-placeholder {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  background: rgba(8, 14, 26, 0.6);
}

.portfolio-body {
  padding: 0 22px 22px;
  display: grid;
  gap: 12px;
}

.portfolio-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portfolio-links .btn {
  gap: 8px;
}

.portfolio-links svg {
  width: 16px;
  height: 16px;
}

.section-actions {
  margin-top: 26px;
  display: flex;
  justify-content: flex-start;
}

.portfolio-hero-media {
  padding: 12px;
  overflow: hidden;
}

.portfolio-hero-media img {
  width: 100%;
  display: block;
  border-radius: 14px;
}

.hero {
  padding-top: 30px;
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 246, 255, 0.3), transparent 70%);
  right: 10%;
  top: 0;
  filter: blur(10px);
  opacity: 0.8;
  animation: floatGlow 8s ease-in-out infinite;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 16px;
}

.hero-content .accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin: 24px 0 30px;
  flex-wrap: wrap;
}

.hero-social {
  margin-bottom: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
  gap: 8px;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn.primary {
  background: linear-gradient(135deg, rgba(88, 246, 255, 0.28), rgba(178, 136, 255, 0.38));
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(88, 246, 255, 0.35);
}

.stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.stat {
  display: grid;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
}

.stat-label {
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-card {
  padding: 26px;
  display: grid;
  gap: 18px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-soft);
}

.profile-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(88, 246, 255, 0.15), rgba(178, 136, 255, 0.25));
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
  mix-blend-mode: normal;
}

.profile-orb {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(178, 136, 255, 0.8), transparent 70%);
  top: 20%;
  left: 10%;
  filter: blur(2px);
}

.profile-ring {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.4);
}

.hero-shake {
  animation: heroShake 6s ease-in-out infinite;
}

.hero-card-caption {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
  font-size: 0.85rem;
  width: fit-content;
}

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

.about-copy {
  padding: 24px;
  display: grid;
  gap: 16px;
  color: var(--muted);
}

.about-highlights {
  display: grid;
  gap: 18px;
}

.highlight-card {
  padding: 20px;
  display: grid;
  gap: 10px;
}

.toolkit {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.toolkit.auto-shake .toolkit-chip {
  animation: toolkitShake 6s ease-in-out infinite;
}

.toolkit.auto-shake .toolkit-chip:nth-child(2) { animation-delay: 0.6s; }
.toolkit.auto-shake .toolkit-chip:nth-child(3) { animation-delay: 1.2s; }
.toolkit.auto-shake .toolkit-chip:nth-child(4) { animation-delay: 1.8s; }
.toolkit.auto-shake .toolkit-chip:nth-child(5) { animation-delay: 2.4s; }
.toolkit.auto-shake .toolkit-chip:nth-child(6) { animation-delay: 3s; }
.toolkit.auto-shake .toolkit-chip:nth-child(7) { animation-delay: 3.6s; }
.toolkit.auto-shake .toolkit-chip:nth-child(8) { animation-delay: 4.2s; }
.toolkit.auto-shake .toolkit-chip:nth-child(9) { animation-delay: 4.8s; }

.education-timeline {
  display: grid;
  gap: 16px;
}

.timeline-card {
  padding: 20px;
  display: grid;
  gap: 8px;
}

.timeline-year {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.toolkit-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.9rem;
  color: var(--text);
}

.toolkit-chip svg {
  width: 16px;
  height: 16px;
}

.toolkit-chip i {
  font-size: 1rem;
}

.toolkit-chip .fa-react {
  color: #61dafb;
}

.toolkit-chip .fa-wordpress {
  color: #21759b;
}

.toolkit-chip .fa-node-js {
  color: #68a063;
}

.toolkit-chip .fa-flutter {
  color: #42a5f5;
}

.toolkit-chip .fa-python {
  color: #3776ab;
}

.toolkit-chip .fa-chart-line {
  color: #f7b500;
}

.toolkit-chip .fa-server {
  color: #6bd19b;
}

.toolkit-chip .fa-figma {
  color: #a259ff;
}

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

.service-card {
  padding: 22px;
  display: grid;
  gap: 12px;
}

.service-icon {
  font-size: 1.4rem;
  color: var(--accent);
}

.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.6);
  color: var(--muted);
  cursor: pointer;
  transition: border-color var(--speed) var(--ease), color var(--speed) var(--ease), background var(--speed) var(--ease);
}

.filter-pill.is-active {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(88, 246, 255, 0.08);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  perspective: 900px;
}

.project-card {
  padding: 22px;
  display: grid;
  gap: 14px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-soft);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.project-card:hover {
  transform: translateY(-6px) rotateX(2deg);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.45);
}

.project-card[hidden] {
  display: none;
}

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

.tags span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  color: var(--muted);
}

.card-actions {
  display: flex;
  gap: 10px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.skill-card {
  padding: 22px;
  display: grid;
  gap: 16px;
}

.progress {
  display: grid;
  gap: 8px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 1s var(--ease);
}

.testimonials-marquee {
  overflow: hidden;
  position: relative;
}

.testimonials-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: testimonialsScroll 28s linear infinite;
}

.testimonial-card {
  padding: 20px;
  display: grid;
  gap: 14px;
  width: 320px;
  flex: 0 0 auto;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  color: var(--text);
  font-weight: 600;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-name {
  margin: 0;
  font-size: 1rem;
}

.testimonial-role {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.testimonial-rating {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  color: #fbbc05;
  font-size: 0.85rem;
}


.testimonial-quote {
  margin: 0;
  color: var(--muted);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.post-card {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.post-title {
  margin: 0;
}

.post-title a {
  text-decoration: none;
}

.post-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}

.post-excerpt {
  color: var(--muted);
}

.post-content {
  padding: 24px;
  color: var(--muted);
}

.post-content img {
  max-width: 100%;
  height: auto;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--text);
}

.pagination {
  margin-top: 24px;
  display: flex;
  gap: 10px;
}

.pagination .page-numbers {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
  color: var(--muted);
}

.pagination .page-numbers.current {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(88, 246, 255, 0.1);
}

.contact-card {
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  font-size: 0.85rem;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  background: rgba(8, 14, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-sans);
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.form-field input.is-error,
.form-field textarea.is-error {
  border-color: rgba(255, 100, 100, 0.6);
  box-shadow: 0 0 0 1px rgba(255, 100, 100, 0.3);
}

.form-note {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 140, 140, 0.9);
  opacity: 0;
  transition: opacity var(--speed) var(--ease);
}

.contact-form.has-errors .form-note {
  opacity: 1;
}

.form-success,
.form-error {
  margin: 0;
  font-size: 0.9rem;
}

.form-success {
  color: #7ef9c8;
}

.form-error {
  color: rgba(255, 140, 140, 0.95);
}

.social-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.contact-info {
  display: grid;
  gap: 8px;
  margin-bottom: 6px;
}

.contact-info a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}

.contact-info i {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.social-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(88, 246, 255, 0.3);
}

.social-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-group a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
  text-decoration: none;
}

.social-group a:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(88, 246, 255, 0.3);
}

.social-group svg {
  width: 18px;
  height: 18px;
}

.social-group i {
  font-size: 1rem;
}

.social-large a {
  width: 54px;
  height: 54px;
  border-radius: 16px;
}

.social-large i {
  font-size: 1.3rem;
}

.social-section .social-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
  align-items: center;
}

.social-section p {
  color: var(--muted);
}

.social-facebook {
  color: #1877f2;
  border-color: rgba(24, 119, 242, 0.4);
  background: rgba(24, 119, 242, 0.12);
}

.social-instagram {
  color: #e1306c;
  border-color: rgba(225, 48, 108, 0.4);
  background: rgba(225, 48, 108, 0.12);
}

.social-linkedin {
  color: #0a66c2;
  border-color: rgba(10, 102, 194, 0.4);
  background: rgba(10, 102, 194, 0.12);
}

.social-github {
  color: #cbd5f5;
  border-color: rgba(203, 213, 245, 0.35);
  background: rgba(203, 213, 245, 0.1);
}

.social-whatsapp {
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.4);
  background: rgba(37, 211, 102, 0.12);
}

.footer-contact {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.footer-contact div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-contact a {
  color: inherit;
  text-decoration: none;
}

.footer-contact i {
  color: var(--accent);
}

.pulse-cta {
  position: relative;
  overflow: hidden;
}

.pulse-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: relative;
  isolation: isolate;
}

.pulse-inner::before {
  content: "";
  position: absolute;
  inset: -120px;
  background: radial-gradient(circle at var(--pulse-x, 70%) var(--pulse-y, 20%), rgba(88, 246, 255, 0.28), transparent 60%);
  opacity: 0.9;
  z-index: -1;
  transition: opacity var(--speed) var(--ease);
}

.pulse-copy {
  max-width: 520px;
}

.pulse-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pulse-orb {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  right: 12%;
  top: 10%;
  background: radial-gradient(circle, rgba(178, 136, 255, 0.35), transparent 70%);
  filter: blur(6px);
  animation: floatGlow 9s ease-in-out infinite;
  pointer-events: none;
}

.site-footer {
  padding: 40px 18px 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 0.7fr);
  gap: 20px;
  align-items: center;
}

.footer-brand p {
  color: var(--muted);
  margin: 8px 0 0;
}

.footer-title {
  font-weight: 700;
  letter-spacing: 0.4px;
}

.footer-links {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.footer-links a {
  text-decoration: none;
  color: inherit;
}

.footer-bottom {
  max-width: 1200px;
  margin: 18px auto 0;
  padding: 0 18px;
  color: var(--muted);
  text-align: left;
}

.testimonials-section .section-heading,
.testimonials-marquee,
.social-section .social-inner {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.is-loaded .hero-content {
  animation: heroIn 720ms var(--ease) both;
}

body.is-loaded .hero-card {
  animation: heroIn 820ms var(--ease) both 120ms;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroShake {
  0% {
    transform: translateX(0) rotate(0deg);
  }
  45% {
    transform: translateX(0) rotate(0deg);
  }
  50% {
    transform: translateX(-3px) rotate(-0.8deg);
  }
  55% {
    transform: translateX(3px) rotate(0.8deg);
  }
  60% {
    transform: translateX(-2px) rotate(-0.5deg);
  }
  65% {
    transform: translateX(2px) rotate(0.4deg);
  }
  70% {
    transform: translateX(0) rotate(0deg);
  }
  100% {
    transform: translateX(0) rotate(0deg);
  }
}

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

@keyframes toolkitShake {
  0%,
  85%,
  100% {
    transform: translateX(0);
  }
  88% {
    transform: translateX(-3px);
  }
  92% {
    transform: translateX(3px);
  }
  96% {
    transform: translateX(-2px);
  }
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(18px);
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

  .projects-grid,
  .skills-grid,
  .posts-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .pulse-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .upload-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .nav-desktop,
  .cta-button {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 60px 0;
  }

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

  .projects-grid,
  .skills-grid,
  .posts-grid,
  .portfolio-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .social-section .social-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .site-header {
    top: 12px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .stats {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .testimonials-track {
    animation: none;
  }
}

