/* ═══════════════════════════
   LOADING SCREEN
═══════════════════════════ */
#loading-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-base);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 24px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: 2rem; font-weight: 800;
  background: var(--gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.loader-img {
  width: 80px; height: 80px;
  filter: drop-shadow(0 0 15px var(--accent-primary));
  animation: floatAnim 3s ease-in-out infinite, glowPulse 2s infinite;
}
@keyframes floatAnim { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-15px)} }
.loader-bar-wrap {
  width: 200px; height: 3px; background: var(--bg-card);
  border-radius: 3px; overflow: hidden;
}
.loader-bar {
  height: 100%; background: var(--gradient);
  border-radius: 3px; width: 0%;
  animation: loadBar 1.8s ease forwards;
}
@keyframes loadBar { 0%{width:0%} 60%{width:75%} 100%{width:100%} }
.loader-text {
  font-size: 0.8rem; color: var(--text-muted); font-weight: 500;
  letter-spacing: 0.08em; animation: fadeRiseIn 0.5s ease;
}

/* ═══════════════════════════
   PARTICLES CANVAS
═══════════════════════════ */
#particles-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: 0.6;
}

/* ═══════════════════════════
   CUSTOM CURSOR
═══════════════════════════ */
.cursor-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-primary);
  position: fixed; z-index: 9998; pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
  box-shadow: 0 0 10px var(--accent-primary);
}
.cursor-ring {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--accent-soft);
  position: fixed; z-index: 9997; pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}
.cursor-ring.hover {
  width: 48px; height: 48px;
  border-color: var(--accent-primary);
  background: var(--accent-soft);
  opacity: 0.5;
}
/* body { cursor: none; }
a, button, input, textarea, select, .tool-card, .dash-tool-card { cursor: none; } */

/* ═══════════════════════════
   PAGE TRANSITION
═══════════════════════════ */
.page-transition {
  position: fixed; inset: 0; z-index: 9996;
  background: var(--gradient);
  transform: scaleX(0); transform-origin: left;
  pointer-events: none;
}
.page-transition.enter { animation: pageEnter 0.4s ease forwards; }
.page-transition.exit { animation: pageExit 0.4s ease forwards; }

/* ═══════════════════════════
   USAGE COUNTER BADGE
═══════════════════════════ */
.usage-counter {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 50px; padding: 4px 12px;
  font-size: 0.78rem; font-weight: 600; color: var(--accent-primary);
  margin-top: 8px;
}
.usage-counter .usage-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-primary); box-shadow: 0 0 6px var(--accent-primary);
  animation: glowPulse 2s infinite;
}

/* ═══════════════════════════
   BLOG PAGE
═══════════════════════════ */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 20px; margin-top: 44px;
}
.blog-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: var(--transition); text-decoration: none; color: inherit;
  display: block;
}
.blog-card:hover { transform: translateY(-7px) scale(1.012); border-color: var(--accent-soft); box-shadow: var(--shadow-hover); }
.blog-card-img {
  height: 160px; display: flex; align-items: center; justify-content: center;
  font-size: 4rem; position: relative; overflow: hidden;
}
.blog-card-body { padding: 22px; }
.blog-tag {
  font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 8px;
  background: var(--accent-soft); border: 1px solid var(--border);
  color: var(--accent-primary); display: inline-block; margin-bottom: 10px;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.blog-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3; color: var(--text-head); }
.blog-excerpt { font-size: 0.87rem; color: var(--text-body); font-weight: 300; line-height: 1.6; }
.blog-meta { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 0.78rem; color: var(--text-muted); }

/* ═══════════════════════════
   CONTACT PAGE
═══════════════════════════ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  margin-top: 44px; align-items: start;
}
.contact-info-item {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 22px;
}
.contact-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.contact-form {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px; backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.contact-form textarea {
  width: 100%; min-height: 120px; background: var(--bg-base);
  border: 1px solid var(--border); border-radius: 9px;
  padding: 12px 15px; color: var(--text-body);
  font-family: var(--font-body); font-size: 0.93rem;
  resize: vertical; outline: none; transition: var(--transition);
}
.contact-form textarea:focus { border-color: var(--accent-primary); box-shadow: 0 0 0 3.5px var(--accent-soft); }
.contact-form textarea::placeholder { color: var(--text-muted); }

/* ═══════════════════════════
   NEW TOOL PAGES
═══════════════════════════ */
.translator-grid {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px;
  align-items: start; margin-top: 16px;
}
.swap-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-primary); border: none; cursor: pointer;
  font-size: 1.1rem; margin-top: 32px; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
  color: white;
}
.swap-btn:hover { transform: rotate(180deg) scale(1.1); box-shadow: var(--glow); }

.resume-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.resume-form .full { grid-column: 1/-1; }
