/* ==========================================================
   WISAXIS RESUME MAKER — RESET & BASELINE
   Normalize browser defaults for consistent cross-browser layout.
   ========================================================== */

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== TYPOGRAPHY RESET ===== */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: inherit;
  line-height: 1.2;
}

p {
  margin: 0;
}

/* ===== LINK RESET ===== */
a {
  color: inherit;
  text-decoration: none;
}

/* ===== LIST RESET ===== */
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ===== MEDIA RESET ===== */
img, video, svg {
  display: block;
  max-width: 100%;
}

/* ===== BUTTON RESET ===== */
button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

/* ===== INPUT & SELECT RESET ===== */
input, textarea, select {
  font: inherit;
  color: inherit;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1.15rem;
  padding-right: 2.5rem !important;
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  background: var(--surface-2);
  color: var(--text-main);
  border: 1px solid var(--border-default);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: var(--text-xs);
  font-weight: 700;
  cursor: pointer;
  margin-right: 12px;
  transition: all 0.2s ease;
}

input[type="file"]::file-selector-button:hover {
  background: var(--surface-3);
  border-color: var(--primary);
  color: var(--primary);
}

/* ===== MODERN CUSTOM SCROLLBARS ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ===== WORD WRAP ===== */
* {
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* ===== GPU OPTIMIZATION — Animated elements only ===== */
.cinematic-reveal,
.template-scroll-track,
.resume-template {
  will-change: transform;
}

/* ===== TOUCH OPTIMIZATION ===== */
* {
  -webkit-tap-highlight-color: transparent;
}

