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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #171717;
    line-height: 1.6;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    height: 76px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eeeeee;
    background: rgba(255, 255, 255, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    font-weight: 400;
}

.navbar nav {
    display: flex;
    gap: 35px;
}

.navbar nav a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
}

.navbar nav a:hover {
    color: #111;
}

.nav-button {
    background: #171717;
    color: white;
    border: none;
    padding: 11px 19px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.nav-button:hover {
    background: #333;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 680px;
    padding: 90px 7%;
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 80px;
    align-items: center;
    background: #fafafa;
}

.hero-content {
    max-width: 650px;
}

.badge {
    display: inline-block;
    border: 1px solid #dddddd;
    background: white;
    padding: 7px 13px;
    border-radius: 50px;
    font-size: 12px;
    color: #555;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: clamp(48px, 6vw, 76px);
    line-height: 1.02;
    letter-spacing: -4px;
    margin-bottom: 25px;
}

.hero h1 span {
    display: block;
    color: #777;
}

.hero-content > p {
    max-width: 550px;
    font-size: 17px;
    color: #666;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
}

.primary-button,
.secondary-button {
    padding: 14px 21px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.primary-button {
    background: #171717;
    color: white;
    border: 1px solid #171717;
}

.primary-button span {
    margin-left: 12px;
}

.primary-button:hover {
    background: #333;
}

.secondary-button {
    background: white;
    border: 1px solid #dddddd;
    color: #222;
}

.secondary-button:hover {
    background: #f2f2f2;
}

.trust-text {
    color: #777;
    font-size: 12px;
}

.trust-text span {
    margin: 0 7px;
    color: #bbb;
}


/* =========================
   CV PREVIEW
========================= */

.hero-preview {
    display: flex;
    justify-content: center;
}

.cv-paper {
    width: 390px;
    min-height: 510px;
    background: white;
    padding: 35px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.12);
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.cv-paper:hover {
    transform: rotate(0deg) translateY(-8px);
}

.cv-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.cv-name {
    font-size: 22px;
    font-weight: 800;
}

.cv-role {
    font-size: 9px;
    color: #777;
    letter-spacing: 1px;
    margin-top: 3px;
}

.cv-contact {
    text-align: right;
    font-size: 7px;
    color: #777;
    line-height: 1.6;
}

.cv-line {
    height: 1px;
    background: #222;
    margin: 18px 0;
}

.cv-section {
    margin-bottom: 18px;
}

.cv-section h3,
.cv-bottom h3 {
    font-size: 8px;
    letter-spacing: 1.5px;
    margin-bottom: 7px;
}

.cv-section p,
.cv-bottom p {
    font-size: 8px;
    color: #666;
    line-height: 1.5;
}

.experience {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
}

.experience span {
    color: #777;
    font-size: 7px;
}

.cv-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}


/* =========================
   SECTIONS
========================= */

.templates,
.how-it-works {
    padding: 110px 7%;
}

.section-heading {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 55px;
}

.section-heading > span {
    font-size: 11px;
    letter-spacing: 2px;
    color: #888;
    font-weight: 700;
}

.section-heading h2 {
    font-size: 43px;
    letter-spacing: -2px;
    line-height: 1.1;
    margin: 13px 0;
}

.section-heading h2 em {
    font-style: normal;
    color: #888;
}

.section-heading p {
    color: #777;
}


/* =========================
   TEMPLATE CARDS
========================= */

.template-grid {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.template-card {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.template-preview {
    height: 260px;
    margin: 15px;
    border: 1px solid #eeeeee;
    position: relative;
    background: #fafafa;
    overflow: hidden;
}

.mini-name {
    width: 45%;
    height: 9px;
    background: #222;
    margin: 25px 18px 10px;
}

.mini-line {
    width: 82%;
    height: 1px;
    background: #ddd;
    margin: 0 18px 15px;
}

.mini-block {
    width: 75%;
    height: 35px;
    background: repeating-linear-gradient(
        to bottom,
        #ddd 0px,
        #ddd 2px,
        transparent 2px,
        transparent 9px
    );
    margin: 0 18px 15px;
}

.mini-block.small {
    width: 55%;
}

.modern {
    display: flex;
}

.mini-sidebar {
    width: 30%;
    height: 100%;
    background: #eeeeee;
}

.mini-content {
    flex: 1;
    padding-top: 1px;
}

.mini-content .mini-name,
.mini-content .mini-line,
.mini-content .mini-block {
    margin-left: 14px;
}

.minimal {
    background: white;
}

.minimal .mini-name {
    margin-top: 35px;
}

.creative {
    display: flex;
}

.creative-side {
    width: 25%;
    height: 100%;
    background: #222;
}

.creative-content {
    flex: 1;
}

.creative-content .mini-name,
.creative-content .mini-line,
.creative-content .mini-block {
    margin-left: 14px;
}

.template-info {
    padding: 0 17px 18px;
}

.template-info h3 {
    font-size: 16px;
}

.template-info p {
    font-size: 12px;
    color: #888;
}

.template-info button {
    margin-top: 14px;
    border: none;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.template-info button:hover {
    text-decoration: underline;
}


/* =========================
   HOW IT WORKS
========================= */

.how-it-works {
    background: #fafafa;
}

.steps {
    max-width: 950px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.step-number {
    font-size: 12px;
    color: #999;
    margin-bottom: 20px;
}

.step h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.step p {
    font-size: 14px;
    color: #777;
}


/* =========================
   FOOTER
========================= */

footer {
    padding: 45px 7%;
    border-top: 1px solid #eeeeee;
}

footer p {
    color: #777;
    font-size: 13px;
    margin-top: 8px;
}

.copyright {
    margin-top: 30px;
    color: #aaa;
    font-size: 11px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 70px;
    }

    .hero-content {
        margin: auto;
    }

    .hero-content > p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .template-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .step {
        text-align: center;
    }
}


@media (max-width: 600px) {

    .navbar {
        padding: 0 5%;
    }

    .navbar nav {
        display: none;
    }

    .hero {
        padding: 60px 5%;
    }

    .hero h1 {
        font-size: 48px;
        letter-spacing: -3px;
    }

    .cv-paper {
        width: 330px;
    }

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

    .templates,
    .how-it-works {
        padding: 80px 5%;
    }

    .section-heading h2 {
        font-size: 35px;
    }
}



/* =========================
   CV BUILDER
========================= */

.builder-page {
    background: #f5f5f5;
}

.back-home {
    color: #555;
    text-decoration: none;
    font-size: 14px;
}

.builder {
    min-height: calc(100vh - 76px);
    display: grid;
    grid-template-columns: 430px 1fr;
}


/* EDITOR */

.editor {
    background: #ffffff;
    border-right: 1px solid #e5e5e5;
    padding: 35px;
    overflow-y: auto;
}

.editor-header span,
.preview-top span {
    font-size: 10px;
    letter-spacing: 2px;
    color: #999;
    font-weight: 700;
}

.editor-header h1 {
    font-size: 30px;
    letter-spacing: -1px;
    margin-top: 6px;
}

.editor-header p {
    color: #888;
    font-size: 13px;
    margin-top: 5px;
}


.form-card {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.form-card h2 {
    font-size: 15px;
    margin-bottom: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

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

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

.input-group label {
    font-size: 11px;
    font-weight: 600;
    color: #555;
}

.input-group input,
.input-group textarea,
.form-card > textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 7px;
    padding: 11px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    resize: vertical;
}

.input-group input:focus,
.input-group textarea:focus,
.form-card > textarea:focus {
    border-color: #777;
}

.input-group small {
    color: #999;
    font-size: 10px;
}

.card-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-heading h2 {
    margin-bottom: 0;
}

.add-button {
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 11px;
}


/* TEMPLATE SELECTOR */

.template-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.template-option {
    border: 1px solid #ddd;
    background: white;
    border-radius: 7px;
    padding: 7px;
    cursor: pointer;
}

.template-option.active {
    border: 2px solid #171717;
}

.template-option span {
    display: block;
    font-size: 9px;
    margin-top: 5px;
}

.template-mini {
    height: 65px;
    background: #f7f7f7;
    border: 1px solid #eee;
}

.classic-mini {
    background:
        linear-gradient(#222 0 0) 8px 8px / 35px 5px no-repeat,
        linear-gradient(#ddd 0 0) 8px 22px / 70px 1px no-repeat,
        linear-gradient(#ddd 0 0) 8px 32px / 60px 4px no-repeat,
        #fafafa;
}

.modern-mini {
    background:
        linear-gradient(#ddd 0 0) 0 0 / 22px 100% no-repeat,
        linear-gradient(#222 0 0) 31px 9px / 35px 5px no-repeat,
        linear-gradient(#ddd 0 0) 31px 22px / 60px 1px no-repeat,
        #fafafa;
}

.minimal-mini {
    background:
        linear-gradient(#222 0 0) 12px 14px / 35px 5px no-repeat,
        linear-gradient(#ddd 0 0) 12px 28px / 65px 1px no-repeat,
        linear-gradient(#ddd 0 0) 12px 38px / 55px 4px no-repeat,
        white;
}

.creative-mini {
    background:
        linear-gradient(#222 0 0) 0 0 / 18px 100% no-repeat,
        linear-gradient(#222 0 0) 27px 9px / 35px 5px no-repeat,
        linear-gradient(#ddd 0 0) 27px 22px / 60px 1px no-repeat,
        #fafafa;
}


/* PREVIEW */

.preview-area {
    padding: 30px;
    overflow: auto;
}

.preview-top {
    max-width: 850px;
    margin: 0 auto 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-top p {
    color: #999;
    font-size: 11px;
    margin-top: 3px;
}

.download-button {
    border: none;
    background: #171717;
    color: white;
    padding: 12px 18px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.download-button:hover {
    background: #333;
}

.preview-wrapper {
    display: flex;
    justify-content: center;
    padding-bottom: 50px;
}

.cv-document {
    width: 794px;
    min-height: 1123px;
    background: white;
    padding: 65px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    color: #222;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #222;
}

.preview-header h1 {
    font-size: 34px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.preview-header h2 {
    font-size: 13px;
    color: #777;
    font-weight: 400;
    margin-top: 7px;
}

.preview-contact {
    display: flex;
    flex-direction: column;
    text-align: right;
    font-size: 9px;
    color: #777;
    gap: 3px;
}

.preview-section {
    margin-top: 28px;
}

.preview-section h3,
.preview-bottom h3 {
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.preview-section p,
.preview-bottom p {
    color: #666;
    font-size: 10px;
    line-height: 1.7;
}

.preview-experience-top {
    display: flex;
    justify-content: space-between;
}

.preview-experience-top strong {
    font-size: 12px;
}

.preview-experience-top span {
    color: #888;
    font-size: 9px;
}

#previewCompany {
    font-size: 9px;
    color: #888;
    margin-top: 3px;
}

.preview-experience p {
    margin-top: 7px;
}

.preview-bottom {
    margin-top: 35px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}


/* =========================
   RESPONSIVE BUILDER
========================= */

@media (max-width: 1100px) {

    .builder {
        grid-template-columns: 380px 1fr;
    }

    .editor {
        padding: 25px;
    }

    .cv-document {
        transform: scale(0.85);
        transform-origin: top center;
        margin-bottom: -150px;
    }
}


@media (max-width: 800px) {

    .builder {
        display: block;
    }

    .editor {
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .preview-area {
        padding: 20px 10px;
    }

    .preview-top {
        padding: 0 10px;
    }

    .cv-document {
        transform: scale(0.65);
        transform-origin: top center;
        margin-bottom: -390px;
    }
}


@media (max-width: 500px) {

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

    .input-group.full {
        grid-column: auto;
    }

    .template-selector {
        grid-template-columns: repeat(2, 1fr);
    }

    .editor {
        padding: 20px;
    }

    .cv-document {
        transform: scale(0.48);
        margin-bottom: -580px;
    }
}



/* =========================================
   REAL CV TEMPLATE DESIGNS
========================================= */


/* =========================
   CLASSIC
========================= */

.cv-document.classic {
    padding: 65px;
}

.cv-document.classic .preview-header {
    border-bottom: 2px solid #222;
}

.cv-document.classic .preview-header h1 {
    font-size: 34px;
    letter-spacing: -1.5px;
}

.cv-document.classic .preview-section h3 {
    font-weight: 700;
}

.cv-document.classic .preview-photo {
    width: 85px;
    height: 85px;
}


/* =========================
   MODERN
========================= */

.cv-document.modern {
    padding: 0;
    display: grid;
    grid-template-columns: 220px 1fr;
}

.cv-document.modern .preview-header {
    grid-column: 1 / -1;
    padding: 55px 55px 30px;
    background: #f1f1f1;
    border-bottom: none;
}

.cv-document.modern .preview-header h1 {
    font-size: 32px;
}

.cv-document.modern .preview-contact {
    color: #555;
}

.cv-document.modern .preview-section {
    margin-left: 275px;
    margin-right: 55px;
}

.cv-document.modern .preview-bottom {
    margin-left: 275px;
    margin-right: 55px;
}

.cv-document.modern .preview-photo {
    width: 85px;
    height: 85px;
    border-radius: 8px;
}


/* =========================
   MINIMAL
========================= */

.cv-document.minimal {
    padding: 80px;
}

.cv-document.minimal .preview-header {
    border-bottom: none;
    padding-bottom: 15px;
}

.cv-document.minimal .preview-header h1 {
    font-size: 42px;
    font-weight: 400;
    letter-spacing: -2px;
}

.cv-document.minimal .preview-header h2 {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cv-document.minimal .preview-section {
    margin-top: 35px;
}

.cv-document.minimal .preview-section h3 {
    font-size: 9px;
    letter-spacing: 3px;
    color: #777;
}

.cv-document.minimal .preview-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
}


/* =========================
   CREATIVE
========================= */

.cv-document.creative {
    padding: 0;
}

.cv-document.creative .preview-header {
    padding: 55px;
    background: #222;
    color: white;
    border-bottom: none;
}

.cv-document.creative .preview-header h1 {
    font-size: 36px;
}

.cv-document.creative .preview-header h2 {
    color: #bbb;
}

.cv-document.creative .preview-contact {
    color: #ccc;
}

.cv-document.creative .preview-section {
    margin-left: 55px;
    margin-right: 55px;
}

.cv-document.creative .preview-section h3 {
    border-left: 3px solid #222;
    padding-left: 8px;
}

.cv-document.creative .preview-bottom {
    margin-left: 55px;
    margin-right: 55px;
}

.cv-document.creative .preview-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid white;
}


/* =========================
   TEMPLATE TRANSITION
========================= */

.cv-document {
    transition: all 0.25s ease;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 800px) {

    .cv-document.modern {
        display: block;
    }

    .cv-document.modern .preview-section,
    .cv-document.modern .preview-bottom {
        margin-left: 35px;
        margin-right: 35px;
    }

}








/* =========================
   PROFILE PHOTO
========================= */

.preview-photo-wrapper {
    display: flex;
    align-items: flex-start;
}

.preview-photo {
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: 50%;
    display: none;
    border: 1px solid #ddd;
}

.remove-photo {
    width: fit-content;
    margin-top: 8px;
    border: none;
    background: transparent;
    color: #777;
    font-size: 11px;
    cursor: pointer;
    padding: 0;
}

.remove-photo:hover {
    color: #111;
    text-decoration: underline;
}


/* =========================================
   FINAL RESPONSIVE SYSTEM
========================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}


/* =========================
   LARGE DESKTOP
========================= */

.hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
}

.template-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}


/* =========================
   TABLET / SMALL LAPTOP
========================= */

@media (max-width: 1000px) {

    .navbar {
        padding-left: 5%;
        padding-right: 5%;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 50px;
        padding-left: 6%;
        padding-right: 6%;
        text-align: center;
    }

    .hero-content {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content > p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-preview {
        width: 100%;
    }

    .template-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .step {
        text-align: center;
    }
}


/* =========================
   TABLET
========================= */

@media (max-width: 700px) {

    .navbar {
        height: 68px;
        padding: 0 20px;
    }

    .navbar nav {
        display: none;
    }

    .nav-button {
        padding: 10px 15px;
        font-size: 13px;
    }

    .hero {
        min-height: auto;
        padding: 65px 20px 75px;
        gap: 45px;
    }

    .hero h1 {
        font-size: clamp(42px, 9vw, 58px);
        letter-spacing: -3px;
    }

    .hero-content > p {
        font-size: 15px;
        max-width: 520px;
    }

    .hero-buttons {
        flex-wrap: wrap;
    }

    .hero-preview {
        overflow: hidden;
    }

    .cv-paper {
        width: min(390px, 90vw);
        min-height: auto;
    }

    .templates,
    .how-it-works {
        padding: 80px 20px;
    }

    .section-heading h2 {
        font-size: clamp(32px, 7vw, 43px);
    }

    .template-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================
   PHONE
========================= */

@media (max-width: 500px) {

    .navbar {
        padding: 0 15px;
    }

    .logo {
        font-size: 20px;
    }

    .nav-button {
        padding: 9px 12px;
        font-size: 12px;
    }

    .hero {
        padding: 55px 16px 65px;
        gap: 40px;
    }

    .hero h1 {
        font-size: clamp(38px, 11vw, 50px);
        letter-spacing: -2.5px;
    }

    .hero-content > p {
        font-size: 14px;
        line-height: 1.6;
    }

    .hero-buttons {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .hero-preview {
        width: 100%;
    }

    .cv-paper {
        width: min(330px, 88vw);
        padding: 25px;
    }

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

    .template-preview {
        height: 240px;
    }

    .templates,
    .how-it-works {
        padding: 65px 16px;
    }

    .section-heading {
        margin-bottom: 40px;
    }

    .section-heading h2 {
        font-size: 32px;
        letter-spacing: -1.5px;
    }

    .section-heading p {
        font-size: 14px;
    }

    footer {
        padding: 35px 16px;
    }
}


/* =========================
   VERY SMALL PHONES
========================= */

@media (max-width: 360px) {

    .navbar {
        padding: 0 12px;
    }

    .logo {
        font-size: 18px;
    }

    .nav-button {
        font-size: 11px;
        padding: 8px 10px;
    }

    .hero {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .cv-paper {
        width: 300px;
        padding: 22px;
    }
}