/* =====================================================
   GLOBAL
===================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    color: #172238;
    background: #ffffff;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

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

button {
    font-family: inherit;
}

:root {
    --blue: #087ff5;
    --blue-dark: #006bd8;
    --dark: #031225;
    --text: #172238;
    --gray: #707070;
    --light: #f3f7fb;
    --border: #dce3e9;
}

.container {
    width: min(86%, 1150px);
    margin: 0 auto;
}

.section {
    padding: 30px 0;
}


/* =====================================================
   SECTION HEADING
===================================================== */

.section-heading {
    text-align: center;
    margin-bottom: 22px;
}

.section-heading h2 {
    position: relative;
    display: inline-block;

    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.section-heading h2::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -7px;

    transform: translateX(-50%);

    width: 28px;
    height: 2px;

    background: var(--blue);
}


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

.header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 68px;

    z-index: 1000;

    background: rgba(2, 12, 25, 0.97);
}

.navbar {
    height: 68px;

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


/* LOGO */

.logo {
    display: flex;
    align-items: center;

    gap: 5px;

    color: white;
}

.logo-symbol {
    display: flex;
    align-items: center;

    color: var(--blue);

    font-size: 50px;
    font-weight: 700;
}

.logo-symbol i {
    font-size: 25px;
}

.logo-text {
    display: flex;
    flex-direction: column;

    line-height: 16px;
}

.logo-text strong {
    font-size: 25px;
    font-weight: 700;
}

.logo-text small {
    font-size: 15px;
    letter-spacing: 1px;
    color: #b8b8b8;
}


/* NAV */

.nav {
    display: flex;
    align-items: center;

    gap: 31px;
}

.nav a {
    position: relative;

    color: white;

    font-size: 18px;
    font-weight: 500;

    transition: .3s;
}

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

.nav a.active::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -20px;

    transform: translateX(-50%);

    width: 58px;
    height: 2px;

    background: var(--blue);
}


/* RESUME */

.resume-btn {
    display: flex;
    align-items: center;

    gap: 6px;

    color: white;

    background: var(--blue);

    padding: 9px 25px;

    border-radius: 5px;

    font-size: 15px;
    font-weight: 600;

    transition: .3s;
}

.resume-btn:hover {
    background: var(--blue-dark);
}


/* MOBILE BUTTON */

.menu-btn {
    display: none;

    width: 38px;
    height: 35px;

    border: none;

    background: transparent;

    color: white;

    font-size: 22px;

    cursor: pointer;
}


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

.hero {
    position: relative;

    min-height: 520px;

    display: flex;
    align-items: center;

    background:
        url("images/hero.jpg")
        center center / cover no-repeat;

    color: white;
}

.hero-overlay {
    position: absolute;

    inset: 0;

    background-image: url(https://www.designdevelopment.com.mx/assets/img/slide/frontend_development_banner.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    padding-top: 55px;

    max-width: 650px;
}

.hero-content h2 {
    color: white;

    font-size: clamp(30px, 4vw, 38px);

    line-height: 1.15;

    font-weight: 600;
}

.hero-content h1 {
    color: var(--blue);

    font-size: clamp(38px, 5vw, 50px);

    line-height: 1.2;

    margin: 3px 0 10px;

    font-weight: 700;
}

.hero-content p {
    font-size: 13px;

    font-weight: 500;

    margin-bottom: 23px;
}

.hero-buttons {
    display: flex;

    gap: 11px;

    flex-wrap: wrap;
}

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 10px 29px;

    border-radius: 5px;

    font-size: 15px;
    font-weight: 600;

    transition: .3s;
}

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

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

.btn-outline {
    border: 1px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: #111;
}


/* SCROLL */

.scroll-down {
    position: absolute;

    left: 50%;
    bottom: 14px;

    transform: translateX(-50%);

    width: 35px;
    height: 35px;

    border: 1px solid white;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    color: white;

    font-size: 15px;

    z-index: 3;
}


/* =====================================================
   ABOUT
===================================================== */

.about {
    background: white;
}

.about-container {
    min-height: 205px;

    display: grid;

    grid-template-columns: 36% 64%;

    align-items: center;
}

.about-image {
    position: relative;

    height: 190px;

    display: flex;

    justify-content: center;
    align-items: center;
}

.profile-bg {
    position: relative;

    z-index: 2;

    width: 180px;
    height: 180px;

    overflow: hidden;

    border-radius: 50%;

    background: #edf1f5;

    border: 5px solid #f7f9fb;
}

.profile-bg img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.dots {
    position: absolute;

    width: 190px;
    height: 180px;

    left: 17%;

    background-image:
        radial-gradient(
            #087ff5 1px,
            transparent 1px
        );

    background-size: 7px 7px;

    opacity: .35;
}

.profile-check {
    position: absolute;

    z-index: 3;

    right: 24%;
    bottom: 20px;

    width: 45px;
    height: 45px;

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

    border-radius: 50%;

    color: white;

    background: var(--blue);

    font-size: 15px;
}

.about-content {
    padding-left: 10px;
}

.section-label {
    color: var(--blue);

    font-size: 30px;
    font-weight: 700;
}

.about-content h2 {
    font-size: 17px;

    margin: 3px 0 9px;
}

.about-content p {
    max-width: 850px;

    color: #555;

    font-size: 10px;

    line-height: 1.75;
}

.about-list {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 6px 30px;

    margin-top: 11px;
}

.about-list div {
    display: flex;

    align-items: center;

    gap: 7px;

    font-size: 18px;
}

.about-list i {
    color: var(--blue);

    font-size: 21px;
}


/* =====================================================
   SKILLS
===================================================== */

.skills {
    background: var(--light);
}

.skills-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 13px 48px;
}

.skill-header {
    display: flex;

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

    margin-bottom: 5px;

    font-size: 19px;
}

.skill-title {
    display: flex;

    align-items: center;

    gap: 9px;
}

.skill-title i {
    width: 20px;

    text-align: center;

    font-size: 18px;
}

.html {
    color: #e44d26;
}

.css {
    color: #1572b6;
}

.javascript {
    color: #e9d44d;
}

.python {
    color: #3776ab;
}

.bootstrap {
    color: #7952b3;
}

.git {
    color: #f05032;
}

.cpp,
.c {
    color: #286090;
}

.sql {
    color: #1976b8;
}

.progress {
    width: 100%;
    height: 5px;

    overflow: hidden;

    background: #dce3e9;

    border-radius: 20px;
}

.progress span {
    display: block;

    height: 100%;

    border-radius: 20px;

    background: var(--blue);
}


/* =====================================================
   SERVICES
===================================================== */

.services {
    background: white;
}

.services-grid {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 13px;
}

.service-card {
    min-height: 200px;

    padding: 13px 7px;

    background: white;

    text-align: center;

    border-radius: 5px;

    box-shadow:
        0 3px 13px rgba(0, 0, 0, .09);

    transition: .3s;
}

.service-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 9px 22px rgba(0, 0, 0, .13);
}

.service-icon {
    width: 60px;
    height: 60px;

    margin: 0 auto 7px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: var(--blue);

    background: #eef6ff;

    font-size: 18px;
}

.service-card h3 {
    font-size: 18px;

    line-height: 1.4;

    margin-bottom: 5px;
}

.service-card p {
    color: #777;

    font-size: 10px;

    line-height: 1.55;
}


/* =====================================================
   PROJECTS
===================================================== */

.projects {
    background: var(--light);
}

.projects-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 16px;
}

.project-card {
    overflow: hidden;

    background: white;

    border-radius: 5px;

    box-shadow:
        0 2px 10px rgba(0, 0, 0, .07);

    text-align: center;

    transition: .3s;
}

.project-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, .12);
}

.project-card > img {
    width: 100%;
    height: 100px;

    object-fit: cover;
}

.project-info {
    padding: 9px 6px 11px;
}

.project-info h3 {
    font-size: 18px;

    margin-bottom: 5px;
}

.project-info p {
    color: #777;

    font-size: 12px;

    margin-bottom: 10px;
}

.project-btn {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    color: white;

    background: var(--blue);

    padding: 8px 18px;

    border-radius: 4px;

    font-size: 11px;
    font-weight: 600;
}


/* =====================================================
   DETAILS
===================================================== */

.details {
    background: white;
}

.details-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);
}

.details-column {
    padding: 0 34px;

    border-right: 1px solid var(--border);
}

.details-column:first-child {
    padding-left: 0;
}

.details-column:last-child {
    padding-right: 0;

    border-right: none;
}

.detail-item {
    display: flex;

    gap: 10px;

    margin-bottom: 11px;
}

.detail-item > i {
    color: var(--blue);

    width: 20px;

    font-size: 25px;

    text-align: center;
}

.detail-item h3 {
    font-size: 18px;
    margin-left: 20px;

    margin-bottom: 7px;
}

.detail-item p {
    color: #777;

    font-size: 10px;
    margin-left: 20px;
    line-height: 1.5;
}

.experience-date {
    display: flex;

    align-items: center;

    gap: 7px;

    color: var(--blue);

    font-size: 20px;

    font-weight: 700;

    margin-bottom: 13px;
}

.check-row {
    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 15px;

    margin-bottom: 9px;
}

.check-row i {
    color: var(--blue);
}

.certificate {
    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 18px;

    margin-bottom: 11px;
}

.certificate i {
    color: #f5a900;

    font-size: 14px;
}


/* =====================================================
   TESTIMONIALS
===================================================== */

.testimonials {
    background: var(--light);
}

.testimonial-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 34px;
}

.testimonial-card {
    position: relative;

    min-height: 88px;

    padding: 13px 25px;

    background: white;

    text-align: center;

    box-shadow:
        0 2px 10px rgba(0, 0, 0, .04);

    border-radius: 4px;
}

.quote {
    position: absolute;

    left: 9px;
    top: 3px;

    color: #dce4eb;

    font-size: 45px;
}

.stars {
    color: #f7b718;

    font-size: 25px;

    margin-bottom: 5px;
}

.testimonial-card p {
    color: #45617e;

    font-size: 15px;

    line-height: 1.55;
}

.testimonial-card strong {
    display: block;

    font-size: 13px;

    margin-top: 4px;
}


/* =====================================================
   CONTACT
===================================================== */

.contact {
    background: white;

    padding-top: 18px;
    padding-bottom: 14px;
}

.contact-grid {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 15px;
}

.contact-item {
    display: flex;

    align-items: center;

    gap: 10px;
}

.contact-item > i {
    color: var(--blue);

    min-width: 18px;

    font-size: 28px;

    text-align: center;
}

.contact-item h4 {
    font-size: 18px;

    margin-bottom: 1px;
}

.contact-item p {
    color: #777;

    font-size: 12px;

    white-space: nowrap;
}


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

footer {
    background: var(--dark);

    color: white;

    padding: 12px 0;
}

.footer-container {
    display: flex;

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

.copyright p {
    font-size: 15px;

    margin-bottom: 2px;
}

.copyright span {
    color: var(--blue);

    font-size: 15px;
}

.social-icons {
    display: flex;

    align-items: center;

    gap: 15px;
}

.social-icons a {
    color: white;

    font-size: 18px;

    transition: .3s;
}

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


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

@media screen and (min-width: 1400px) {

    .container {
        width: 1200px;
    }

    .hero {
        min-height: 600px;
    }

    .hero-content h2 {
        font-size: 43px;
    }

    .hero-content h1 {
        font-size: 56px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .about-container {
        min-height: 250px;
    }

    .profile-bg {
        width: 220px;
        height: 220px;
    }

    .about-image {
        height: 230px;
    }

    .dots {
        width: 230px;
        height: 220px;
    }

    .about-content h2 {
        font-size: 21px;
    }

    .about-content > p {
        font-size: 11px;
    }

}


/* =====================================================
   LAPTOP / SMALL DESKTOP
===================================================== */

@media screen and (max-width: 1100px) {

    .container {
        width: 90%;
    }

    .nav {
        gap: 20px;
    }

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

    .contact-grid {
        grid-template-columns:
            repeat(3, 1fr);

        row-gap: 17px;
    }

}


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

@media screen and (max-width: 800px) {

    .header {
        height: auto;

        position: fixed;
    }

    .navbar {
        min-height: 65px;
    }

    .nav {
        position: absolute;

        top: 65px;
        left: 0;

        width: 100%;

        display: none;

        flex-direction: column;

        gap: 0;

        padding: 10px 0;

        background: rgba(2, 12, 25, .98);
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        width: 100%;

        padding: 12px 0;

        text-align: center;

        font-size: 12px;
    }

    .nav a.active::after {
        display: none;
    }

    .menu-btn {
        display: block;

        margin-left: auto;
        margin-right: 15px;
    }

    .resume-btn {
        display: none;
    }


    /* ABOUT */

    .about-container {
        grid-template-columns: 1fr;

        gap: 25px;

        text-align: center;
    }

    .about-image {
        height: 190px;
    }

    .about-content {
        padding-left: 0;
    }

    .about-list {
        text-align: left;
    }


    /* SKILLS */

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

        gap: 15px 30px;
    }


    /* SERVICES */

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

        gap: 15px;
    }


    /* PROJECTS */

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

        gap: 18px;
    }


    /* DETAILS */

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

        gap: 30px;
    }

    .details-column {
        padding: 0 15px;

        border-right: none;
    }

    .details-column:first-child {
        padding-left: 0;
    }

    .details-column:nth-child(2) {
        padding-right: 0;
    }

    .details-column:last-child {
        grid-column: 1 / -1;

        padding: 25px 0 0;

        border-top: 1px solid var(--border);
    }


    /* TESTIMONIALS */

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

        gap: 15px;
    }

    .testimonial-card:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: auto;
    }


    /* CONTACT */

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

        gap: 17px 25px;
    }

}


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

@media screen and (max-width: 600px) {

    .container {
        width: 90%;
    }

    .section {
        padding: 28px 0;
    }


    /* HEADER */

    .header {
        height: 62px;
    }

    .navbar {
        height: 62px;
    }

    .logo-text strong {
        font-size: 22px;
    }

    .logo-symbol {
        font-size: 20px;
    }

    .logo-symbol i {
        font-size: 21px;
    }


    /* HERO */

    .hero {
        min-height: 500px;

        background-position:
            65% center;
    }

    .hero-content {
        padding-top: 40px;
    }

    .hero-content h2 {
        font-size: 30px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-content p {
        max-width: 320px;

        font-size: 10px;

        line-height: 1.7;
    }

    .btn {
        padding: 10px 14px;

        font-size: 10px;
    }


    /* ABOUT */

    .about-container {
        gap: 20px;
    }

    .profile-bg {
        width: 175px;
        height: 175px;
    }

    .dots {
        left: 18%;

        width: 180px;
        height: 175px;
    }

    .profile-check {
        right: 23%;
    }

    .about-content > p {
        font-size: 9px;

        text-align: left;
    }

    .about-list {
        grid-template-columns: 1fr;

        gap: 7px;
    }


    /* SKILLS */

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

        gap: 14px;
    }


    /* SERVICES */

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

    .service-card {
        min-height: 140px;
    }


    /* PROJECTS */

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

    .project-card > img {
        height: 180px;
    }


    /* DETAILS */

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

        gap: 25px;
    }

    .details-column,
    .details-column:first-child,
    .details-column:nth-child(2),
    .details-column:last-child {
        padding: 0 0 20px;

        border-right: none;

        border-bottom: 1px solid var(--border);
    }

    .details-column:last-child {
        padding-top: 0;

        border-bottom: none;
    }


    /* TESTIMONIALS */

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

    .testimonial-card:last-child {
        grid-column: auto;

        max-width: 100%;
    }


    /* CONTACT */

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

    .contact-item p {
        white-space: normal;
    }


    /* FOOTER */

    .footer-container {
        flex-direction: column;

        gap: 10px;

        text-align: center;
    }

}


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

@media screen and (max-width: 400px) {

    .hero {
        min-height: 480px;
    }

    .hero-content h2 {
        font-size: 27px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: flex-start;
    }

    .btn {
        width: max-content;
    }

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

    .service-card {
        min-height: 125px;
    }

    .project-card > img {
        height: 160px;
    }

}


/* =====================================================
   EXTRA SMALL DEVICES
===================================================== */

@media screen and (max-width: 320px) {

    .container {
        width: 92%;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content h2 {
        font-size: 24px;
    }

    .profile-bg {
        width: 155px;
        height: 155px;
    }

    .dots {
        width: 160px;
        height: 155px;
    }

    .profile-check {
        right: 18%;
    }

}