/* =======================================================================
   JASIM DIGITAL MARKETING — STYLESHEET
   Table of contents:
   1. Design tokens (CSS variables)
   2. Reset & base
   3. Utility / layout
   4. Header & navigation
   5. Hero section
   6. Section shared styles
   7. About section
   8. Services & Why Choose Me cards
   9. Skills section
   10. Education timeline
   11. Testimonials slider
   12. FAQ accordion
   13. Contact section & form
   14. Footer
   15. Back to top button
   16. Animations
   17. Reduced motion & accessibility
   18. Responsive breakpoints
   ======================================================================= */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Core palette: dark navy + white + blue-violet gradient accent */
  --navy-950: #0a0f1e;
  --navy-900: #10182c;
  --navy-800: #182240;
  --white: #ffffff;
  --ink: #1c2333;
  --slate: #5b6478;
  --slate-light: #8891a5;
  --line: #e7e9f2;
  --surface: #f7f8fc;
  --surface-2: #eef1fb;

  --blue: #3d5ff5;
  --violet: #8a4fe8;
  --gradient: linear-gradient(135deg, #3d5ff5 0%, #8a4fe8 100%);
  --gradient-soft: linear-gradient(135deg, rgba(61, 95, 245, 0.10), rgba(138, 79, 232, 0.10));
  --gradient-text: linear-gradient(135deg, #4f6bf7 0%, #9a5cf0 100%);

  /* Typography */
  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Radii & shadows */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(16, 24, 44, 0.06);
  --shadow-md: 0 12px 30px rgba(16, 24, 44, 0.10);
  --shadow-lg: 0 24px 60px rgba(16, 24, 44, 0.16);

  /* Layout */
  --container-width: 1180px;
  --header-height: 76px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.2s;
  --dur-med: 0.45s;
  --dur-slow: 0.8s;
}

/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy-950);
  margin: 0;
  line-height: 1.2;
}

p { margin: 0; }

input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--violet); }

/* Selection styling */
::selection { background: var(--violet); color: var(--white); }

/* Visible focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-950);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

.noscript-banner {
  background: #fff3cd;
  color: #664d03;
  text-align: center;
  padding: 12px 20px;
  font-size: 0.9rem;
}

/* ---------- 3. UTILITY / LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }
.section-tinted { background: var(--surface); }

.section-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-heading {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 700;
  max-width: 720px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(61, 95, 245, 0.28);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(61, 95, 245, 0.36);
}
.btn-secondary {
  background: var(--white);
  color: var(--navy-950);
  border: 1.5px solid var(--line);
}
.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-3px);
}
.btn-full { width: 100%; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-soft);
  color: var(--blue);
  margin-bottom: 20px;
  flex-shrink: 0;
}

/* ---------- 4. HEADER & NAVIGATION ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), height var(--dur-fast) var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  height: 68px;
}

.navbar {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy-950);
}
.nav-logo-accent {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-menu { display: flex; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  display: inline-block;
  padding: 10px 16px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: 100px;
  transition: color var(--dur-fast) ease, background var(--dur-fast) ease;
  position: relative;
}
.nav-link:hover { color: var(--blue); }
.nav-link.active {
  color: var(--blue);
  background: var(--gradient-soft);
}
.nav-link-cta {
  background: var(--gradient);
  color: var(--white) !important;
  font-weight: 600;
  margin-left: 8px;
}
.nav-link-cta:hover { color: var(--white) !important; opacity: 0.92; }
.nav-link-cta.active { background: var(--gradient); color: var(--white) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  z-index: 502;
}
.nav-toggle-bar {
  width: 24px;
  height: 2.5px;
  background: var(--navy-950);
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.nav-overlay {
  display: none;
}

/* ---------- 5. HERO SECTION ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-height) + 64px) 0 100px;
  overflow: hidden;
  background: linear-gradient(180deg, #fbfcff 0%, #ffffff 60%);
}

.hero-bg-shape {
  position: absolute;
  top: -20%;
  right: -15%;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: var(--gradient-soft);
  border-radius: 50%;
  filter: blur(10px);
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 100px;
  background: var(--gradient-soft);
  color: var(--blue);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 22px;
}

.hero-heading {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--slate);
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}
.hero-social-label {
  font-size: 0.85rem;
  color: var(--slate-light);
  font-weight: 500;
}
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-900);
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.social-icon:hover {
  background: var(--gradient);
  color: var(--white);
  border-color: transparent;
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.stat-badge {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy-950);
}
.stat-label {
  font-size: 0.82rem;
  color: var(--slate-light);
}

/* --- Hero visual: portrait + signal rings + orbit icons (signature element) --- */
.hero-visual {
  display: flex;
  justify-content: center;
}

.portrait-frame {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 4 / 5;
}

.signal-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(61, 95, 245, 0.28);
  pointer-events: none;
}
.signal-ring-1 { inset: -22px; animation: spin-slow 40s linear infinite; }
.signal-ring-2 { inset: -46px; border-color: rgba(138, 79, 232, 0.2); animation: spin-slow 60s linear infinite reverse; }

.portrait-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50% 50% 46% 46% / 55% 55% 45% 45%;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  background: var(--surface-2);
}

.orbit-icon {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border-radius: 100px;
  padding: 10px 16px 10px 12px;
  box-shadow: var(--shadow-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--navy-950);
  animation: float-icon 5s ease-in-out infinite;
}
.orbit-icon svg { color: var(--blue); flex-shrink: 0; }
.orbit-icon-seo { top: 4%; left: -8%; animation-delay: 0s; }
.orbit-icon-ads { top: 14%; right: -12%; animation-delay: 1.1s; }
.orbit-icon-meta { bottom: 16%; left: -14%; animation-delay: 2.2s; }
.orbit-icon-analytics { bottom: 2%; right: -6%; animation-delay: 3.3s; }

/* ---------- 6. SECTION SHARED STYLES (see .section above) ---------- */

/* ---------- 7. ABOUT SECTION ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-text p {
  color: var(--slate);
  margin-bottom: 20px;
  font-size: 1.02rem;
}
.about-text p:last-child { margin-bottom: 0; }

.about-info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.info-list { margin: 0; }
.info-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.info-row:first-child { padding-top: 0; }
.info-row:last-child { border-bottom: none; padding-bottom: 0; }
.info-row dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-light);
  font-weight: 600;
}
.info-row dd {
  margin: 0;
  font-weight: 600;
  color: var(--navy-950);
  font-family: var(--font-display);
  font-size: 0.98rem;
}
.info-row-availability dd {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1b9c63;
}
.availability-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1fbf75;
  box-shadow: 0 0 0 4px rgba(31, 191, 117, 0.18);
  flex-shrink: 0;
}

/* ---------- 8. SERVICES / WHY CHOOSE ME CARDS ---------- */
.card-grid {
  display: grid;
  gap: 28px;
}
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }

.service-card, .reason-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
}
.service-card:hover, .reason-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card h3, .reason-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}
.service-card p, .reason-card p {
  color: var(--slate);
  font-size: 0.98rem;
}
.reason-card {
  position: relative;
  padding-top: 36px;
}
.reason-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 32px;
  width: 36px;
  height: 4px;
  border-radius: 4px;
  background: var(--gradient);
}

/* ---------- 9. SKILLS SECTION ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.skill-category {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.skill-category-title {
  font-size: 1.1rem;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--surface-2);
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skill-tags li {
  background: var(--gradient-soft);
  color: var(--navy-900);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 100px;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.skill-tags li:hover {
  background: var(--gradient);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---------- 10. EDUCATION TIMELINE ---------- */
.timeline {
  position: relative;
  max-width: 760px;
  padding-left: 36px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 7px;
  width: 2px;
  background: var(--line);
}
.timeline-item {
  position: relative;
  padding-bottom: 44px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute;
  top: 4px;
  left: -36px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 5px var(--surface);
}
.timeline-content h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.timeline-meta {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 10px;
}
.timeline-content p:not(.timeline-meta) {
  color: var(--slate);
}

/* ---------- 11. TESTIMONIALS SLIDER ---------- */
.testimonial-slider {
  max-width: 760px;
  margin: 0 auto;
  overflow: hidden;
}
.testimonial-track {
  display: flex;
  transition: transform var(--dur-med) var(--ease);
}
.testimonial-card {
  flex: 0 0 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px;
  margin: 4px;
  text-align: center;
}
.testimonial-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 16px;
  font-size: 1.02rem;
}
.testimonial-card blockquote {
  margin: 0;
}
.testimonial-card blockquote p:last-child {
  font-size: 1.08rem;
  color: var(--navy-900);
  font-style: italic;
  line-height: 1.7;
}
.testimonial-card figcaption {
  margin-top: 20px;
  color: var(--slate-light);
  font-weight: 600;
  font-size: 0.9rem;
}
.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}
.testimonial-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-900);
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.testimonial-btn:hover {
  background: var(--gradient);
  color: var(--white);
  border-color: transparent;
}
.testimonial-dots {
  display: flex;
  gap: 10px;
}
.testimonial-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
  transition: background var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.testimonial-dot.active {
  background: var(--gradient);
  transform: scale(1.25);
}

/* ---------- 12. FAQ ACCORDION ---------- */
.faq-list {
  max-width: 800px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-question { margin: 0; }
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy-950);
}
.faq-icon {
  flex-shrink: 0;
  color: var(--blue);
  transition: transform var(--dur-fast) var(--ease);
}
.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-med) var(--ease), padding var(--dur-med) var(--ease);
}
.faq-answer p {
  color: var(--slate);
  padding: 0 4px 22px;
}

/* ---------- 13. CONTACT SECTION & FORM ---------- */
.contact-intro {
  color: var(--slate);
  max-width: 760px;
  font-size: 1.02rem;
  margin-bottom: 48px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: transparent;
}
.contact-card .card-icon { margin-bottom: 0; width: 44px; height: 44px; }
.contact-card-label {
  display: block;
  font-size: 0.78rem;
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.contact-card-value {
  display: block;
  font-weight: 600;
  color: var(--navy-950);
  font-family: var(--font-display);
  font-size: 0.98rem;
  word-break: break-word;
}
.contact-card-static { cursor: default; }
.contact-card-static:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line);
}

.contact-form-wrapper {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: flex; flex-direction: column; gap: 8px; position: relative; }
.form-row label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-950);
}
.optional-tag { color: var(--slate-light); font-weight: 400; }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease;
  width: 100%;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  outline: none;
}
.form-row textarea { resize: vertical; min-height: 120px; }

.form-row input[aria-invalid="true"],
.form-row select[aria-invalid="true"],
.form-row textarea[aria-invalid="true"] {
  border-color: #e34b4b;
  background: #fff6f6;
}
.form-error {
  font-size: 0.82rem;
  color: #e34b4b;
  min-height: 1em;
}

.form-row-checkbox {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.form-row-checkbox label {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--slate);
}
.form-row-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--blue);
  flex-shrink: 0;
}
.form-row-checkbox .form-error { width: 100%; }

.form-success {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #eafbf2;
  color: #1b8a54;
  border: 1px solid #b7f0d1;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  animation: success-pop var(--dur-med) var(--ease);
}

/* ---------- 14. FOOTER ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.72);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr 0.85fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-desc { font-size: 0.92rem; line-height: 1.7; max-width: 320px; }
.footer-col h3 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 0.92rem;
  transition: color var(--dur-fast) ease;
}
.footer-col a:hover { color: var(--white); }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social .social-icon {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  width: 36px;
  height: 36px;
}
.footer-bottom {
  text-align: center;
  padding: 26px 0;
  font-size: 0.85rem;
}

/* ---------- 15. BACK TO TOP BUTTON ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) var(--ease), visibility var(--dur-fast);
  z-index: 400;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { transform: translateY(-4px); }

/* ---------- 16. ANIMATIONS ---------- */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes float-icon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes success-pop {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Scroll reveal: elements start hidden, JS adds .revealed via IntersectionObserver */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children within a grid slightly for a natural cascade */
.card-grid [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
.card-grid [data-reveal]:nth-child(3) { transition-delay: 0.16s; }
.card-grid [data-reveal]:nth-child(4) { transition-delay: 0.24s; }
.card-grid [data-reveal]:nth-child(5) { transition-delay: 0.32s; }
.card-grid [data-reveal]:nth-child(6) { transition-delay: 0.4s; }

/* ---------- 17. REDUCED MOTION & ACCESSIBILITY ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .signal-ring, .orbit-icon { animation: none; }
}

/* ---------- 18. RESPONSIVE BREAKPOINTS ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 12px; }
  .portrait-frame { width: min(100%, 320px); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--white);
    box-shadow: -10px 0 40px rgba(16, 24, 44, 0.14);
    padding: calc(var(--header-height) + 20px) 28px 28px;
    transform: translateX(100%);
    transition: transform var(--dur-med) var(--ease);
    z-index: 501;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav-link { padding: 14px 16px; border-radius: var(--radius-sm); }
  .nav-link-cta { margin-left: 0; text-align: center; margin-top: 12px; }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 30, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-med) ease, visibility var(--dur-med);
    z-index: 499;
  }
  .nav-overlay.open { opacity: 1; visibility: visible; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero { padding: calc(var(--header-height) + 40px) 0 72px; }
  .card-grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form-wrapper, .about-info-card { padding: 24px; }
  .testimonial-card { padding: 28px; }
  .orbit-icon { font-size: 0.72rem; padding: 8px 12px 8px 10px; }
  .orbit-icon svg { width: 16px; height: 16px; }
  .orbit-icon-seo { left: -4%; }
  .orbit-icon-ads { right: -4%; }
  .orbit-icon-meta { left: -6%; }
  .orbit-icon-analytics { right: -2%; }
  .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
  .hero-stats { gap: 20px; }
}
