@font-face {
  font-family: 'Vazir';
  src: url('../fonts/Vazir.woff2') format('woff2'), url('../fonts/Vazir.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazir';
  src: url('../fonts/Vazir-Bold.woff2') format('woff2'), url('../fonts/Vazir-Bold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --bg-primary: #0b0b10;
  --bg-secondary: rgba(20, 20, 28, 0.7);
  --bg-card: rgba(26, 26, 36, 0.8);
  --text-primary: #ffffff;
  --text-secondary: #a0a0b8;
  --accent: #ffffff;
  --accent-glow: rgba(255, 255, 255, 0.4);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-radius: 18px;
  --spacing: 48px;
  --header-height: 72px;
  --header-bg: rgba(10, 10, 15, 0.7);
  --transition: 0.35s cubic-bezier(0.2, 0, 0, 1);
  --z-header: 1000;
  --z-hello: 10; --z-skills: 20; --z-about: 30; --z-tools: 40; --z-projects: 50; --z-footer: 60;
  --z-card-1: 2; --z-card-2: 3; --z-card-3: 4; --z-card-4: 5;
  --z-sticky-title: 1;
}

[data-theme="light"] {
  --bg-primary: #f9fafb;
  --bg-secondary: rgba(255, 255, 255, 0.8);
  --bg-card: rgba(255, 255, 255, 0.9);
  --text-primary: #1a1a1a;
  --text-secondary: #4b5563;
  --accent: #1a1a1a;
  --accent-glow: rgba(0, 0, 0, 0.1);
  --border-color: rgba(0, 0, 0, 0.06);
  --header-bg: rgba(249, 250, 251, 0.8);
}

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

/* ========== رفع اخطار h1 (MDN توصیه می‌کند هر دو margin-block و font-size را تعریف کنید) ========== */
h1 {
  margin-block: 0.67em;
  font-size: 2em;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Vazir', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  font-size: 1.05rem;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

@media (hover: none) and (pointer: coarse) {
  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }
}

/* ========== CURSOR ========== */
.cursor {
  position: fixed; width: 8px; height: 8px;
  background: var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.3s;
  mix-blend-mode: difference;
}
.cursor-follower {
  position: fixed; width: 40px; height: 40px;
  border: 2px solid var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: 0.15s ease-out, border-color 0.3s;
  mix-blend-mode: difference;
}

/* ========== WIREFRAME SHAPES ========== */
.wireframe-shape {
  position: fixed; z-index: -1;
  background-repeat: no-repeat; background-position: center;
  background-size: contain;
  transition: transform 0.1s linear;
  will-change: transform;
}
.wf-cube { left: 4%; top: 22%; width: 130px; height: 130px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='30,20 70,20 70,60 30,60' fill='none' stroke='white' stroke-width='1.8'/%3E%3Cpolygon points='30,20 50,5 90,5 70,20' fill='none' stroke='white' stroke-width='1.8'/%3E%3Cline x1='70' y1='20' x2='90' y2='5' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E"); }
.wf-prism { right: 6%; top: 55%; width: 140px; height: 140px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='25,15 75,15 90,55 10,55' fill='none' stroke='white' stroke-width='1.8'/%3E%3Cline x1='25' y1='15' x2='10' y2='55' stroke='white' stroke-width='1.5'/%3E%3Cline x1='25' y1='15' x2='50' y2='5' stroke='white' stroke-width='1.5'/%3E%3Cline x1='75' y1='15' x2='50' y2='5' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E"); }
.wf-cylinder { left: 12%; bottom: 16%; width: 120px; height: 150px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120'%3E%3Cellipse cx='50' cy='20' rx='35' ry='12' fill='none' stroke='white' stroke-width='1.8'/%3E%3Cline x1='15' y1='20' x2='15' y2='80' stroke='white' stroke-width='1.8'/%3E%3Cline x1='85' y1='20' x2='85' y2='80' stroke='white' stroke-width='1.8'/%3E%3Cellipse cx='50' cy='80' rx='35' ry='12' fill='none' stroke='white' stroke-width='1.8'/%3E%3C/svg%3E"); }
.wf-sphere { right: 10%; top: 18%; width: 140px; height: 140px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='45' r='32' fill='none' stroke='white' stroke-width='1.8'/%3E%3Cellipse cx='38' cy='32' rx='10' ry='22' fill='none' stroke='white' stroke-width='1.5' transform='rotate(-25 38 32)'/%3E%3Cellipse cx='62' cy='32' rx='10' ry='22' fill='none' stroke='white' stroke-width='1.5' transform='rotate(25 62 32)'/%3E%3Cellipse cx='50' cy='62' rx='20' ry='7' fill='none' stroke='white' stroke-width='1.3'/%3E%3C/svg%3E"); }

[data-theme="dark"] .wireframe-shape {
  opacity: 0.2;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.3));
}
[data-theme="light"] .wireframe-shape {
  opacity: 0.15;
  filter: invert(1) drop-shadow(0 0 15px rgba(0, 0, 0, 0.2));
}

/* ========== FOREGROUND FLOATS ========== */
.fg-floating { position: fixed; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 1; }
.fg-small-cube { position: absolute; top: 18%; right: 22%; width: 40px; height: 40px; opacity: 0.12; border: 2px solid var(--accent); animation: floatFg 14s infinite alternate ease-in-out; }
.fg-small-sphere { position: absolute; bottom: 20%; left: 14%; width: 50px; height: 50px; opacity: 0.1; border: 2px solid var(--accent); border-radius: 50%; animation: floatFg 18s infinite alternate ease-in-out; }
.fg-ring-glow { position: absolute; top: 45%; left: 8%; width: 70px; height: 70px; opacity: 0.12; border: 2px dashed var(--accent); border-radius: 50%; animation: floatFg 20s infinite alternate ease-in-out; }

@keyframes floatFg {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(10px, -12px) rotate(6deg); }
}

/* ========== HEADER ========== */
.header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-height);
  background: var(--header-bg); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: var(--z-header);
  border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center;
  transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1);
}
.header.hidden { transform: translateY(-100%); }
.header-inner {
  width: 90%; max-width: 1400px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  direction: ltr;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px;
  z-index: 1100;
  padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.logo-link { text-decoration: none; display: flex; align-items: baseline; gap: 0; }
.logo-bardi { font-size: 1.6rem; font-weight: 900; color: var(--text-primary); letter-spacing: -0.5px; }
.logo-dev { font-size: 1.6rem; font-weight: 700; color: transparent; -webkit-text-stroke: 1.2px var(--accent); }

.nav-links { display: flex; gap: 36px; flex-wrap: wrap; }
.nav-links a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 14px; font-weight: 500; transition: var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.lang-toggle, .theme-toggle {
  background: var(--bg-card); border: 1px solid var(--border-color);
  color: var(--text-primary); border-radius: 14px;
  padding: 8px 16px; cursor: pointer; font-size: 13px; font-weight: 600;
  transition: var(--transition);
}
.lang-toggle:hover, .theme-toggle:hover { border-color: var(--accent); transform: translateY(-1px); }

html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .nav-links a { font-family: 'Vazir', sans-serif; }
html[dir="rtl"] .header-actions { flex-direction: row; }

/* ========== SECTIONS ========== */
.section-box, .footer {
  width: 80%; max-width: 1350px; margin: 0 auto 100px;
  background: var(--bg-secondary); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  position: relative; transition: opacity 0.4s ease, transform 0.4s ease;
}
.section-box.is-hidden { opacity: 0; pointer-events: none; transform: translateY(10px); }

.first-box {
  direction: ltr;
  border-radius: 36px 36px 0 0;
  padding: clamp(60px, 8vw, 80px) var(--spacing) clamp(40px, 6vw, 60px);
  margin-top: calc(var(--header-height) + 20px);
  display: flex; align-items: center; gap: 60px;
  min-height: auto; border: none;
}
.sharp-corners {
  border-radius: 0 !important;
  padding: clamp(40px, 6vw, 75px) var(--spacing);
  min-height: auto; display: flex; flex-direction: column; overflow: visible;
}
#hello    { position: sticky; top: var(--header-height); padding-bottom: 28vh; z-index: var(--z-hello); }
#skills   { z-index: var(--z-skills); }
#about    { position: sticky; top: calc(var(--header-height) + 20px); padding-bottom: 28vh; z-index: var(--z-about); }
#software { position: sticky; top: calc(var(--header-height) + 30px); padding-bottom: 28vh; z-index: var(--z-tools); }
#projects { z-index: var(--z-projects); }
#donate   { z-index: var(--z-footer); }
.footer {
  border-radius: 0 0 36px 36px;
  padding: clamp(40px, 6vw, 65px) var(--spacing);
  margin-bottom: 30px; z-index: var(--z-footer); text-align: center;
}

/* ========== HERO ========== */
.hero-content { flex: 1; direction: ltr; }

.hero-title {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 10px;
  line-height: 1;
}

.hero-bardi {
  font-size: clamp(72px, 12vw, 120px);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -2px;
}

.hero-dev {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
}

.hero-sub { font-size: clamp(1rem, 2vw, 1.3rem); color: var(--text-secondary); margin: clamp(16px, 2vw, 24px) 0 clamp(20px, 3vw, 36px); max-width: 520px; }
.hero-cta { display: flex; gap: 16px; }
.hero-visual { flex: 1; display: flex; justify-content: center; align-items: center; position: relative; height: clamp(200px, 35vw, 360px); }

.sphere-morph {
  width: clamp(160px, 25vw, 300px); height: clamp(160px, 25vw, 300px);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
  border-radius: 50%; animation: morphSphere 8s infinite alternate ease-in-out;
}
[data-theme="light"] .sphere-morph { background: radial-gradient(circle, rgba(0, 0, 0, 0.15), transparent 70%); }
@keyframes morphSphere {
  0% { border-radius: 50%; transform: scale(1) rotate(0deg); }
  100% { border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%; transform: scale(1.1) rotate(20deg); }
}
.orbit-ring {
  position: absolute; width: clamp(140px, 20vw, 220px); height: clamp(140px, 20vw, 220px);
  border: 2px dashed var(--accent); border-radius: 50%; animation: orbit 12s linear infinite;
}
@keyframes orbit { to { transform: rotate(360deg); } }

/* ========== BUTTONS ========== */
.btn {
  display: inline-block; padding: clamp(12px, 2vw, 15px) clamp(24px, 4vw, 34px);
  border-radius: 14px; font-weight: 700; font-size: clamp(0.9rem, 1.5vw, 1rem);
  text-decoration: none; transition: var(--transition);
}
.btn-primary { background: var(--accent); color: var(--bg-primary); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 28px var(--accent-glow); }
.btn-outline { border: 2px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--bg-primary); }

/* ========== TITLES ========== */
.section-title { font-size: clamp(28px, 6vw, 52px); font-weight: 700; text-align: center; margin-bottom: clamp(30px, 5vw, 48px); color: var(--text-primary); }
.cards-container .section-title { position: sticky; top: calc(var(--header-height) + 10px); z-index: var(--z-sticky-title); margin-bottom: 0; padding: 12px 0 8px; }

/* ========== HELLO ========== */
.hello-container { text-align: center; max-width: 860px; margin: 0 auto; }
.hello-title { font-size: clamp(30px, 7vw, 58px); background: linear-gradient(130deg, var(--text-primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 20px; }
.hello-text { font-size: clamp(1rem, 2.5vw, 1.5rem); color: var(--text-secondary); opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.hello-text.visible { opacity: 1; transform: translateY(0); }

/* ========== CARDS ========== */
.cards-container { max-width: 980px; margin: 0 auto; padding-bottom: 35vh; }
#skills .cards-container { padding-bottom: 10vh; }
#projects .cards-container { padding-bottom: 15vh; }

.skill-card, .project-card {
  position: sticky; background: var(--bg-card); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px; margin-bottom: 30px;
  border: 1px solid var(--border-color);
  transition: var(--transition); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}
.skill-card[data-index="1"], .project-card[data-index="1"] { top: calc(var(--header-height) + 115px); z-index: var(--z-card-1); }
.skill-card[data-index="2"], .project-card[data-index="2"] { top: calc(var(--header-height) + 155px); z-index: var(--z-card-2); }
.skill-card[data-index="3"], .project-card[data-index="3"] { top: calc(var(--header-height) + 195px); z-index: var(--z-card-3); }
.skill-card[data-index="4"], .project-card[data-index="4"] { top: calc(var(--header-height) + 235px); z-index: var(--z-card-4); }
.skill-card:last-child, .project-card:last-child { margin-bottom: 0; }
.skill-card:hover, .project-card:hover { transform: translateY(-6px) scale(1.02); border-color: var(--accent); box-shadow: 0 20px 40px -10px var(--accent-glow); }
.full-width-img { width: 100%; height: clamp(200px, 30vw, 340px); overflow: hidden; flex-shrink: 0; }
.full-width-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.skill-card:hover .full-width-img img, .project-card:hover .full-width-img img { transform: scale(1.04); }
.card-content { padding: clamp(20px, 4vw, 34px) clamp(22px, 4vw, 38px) clamp(26px, 4vw, 44px); flex: 1; display: flex; flex-direction: column; }
.card-content h3 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 12px; font-weight: 700; }
.card-content p { font-size: clamp(14px, 2vw, 17px); color: var(--text-secondary); line-height: 1.8; margin-bottom: 20px; }
.project-link { display: inline-block; margin-top: auto; align-self: flex-start; padding: clamp(10px, 2vw, 12px) clamp(22px, 3vw, 28px); border: 1px solid var(--accent); color: var(--accent); border-radius: 14px; font-weight: 700; font-size: clamp(13px, 2vw, 15px); text-decoration: none; transition: var(--transition); }
.project-link:hover { background: var(--accent); color: var(--bg-primary); }

/* ========== ABOUT ========== */
.about-grid { max-width: 800px; margin: 0 auto; }
.about-grid p { font-size: clamp(0.95rem, 2vw, 1.1rem); color: var(--text-secondary); margin-bottom: 1.5rem; line-height: 2; }

/* ========== TOOLS ========== */
.tags-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(14px, 2.5vw, 24px); max-width: 900px; margin: 0 auto; padding: clamp(10px, 2vw, 20px) 0; }
.tool-logo { display: inline-flex; align-items: center; justify-content: center; width: clamp(60px, 12vw, 76px); height: clamp(60px, 12vw, 76px); border-radius: 20px; background-color: var(--text-primary); border: 1px solid var(--border-color); -webkit-mask-size: 60% auto; mask-size: 60% auto; -webkit-mask-position: center; mask-position: center; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; transition: var(--transition); position: relative; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); }
.tool-logo:hover { border-color: var(--accent); transform: translateY(-6px); box-shadow: 0 12px 24px var(--accent-glow); }
.tool-logo::after { content: attr(data-tooltip); position: absolute; bottom: -28px; left: 50%; transform: translateX(-50%); background: var(--bg-card); color: var(--text-primary); padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity 0.2s; white-space: nowrap; z-index: 5; }
.tool-logo:hover::after { opacity: 1; }

.tool-logo.maya { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20V6l4 8 4-8v14h-3v-7l-2.5 4L4 13v7z' fill='black'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20V6l4 8 4-8v14h-3v-7l-2.5 4L4 13v7z' fill='black'/%3E%3C/svg%3E"); }
.tool-logo.blender { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' stroke='black' stroke-width='2' fill='none'/%3E%3Cpath d='M9 9h6v3a3 3 0 01-3 3h-3z' fill='black'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' stroke='black' stroke-width='2' fill='none'/%3E%3Cpath d='M9 9h6v3a3 3 0 01-3 3h-3z' fill='black'/%3E%3C/svg%3E"); }
.tool-logo.unreal { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 7v10h4v-3h4v3h4V7' stroke='black' stroke-width='2' fill='none'/%3E%3Ccircle cx='14' cy='12' r='2' fill='black'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 7v10h4v-3h4v3h4V7' stroke='black' stroke-width='2' fill='none'/%3E%3Ccircle cx='14' cy='12' r='2' fill='black'/%3E%3C/svg%3E"); }
.tool-logo.unity { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon points='12,3 21,7 21,17 12,21 3,17 3,7' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon points='12,3 21,7 21,17 12,21 3,17 3,7' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E"); }
.tool-logo.zbrush { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h16' stroke='black' stroke-width='2'/%3E%3Ccircle cx='12' cy='12' r='8' stroke='black' stroke-width='2' fill='none'/%3E%3Ccircle cx='12' cy='12' r='2' fill='black'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h16' stroke='black' stroke-width='2'/%3E%3Ccircle cx='12' cy='12' r='8' stroke='black' stroke-width='2' fill='none'/%3E%3Ccircle cx='12' cy='12' r='2' fill='black'/%3E%3C/svg%3E"); }
.tool-logo.godot { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='7' width='14' height='10' rx='2' stroke='black' stroke-width='2' fill='none'/%3E%3Ccircle cx='9' cy='12' r='1.5' fill='black'/%3E%3Ccircle cx='15' cy='12' r='1.5' fill='black'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='7' width='14' height='10' rx='2' stroke='black' stroke-width='2' fill='none'/%3E%3Ccircle cx='9' cy='12' r='1.5' fill='black'/%3E%3Ccircle cx='15' cy='12' r='1.5' fill='black'/%3E%3C/svg%3E"); }
.tool-logo.cpp { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 4L2 12l6 8' stroke='black' stroke-width='2' fill='none'/%3E%3Cpath d='M16 4l6 8-6 8' stroke='black' stroke-width='2' fill='none'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 4L2 12l6 8' stroke='black' stroke-width='2' fill='none'/%3E%3Cpath d='M16 4l6 8-6 8' stroke='black' stroke-width='2' fill='none'/%3E%3C/svg%3E"); }
.tool-logo.csharp { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='18' height='18' rx='4' stroke='black' stroke-width='2' fill='none'/%3E%3Cline x1='7' y1='8' x2='7' y2='16' stroke='black' stroke-width='2'/%3E%3Cline x1='13' y1='8' x2='13' y2='16' stroke='black' stroke-width='2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='18' height='18' rx='4' stroke='black' stroke-width='2' fill='none'/%3E%3Cline x1='7' y1='8' x2='7' y2='16' stroke='black' stroke-width='2'/%3E%3Cline x1='13' y1='8' x2='13' y2='16' stroke='black' stroke-width='2'/%3E%3C/svg%3E"); }
.tool-logo.substancedesigner { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon points='12,3 19,6 19,14 12,17 5,14 5,6' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='12' cy='10' r='2.5' fill='black'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon points='12,3 19,6 19,14 12,17 5,14 5,6' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='12' cy='10' r='2.5' fill='black'/%3E%3C/svg%3E"); }
.tool-logo.substancepainter { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 18l4-5 4 5' stroke='black' stroke-width='2' fill='none'/%3E%3Ccircle cx='12' cy='10' r='3' stroke='black' stroke-width='2' fill='none'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 18l4-5 4 5' stroke='black' stroke-width='2' fill='none'/%3E%3Ccircle cx='12' cy='10' r='3' stroke='black' stroke-width='2' fill='none'/%3E%3C/svg%3E"); }
.tool-logo.moho { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 18l4-6 4 6' stroke='black' stroke-width='2' fill='none'/%3E%3Cpath d='M10 12l-4-6h8z' fill='black'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 18l4-6 4 6' stroke='black' stroke-width='2' fill='none'/%3E%3Cpath d='M10 12l-4-6h8z' fill='black'/%3E%3C/svg%3E"); }
.tool-logo.photoshop { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 6h4a2 2 0 012 2v2a2 2 0 01-2 2H9v4H7V6zm6 0v5l3-5h2l-3 5 3 5h-2l-3-5v5h-2V6h2z' fill='black'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 6h4a2 2 0 012 2v2a2 2 0 01-2 2H9v4H7V6zm6 0v5l3-5h2l-3 5 3 5h-2l-3-5v5h-2V6h2z' fill='black'/%3E%3C/svg%3E"); }
.tool-logo.marvelousdes { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 8l4-3h4l4 3v8l-4 3h-4l-4-3z' stroke='black' stroke-width='2' fill='none'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 8l4-3h4l4 3v8l-4 3h-4l-4-3z' stroke='black' stroke-width='2' fill='none'/%3E%3C/svg%3E"); }
.tool-logo.webservices { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' stroke='black' stroke-width='2' fill='none'/%3E%3Cline x1='3' y1='12' x2='21' y2='12' stroke='black' stroke-width='2'/%3E%3Cpath d='M12 3a12 12 0 010 18' stroke='black' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' stroke='black' stroke-width='2' fill='none'/%3E%3Cline x1='3' y1='12' x2='21' y2='12' stroke='black' stroke-width='2'/%3E%3Cpath d='M12 3a12 12 0 010 18' stroke='black' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); }

/* ========== DONATE ========== */
.donate-text { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-secondary); text-align: center; margin-bottom: 30px; }
.donate-cta { display: flex; justify-content: center; }

/* ========== FOOTER ========== */
.contact-btn { margin-bottom: 24px; }
.copyright { font-size: 0.8rem; color: var(--text-secondary); }

/* ========== MOBILE ========== */
@media (max-width: 768px) {
  :root { --header-height: 60px; --spacing: 24px; }
  .section-box, .footer { width: 92%; margin-bottom: 60px; }
  .first-box {
    flex-direction: column;
    gap: 30px;
    padding: calc(var(--header-height) + 20px) var(--spacing) 40px;
    align-items: flex-start;
  }
  .hero-content { width: 100%; }
  .hero-title { flex-direction: column; gap: 4px; }
  .hero-bardi { font-size: clamp(44px, 14vw, 72px); }
  .hero-dev { font-size: clamp(22px, 7vw, 36px); -webkit-text-stroke: 1.5px var(--accent); }
  .hero-sub { font-size: 1rem; margin: 16px 0 24px; }
  .hero-visual { height: 220px; margin-top: 0; align-self: center; }
  .sphere-morph { width: 140px; height: 140px; }
  .orbit-ring { width: 100px; height: 100px; }

  .hamburger { display: flex; margin-right: 12px; }
  .logo-link { margin-right: auto; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 24px;
    font-size: 16px;
    border-bottom: 1px solid var(--border-color);
  }

  .cards-container { padding-bottom: 18vh; }
  .full-width-img { height: 220px; }
  .skill-card[data-index="1"], .project-card[data-index="1"] { top: calc(var(--header-height) + 90px); }
  .skill-card[data-index="2"], .project-card[data-index="2"] { top: calc(var(--header-height) + 120px); }
  .skill-card[data-index="3"], .project-card[data-index="3"] { top: calc(var(--header-height) + 150px); }
  .skill-card[data-index="4"], .project-card[data-index="4"] { top: calc(var(--header-height) + 180px); }
  .section-title { font-size: 28px; }
  .hello-title { font-size: 32px; }
}

@media (max-width: 500px) {
  .section-box, .footer { width: 96%; margin-bottom: 50px; }
  .first-box { padding: calc(var(--header-height) + 10px) var(--spacing) 30px; gap: 20px; }
  .hero-bardi { font-size: 38px; }
  .hero-dev { font-size: 20px; }
  .hero-sub { font-size: 0.95rem; }
  .hero-visual { height: 180px; }
  .sphere-morph { width: 110px; height: 110px; }
  .orbit-ring { width: 80px; height: 80px; }
  .btn { padding: 10px 20px; font-size: 0.9rem; }
  .full-width-img { height: 180px; }
  .card-content { padding: 20px 18px 24px; }
  .card-content h3 { font-size: 20px; }
  .card-content p { font-size: 14px; }
  .skill-card[data-index="1"], .project-card[data-index="1"] { top: calc(var(--header-height) + 75px); }
  .skill-card[data-index="2"], .project-card[data-index="2"] { top: calc(var(--header-height) + 105px); }
  .skill-card[data-index="3"], .project-card[data-index="3"] { top: calc(var(--header-height) + 135px); }
  .skill-card[data-index="4"], .project-card[data-index="4"] { top: calc(var(--header-height) + 165px); }
  .hello-title { font-size: 24px; }
  .section-title { font-size: 24px; margin-bottom: 24px; }
}

@supports not (backdrop-filter: blur(20px)) {
  .header { background: rgba(10, 10, 15, 0.95); }
  .section-box, .footer { background: var(--bg-secondary); }
}