/*
    Name: Aero
    File Name: aerothemesdasdas555.css
    Project: Future Technologies Showcase
    Description: Main style sheet for all website pages.
*/

/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&family=Roboto:wght@400;500;700&display=swap');

/* =========================
   CSS RESET / BASE STYLES
   Mobile First Design
   ========================= */

article,
aside,
audio,
body,
caption,
div,
fieldset,
figcaption,
figure,
footer,
form,
header,
iframe,
img,
input,
label,
legend,
li,
main,
nav,
ol,
p,
section,
select,
table,
tbody,
td,
textarea,
tfoot,
th,
thead,
tr,
ul,
video {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
}

body {
    min-height: 100vh;
    font-family: "Roboto", Arial, sans-serif;
    line-height: 1.6;
    color: #f5f7fa;
    background: linear-gradient(135deg, #07111f, #102e46, #24566d);
}

header {
    position: relative;
    padding: 2rem 1rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.25);
}

h1,
h2,
h3 {
    font-family: "Orbitron", Arial, sans-serif;
}

h1 {
    font-size: 2rem;
    color: #ffffff;
    text-shadow: 3px 3px 8px #000000;
}

h2 {
    margin-top: 0.5rem;
    font-size: 1.1rem;
    color: #c7f7ff;
}

h3 {
    margin-bottom: 0.75rem;
    color: #9ff4ff;
}

h4 {
    margin-top: 1rem;
    color: #ffffff;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #9ff4ff;
    font-weight: 700;
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
}

audio {
    width: 100%;
    margin-top: 1rem;
}

figure {
    margin-top: 1rem;
}

figcaption {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #d9edf2;
    font-style: italic;
}

main {
    width: min(1100px, 94%);
    margin: 0 auto;
    padding: 1.5rem 0;
}

footer {
    padding: 1.5rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.35);
}

/* =========================
   MOBILE NAVIGATION
   ========================= */

.menu-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: block;
    padding: 0.5rem 0.8rem;
    font-size: 1.6rem;
    color: #ffffff;
    background: #10364d;
    border: 2px solid #9ff4ff;
    border-radius: 0.5rem;
    cursor: pointer;
}

nav {
    display: none;
    background: rgba(0, 0, 0, 0.55);
}

nav.show {
    display: block;
}

nav ul {
    list-style-type: none;
}

nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

nav a {
    display: block;
    padding: 1rem;
    color: #ffffff;
    text-decoration: none;
}

/* =========================
   GENERAL PAGE COMPONENTS
   ========================= */

.hero-figure {
    max-width: 900px;
    margin: 1.5rem auto 0;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.feature-card {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.feature-card ul,
.feature-card ol {
    margin-left: 1.25rem;
    margin-bottom: 1rem;
}

.mobile-only {
    display: block;
}

.tablet-up,
.desktop-only {
    display: none;
}

/* =========================
   TABLE STYLES
   ========================= */

.mobile-table-replacement {
    display: block;
}

.tech-table {
    display: none;
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 0.75rem;
}

.tech-table caption {
    padding: 0.75rem;
    font-family: "Orbitron", Arial, sans-serif;
    font-size: 1.2rem;
    color: #ffffff;
    caption-side: top;
}

.tech-table th,
.tech-table td {
    padding: 0.85rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.tech-table th {
    color: #06131d;
    background: #9ff4ff;
}

.tech-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.1);
}

.tech-table tr:nth-child(odd) {
    background: rgba(0, 0, 0, 0.2);
}

/* =========================
   FORM STYLES
   ========================= */

form {
    display: grid;
    gap: 1rem;
}

fieldset {
    padding: 1rem;
    border: 2px solid rgba(159, 244, 255, 0.7);
    border-radius: 0.75rem;
}

legend {
    padding: 0 0.5rem;
    color: #9ff4ff;
    font-weight: 700;
}

label,
.form-question {
    display: block;
    margin-top: 0.75rem;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.75rem;
    font: inherit;
    color: #07111f;
    border-radius: 0.5rem;
    border: 2px solid transparent;
}

input[type="radio"],
input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

input[type="submit"],
input[type="reset"] {
    color: #ffffff;
    background: #126782;
    cursor: pointer;
}

textarea {
    resize: vertical;
}

.map {
    width: 100%;
    min-height: 300px;
    border-radius: 1rem;
    border: 2px solid rgba(159, 244, 255, 0.7);
}

/* =========================
   MEDIA PAGE STYLES
   ========================= */

.media-card video {
    width: 100%;
    margin-top: 1rem;
}

/* =========================
   ANIMATION REQUIREMENT
   ========================= */

@keyframes glowPulse {
    0% {
        text-shadow: 0 0 5px #9ff4ff;
    }

    50% {
        text-shadow: 0 0 20px #9ff4ff;
    }

    100% {
        text-shadow: 0 0 5px #9ff4ff;
    }
}

header h1 {
    animation: glowPulse 4s infinite;
}

/* =========================
   TABLET VIEW
   Begins at 600px
   ========================= */

@media screen and (min-width: 600px) {
    .menu-toggle {
        display: none;
    }

    nav {
        display: block;
    }

    nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav li {
        border-bottom: none;
    }

    nav a {
        padding: 1rem 0.85rem;
    }

    .grid-layout {
        grid-template-columns: repeat(2, 1fr);
    }

    .span-two {
        grid-column: span 2;
    }

    .tablet-up {
        display: block;
    }

    .mobile-only {
        display: none;
    }

    .mobile-table-replacement {
        display: none;
    }

    .tech-table {
        display: table;
    }
}

/* =========================
   DESKTOP VIEW
   Begins at 992px
   ========================= */

@media screen and (min-width: 992px) {
    body {
        font-size: 1.05rem;
    }

    h1 {
        font-size: 3rem;
    }

    main {
        padding: 2.5rem 0;
    }

    .desktop-only {
        display: block;
    }

    .feature-card {
        padding: 1.5rem;
    }

    #home-content {
        grid-template-columns: repeat(3, 1fr);
    }

    #home-content .span-two {
        grid-column: span 3;
    }

    /* Required dynamic pseudo-classes in desktop media query */
    nav a:hover {
        color: #07111f;
        background: #9ff4ff;
    }

    nav a:active {
        color: #ffffff;
        background: #ffb703;
    }

    nav a:focus {
        outline: 3px solid #ffffff;
        outline-offset: -3px;
    }

    .feature-card:hover {
        transform: translateY(-6px);
        transition: transform 0.3s ease, background 0.3s ease;
        background: rgba(255, 255, 255, 0.18);
    }

    input:focus,
    select:focus,
    textarea:focus {
        border-color: #9ff4ff;
        outline: none;
    }
}

/* =========================
   LARGE DESKTOP VIEW
   Begins at 1200px
   ========================= */

@media screen and (min-width: 1200px) {
    body {
        background: linear-gradient(135deg, #020611, #12384f, #2e7c8d);
    }

    h1 {
        font-size: 3.5rem;
    }

    main {
        width: min(1200px, 92%);
    }

    .grid-layout {
        gap: 1.75rem;
    }
}

/* =========================
   PRINT VIEW
   ========================= */

@media print {
    body {
        color: #000000;
        background: #ffffff;
        font-family: Arial, sans-serif;
    }

    header,
    footer,
    .feature-card {
        color: #000000;
        background: #ffffff;
        box-shadow: none;
    }

    nav,
    .menu-toggle,
    img,
    video,
    audio,
    iframe {
        display: none;
    }

    a {
        color: #000000;
        text-decoration: underline;
    }

    main {
        width: 100%;
    }
}