/* ── Premium polish — site-wide cohesion ──────────────────── */
:root {
  --accent: #667eea;
  --accent-2: #a78bfa;
  --accent-mint: #34d399;
  --surface: rgba(255, 255, 255, 0.92);
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 40px rgba(15, 23, 42, 0.06);
  --shadow-card-hover: 0 20px 50px rgba(102, 126, 234, 0.12);
}

/* Skip link */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Page canvas */
body {
  background:
    radial-gradient(ellipse 120% 80% at 0% -20%, rgba(102, 126, 234, 0.09) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(167, 139, 250, 0.07) 0%, transparent 45%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%) !important;
}

body.dark-mode {
  background:
    radial-gradient(ellipse 100% 70% at 0% 0%, rgba(102, 126, 234, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 100% 100%, rgba(16, 185, 129, 0.06) 0%, transparent 45%),
    linear-gradient(180deg, #0a0f1e 0%, #0f172a 50%, #0a0f1e 100%) !important;
  color: #e2e8f0;
}

/* Main rhythm */
.main-layout {
  padding: 2.5rem 1.5rem 3rem;
}

.content {
  gap: 2rem;
}

/* Section labels — unified pill */
.card > .section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(102, 126, 234, 0.08);
  border: 1px solid rgba(102, 126, 234, 0.15);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

body.dark-mode .card > .section-label {
  color: #a5b4fc;
  background: rgba(102, 126, 234, 0.15);
  border-color: rgba(167, 139, 250, 0.22);
}

/* Section headings */
.card > h2 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.65rem !important;
  letter-spacing: -0.02em;
}

.card > h2 > i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1rem !important;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(167, 139, 250, 0.12));
  color: var(--accent) !important;
  -webkit-text-fill-color: var(--accent) !important;
  flex-shrink: 0;
}

body.dark-mode .card > h2 > i {
  background: rgba(102, 126, 234, 0.2);
  color: #a5b4fc !important;
  -webkit-text-fill-color: #a5b4fc !important;
}

/* Cards — static accent bar (animated bar disabled for performance) */
.card::after {
  height: 2px;
  opacity: 0.85;
  animation: none;
}

.card {
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-card);
  backdrop-filter: none;
}

body.dark-mode .card {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(102, 126, 234, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* About */
.about-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #475569;
  margin: 0 0 1.25rem;
  padding-left: 0.85rem;
  border-left: 3px solid var(--accent);
}

body.dark-mode .about-lead {
  color: #94a3b8;
}

.highlight-item {
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  border: 1px solid transparent;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.highlight-item:hover {
  background: rgba(102, 126, 234, 0.06);
  border-color: rgba(102, 126, 234, 0.12);
  transform: translateX(4px);
}

body.dark-mode .highlight-item:hover {
  background: rgba(102, 126, 234, 0.1);
}

/* Timeline */
.timeline-item .timeline-content {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-item:hover .timeline-content {
  transform: translateX(4px);
}

.timeline-dot {
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

/* Contact — premium block */
.contact-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(102, 126, 234, 0.06) 0%, rgba(167, 139, 250, 0.04) 100%),
    var(--surface) !important;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.contact-desc {
  font-size: 1.02rem !important;
  line-height: 1.7 !important;
}

.contact-form-panel {
  position: relative;
  z-index: 1;
}

#contact-form button {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  width: 100%;
  cursor: pointer;
}

/* Site footer only (not blockquote footer inside testimonials) */
body > footer {
  margin-top: 1rem;
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%) !important;
  border-top: 1px solid rgba(102, 126, 234, 0.2);
  padding: 2.5rem 1.5rem !important;
}

body > footer .logo,
body > footer .logo span {
  background: linear-gradient(135deg, #e2e8f0, #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body > footer .footer-tagline {
  color: rgba(148, 163, 184, 0.9) !important;
}

body > footer .footer-copy {
  color: rgba(148, 163, 184, 0.65) !important;
}

body > footer .footer-nav a {
  color: rgba(203, 213, 225, 0.75) !important;
}

body > footer .footer-nav a:hover {
  color: #a5b4fc !important;
}

body > footer .footer-social-link {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #c7d2fe !important;
}

body > footer .footer-social-link:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  color: #fff !important;
}

/* Section intro copy */
.section-intro {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #64748b;
  max-width: 52ch;
  margin-bottom: 1.35rem;
}

body.dark-mode .section-intro {
  color: #94a3b8;
}

/* Testimonials / clients / github — elevated cards */
.testimonial-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 3rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: rgba(102, 126, 234, 0.12);
  pointer-events: none;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.client-card,
.github-card {
  border-radius: var(--radius-md);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.25s ease;
}

.client-card:hover,
.github-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.github-card--profile {
  background: linear-gradient(145deg, rgba(102, 126, 234, 0.08), rgba(167, 139, 250, 0.06)) !important;
  border-color: rgba(102, 126, 234, 0.2) !important;
}

/* Header — sharper frosted bar on scroll */
header.scrolled {
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
}

.scroll-to-top {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  border: none !important;
  box-shadow: 0 8px 28px rgba(102, 126, 234, 0.35);
}

/* Hero polish */
.hero-scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  animation: hintBounce 2.5s ease-in-out infinite;
}

.hero-scroll-hint i {
  font-size: 1rem;
}

@keyframes hintBounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

.floating-icons .float-icon {
  opacity: 0.35;
}

.stat-card {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Platform / cert grids inside cards */
.skill-box,
.cert-card {
  border-radius: var(--radius-md);
}

/* Focus rings */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Projects section spacing in main */
.projects-section {
  margin: 0;
}

@media (max-width: 768px) {
  .main-layout {
    padding: 1.5rem 1rem 2rem;
  }

  .card {
    padding: 1.5rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-hint {
    animation: none;
  }
}
