:root {
  --primary: #f5b731;
  --bg: #0c0c0c;
  --card: #1e1e1e;
  --text: #e8e8e8;
  --border: rgba(255,255,255,0.1);
}

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

body {
  font-family: 'Sora', sans-serif;
  background: var(--bg);
  color: var(--text);
  padding: 2rem;
  min-height: 100vh;
}

.container { max-width: 1400px; margin: 0 auto; }

.gradient-text {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--primary), #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: #a0a0a0;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.cv-builder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.form-section {
  background: var(--card);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.form-section h2 {
  color: var(--primary);
  font-size: 1.2rem;
  margin: 1.5rem 0 1rem 0;
}

.form-section h2:first-of-type { margin-top: 0; }

input, textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: border 0.3s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-primary, .btn-secondary {
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: #000;
  width: 100%;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245,183,49,0.4); }

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  width: 100%;
  margin-top: 1rem;
}

.btn-secondary:hover { background: rgba(245,183,49,0.1); }

.cv-preview {
  background: var(--card);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.cv-paper {
  background: white;
  color: #1a1a1a;
  padding: 3rem;
  border-radius: 8px;
  min-height: 600px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.cv-header {
  border-bottom: 3px solid var(--primary);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.cv-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.cv-header p {
  font-size: 1.2rem;
  color: #4a4a4a;
  margin-bottom: 1rem;
}

.cv-contact {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #6a6a6a;
  flex-wrap: wrap;
}

.cv-section {
  margin-bottom: 2rem;
}

.cv-section h2 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
}

.cv-section p {
  color: #4a4a4a;
  line-height: 1.8;
  white-space: pre-line;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: var(--primary);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.btn-back {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid var(--border);
  transition: all 0.3s;
}

.btn-back:hover {
  border-color: var(--primary);
  color: var(--primary);
}

@media print {
  body { background: white; padding: 0; }
  .container { max-width: 100%; }
  .cv-builder { display: block; }
  .form-section, .btn-secondary, .btn-back { display: none !important; }
  .cv-preview { padding: 0; background: transparent; border: none; }
  .cv-paper { box-shadow: none; padding: 1cm; }
}

@media (max-width: 900px) {
  .cv-builder { grid-template-columns: 1fr; }
  .gradient-text { font-size: 2rem; }
}
