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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #09090b;
    color: #f4f4f5;
    line-height: 1.5;
}

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


/* =========================
   HEADER
========================= */

.header {
    width: 100%;
    border-bottom: 1px solid #222025;
}

.nav {
    width: 88%;
    max-width: 1100px;
    height: 65px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-size: 13px;
    color: #a1a1aa;
    transition: 0.2s;
}

.nav-links a:hover {
    color: #a855f7;
}


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

.hero {
    width: 88%;
    max-width: 1100px;

    min-height: 560px;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 60px;
}

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

.eyebrow {
    color: #a855f7;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1;
    margin-bottom: 25px;
}

.hero h1 span {
    color: #a855f7;
}

.description {
    max-width: 530px;
    font-size: 16px;
    color: #a1a1aa;
}

.buttons {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.button {
    padding: 11px 18px;
    border: 1px solid #3f3f46;
    font-size: 13px;
    transition: 0.2s;
}

.primary {
    background: #7e22ce;
    border-color: #7e22ce;
    color: white;
}

.primary:hover {
    background: #9333ea;
}

.secondary {
    color: #d4d4d8;
}

.secondary:hover {
    border-color: #a855f7;
    color: #a855f7;
}


/* =========================
   FOTO
========================= */

.photo-container {
    width: 240px;
    height: 300px;
    flex-shrink: 0;

    overflow: hidden;

    border: 1px solid #3f3f46;
    background: #18181b;
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================
   SECCIONES
========================= */

.section {
    width: 88%;
    max-width: 1100px;

    margin: auto;
    padding: 75px 0;

    border-top: 1px solid #222025;
}

.section-label {
    color: #a855f7;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section h2 {
    font-size: 36px;
    margin-bottom: 35px;
}


/* =========================
   SOBRE MI
========================= */

.about {
    max-width: 700px;
}

.about p {
    font-size: 17px;
    color: #a1a1aa;
    margin-bottom: 15px;
}

.about strong {
    color: #e4e4e7;
}


/* =========================
   TECNOLOGIAS
========================= */

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid #27272a;
    border-left: 1px solid #27272a;
}

.tech {
    padding: 22px;

    border-right: 1px solid #27272a;
    border-bottom: 1px solid #27272a;

    min-height: 105px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    transition: 0.2s;
}

.tech:hover {
    background: #111014;
    border-color: #7e22ce;
}

.tech span {
    font-size: 17px;
    font-weight: bold;
}

.tech small {
    color: #71717a;
    font-size: 12px;
}


/* =========================
   PROYECTOS
========================= */

.projects {
    display: flex;
    flex-direction: column;
}

.project {
    display: grid;
    grid-template-columns: 70px 1fr;

    padding: 32px 0;

    border-top: 1px solid #27272a;
}

.project:last-child {
    border-bottom: 1px solid #27272a;
}

.project-number {
    font-size: 12px;
    color: #71717a;
}

.project-content {
    max-width: 700px;
}

.project h3 {
    font-size: 23px;
    margin-bottom: 10px;
}

.project p {
    font-size: 15px;
    color: #a1a1aa;
    margin-bottom: 12px;
}

.project-tech {
    font-size: 12px;
    color: #a855f7;
    margin-bottom: 15px;
}

.project a {
    font-size: 13px;
    color: #d4d4d8;
}

.project a:hover {
    color: #a855f7;
}


/* =========================
   FORMACION
========================= */

.education {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.education > div {
    border-left: 2px solid #7e22ce;
    padding-left: 20px;
}

.date {
    font-size: 11px;
    color: #71717a;
    letter-spacing: 1px;
}

.education h3 {
    margin-top: 4px;
    font-size: 19px;
}

.education p {
    color: #71717a;
    font-size: 14px;
}


/* =========================
   CONTACTO
========================= */

.contact {
    width: 88%;
    max-width: 1100px;

    margin: auto;
    padding: 75px 0;
}

.contact h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.contact-description {
    max-width: 550px;
    color: #a1a1aa;
    font-size: 15px;
}


/* =========================
   FORMULARIO
========================= */

.contact-form {
    max-width: 650px;
    margin-top: 35px;

    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-size: 12px;
    color: #a1a1aa;
}

.form-group input,
.form-group textarea {
    width: 100%;

    padding: 12px 14px;

    background: #111113;
    border: 1px solid #27272a;

    color: #f4f4f5;

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition: 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #a855f7;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-button {
    align-self: flex-start;

    padding: 11px 22px;

    background: #7e22ce;
    border: 1px solid #7e22ce;

    color: white;

    font-family: inherit;
    font-size: 13px;

    cursor: pointer;

    transition: 0.2s;
}

.form-button:hover {
    background: #9333ea;
}


/* =========================
   LINKS
========================= */

.contact-links {
    display: flex;
    gap: 25px;
    margin-top: 35px;
}

.contact-links a {
    color: #a1a1aa;
    font-size: 13px;

    border-bottom: 1px solid #3f3f46;
    padding-bottom: 4px;
}

.contact-links a:hover {
    color: #a855f7;
    border-color: #a855f7;
}


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

footer {
    border-top: 1px solid #222025;

    padding: 25px 6%;

    color: #52525b;
    font-size: 12px;
}


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

@media (max-width: 800px) {

    .nav-links {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 75px 0;

        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .photo-container {
        width: 200px;
        height: 250px;
    }

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

    .section {
        padding: 60px 0;
    }

    .project {
        grid-template-columns: 45px 1fr;
    }
}


@media (max-width: 500px) {

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

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

    .buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-links {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}
 
