 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     scroll-behavior: smooth;
 }

 body,
 html {
     width: 100%;
     background-color: #0f172a;
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: center;
     font-family: 'Plus Jakarta Sans', sans-serif;
     color: white;
     padding: 20px;
     min-height: 100vh;
 }

 :root {
     --dark-color: black;
     --light-color: rgba(29, 29, 29, 0.804);
     --gold: rgb(232, 183, 48);
     --my-font: 'Plus Jakarta Sans', Arial, sans-serif;
     --cv-bg-color: #ffffff;
     --cv-text-color: #1e293b;
     --cv-heading-color: rgb(232, 183, 48);
     --cv-section-bg: transparent;
     --cv-contact-color: #475569;
     --cv-skill-bg: #f1f5f9;
     --cv-skill-color: #475569;
     --cv-border-color: #e2e8f0;
 }

 center {
     width: 100%;
     height: 8vw;
     display: flex;
     flex-direction: row;
     justify-content: center;
     align-items: center;
     margin-bottom: 30px;
 }

 h1 {
     font-size: 3.5vw;
     color: white;
     text-transform: capitalize;
     -webkit-text-stroke: 2px var(--gold);
     text-shadow: 0 0 10px rgba(232, 183, 48, 0.5);
 }

 main {
     width: 90%;
     max-width: 1400px;
     height: auto;
     min-height: 800px;
     display: flex;
     flex-direction: row;
     justify-content: space-between;
     align-items: flex-start;
     background: rgba(15, 23, 42, 0.8);
     box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
     backdrop-filter: blur(4px);
     -webkit-backdrop-filter: blur(4px);
     border-radius: 20px;
     border: 1px solid var(--gold);
     overflow: hidden;
 }

 form {
     width: 48%;
     height: 100%;
     display: flex;
     flex-direction: column;
     justify-content: flex-start;
     align-items: flex-end;
     padding: 30px;
     overflow-y: auto;
 }

 .output {
     width: 48%;
     height: 100%;
     background-color: var(--cv-bg-color);
     border-bottom-right-radius: 20px;
     border-top-right-radius: 20px;
     padding: 30px;
     color: var(--cv-text-color);
     overflow-y: auto;
     font-family: var(--cv-font-family, 'Plus Jakarta Sans');
 }

 .section-title {
     width: 100%;
     height: auto;
     padding: 15px 0;
     display: flex;
     flex-direction: row;
     justify-content: flex-start;
     align-items: center;
     font-size: 1.5rem;
     font-weight: 700;
     color: var(--gold);
     border-bottom: 2px solid var(--gold);
     margin-bottom: 20px;
 }

 .form-group {
     width: 100%;
     margin-bottom: 20px;
     display: flex;
     flex-direction: column;
 }

 .form-row {
     display: flex;
     gap: 20px;
     width: 100%;
 }

 .form-row .form-group {
     flex: 1;
 }

 label {
     margin-bottom: 8px;
     font-weight: 600;
     color: #cbd5e1;
 }

 input,
 textarea,
 select {
     width: 100%;
     padding: 12px 15px;
     border: none;
     border-bottom: 2px solid var(--gold);
     background: rgba(30, 41, 59, 0.5);
     color: white;
     font-size: 16px;
     border-radius: 5px;
     transition: all 0.3s ease;
 }

 input:focus,
 textarea:focus,
 select:focus {
     outline: none;
     border-bottom: 2px solid white;
     background: rgba(30, 41, 59, 0.8);
 }

 textarea {
     min-height: 100px;
     resize: vertical;
 }

 .upload-container {
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 15px;
     margin: 20px 0;
     padding: 20px;
     border: 2px dashed var(--gold);
     border-radius: 10px;
     cursor: pointer;
     transition: all 0.3s ease;
 }

 .upload-container:hover {
     background: rgba(232, 183, 48, 0.1);
 }

 .custom-upload-button {
     background: var(--gold);
     color: black;
     padding: 10px 20px;
     border-radius: 5px;
     font-weight: 600;
     cursor: pointer;
     transition: all 0.3s ease;
 }

 .custom-upload-button:hover {
     background: #d4af37;
     transform: translateY(-2px);
 }

 #fileNameDisplay {
     font-size: 14px;
     color: #94a3b8;
 }

 .cv-header {
     display: flex;
     justify-content: space-between;
     align-items: flex-start;
     margin-bottom: 30px;
     padding-bottom: 20px;
     border-bottom: 3px solid var(--cv-heading-color);
 }

 .cv-name {
     font-size: 2.2rem;
     font-weight: 800;
     color: var(--cv-text-color);
     margin-bottom: 5px;
 }

 .cv-title {
     font-size: 1.3rem;
     color: var(--cv-heading-color);
     font-weight: 600;
 }

 .cv-contact {
     text-align: right;
     font-size: 0.9rem;
     color: var(--cv-contact-color);
 }

 .cv-section {
     margin-bottom: 25px;
     background-color: var(--cv-section-bg);
     padding: 15px;
     border-radius: 8px;
     border: 1px solid var(--cv-border-color);
 }

 .cv-section-title {
     font-size: 1.3rem;
     font-weight: 700;
     color: var(--cv-heading-color);
     margin-bottom: 10px;
     padding-bottom: 5px;
     border-bottom: 1px solid var(--cv-border-color);
 }

 .cv-item {
     margin-bottom: 15px;
 }

 .cv-item-title {
     font-weight: 600;
     color: var(--cv-text-color);
     margin-bottom: 5px;
 }

 .cv-item-subtitle {
     font-style: italic;
     color: var(--cv-contact-color);
     margin-bottom: 5px;
 }

 .cv-item-date {
     color: var(--cv-contact-color);
     font-size: 0.9rem;
     margin-bottom: 8px;
 }

 .cv-item-description {
     color: var(--cv-contact-color);
     line-height: 1.5;
 }

 .cv-skills {
     display: flex;
     flex-wrap: wrap;
     gap: 10px;
     margin-top: 10px;
 }

 .skill-tag {
     background: var(--cv-skill-bg);
     color: var(--cv-skill-color);
     padding: 5px 12px;
     border-radius: 20px;
     font-size: 0.9rem;
     border: 1px solid var(--cv-border-color);
 }

 .skill-item {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 10px;
     padding: 10px;
     background: var(--cv-skill-bg);
     border-radius: 8px;
     cursor: move;
     border: 1px solid var(--cv-border-color);
 }

 .skill-name {
     font-weight: 600;
     color: var(--cv-text-color);
 }

 .skill-progress {
     width: 100px;
     height: 8px;
     background: #e2e8f0;
     border-radius: 4px;
     overflow: hidden;
 }

 .skill-progress-bar {
     height: 100%;
     background: var(--cv-heading-color);
     border-radius: 4px;
     transition: width 0.3s ease;
 }

 .skill-percentage {
     font-size: 0.8rem;
     color: var(--cv-contact-color);
     min-width: 30px;
     text-align: right;
 }

 .language-item {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 10px;
     padding: 8px 12px;
     background: var(--cv-skill-bg);
     border-radius: 20px;
     cursor: move;
     border: 1px solid var(--cv-border-color);
 }

 .language-name {
     font-weight: 500;
     color: var(--cv-text-color);
 }

 .language-level {
     font-size: 0.8rem;
     color: var(--cv-contact-color);
     background: var(--cv-heading-color);
     color: white;
     padding: 2px 8px;
     border-radius: 10px;
 }

 .drag-handle {
     cursor: move;
     color: var(--cv-contact-color);
     margin-right: 8px;
 }

 .skills-container,
 .languages-container {
     margin-top: 10px;
 }

 .dragging {
     opacity: 0.5;
     background: var(--cv-heading-color);
     color: white;
 }

 .profile-img {
     width: 120px;
     height: 120px;
     border-radius: 50%;
     object-fit: cover;
     border: 3px solid var(--cv-heading-color);
 }

 .checkbox-group {
     display: flex;
     align-items: center;
     gap: 10px;
     margin-top: 10px;
 }

 .checkbox-group input[type="checkbox"] {
     width: auto;
 }

 .checkbox-group label {
     margin-bottom: 0;
     color: #cbd5e1;
 }

 .customization-panel {
     background: rgba(30, 41, 59, 0.8);
     padding: 20px;
     border-radius: 10px;
     margin-bottom: 20px;
     border: 1px solid var(--gold);
 }

 .customization-title {
     color: var(--gold);
     font-size: 1.2rem;
     margin-bottom: 15px;
     font-weight: 600;
 }

 .color-input-group {
     display: flex;
     align-items: center;
     gap: 10px;
     margin-bottom: 10px;
 }

 .color-input-group label {
     min-width: 120px;
     margin-bottom: 0;
 }

 .color-preview {
     width: 30px;
     height: 30px;
     border-radius: 5px;
     border: 2px solid white;
     cursor: pointer;
 }

 .download-buttons {
     display: flex;
     gap: 10px;
     justify-content: center;
     margin-top: 20px;
 }

 .download-btn {
     background: var(--gold);
     color: black;
     border: none;
     padding: 10px 20px;
     border-radius: 5px;
     font-weight: 600;
     cursor: pointer;
     transition: all 0.3s ease;
 }

 .download-btn:hover {
     background: #d4af37;
     transform: translateY(-2px);
 }

 @media (max-width: 1024px) {
     main {
         flex-direction: column;
         width: 95%;
     }

     form,
     .output {
         width: 100%;
     }

     .output {
         border-radius: 0 0 20px 20px;
     }

     h1 {
         font-size: 5vw;
     }
 }

 @media (max-width: 768px) {
     .form-row {
         flex-direction: column;
         gap: 0;
     }

     .cv-header {
         flex-direction: column;
         text-align: center;
     }

     .cv-contact {
         text-align: center;
         margin-top: 15px;
     }

     h1 {
         font-size: 7vw;
     }

     .download-buttons {
         flex-direction: column;
     }

     .color-input-group {
         flex-direction: column;
         align-items: flex-start;
     }

     .color-input-group label {
         min-width: auto;
     }
 }

 @media print {
     body * {
         visibility: hidden;
     }

     #cvOutput,
     #cvOutput * {
         visibility: visible;
     }

     #cvOutput {
         position: absolute;
         left: 0;
         top: 0;
         width: 100%;
         background: white !important;
         color: black !important;
     }

     .download-buttons,
     .customization-panel,
     form {
         display: none !important;
     }
 }