/* =========================
   GENERAL
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

   font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

    background: #f4f9fc;

    color: #222;
}


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

.header {
    max-height: 95px;

    display: flex;
    align-items: center;

    padding: 5px 4%;

    background: white;

    border-bottom: 4px solid rgb(10, 150, 230);

    position: sticky;
    top: 0;

    z-index: 100;

    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.05);
}


/* =========================
   LOGO
========================= */

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

.logo {
    width: 180px;
    height: 180px;

    object-fit: contain;
}


/* =========================
   NAVIGATION
========================= */

.navigation {
    display: flex;

    gap: 5px;

    margin-left: auto;
}

.nav-button {
    border: 2px solid transparent;

    background: white;

    padding: 12px 22px;

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

    cursor: pointer;

    color: #333;

    transition: 0.2s;
}

.nav-button:hover {
    color: rgb(10, 150, 230);

    border-color: rgb(10, 150, 230);
}

.nav-button.active {
    background: rgb(10, 150, 230);

    color: white;

    border-color: rgb(10, 150, 230);

    box-shadow:
        0 4px 12px rgba(10, 150, 230, 0.25);
}


/* =========================
   PAGE SYSTEM
========================= */

.page {
    display: none;

    min-height: auto;

    padding: 60px 7% 90px;

    position: relative;

    overflow: hidden;
}

.active-page {
    display: block;
}



/* =========================
   HOME
========================= */

.hero {
    max-width: 1000px;

    margin: 30px auto 70px;

    padding: 65px 50px;

    text-align: center;

    background: white;

    border-left: 6px solid rgb(10, 150, 230);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.07);

    position: relative;

    z-index: 1;
}

.hero h1 {
    font-size: 48px;

    margin: 0 0 25px;

    color: #222;
}

.hero h1::after {
    content: "";

    display: block;

    width: 70px;
    height: 4px;

    margin: 22px auto 0;

    background: rgb(10, 150, 230);
}

.hero p {
    max-width: 750px;

    margin: 15px auto;

    font-size: 18px;

    line-height: 1.7;

    color: #555;
}


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

.about-section {
    max-width: 900px;

    margin: 0 auto;

    padding: 45px;

    text-align: center;

    background: white;

    border-top: 4px solid rgb(10, 150, 230);

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.05);

    position: relative;

    z-index: 1;
}

.about-section h2 {
    font-size: 30px;

    margin-top: 0;

    color: rgb(10, 150, 230);
}

.about-section p {
    max-width: 750px;

    margin: auto;

    line-height: 1.7;

    color: #555;
}


/* =========================
   PAGE TITLES
========================= */

.page-title {
    text-align: center;

    margin: 10px auto 45px;

    position: relative;

    z-index: 1;
}

.page-title h1 {
    font-size: 42px;

    margin: 0 0 15px;

    color: #222;
}

.page-title h1::after {
    content: "";

    display: block;

    width: 60px;
    height: 4px;

    margin: 15px auto 0;

    background: rgb(10, 150, 230);
}

.page-title p {
    color: #666;

    font-size: 17px;

    line-height: 1.6;
}


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

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 300px);
    gap: 20px;
    justify-content: center;
}


.project-card {
    background: white;

    border: 2px solid #dce5ea;

    overflow: hidden;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.06);

    transition:
        transform 0.2s,
        box-shadow 0.2s,
        border-color 0.2s;
}

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

    border-color: rgb(10, 150, 230);

    box-shadow:
        0 12px 30px rgba(10, 150, 230, 0.14);
}

.project-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}


.project-info {
    padding: 20px;
}

.project-info h3 {
    margin: 0 0 10px;

    font-size: 21px;

    color: rgb(10, 150, 230);
}

.project-info p {
    margin: 0;

    color: #666;

    line-height: 1.5;
  
    white-space: pre-line;
}

@media (max-width: 650px) {

    .projects-grid {
        grid-template-columns: 1fr;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .project-card {
        width: 100%;
        max-width: 300px;
        justify-self: center;
        box-sizing: border-box;
    }

}

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

.contact-container {
    max-width: 900px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(300px, 1fr));

    gap: 25px;

    position: relative;

    z-index: 1;
}


.contact-card {
    background: white;

    border: 1px solid #dce5ea;

    padding: 35px 30px;

    text-align: center;

    min-height: 220px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.06);

    transition:
        transform 0.2s,
        border-color 0.2s,
        box-shadow 0.2s;
}

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

    border-color: rgb(10, 150, 230);

    box-shadow:
        0 10px 25px rgba(10, 150, 230, 0.12);
}


.contact-card h2 {
    margin: 0 0 20px;

    color: rgb(10, 150, 230);

    font-size: 27px;
}


.contact-card p {
    margin: 8px 0;

    line-height: 1.6;
}


.contact-card strong {
    color: #222;
}


.contact-card a {
    color: rgb(10, 150, 230);

    text-decoration: none;

    font-size: 16px;
}

.contact-card a:hover {
    text-decoration: underline;
}


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

.footer {
    background: rgb(10, 150, 230);

    color: white;

    padding: 35px 7%;

    display: grid;

    grid-template-columns:
        1fr 1fr 1fr;

    align-items: center;

    gap: 30px;

    font-size: 13px;

    line-height: 1.7;

    box-shadow:
        0 -4px 15px rgba(0, 0, 0, 0.08);
}


.footer strong {
    color: white;
}


.footer a {
    color: white;

    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}


.footer-copyright {
    text-align: center;

    opacity: 0.9;
}


.footer-builder {
    text-align: right;

    opacity: 0.9;
}


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

@media (max-width: 700px) {

    .header {
        padding: 10px 15px;

        flex-wrap: wrap;

        gap: 10px;
    }


    .logo {
        width: 50px;
        height: 50px;
    }


    .navigation {
        margin-left: auto;

        gap: 2px;
    }


    .nav-button {
        padding: 9px 11px;

        font-size: 13px;
    }


    .page {
        padding: 40px 18px 60px;
    }


    .hero {
        margin: 20px auto 45px;

        padding: 40px 25px;
    }


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


    .hero p {
        font-size: 16px;
    }


    .about-section {
        padding: 30px 25px;
    }

    .page-title {
        margin-bottom: 35px;
    }


    .page-title h1 {
        font-size: 34px;
    }


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


    .contact-card {
        min-height: 200px;
    }


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

        text-align: center;

        padding: 30px 20px;
    }


    .footer-copyright {
        text-align: center;
    }


    .footer-builder {
        text-align: center;
    }

}
