:root {
  --primary: #5b5ea6;
  --primary-light: #7c7fca;
  --primary-dark: #45478a;
  --accent: #0891b2;
  --accent-light: #22d3ee;
  --bg: #f8f9fc;
  --bg-secondary: #eef0f6;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f6fa;
  --text: #1e1e2e;
  --text-secondary: #555570;
  --text-muted: #8888a0;
  --border: #e2e4ec;
  --shadow: rgba(0, 0, 0, 0.06);
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--accent));
  --gradient-card: linear-gradient(145deg, var(--bg-card), var(--bg-secondary));
  --radius: clamp(8px, 1.2vw, 12px);
  --radius-sm: clamp(6px, 0.8vw, 8px);
  --radius-lg: clamp(12px, 1.8vw, 20px);
  --transition: 0.3s ease;
  --max-width: 1400px;
  --nav-height: clamp(52px, 6vw, 64px);
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  --font-mono: 'Cascadia Code', 'Consolas', 'Fira Code', monospace;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: clamp(14px, 1vw + 6px, 16px);
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

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

.container {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 24px);
}

/* ====== NAV ====== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(248, 249, 252, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(248, 249, 252, 0.96);
  box-shadow: 0 2px 20px var(--shadow);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 24px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: clamp(16px, 3vw, 28px);
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: clamp(0.85rem, 1.2vw, 0.92rem);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition);
  border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ====== HERO ====== */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: clamp(300px, 40vw, 550px);
  height: clamp(300px, 40vw, 550px);
  background: radial-gradient(circle, rgba(91, 94, 166, 0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -8%;
  width: clamp(250px, 35vw, 450px);
  height: clamp(250px, 35vw, 450px);
  background: radial-gradient(circle, rgba(8, 145, 178, 0.06), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: left;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(91, 94, 166, 0.08);
  border: 1px solid rgba(91, 94, 166, 0.15);
  border-radius: 50px;
  font-size: clamp(0.78rem, 1.1vw, 0.85rem);
  color: var(--primary);
  margin-bottom: clamp(16px, 2.5vw, 24px);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: clamp(14px, 2vw, 20px);
  letter-spacing: -1px;
}

.hero h1 .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--text-secondary);
  max-width: min(640px, 90%);
  margin-bottom: clamp(20px, 3vw, 32px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: clamp(10px, 1.5vw, 14px);
  flex-wrap: wrap;
  justify-content: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: clamp(9px, 1.2vw, 11px) clamp(18px, 2.5vw, 24px);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: clamp(0.85rem, 1.2vw, 0.92rem);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: var(--font-main);
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(91, 94, 166, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91, 94, 166, 0.35);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: clamp(24px, 4vw, 40px);
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: clamp(20px, 2.5vw, 28px);
  border-top: 1px solid var(--border);
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero-stat h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat p {
  color: var(--text-muted);
  font-size: clamp(0.8rem, 1vw, 0.88rem);
  margin-top: 4px;
}

/* ====== SECTION COMMON ====== */
.section {
  padding: clamp(48px, 7vw, 80px) 0;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(91, 94, 166, 0.08);
  border: 1px solid rgba(91, 94, 166, 0.12);
  border-radius: 50px;
  font-size: clamp(0.7rem, 0.9vw, 0.78rem);
  color: var(--primary);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.section-desc {
  color: var(--text-secondary);
  max-width: min(640px, 90%);
  margin: 0 auto;
  font-size: clamp(0.9rem, 1.3vw, 1rem);
}

/* ====== TECH STACK ====== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(120px, 28%), 1fr));
  gap: clamp(10px, 1.5vw, 16px);
}

.tech-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(14px, 2vw, 20px) clamp(10px, 1.2vw, 14px);
  text-align: center;
  transition: all var(--transition);
  cursor: default;
}

.tech-item:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(91, 94, 166, 0.1);
}

.tech-item .icon {
  font-size: clamp(1.5rem, 2vw, 1.8rem);
  margin-bottom: 10px;
}

.tech-item .name {
  font-weight: 600;
  font-size: clamp(0.82rem, 1vw, 0.88rem);
}

.tech-item .category {
  font-size: clamp(0.68rem, 0.8vw, 0.72rem);
  color: var(--text-muted);
  margin-top: 4px;
}

/* ====== PROJECTS ====== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.project-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(91, 94, 166, 0.1);
}

.project-cover {
  height: clamp(140px, 18vw, 180px);
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-cover .cover-icon {
  font-size: clamp(2.2rem, 3vw, 3rem);
  opacity: 0.5;
}

.project-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-card), transparent 50%);
}

.project-body {
  padding: clamp(16px, 2vw, 22px);
}

.project-body h3 {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  margin-bottom: 8px;
}

.project-body p {
  color: var(--text-secondary);
  font-size: clamp(0.82rem, 1vw, 0.88rem);
  margin-bottom: 14px;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.project-tags span {
  padding: 3px 10px;
  background: rgba(91, 94, 166, 0.08);
  border-radius: 50px;
  font-size: clamp(0.68rem, 0.8vw, 0.72rem);
  color: var(--primary);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 500;
  font-size: clamp(0.82rem, 1vw, 0.88rem);
}

.project-link:hover {
  gap: 10px;
}

/* ====== CONTACT ====== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: min(600px, 100%);
  margin: 0 auto;
}

.contact-info {
  padding: clamp(20px, 3vw, 32px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.contact-info h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  margin-bottom: 12px;
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.5vw, 14px);
  padding: clamp(10px, 1.5vw, 12px) clamp(12px, 1.8vw, 16px);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.contact-link:hover {
  border-color: var(--primary);
  background: rgba(91, 94, 166, 0.06);
}

.contact-link .link-icon {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  width: clamp(34px, 4vw, 38px);
  height: clamp(34px, 4vw, 38px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 94, 166, 0.08);
  border-radius: var(--radius-sm);
}

.contact-link .link-text {
  font-weight: 500;
  font-size: clamp(0.85rem, 1.1vw, 0.92rem);
}

.contact-link .link-label {
  font-size: clamp(0.72rem, 0.85vw, 0.78rem);
  color: var(--text-muted);
}

/* ====== FOOTER ====== */
.footer {
  border-top: 1px solid var(--border);
  padding: clamp(28px, 4vw, 40px) 0 clamp(20px, 3vw, 28px);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left .footer-logo {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.footer-left p {
  color: var(--text-muted);
  font-size: clamp(0.78rem, 0.9vw, 0.82rem);
}

.footer-links {
  display: flex;
  gap: clamp(16px, 2.5vw, 24px);
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: clamp(0.8rem, 0.95vw, 0.85rem);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: clamp(32px, 3.5vw, 36px);
  height: clamp(32px, 3.5vw, 36px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 94, 166, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: clamp(0.9rem, 1vw, 1rem);
  transition: all var(--transition);
}

.footer-social a:hover {
  border-color: var(--primary);
  background: rgba(91, 94, 166, 0.12);
  transform: translateY(-2px);
}

/* ====== PAGE HEADER ====== */
.page-header {
  padding: clamp(90px, 12vw, 120px) 0 clamp(32px, 4vw, 48px);
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(300px, 40vw, 500px);
  height: clamp(200px, 30vw, 350px);
  background: radial-gradient(circle, rgba(91, 94, 166, 0.06), transparent 70%);
  pointer-events: none;
}

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  max-width: min(480px, 90%);
  margin: 0 auto;
}

/* ====== BLOG PAGE ====== */
.blog-filters {
  display: flex;
  gap: clamp(6px, 1vw, 10px);
  margin-bottom: clamp(24px, 3vw, 32px);
  flex-wrap: wrap;
  justify-content: center;
}

.blog-filter-btn {
  padding: clamp(6px, 0.8vw, 7px) clamp(14px, 2vw, 18px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: clamp(0.78rem, 1vw, 0.82rem);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-main);
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.blog-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.blog-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(91, 94, 166, 0.08);
}

.blog-card-cover {
  height: clamp(120px, 16vw, 160px);
  background: var(--gradient-primary);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-cover .cover-icon {
  font-size: clamp(2rem, 3vw, 2.8rem);
  opacity: 0.5;
}

.blog-card-body {
  padding: clamp(16px, 2vw, 22px);
}

.blog-card-meta {
  display: flex;
  gap: 14px;
  font-size: clamp(0.72rem, 0.85vw, 0.78rem);
  color: var(--text-muted);
  margin-bottom: 10px;
}

.blog-card-body h3 {
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-card-body p {
  color: var(--text-secondary);
  font-size: clamp(0.82rem, 1vw, 0.88rem);
  line-height: 1.6;
  margin-bottom: 14px;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-card-tag {
  padding: 3px 10px;
  background: rgba(8, 145, 178, 0.08);
  border-radius: 50px;
  font-size: clamp(0.68rem, 0.8vw, 0.72rem);
  color: var(--accent);
}

.blog-card-link {
  color: var(--primary);
  font-weight: 500;
  font-size: clamp(0.78rem, 0.95vw, 0.82rem);
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-card-link:hover {
  gap: 8px;
}

/* ====== ABOUT PAGE ====== */
.about-grid {
  display: grid;
  grid-template-columns: min(280px, 40%) 1fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

.about-avatar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 28px);
  text-align: center;
}

.about-avatar .avatar {
  width: clamp(100px, 14vw, 140px);
  height: clamp(100px, 14vw, 140px);
  border-radius: 50%;
  background: var(--gradient-primary);
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
}

.about-avatar h3 {
  font-size: clamp(1.1rem, 1.4vw, 1.2rem);
  margin-bottom: 4px;
}

.about-avatar .role {
  color: var(--primary);
  font-size: clamp(0.82rem, 1vw, 0.88rem);
  margin-bottom: 18px;
}

.about-avatar .social-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.about-avatar .social-links a {
  width: clamp(30px, 3.5vw, 34px);
  height: clamp(30px, 3.5vw, 34px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 94, 166, 0.08);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.about-avatar .social-links a:hover {
  background: var(--primary);
}

.about-detail h2 {
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  margin-bottom: 14px;
}

.about-detail p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: clamp(20px, 2.5vw, 28px);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 6px;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid var(--bg);
}

.timeline-item .time {
  font-size: clamp(0.72rem, 0.85vw, 0.78rem);
  color: var(--primary);
  margin-bottom: 4px;
}

.timeline-item h4 {
  font-size: clamp(0.92rem, 1.1vw, 1rem);
  margin-bottom: 4px;
}

.timeline-item p {
  color: var(--text-muted);
  font-size: clamp(0.82rem, 1vw, 0.88rem);
  margin-bottom: 0;
}

/* ====== PROJECTS PAGE ====== */
.projects-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}

/* ====== LINKS PAGE ====== */
.links-group {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.links-group-title {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 700;
  margin-bottom: clamp(14px, 2vw, 20px);
  padding-left: 4px;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(10px, 1.5vw, 16px);
}

.link-card {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 16px);
  padding: clamp(14px, 2vw, 18px) clamp(16px, 2vw, 20px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text);
}

.link-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(91, 94, 166, 0.1);
  color: var(--text);
}

.link-card-icon {
  flex-shrink: 0;
  width: clamp(40px, 5vw, 48px);
  height: clamp(40px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.2rem, 1.5vw, 1.4rem);
  border-radius: var(--radius-sm);
}

.link-card-body {
  flex: 1;
  min-width: 0;
}

.link-card-body h3 {
  font-size: clamp(0.9rem, 1.2vw, 0.98rem);
  font-weight: 600;
  margin-bottom: 4px;
}

.link-card-body p {
  font-size: clamp(0.76rem, 0.9vw, 0.82rem);
  color: var(--text-muted);
  line-height: 1.5;
}

.link-card-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: clamp(0.82rem, 1vw, 0.9rem);
  transition: all var(--transition);
}

.link-card:hover .link-card-arrow {
  color: var(--primary);
  transform: translateX(4px);
}

/* ====== ANIMATIONS ====== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====== SCROLL TO TOP ====== */
.scroll-top {
  position: fixed;
  bottom: clamp(16px, 3vw, 28px);
  right: clamp(16px, 3vw, 28px);
  width: clamp(36px, 4vw, 40px);
  height: clamp(36px, 4vw, 40px);
  background: var(--primary);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(91, 94, 166, 0.3);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(91, 94, 166, 0.4);
}
