/* Base Styles */
:root {
  --primary-color: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #818cf8;
  --secondary-color: #f97316;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --text-lighter: #94a3b8;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --bg-dark: #0f172a;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --transition: all 0.3s ease;
}

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

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Header */
.header {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.logo span {
  color: var(--primary-color);
}

.nav ul {
  display: flex;
  gap: 2rem;
}

.nav a {
  font-weight: 500;
  transition: var(--transition);
}

.nav a:hover {
  color: var(--primary-color);
}

.btn-mobile-nav {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* Hero Section */
.hero {
  padding: 5rem 0;
  background-color: var(--bg-white);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Features Section */
.features {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 70px;
  height: 70px;

  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-light);
}

/* Templates Section */
.templates {
  padding: 5rem 0;
  background-color: var(--bg-white);
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.template-card {
  background-color: var(--bg-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.template-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.template-preview {
  height: 400px;
  overflow: hidden;
}

.template-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.template-card:hover .template-preview img {
  transform: scale(1.05);
}

.template-card h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  margin-bottom: 0.5rem;
}

.template-card p {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-light);
}

/* FAQ Section */
.faq {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--bg-white);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question h3 {
  margin-bottom: 0;
  font-size: 1.25rem;
}

.faq-question i {
  transition: var(--transition);
}

.faq-question i.rotate {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.faq-answer.active {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}

/* Call to Action */
.cta {
  padding: 5rem 0;
  background-color: var(--primary-color);
  color: white;
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta .btn-primary {
  background-color: white;
  color: var(--primary-color);
}

.cta .btn-primary:hover {
  background-color: var(--bg-light);
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-logo h2 {
  font-size: 1.75rem;
}

.footer-logo span {
  color: var(--primary-light);
}

.footer-logo p {
  color: var(--text-lighter);
}

.footer-links h3,
.footer-contact h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a,
.footer-contact p {
  color: var(--text-lighter);
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-lighter);
  font-size: 0.875rem;
}

/* CV Builder */
.cv-builder {
  padding: 2rem 0 4rem;
  background-color: var(--bg-light);
}

/* Progress Bar */
.progress-container {
  margin-bottom: 2rem;
}

.progress-bar {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 30px;
  max-width: 100%;
}

.progress-bar::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  width: 100%;
  background-color: var(--border-color);
  z-index: 0;
}

.progress {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background-color: var(--primary-color);
  transition: var(--transition);
  z-index: 1;
}

.progress-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 40px;
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--bg-white);
  border: 4px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text-light);
  transition: var(--transition);
}

.step-text {
  position: absolute;
  top: 40px;
  font-size: 0.75rem;
  color: var(--text-light);
  transition: var(--transition);
  white-space: nowrap;
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: white;
}

.progress-step.active .step-text,
.progress-step.completed .step-text {
  color: var(--primary-color);
  font-weight: 600;
}

/* Form Styles */
.form-container {
  margin-bottom: 2rem;
  background-color: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-step h3 {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-group input {
  width: auto;
}

.checkbox-group label {
  margin-bottom: 0;
}

.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Education, Experience, Skills Items */
.education-item,
.experience-item,
.skill-item {
  background-color: var(--bg-light);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  position: relative;
}

.remove-item {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.remove-item:hover {
  color: #ef4444;
}

.skill-name {
  flex: 3;
}

.skill-level {
  flex: 1;
}

/* Template Selection */
.template-selection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.template-option {
  position: relative;
}

.template-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.template-label {
  display: block;
  cursor: pointer;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.template-label img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.template-info {
  padding: 1rem;
}

.template-info h4 {
  margin-bottom: 0.25rem;
}

.template-info p {
  color: var(--text-light);
  margin-bottom: 0;
}

.template-option input:checked + .template-label {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Preview */
.preview-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cv-preview {
  background-color: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
}

/* Form Navigation */
.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

/* CV Templates */
.cv-template {
  font-family: "Poppins", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

/* Classic Template */
.cv-classic .cv-header {
  text-align: center;
  margin-bottom: 2rem;
}

.cv-classic .cv-name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cv-classic .cv-title {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.cv-classic .cv-contact {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
}

.cv-classic .cv-section {
  margin-bottom: 1.5rem;
}

.cv-classic .cv-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

.cv-classic .cv-item {
  margin-bottom: 1.25rem;
}

.cv-classic .cv-item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.cv-classic .cv-item-title {
  font-weight: 600;
}

.cv-classic .cv-item-subtitle {
  color: var(--text-light);
}

.cv-classic .cv-item-date {
  color: var(--text-light);
  font-size: 0.875rem;
}

.cv-classic .cv-item-content {
  font-size: 0.9375rem;
}

.cv-classic .cv-skills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.cv-classic .cv-skill {
  display: flex;
  justify-content: space-between;
}

/* Modern Template */
.cv-modern {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

.cv-modern .cv-sidebar {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem;
  border-radius: var(--radius-sm);
}

.cv-modern .cv-main {
  padding: 2rem 0;
}

.cv-modern .cv-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 4px solid rgba(255, 255, 255, 0.2);
}

.cv-modern .cv-name {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.cv-modern .cv-title {
  font-size: 1.1rem;
  text-align: center;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.cv-modern .cv-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.cv-modern .cv-contact-icon {
  width: 30px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cv-modern .cv-skills {
  margin-top: 2rem;
}

.cv-modern .cv-sidebar-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.cv-modern .cv-sidebar-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.3);
}

.cv-modern .cv-skill {
  margin-bottom: 1rem;
}

.cv-modern .cv-skill-name {
  margin-bottom: 0.25rem;
}

.cv-modern .cv-skill-bar {
  height: 6px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.cv-modern .cv-skill-level {
  height: 100%;
  background-color: white;
}

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

.cv-modern .cv-section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--primary-color);
}

.cv-modern .cv-item {
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.cv-modern .cv-item::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary-color);
}

.cv-modern .cv-item::after {
  content: "";
  position: absolute;
  top: 1rem;
  left: 5px;
  width: 1px;
  height: calc(100% - 0.5rem);
  background-color: var(--primary-color);
  opacity: 0.3;
}

.cv-modern .cv-item:last-child::after {
  display: none;
}

.cv-modern .cv-item-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.cv-modern .cv-item-subtitle {
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.cv-modern .cv-item-date {
  color: var(--primary-color);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Creative Template */
.cv-creative {
  position: relative;
}

.cv-creative .cv-header {
  background-color: var(--secondary-color);
  color: white;
  padding: 3rem 2rem 6rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  position: relative;
  overflow: hidden;
}

.cv-creative .cv-header::before {
  content: "";
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: white;
  border-radius: 50% 50% 0 0;
}

.cv-creative .cv-name {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cv-creative .cv-title {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.cv-creative .cv-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9375rem;
}

.cv-creative .cv-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cv-creative .cv-main {
  padding: 2rem;
}

.cv-creative .cv-summary {
  margin-bottom: 2.5rem;
}

.cv-creative .cv-summary-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.cv-creative .cv-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

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

.cv-creative .cv-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cv-creative .cv-section-title::before {
  content: "";
  width: 30px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.cv-creative .cv-item {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background-color: var(--bg-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.cv-creative .cv-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.cv-creative .cv-item-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--secondary-color);
}

.cv-creative .cv-item-subtitle {
  margin-bottom: 0.5rem;
}

.cv-creative .cv-item-date {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

.cv-creative .cv-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cv-creative .cv-skill {
  padding: 0.5rem 1rem;
  background-color: var(--bg-light);
  border-radius: 20px;
  font-size: 0.875rem;
  box-shadow: var(--shadow-sm);
}

.cv-creative .cv-skill-level {
  color: var(--secondary-color);
  font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .cv-modern {
    grid-template-columns: 1fr;
  }

  .cv-creative .cv-two-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .btn-mobile-nav {
    display: block;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .template-selection {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media print {
  body * {
    visibility: hidden;
  }

  .cv-preview,
  .cv-preview * {
    visibility: visible;
  }

  .cv-preview {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    box-shadow: none;
  }

  .preview-actions {
    display: none;
  }
}

