/* ============================================
   SMART RESUME BUILDER — style.css
   Modern SaaS design with Light/Dark modes
============================================ */

/* ===== CSS VARIABLES ===== */
:root {
  --accent: #6C63FF;
  --accent-light: rgba(108,99,255,0.12);
  --accent-glow: rgba(108,99,255,0.35);
  --font-main: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Light Mode */
  --bg: #F8F7FF;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-input: #F3F2FF;
  --border: #E8E6FF;
  --text-primary: #1A1040;
  --text-secondary: #5B5478;
  --text-muted: #9892B5;
  --shadow: 0 4px 24px rgba(108,99,255,0.08);
  --shadow-hover: 0 8px 40px rgba(108,99,255,0.16);
  --nav-bg: rgba(255,255,255,0.85);
  --preview-bg: #F3F2FF;
}

[data-theme="dark"] {
  --bg: #0F0D1A;
  --bg-secondary: #160F2E;
  --bg-card: #1C1535;
  --bg-input: #241B3D;
  --border: #2D2250;
  --text-primary: #EDE9FF;
  --text-secondary: #A89ECF;
  --text-muted: #5E5585;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-hover: 0 8px 40px rgba(108,99,255,0.25);
  --nav-bg: rgba(15,13,26,0.9);
  --preview-bg: #160F2E;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  transition: background 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 68px;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-main);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-icon {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 0 14px var(--accent-glow);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.nav-link:hover { color: var(--accent); }

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.toggle-track {
  display: flex;
  align-items: center;
  width: 58px; height: 28px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 2px;
  transition: background 0.3s, border-color 0.3s;
  position: relative;
}

.toggle-thumb {
  width: 22px; height: 22px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  color: #fff;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 0 8px var(--accent-glow);
  position: relative;
}

.sun-icon { display: block; }
.moon-icon { display: none; }

[data-theme="dark"] .toggle-thumb { transform: translateX(30px); }
[data-theme="dark"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: block; }

/* ===== HERO SECTION ===== */
.hero {
  min-height: 92vh;
  background: var(--bg);
  position: relative;
  display: flex;
  align-items: center;
  padding: 80px 5% 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 100px; left: -150px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(16,185,129,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Hero Left */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  animation: fadeSlideUp 0.6s ease both;
}

.hero-title {
  font-family: var(--font-main);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  animation: fadeSlideUp 0.6s 0.1s ease both;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #A78BFA 50%, #60A5FA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
  animation: fadeSlideUp 0.6s 0.2s ease both;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  animation: fadeSlideUp 0.6s 0.3s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  animation: fadeSlideUp 0.6s 0.4s ease both;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat strong {
  font-family: var(--font-main);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
}
.stat span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 30px;
  background: var(--border);
}

/* Hero Right — Illustration */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeSlideUp 0.6s 0.2s ease both;
}

.hero-illustration {
  position: relative;
  width: 380px;
  height: 480px;
}

.illustration-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-hover);
  animation: float 4s ease-in-out infinite;
  transition: background 0.35s, border-color 0.35s;
}

.main-card {
  width: 300px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.card-header-line {
  width: 50px; height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 20px;
}

.card-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 16px;
  border: 2px solid var(--border);
}

.card-lines { margin-bottom: 16px; }

.line {
  height: 8px;
  background: var(--bg-input);
  border-radius: 4px;
  margin-bottom: 8px;
}
.l1 { width: 80%; }
.l2 { width: 60%; }
.l3 { width: 90%; }
.l4 { width: 70%; }
.l5 { width: 50%; }
.exp1 { width: 85%; }
.exp2 { width: 60%; }

.card-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.section-label {
  font-family: var(--font-main);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}

.skill-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.skill-tags span {
  font-size: 0.65rem;
  font-weight: 600;
  background: var(--accent-light);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 20px;
  font-family: var(--font-main);
}

/* Floating badges */
.float-badge {
  position: absolute;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 0.75rem;
  font-family: var(--font-main);
  font-weight: 600;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 6px;
  box-shadow: var(--shadow);
  white-space: nowrap;
  transition: background 0.35s, border-color 0.35s;
}
.float-badge i { color: var(--accent); }

.badge-1 { top: 5%; right: -5%; animation: float 3.5s ease-in-out infinite; }
.badge-2 { bottom: 15%; right: -10%; animation: float 4s 0.5s ease-in-out infinite; }
.badge-3 { bottom: 5%; left: -5%; animation: float 3.8s 1s ease-in-out infinite; }

.orbit-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
}
.dot1 { width: 8px; height: 8px; top: 12%; left: 8%; animation: pulse 2s infinite; }
.dot2 { width: 5px; height: 5px; top: 40%; right: 2%; animation: pulse 2.5s 0.5s infinite; }
.dot3 { width: 6px; height: 6px; bottom: 30%; left: 3%; animation: pulse 3s 1s infinite; }

.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
}
.hero-wave svg { display: block; }

/* ===== TEMPLATES SECTION ===== */
.templates-section {
  background: var(--bg-secondary);
  padding: 80px 5%;
  transition: background 0.35s;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-main);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.template-cards {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ===== SKILL TAG CHIP SYSTEM ===== */
.skill-input-area {
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.2s;
}
.skill-input-area:focus-within { border-color: var(--accent); }

.skill-tags-display {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  min-height: 4px;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  animation: chipIn 0.2s ease;
}

@keyframes chipIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.skill-chip-remove {
  background: rgba(255,255,255,0.3);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem;
  padding: 0;
  line-height: 1;
  transition: background 0.15s;
}
.skill-chip-remove:hover { background: rgba(255,255,255,0.5); }

.skill-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-add-skill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.btn-add-skill:hover { opacity: 0.85; }

/* ===== REFERENCES SECTION ===== */
.ref-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  margin-top: -8px;
}
.ref-warning {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #F59E0B;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 10px;
}

/* ===== NEW TEMPLATE THUMBNAIL STYLES ===== */

/* Professional preview */
.professional-preview {
  padding: 12px;
  background: var(--preview-bg);
}
.tp-prof-top {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.tp-prof-name { height: 9px; background: var(--text-secondary); border-radius: 3px; width: 65%; margin-bottom: 5px; }
.tp-prof-title { height: 5px; background: var(--accent); border-radius: 3px; width: 45%; margin-bottom: 6px; }
.tp-prof-contact { display: flex; gap: 8px; }
.tp-pc { height: 4px; background: var(--border); border-radius: 2px; flex: 1; }
.tp-prof-body { display: flex; flex-direction: column; gap: 10px; }
.tp-prof-section {}
.tp-ps-label { height: 5px; background: var(--accent); border-radius: 2px; width: 30%; margin-bottom: 5px; }

/* Compact preview */
.compact-preview { padding: 12px; background: var(--preview-bg); }
.tp-cmp-header {
  display: flex; gap: 8px; align-items: center;
  border-left: 3px solid var(--accent);
  padding-left: 8px; margin-bottom: 10px;
}
.tp-cmp-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.tp-cmp-info {}
.tp-cmp-name { height: 7px; background: var(--text-secondary); border-radius: 3px; width: 80px; margin-bottom: 4px; }
.tp-cmp-title { height: 5px; background: var(--border); border-radius: 3px; width: 60px; }
.tp-cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tp-cmp-col {}
.tp-cmp-label { height: 5px; background: var(--accent); border-radius: 2px; width: 60%; margin-bottom: 5px; }

/* Elegant preview */
.elegant-preview { padding: 12px; background: var(--preview-bg); }
.tp-el-header { display: flex; flex-direction: column; align-items: center; margin-bottom: 10px; gap: 5px; }
.tp-el-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); border: 2px solid var(--border); }
.tp-el-center { text-align: center; width: 100%; }
.tp-el-name { height: 8px; background: var(--text-secondary); border-radius: 3px; width: 55%; margin: 0 auto 4px; }
.tp-el-rule { height: 1px; background: var(--accent); width: 40%; margin: 4px auto; }
.tp-el-title { height: 5px; background: var(--border); border-radius: 3px; width: 40%; margin: 0 auto; }

.template-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.template-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.template-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-light);
}

.template-preview {
  height: 180px;
  padding: 16px;
  background: var(--preview-bg);
  border-bottom: 1.5px solid var(--border);
}

/* Modern preview */
.modern-preview .tp-accent-bar {
  height: 3px; width: 100%; background: var(--accent); border-radius: 1px; margin-bottom: 10px;
}
.modern-preview .tp-header {
  display: flex; gap: 10px; align-items: center; margin-bottom: 12px;
}
.tp-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.tp-info { flex: 1; }
.tp-name { height: 7px; background: var(--text-secondary); border-radius: 3px; width: 70%; margin-bottom: 5px; }
.tp-title { height: 5px; background: var(--border); border-radius: 3px; width: 50%; }

/* Minimal preview */
.minimal-preview .tp-top-border {
  height: 2px; width: 40px; background: var(--accent); margin-bottom: 12px;
}
.tp-header-min { margin-bottom: 10px; }
.tp-name-lg { height: 9px; background: var(--text-secondary); border-radius: 3px; width: 65%; margin-bottom: 6px; }
.tp-title-sm { height: 5px; background: var(--border); border-radius: 3px; width: 45%; }
.tp-divider { height: 1px; background: var(--border); margin: 12px 0; }

/* Creative preview */
.creative-preview {
  display: flex;
  gap: 10px;
  padding: 14px;
}
.tp-sidebar {
  width: 36%;
  background: var(--accent-light);
  border-radius: 8px;
  padding: 10px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.tp-avatar-sm {
  width: 24px; height: 24px; border-radius: 50%; background: var(--accent);
}
.tp-side-lines { width: 100%; }
.tp-sline { height: 5px; background: var(--accent-light); border-radius: 3px; margin-bottom: 5px; }
.tp-sline.short { width: 70%; }
.tp-main { flex: 1; }

.tp-body .tp-line {
  height: 5px; background: var(--border); border-radius: 3px; margin-bottom: 6px;
}
.tp-line.short { width: 60%; }
.tp-line.medium { width: 75%; }

.template-meta {
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
}

.template-name {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
}

.active-badge {
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  padding: 3px 10px;
  border-radius: 100px;
  font-family: var(--font-main);
}

.template-tag {
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--bg-input);
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: 100px;
  font-family: var(--font-main);
}

/* ===== BUILDER SECTION ===== */
.builder-section {
  background: var(--bg);
  padding: 80px 5%;
  transition: background 0.35s;
}

.builder-header {
  text-align: center;
  margin-bottom: 36px;
}

/* Customization Bar */
.customization-bar {
  max-width: 1300px;
  margin: 0 auto 32px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  box-shadow: var(--shadow);
  transition: background 0.35s, border-color 0.35s;
}

.custom-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.custom-group label {
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}

.color-swatches {
  display: flex;
  align-items: center;
  gap: 8px;
}

.swatch {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}
.swatch:hover { transform: scale(1.2); }
.swatch.active { border-color: var(--text-primary); transform: scale(1.15); }

#customColor {
  width: 28px; height: 28px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  background: none;
}

#fontSelect {
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--bg-input);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.2s;
}
#fontSelect:focus { outline: none; border-color: var(--accent); }

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px var(--accent-glow);
  margin-left: auto;
}
.btn-download:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-download:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

/* Builder Layout */
.builder-layout {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

/* ===== FORM PANEL ===== */
.form-panel {}

.form-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
  transition: background 0.35s, border-color 0.35s;
}

.form-section-title {
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 28px 0 16px;
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--border);
}
.form-section-title:first-of-type { margin-top: 0; }

/* Photo Upload */
.photo-upload-area {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  cursor: pointer;
}

.photo-preview {
  width: 90px; height: 90px;
  border-radius: 50%;
  border: 2px dashed var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  transition: background 0.2s;
  overflow: hidden;
  background: var(--accent-light);
}
.photo-preview:hover { background: var(--accent-light); }
.photo-preview i { font-size: 1.4rem; }
.photo-preview img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group.full-width {
  grid-column: 1 / -1;
}

.input-group label {
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex; align-items: center; gap: 6px;
}

.input-group label i {
  color: var(--accent);
  width: 14px;
  text-align: center;
  font-size: 0.8rem;
}

.hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 400;
}

.input-group input,
.input-group textarea,
.input-group select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.35s;
  resize: vertical;
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: var(--text-muted);
}

/* Entry Block */
.entry-block {
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}
.entry-block:focus-within { border-color: var(--accent); }

.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  border: 1.5px dashed var(--accent);
  border-radius: 10px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  margin-bottom: 8px;
}
.btn-add:hover {
  background: var(--accent);
  color: #fff;
  border-style: solid;
}

/* ===== PREVIEW PANEL ===== */
.preview-panel {}

.preview-sticky {
  position: sticky;
  top: 88px;
}

.preview-label {
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}

.preview-badge {
  font-size: 0.7rem;
  background: var(--accent);
  color: #fff;
  padding: 3px 10px;
  border-radius: 100px;
  margin-left: auto;
  font-family: var(--font-main);
  font-weight: 600;
}

.preview-container {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  min-height: 600px;
  transition: background 0.35s, border-color 0.35s;
}

/* ===== RESUME PREVIEW TEMPLATES ===== */
#resumePreview {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: #1A1040;
  background: #fff;
  min-height: 600px;
}

/* MODERN TEMPLATE */
.resume-modern {
  display: flex;
  flex-direction: column;
  min-height: 600px;
  background: #fff;
}

.resume-modern .r-header {
  background: var(--accent);
  color: #fff;
  padding: 28px 28px 20px;
  display: flex;
  gap: 18px;
  align-items: center;
}

.resume-modern .r-photo {
  width: 70px; height: 70px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.4);
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  color: rgba(255,255,255,0.7);
  overflow: hidden;
}
.resume-modern .r-photo img { width: 100%; height: 100%; object-fit: cover; }

.resume-modern .r-name {
  font-family: var(--font-main);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.2;
}

.resume-modern .r-jobtitle {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 3px;
}

.resume-modern .r-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.resume-modern .r-contact-item {
  font-size: 0.72rem;
  display: flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.15);
  padding: 3px 9px;
  border-radius: 100px;
}

.resume-modern .r-body {
  display: flex;
  flex: 1;
}

.resume-modern .r-sidebar {
  width: 38%;
  background: #F8F7FF;
  padding: 20px 16px;
}

.resume-modern .r-main {
  flex: 1;
  padding: 20px 20px;
}

.resume-modern .r-section-title {
  font-family: var(--font-main);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
  margin-top: 16px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--accent);
}
.resume-modern .r-section-title:first-child { margin-top: 0; }

.r-skill-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  margin: 2px;
  font-family: var(--font-main);
}

.r-edu-item, .r-exp-item, .r-proj-item {
  margin-bottom: 12px;
}
.r-item-title {
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  color: #1A1040;
}
.r-item-sub {
  font-size: 0.72rem;
  color: #5B5478;
  margin: 2px 0;
}
.r-item-desc {
  font-size: 0.72rem;
  color: #777;
  line-height: 1.5;
}
.r-summary {
  font-size: 0.78rem;
  color: #5B5478;
  line-height: 1.6;
  margin-bottom: 12px;
}

.r-proj-link {
  font-size: 0.68rem;
  color: var(--accent);
  text-decoration: none;
}

/* MINIMAL TEMPLATE */
.resume-minimal {
  padding: 32px;
  background: #fff;
  min-height: 600px;
}

.resume-minimal .r-top {
  border-left: 4px solid var(--accent);
  padding-left: 16px;
  margin-bottom: 20px;
}

.resume-minimal .r-photo-min {
  width: 60px; height: 60px;
  border-radius: 50%;
  object-fit: cover;
  overflow: hidden;
  float: right;
  margin-left: 16px;
  border: 2px solid var(--accent);
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
}
.resume-minimal .r-photo-min img { width: 100%; height: 100%; object-fit: cover; }

.resume-minimal .r-name {
  font-family: var(--font-main);
  font-size: 1.6rem;
  font-weight: 800;
  color: #1A1040;
}
.resume-minimal .r-jobtitle {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 2px;
}
.resume-minimal .r-contact-row {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px;
}
.resume-minimal .r-contact-item {
  font-size: 0.72rem;
  color: #5B5478;
  display: flex; align-items: center; gap: 4px;
}
.resume-minimal .r-contact-item i { color: var(--accent); }

.resume-minimal .r-section-title {
  font-family: var(--font-main);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #1A1040;
  margin: 16px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #E8E6FF;
}

/* CREATIVE TEMPLATE */
.resume-creative {
  display: flex;
  min-height: 600px;
  background: #fff;
}

.resume-creative .r-left-col {
  width: 40%;
  background: var(--accent);
  color: #fff;
  padding: 24px 18px;
}

.resume-creative .r-right-col {
  flex: 1;
  padding: 24px 20px;
}

.resume-creative .r-photo-cr {
  width: 75px; height: 75px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.2);
  font-size: 2rem;
  color: rgba(255,255,255,0.8);
  border: 3px solid rgba(255,255,255,0.4);
  overflow: hidden;
}
.resume-creative .r-photo-cr img { width: 100%; height: 100%; object-fit: cover; }

.resume-creative .r-cr-name {
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 4px;
}
.resume-creative .r-cr-title {
  font-size: 0.75rem;
  opacity: 0.85;
  text-align: center;
  margin-bottom: 16px;
}

.resume-creative .r-cr-section-title {
  font-family: var(--font-main);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
  margin: 14px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.resume-creative .r-cr-contact-item {
  font-size: 0.7rem;
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 4px;
  color: rgba(255,255,255,0.9);
}

.r-cr-skill-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 600;
  margin: 2px;
  font-family: var(--font-main);
}

.resume-creative .r-section-title {
  font-family: var(--font-main);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 14px 0 8px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--accent);
}
.resume-creative .r-section-title:first-child { margin-top: 0; }

/* Placeholder message */
.preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
  color: #9892B5;
  gap: 12px;
}
.preview-placeholder i { font-size: 2.5rem; opacity: 0.4; }
.preview-placeholder p { font-size: 0.9rem; opacity: 0.6; }

/* ===== IMPROVED TYPOGRAPHY IN RESUME PREVIEW ===== */
/* Shared upgraded sizes across all templates */
.r-item-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 700;
  color: #1A1040;
}
.r-item-sub {
  font-size: 13px;
  color: #5B5478;
  margin: 2px 0;
}
.r-item-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}
.r-summary {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  color: #5B5478;
  line-height: 1.7;
  margin-bottom: 12px;
}
.r-edu-item, .r-exp-item, .r-proj-item, .r-ref-item {
  margin-bottom: 12px;
}
.r-proj-link {
  font-size: 11px;
  color: var(--accent);
  text-decoration: none;
}

/* ===== PROFESSIONAL TEMPLATE ===== */
.resume-professional {
  background: #fff;
  min-height: 600px;
  font-family: Georgia, "Times New Roman", serif;
}
.resume-professional .r-prof-header {
  text-align: center;
  padding: 28px 32px 16px;
  border-bottom: 3px double var(--accent);
}
.resume-professional .r-prof-photo {
  width: 72px; height: 72px;
  border-radius: 50%;
  margin: 0 auto 10px;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--accent);
  border: 2px solid var(--accent);
  overflow: hidden;
}
.resume-professional .r-prof-photo img { width: 100%; height: 100%; object-fit: cover; }
.resume-professional .r-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 700;
  color: #1A1040;
  letter-spacing: 0.02em;
}
.resume-professional .r-jobtitle {
  font-size: 15px;
  color: var(--accent);
  margin: 4px 0 10px;
  font-style: italic;
}
.resume-professional .r-contact-row {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 16px;
}
.resume-professional .r-contact-item {
  font-size: 12px; color: #5B5478;
  display: flex; align-items: center; gap: 5px;
}
.resume-professional .r-contact-item i { color: var(--accent); }
.resume-professional .r-prof-body {
  padding: 20px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}
.resume-professional .r-prof-full {
  grid-column: 1 / -1;
}
.resume-professional .r-section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
  color: #1A1040;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 16px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1.5px solid var(--accent);
}
.resume-professional .r-section-title:first-child { margin-top: 0; }
.r-prof-skill-tag {
  display: inline-block;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin: 2px;
}

/* ===== COMPACT TEMPLATE ===== */
.resume-compact {
  background: #fff;
  min-height: 600px;
  font-family: Georgia, "Times New Roman", serif;
}
.resume-compact .r-cmp-stripe {
  height: 6px; background: var(--accent); width: 100%;
}
.resume-compact .r-cmp-header {
  display: flex; align-items: center;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #eee;
  gap: 14px;
}
.resume-compact .r-cmp-photo {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-light); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--accent);
  border: 2px solid var(--accent);
  overflow: hidden;
}
.resume-compact .r-cmp-photo img { width: 100%; height: 100%; object-fit: cover; }
.resume-compact .r-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px; font-weight: 700; color: #1A1040;
}
.resume-compact .r-jobtitle {
  font-size: 13px; color: var(--accent); font-style: italic; margin: 2px 0;
}
.resume-compact .r-cmp-contact {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px;
}
.resume-compact .r-contact-item {
  font-size: 11px; color: #5B5478;
  display: flex; align-items: center; gap: 4px;
}
.resume-compact .r-cmp-body {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 0;
}
.resume-compact .r-cmp-left {
  padding: 14px 14px 14px 20px;
  border-right: 1px solid #eee;
}
.resume-compact .r-cmp-right {
  padding: 14px 20px 14px 16px;
}
.resume-compact .r-section-title {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent);
  margin: 12px 0 6px; padding-bottom: 3px;
  border-bottom: 2px solid var(--accent);
  font-family: Georgia, "Times New Roman", serif;
}
.resume-compact .r-section-title:first-child { margin-top: 0; }
.r-cmp-skill-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px; font-weight: 600; margin: 2px;
}

/* ===== ELEGANT TEMPLATE ===== */
.resume-elegant {
  background: #fff;
  min-height: 600px;
  font-family: Georgia, "Times New Roman", serif;
}
.resume-elegant .r-el-header {
  padding: 28px 32px 18px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--accent-light);
  border-bottom: 2px solid var(--accent);
}
.resume-elegant .r-el-photo {
  width: 78px; height: 78px; border-radius: 50%;
  flex-shrink: 0;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--accent);
  border: 3px solid var(--accent);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.resume-elegant .r-el-photo img { width: 100%; height: 100%; object-fit: cover; }
.resume-elegant .r-el-title-block { flex: 1; }
.resume-elegant .r-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px; font-weight: 700;
  color: #1A1040; line-height: 1.1;
  letter-spacing: 0.01em;
}
.resume-elegant .r-el-rule {
  width: 50px; height: 2px; background: var(--accent);
  margin: 6px 0;
}
.resume-elegant .r-jobtitle {
  font-size: 15px; color: var(--accent);
  font-style: italic; margin-bottom: 8px;
}
.resume-elegant .r-contact-row {
  display: flex; flex-wrap: wrap; gap: 14px;
}
.resume-elegant .r-contact-item {
  font-size: 12px; color: #5B5478;
  display: flex; align-items: center; gap: 5px;
}
.resume-elegant .r-contact-item i { color: var(--accent); }
.resume-elegant .r-el-body {
  padding: 20px 32px;
}
.resume-elegant .r-section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px; font-weight: 700;
  color: var(--accent);
  margin: 18px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--accent);
  font-style: italic;
}
.resume-elegant .r-section-title:first-child { margin-top: 0; }
.r-el-skill-tag {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 3px 11px;
  border-radius: 100px;
  font-size: 12px; font-weight: 600; margin: 2px;
  font-style: italic;
}

/* ===== REFERENCES IN PREVIEW ===== */
.r-ref-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.r-ref-item {
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 8px 10px;
}
.r-ref-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px; font-weight: 700; color: #1A1040;
}
.r-ref-role { font-size: 11px; color: var(--accent); margin: 2px 0; }
.r-ref-detail { font-size: 11px; color: #777; display: flex; align-items: center; gap: 4px; margin-top: 2px; }

/* ===== SOCIAL MEDIA LINKS ===== */
.social-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}

.social-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ===== ACHIEVEMENTS IN RESUME PREVIEW ===== */
.r-ach-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  border-left: 3px solid var(--accent);
  background: rgba(108,99,255,0.05);
}
.r-ach-icon {
  color: var(--accent);
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}
.r-ach-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
  color: #1A1040;
}
.r-ach-sub {
  font-size: 11px;
  color: #5B5478;
  margin-top: 2px;
}
.r-ach-link {
  font-size: 10px;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 3px;
}

/* ===== SOCIAL LINKS IN RESUME PREVIEW ===== */
.r-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 6px;
}
.r-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-main);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 40px 5% 24px;
  transition: background 0.35s, border-color 0.35s;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Author block */
.footer-author-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 1rem;
}

.footer-author-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.footer-author-name {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-author-title {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Credit line */
.footer-credit {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-credit-name {
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}
.footer-credit-name:hover { opacity: 0.75; }

/* Social links */
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.footer-social-link:hover {
  transform: translateY(-2px);
  opacity: 0.88;
}

.footer-social-link.github {
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1.5px solid var(--border);
}

.footer-social-link.linkedin {
  color: #fff;
  background: #0077B5;
  border: 1.5px solid #0077B5;
  box-shadow: 0 2px 10px rgba(0,119,181,0.25);
}

/* Copyright */
.footer-copyright {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: 20px;
  border-top: 1px solid var(--border);
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0px); }
  50% { transform: translate(-50%, -50%) translateY(-12px); }
}

.badge-1 { animation: floatBadge1 3.5s ease-in-out infinite; }
.badge-2 { animation: floatBadge2 4s ease-in-out infinite; }
.badge-3 { animation: floatBadge3 3.8s ease-in-out infinite; }

@keyframes floatBadge1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes floatBadge2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes floatBadge3 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.5); opacity: 0.8; }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .builder-layout { grid-template-columns: 1fr; }
  .preview-sticky { position: relative; top: 0; }
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-right { display: none; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-desc { margin: 0 auto 36px; }
}

@media (max-width: 768px) {
  .template-cards { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full-width { grid-column: 1; }
  .customization-bar { flex-direction: column; align-items: flex-start; }
  .navbar { padding: 0 4%; }
  .nav-link { display: none; }
}

@media (max-width: 480px) {
  .hero { padding: 60px 4% 0; }
  .form-card { padding: 20px; }
  .hero-title { font-size: 2.2rem; }
}
