/* CSS Reset */

@font-face {
  font-family: 'Figtree';
  src: url("../fonts/Figtree.woff2") format("woff2")
}
@font-face {
  font-family: 'Atkinson Hyperlegible Mono';
  src: url("../fonts/Atkinson_Hyperlegible_Mono.woff2") format("woff2")
}

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

:root {
    --primary-red: #af1919ff;
    --primary-blue: #052d5aff;
}

html {
    height: 100%;
}
body {
    font-family: Figtree, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
 }
body::before {
    content: ' ';
    display: block;
    position: absolute;
    z-index: -1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: radial-gradient(circle at top, rgba(0, 0, 0, .6) 0% 60%, rgba(255, 255, 255, 0.2) 75% 100%), url("../img/bg-matrix.svg");
    background-image: radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.2) 0% 30%, rgba(0, 0, 0, .6) 55% 100%), url("../img/bg-matrix.svg");
    background-image: linear-gradient(90deg, rgba(0, 0, 0, .6) 70%, rgba(244, 244, 244, 0.3)), url("../img/bg-matrix.svg");
    background-repeat: no-repeat, repeat;
    background-size: auto, 60px;
}

a {
    color: var(--primary-blue);
    text-decoration: underline;
    text-decoration-style: dashed;
}

a:hover {
    color: var(--primary-red);
    text-decoration: underline;
    text-decoration-style: dashed;
}

/*----- Header Section -----*/
.header-background {
    width: 100%;
    background-color: #FFF;
    display: flex;
    justify-content: space-around;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.header {
    width: 100%;
    background-color: #FFF;
    color: #000;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
}
.logo {
    max-height: 5rem;
}
#logo-link {
    margin: 0;
    padding: 0;
    height: 5em;
}
.nav {
    position: relative;
}
.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.menu li {
    position: relative;
}
.menu a {
    color: #000;
    font-size: 1.5em;
    font-weight: 300;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
}
.menu a:hover {
    text-decoration: underline;
    text-decoration-style: dashed;
    color: var(--primary-red);
}
.menu a:hover {
    text-decoration: underline;
    text-decoration-style: dashed;
    color: var(--primary-red);
}
.hamburger {
    display: none;
    cursor: pointer;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #555;
    margin: 5px 0;
    transition: 0.4s;
}
.mobile-menu {
    display: none;
}
.mobile-menu:checked ~ .menu {
    max-height: 100vh;
    opacity: 1;
}

 /*----- Content Section -----*/
 .content {
    font-size: 1.25rem; /* Base font size, adjust as needed (15-25px for web) */
    font-weight: 300;
    max-width: 1200px;
    flex: 1;
    line-height: 1.6;
    margin: 1rem auto; /* Center the content */
    padding: 1em;
 }
 .content p {
    margin-bottom: 1em; /* Adds space below each paragraph */
 }
.overline {
    font-variant-caps: all-small-caps;
}


/*----- About/Experience Section -----*/
#definition {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

#definition::before {
    content: "»";
    margin-right: 5px;
    font-size: 1.5rem;
    color: var(--primary-blue);
}

#experience-list {
    -webkit-columns: 2;
    -moz-columns: 2;
    columns: 2;
    padding-left: 25px;
    text-align: left;
    margin-bottom: 3rem;
}
#experience-list li {
    list-style-image: url("../img/bullet-square-square-red.svg");
}
#experience-list li::marker {
    font-size: 1.5rem;
}

#project-list {
      padding-left: 25px;
}
#project-list li {
    list-style-image: url("../img/bullet-square-square-red.svg");
}
#project-list li::marker {
    font-size: 1.5rem;
}

.project-title {
    font-weight: bold;
    font-size: 1.25rem;
    margin-right: 10px;
}
.project-description {
    display: block;
    padding-left: 15px;
}


/*----- Contact Layout -----*/
.contact-line {
    color: black;
}
.contact-line a {
    text-decoration: none;
    color: var(--primary-red);
}
.contact-line a:hover {
    text-decoration: underline;
    text-decoration-style: dashed;
    color: var(--primary-red);
}

/*----- Home Layout -----*/
.container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
    align-items: center;
}
.text-box {
    text-align: center;
}
.text-box h1  {
    text-align: center;
}
.text-box .contact-button
{
    text-align: center;
}
.image-grid-mobile {
    display: none;
}
.image-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px;
}
.image-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: left bottom;
    border-radius: 5px;
}
.seperator-space {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.seperator-bar {
    line-height: 0;
    border-bottom: 2px solid var(--primary-red);
}

.hero {
    font-weight: bold;
    font-size: 3rem;
    text-wrap: balance;
    margin-bottom: 4rem;
}

.call-to-action {
    display: grid;
    justify-content: center;
}
.cta-text {
    font-weight: bold;
    color: var(--primary-red);
}
.cta-button {
    margin: 10px;
}
.cta-button-href {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    background-color: var(--primary-red);
    color: white;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.cta-button-href:hover {
    background-color: var(--primary-blue);
    text-decoration: none;
}
 /*----- Services -----*/
.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.service-column {
    text-align: left;
    display: grid;
    grid-template-rows: 40% min-content auto;
    align-items: baseline;
    background: rgba(200, 200, 200, 0.25);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
}
.service-title {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
}
.service-tagline {
    display: block;
    font-size: 1.25rem;
    font-style: italic;
}
.service-description {

}
.service-list-header {
    display: block;
    font-weight: 500;
}
.service-list {
    padding-left: 25px;
    font-size: 1rem;

}
.service-list li {
    list-style-image: url("../img/bullet-square-square-red.svg");
}
.service-list li::marker {
    font-size: 1.5rem;
}
.service-bottom-row {
    margin-top: 1.5rem;
}

#services-cta {
    text-align: center;
}

#services-cta > .seperator-space {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

 /*----- Footer Section -----*/
 .footer {
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    text-align: center;
    margin-top: auto;
    padding-right: 5px;
    background-image: url("../img/ordo-logo-touchmark.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position-y: bottom;
    background-position-x: right;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(30, 30, 30, 0.88);
    font-family: "Atkinson Hyperlegible Mono", monospace;
    color: rgba(255, 255, 255);
    z-index: 999;
 }
.footer a {
    text-decoration: none;
    color: rgba(255, 255, 255);
}
.footer a:hover {
    text-decoration: underline dashed;
    color: rgba(255, 255, 255);
}
.footerbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-size: 1.1rem;
}
#footer-email, #footer-phone {
    display: flex;
    align-items: center;
    column-gap: 8px;
    padding-top:4px;
}
#footer-phone img {
    height: 1em;
}
#footer-email img {
    height: 1em;
}
.footer-copyright {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    font-size: 0.8rem;
}

/*--------------------------*/
/*----- Mobile Section -----*/
/*--------------------------*/
/* Responsive Design - Narrow Screens */
@media screen and (max-width: 768px) {
    body{
        position: relative;
    }
    body:before {
        height: 100%;
        background-image: linear-gradient(rgba(0, 0, 0, .6), rgba(255, 255, 255, .2)), url("../img/bg-matrix.svg");
        background-repeat: no-repeat, repeat;
        background-size: auto, 10%;
    }
    /* Show Hamburger Menu*/
    .hamburger {
        display: block;
    }
    /* Hide links until hamburger clicked */
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        max-height: 0;
        transition: max-height 0.3s ease-out;
        background-color: #111;
    }
    .menu li {
        text-align: center;
    }
    .menu a {
        border-bottom: 1px solid #5a5a5a;
        padding: 0;
    }
    /* Allow links to wrap to next line under main header content. */
    .header {
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        z-index: 1100;
        padding: 10px 25px 10px 10px;
    }
    .logo {
        max-height: 3.5rem;
    }
    #logo-link {
        margin: 0;
        padding: 0;
        height: 3.5em;
    }
    /* Force links to next line by considering width at 100%. */
    .nav {
        flex-basis: 100%;
    }
    /* Mobile Menu styling. */
    .menu-link {
        width: 100%;
        background-color: var(--primary-red);
        color: #FFF;
        display: inline-block;
        line-height: 4rem;
    }
    .menu-link:hover {
        background-color: var(--primary-blue);
        color: #FFF;
    }
    .mobile-menu:checked + .nav .menu {
        display: flex;
        font-size: 1.5em;
    }
    /* Mobile Content styling */
    .content {
        z-index: 1001;
        font-size: 1.15rem;
        margin-top: 0;
        padding: 5px 10px 0px 10px;
    }
    .content h1 {
        font-size: 1.5rem;
    }
    .content h2 {
        font-size: 1.25rem;
    }
    .content p {
        text-align: left;
    }
    .text-box h1 {
        font-size: 1.5rem;
    }
    .text-box p {
        text-align: center;
    }
    .seperator-space {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    .container {
        grid-template-columns: 1fr;
        padding: 0px 5px 0px 5px;
    }
    .text-box {
        padding: 0px 5px 0px 5px;
    }
    .image-grid {
        display: none;
    }
    .image-grid-mobile {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        padding: unset;
        gap: 5px;
    }
    .image-box img {
        width: 100%;
        height: 100px;
        object-fit: cover;
        object-position: bottom;
        border-radius: 5px;
        gap: 5px;
    }
    .hero {
        font-size: 1.8rem;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
    /*----- Mobile About Section -----*/
    #definition {
        text-wrap: balance;
        text-align: center;
    }
    #experience-list {
        -webkit-columns: 1;
        -moz-columns: 1;
        columns: 1;
    }
    #project-list {
        text-align: left;
    }
    .project-description {
        padding-left: 5px;
    }
     /*----- Mobile Services -----*/
    .services-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .service-column {
        grid-template-rows: initial;
        padding: 0 20px 20px 20px;
    }
    .service-title {
        border-bottom: 1px solid var(--primary-red);
        font-size: 1.25rem;
    }


    /* Ensure footer background image doesn't interfere with footer text legibility */
    .footer {
        background-blend-mode: overlay;
    }
    /*----- Mobile Contact Layout -----*/
    .contact-line {
        text-align: left;
    }
 }

/* iPad styles */
@media screen and (min-width:768px) and (max-width: 1024px) {
    .logo {
        max-height: 4rem;
    }
    #logo-link {
        height: 4em;
    }
    .menu a {
        font-size: 1.25em;
    }
    .content {
        z-index: 1001;
        display: grid;
        margin: 0;
    }
    /* Make image section half the size of text (1 column) */
    .container {
        grid-template-columns: 2fr 1fr;
    }
    .image-grid {
        grid-template-columns: 1fr;
    }
    /*----- Mobile Services -----*/
    .services-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .service-column {
        grid-template-rows: initial;
        padding: 0 20px 20px 20px;
    }
    .service-title {
        border-bottom: 1px solid var(--primary-red);
    }
 }