/*
:root {
    --primary-color: #4b0082;
    --highlight-color: #ffd700;
}
*/

:root {
    --primary-color: #000000;
    --highlight-color: #ffd700;
    --text-color: #ffffff;
    --steel: #4f5b62;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Roboto, Arial, Helvetica, sans-serif;
    font-size: 16px;
    color: var(--text-color);
}

body {
    background-color: var(--primary-color);
}

/* HEADER AND NAV */
header {
    position: fixed;
    top: 0;
    z-index: 1000;
    height: 80px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
}
.logo {
    display: flex;
    justify-content: left;
    align-items: center;
}
.logo-link {
    text-decoration: none;
}
.brendan-name {
    padding-left: 1rem;
    font-family: Rochester, cursive;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-color);
}
nav {
    display: flex;
    justify-content: right;
    align-items: center;
}
nav>p {
    display: none;
}
.hamburger-menu {
    width: 30px;
    cursor: pointer;
}
.pop-down-menu {
    display: none;
    position: absolute;
    top: 80px;
    right: 5px;
    background-color: var(--primary-color);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid white;
    border-radius: 4px;
    z-index: 1000;
}
.pop-down-menu li {
    padding: 8px 16px;
    text-align: center;
}
.pop-down-menu li a {
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: normal;
}
.pop-down-menu li a:hover {
    background-color: #404040;
}
nav a, nav a:active, nav a:after, nav a:before, nav a:visited {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
}
nav>button, button {
    padding: 0.5rem;
    color: #000000;
    font-weight: bold;
}
nav>button {
    display: none;
}

/* HERO SECTION */
.hero {
    min-height: 650px;
    width: 100%;
    background: url('../images/nebula-background-wavy.jpg') no-repeat center center;
    background-size: cover;
    padding-top: 120px;
}
.hero-text {
    width: 90%;
    margin: 0 5%;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 24px;
    border: 15px solid var(--steel);
    text-align: center;
}

/* SUBPAGE HEADING */
.subpage-heading {
    background-color: var(--primary-color);
    padding-top: 120px;
}
.subpage-heading h1 {
    font-size: 2.4rem;
}
.subpage-heading p {
    font-size: 1.4rem;
}
.subpage-heading h1, .subpage-heading p {
    padding: 1rem 0;
    background-color: var(--primary-color);
    text-align: center;
}

/* SERVICES SECTION */
.services-section {
    padding-bottom: 60px;
    background-color: var(--primary-color);
}
.services-section .columns-three {
    display: flex;
    flex-direction: column;
}
.services-section .column-third {
    width: 90%;
    margin: 0 5% 30px 5%;
}
.services-section h2, .services-section h3 {
    text-align: center;
}
.services-section img {
    height: 200px;
    width: auto;
}
.services-section h2 {
    margin-top: 0;
}
.services-section .column-third {
    border: 3px solid var(--steel);
    border-radius: 24px;
    padding: 1rem;
}

/* ABOUT SECTION */
.about-section {
    /* background: url('../images/milky-way.jpg') no-repeat center center;
    background-size: cover; */
    background-color: var(--primary-color);
    margin-bottom: 0;
    padding: 60px 0;
}
.opera-house {
    display: none;
}
.about-section h2 {
    text-align: center;
}
.about-section .columns-two {
    display: block;
    margin: 0 5%;
}
.about-box {
    width: 90%;
    margin: 0 5%;
}

/* CONTACT SECTION */
.contact-section {
    background-color: var(--primary-color);
    padding: 60px 0;
}
.contact-section .columns-two {
    display: block;
    margin: 0 10%;
}
.contact-section .column-half {
    margin-bottom: 80px;
}

/* FOOTER */
footer {
    background-color: var(--primary-color);
    padding: 1rem;
}
footer .legal {
    margin-top: 40px;
    text-align: center;
}

/* MULTIPLE SECTIONS */
.bordered-screen {
    background-color: rgba(0, 0, 0, 0.7);
    border: 15px solid var(--steel);
    border-radius: 24px;
    padding: 1rem 2rem;
}
.services-section img, .about-section img {
    display: block;
    margin: 0 auto;
    border-radius: 24px;
}
.icon-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.columns-two .column-half .icon-row img {
    width: 40px;
    height: auto;
    border: 0;
    gap: 1;
}

/* FLEX LAYOUTS */
.column-single {
    margin: 0 10%;
    border-radius: 24px;
}
.columns-two {
    margin: 0 10%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 5%;
}
.column-half {
    flex: 1;
}
.columns-three {
    display: flex;
    justify-content: space-between;
}
.column-third {
    flex: 1;
    margin: 0 3rem;
}
.columns-two .column-half img, .columns-two img.column-half {
    width: 200px;
    height: auto;
    border: 3px solid var(--steel);
    border-radius: 24px;
}
footer div.socials .icon-row {
    margin-bottom: 50px;
}
footer div.socials .icon-row:last-child {
    margin-bottom: 0;
}

/* FORM */
form {
    width: 100%;
}
label {
    display: block;
    width: 100%;
    margin: 1rem 0;
}
input {
    display: block;
    width: 100%;
    margin: 1rem 0;
    padding: 0.5rem;
    color: var(--primary-color);
}
form button {
    margin-top: 30px;
}

/* GENERAL */
h1, h2, h3, p {
    margin-top: 1rem;
    margin-bottom: 1rem;
}
h1 {
    margin-top: 0;
    font-size: 2rem;
}
h2 {
    font-size: 1.8rem;
}
h3 {
    font-size: 1.3rem;
}
.subheading, .location {
    font-size: 1.4rem;
    font-weight: bold;
}
.justify-text {
    text-align: justify;
}
.center-text {
    text-align: center;
}
.cta-button {
    background-color: var(--highlight-color);
    border-radius: 12px;
}

/* MEDIA QUERIES */

/* Mobile devices */
@media screen and (max-width:768px) {
    .hide-on-mobile {
        display: none;
    }
    /* FOOTER */
    footer.column-reverse {
        flex-direction: column-reverse;
    }
}

/* Small tablets in portrait orientation */
@media screen and (min-width: 600px) and (orientation: portrait) {
    footer {
        justify-content: space-between;
        align-items: center;
    }
    .columns-two {
        flex-direction: row;
    }
    .row-reverse {
        flex-direction: row-reverse;
    }
    .services-section h2 {
        padding-top: 20px;
    }
}

/* Small tablets in landscape orientation */
@media screen and (min-width: 600px) and (orientation: landscape) {
    footer {
        justify-content: space-between;
        align-items: center;
    }
    .opera-house img {
        width: 400px;
        height: auto;
        border: 3px solid var(--steel);
    }
    .columns-two img.column-half {
        width: 400px;
        height: auto;
    }
}

/* Larger than a phone */
@media screen and (min-width: 769px) {
    * {
        font-size: 14px;
    }

    /* HEADER SECTION */
    header {
        height: 120px;
    }
    nav>p {
        display: block;
        margin: 0 1rem;
    }
    nav>button, button {
        padding: 1rem;
    }
    nav>button {
        margin-left: 2rem;
        display: block;
    }
    .hamburger-menu {
        display: none;
    }

    /* HERO SECTION */
    .hero {
        width: 100%;
        background: url('../images/hero-section-wavy.jpg') no-repeat center center;
        background-size: cover;
        padding-top: 15vh;
    }
    .hero-text {
        width: 40vw;
        margin-left: 10vw;
        padding: 2rem;
        background-color: rgba(0, 0, 0, 0.7);
        border-radius: 24px;
        border: 15px solid var(--steel);
    }
    /* SERVICES SECTION */
    .services-section {
        padding-top: 0;
        padding-bottom: 60px;
    }
    .services-section .columns-three {
        flex-direction: row;
        justify-content: space-between;
    }
    .services-section .column-third {
        width: 96%;
        margin: 0 2% 30px 2%;
    }
    .services-section h2 {
        font-size: 2.5rem;
        margin-top: -70px;
        padding-bottom: 2rem;
    }
    .services-section h3 {
        font-size: 1.8rem;
    }

    /* ABOUT SECTION */
    .about-section .columns-two {
        display: flex;
        margin: 0 10%;
    }
    .about-box {
        width: 100%;
        margin: 0;
    }
    .opera-house {
        display: block;
    }
    img.brendan-in-space {
        display: none;
    }
    
    /* CONTACT SECTION */
    .contact-section .columns-two {
        display: flex;
        align-items: flex-start;
        margin: 0 10%;
    }

    /* FOOTER */
    footer {
        justify-content: space-between;
        align-items: center;
    }
    footer.column-reverse {
        flex-direction: row;
    }
    footer .legal {
        margin-top: 0;
        text-align: left;
    }
    footer div.socials .icon-row {
        justify-content: end;
    }

    /* NARROWED-COLUMNS */
      .narrowed-column {
        margin-left: 20%;
        margin-right: 20%;
    }

    main ul {
        padding-left: 20px;
    }
}

/* 720P laptops */
@media screen and (min-width: 1280px) {
    /* HEADER SECTION */
    header {
        height: 100px;
    }
    .brendan-name {
        font-size: 1.5rem;
    }
    nav a, nav a:active, nav a:after, nav a:before, nav a:visited {
        font-size: 1.3rem;
    }

    /* HERO SECTION */
    .hero {
        min-height: 650px;
    }

    /* SERVICES SECTION */
    .services-section h2 {
        font-size: 2.2rem;
        padding-bottom: 1.2rem;
    }
    .services-section h3 {
        font-size: 1.4rem;
    }
    .services-section img {
        height: 180px;
    }

    /* GENERAL */
    .columns-two .column-half img, .columns-two img.column-half {
        width: 400px;
    }

    /* FLEX RULES */
    .columns-two {
        flex-direction: row;
    }
    .row-reverse {
        flex-direction: row-reverse;
    }
}

/* Larger than 720P but smaller than 1080P */
@media screen and (min-width: 1281px) {
    * {
        font-size: 16px;
    }

    .hero {
        min-height: 100lvh;
    }
}

/* 1080P and above */
@media screen and (min-width: 1920px) {
    * {
        font-size: 18px;
    }

    .brendan-name {
        font-size: 2rem;
    }

    h1, h2, h3, p {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    h1 {
        margin-top: 0;
        font-size: 2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    h3 {
        font-size: 1.3rem;
    }
    .subheading {
        font-size: 2.5rem;
        font-weight: bold;
    }
    .location {
        font-size: 2rem;
        font-weight: bold;
    }
}