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

html,
body {
    width: 100%;
}

/* Generic Styles */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.height-zero {
    height: 0;
}

.hidden {
    display: none;
}

h1 {
    font-size: 20px;
    background-color: transparent;
    margin: 30px 0 0 0;
    text-align: center;
}

.flip {
    transform: rotateX(180deg)
}

.sticky {
    position: sticky;
    top: 0;
    z-index: 10;
}

p {
    line-height: 1.2em;
}

main {
    animation: spinIn 0.6s ease-in-out;
}

@keyframes spinIn {
    0% {
        transform: rotateZ(90deg) scale(0);
        opacity: 0;
    }

    75% {
        transform: rotateZ(-10deg) scale(.5);
        opacity: 1;
    }

    100% {
        transform: rotateZ(0deg) scale(1);
        opacity: 1;
    }
}

/* Body */

body {
    background: linear-gradient(to bottom, #ffffff 10%, #b0b0b0);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    font-family: Arial, sans-serif;
    color: black;
    padding: 0 10px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Nav Bar */
nav {
    padding: 10px;
    text-align: center;
    background: linear-gradient(to bottom, rgb(255, 0, 0), rgb(0, 0, 0));
    position: fixed;
    top: 0;
    z-index: 9;
    overflow: hidden;
    transition: height 0.5s ease;
    width: 95%;
    border-radius: 5px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    ;
    justify-content: center;
    align-items: center;
    transition: all 1s ease;
}

nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    margin: 10px 15px;
    font-size: 20px;
    display: block;
    outline: 2px solid white;
    padding: 5px 10px;
    border-radius: 5px;
    background: linear-gradient(to left, rgb(0, 0, 0), rgb(255, 0, 0), rgb(0, 0, 0));
    height: 40px;
}

nav a:hover {
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.nav-collapsed {
    height: 33px;
}

.nav-extended {
    height: 340px;
}

.fa-caret-down {
    transform: scale(3);
}

#nav-toggle {
    border: none;
    background-color: transparent;
    color: white;
    display: block;
    margin: auto;
}

/* Main Content */

section.flex-container {
    padding: 20px;
    align-items: stretch;
    justify-items: left;
    height: 100%;
}

.card {
    background: linear-gradient(to right, rgb(62, 62, 62), rgb(0, 0, 0));
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 300px;
    height: 330px;
    text-align: center;
    box-shadow: 5px 5px 5px 5px gray;
}

.card a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    display: flex;
    align-items: center;
    margin-top: 10px;
    outline: 2px solid white;
    padding: 5px 10px;
    border-radius: 5px;
    background: linear-gradient(to right, rgb(0, 0, 0), rgb(255, 0, 0), rgb(0, 0, 0));
}

.card a:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.card p {
    height: 50%;
    line-height: 1.5em;
}

/* Footer */
footer {
    text-align: center;
    padding: 10px;
    background: linear-gradient(to right, rgb(62, 62, 62), rgb(0, 0, 0));
    color: white;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

i {
    color: white;
}

footer a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    outline: 2px solid white;
    padding: 5px 10px;
    border-radius: 5px;
    background: linear-gradient(to right, rgb(0, 0, 0), rgb(255, 0, 0), rgb(0, 0, 0));
    width: 180px;
    margin: 10px auto 0 auto;
}

footer a:hover {
    transform: scale(1.1);
    transition: all 0.3s ease;
}

#mailto {
    display: none;
}

#tel {
    flex-direction: column;
    gap: 1px;
}

/* Responsive Design For Mobile*/
@media (min-width: 680px) {

    /* Body */
    h1 {
        font-size: 30px;
        text-align: left;
    }

    /* Nav Bar */

    nav {
        position: sticky;
        top: 0;
        width: 100%;
    }

    .nav-collapsed,
    .nav-extended {
        height: auto;
    }

    nav ul {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    nav a {
        display: inline-block;
        background: linear-gradient(to right, rgb(62, 62, 62), rgb(0, 0, 0));
    }

    #nav-toggle {
        display: none;
    }

    p {
        line-height: 1.8em;
    }

    h1 {
        font-size: 2rem;
        text-align: center;
        font-weight: 700;
        color: white;
        margin-top: 2rem;
        margin-bottom: 1rem;
        position: relative;
        display: inline-block;
        letter-spacing: 1px;
        background: linear-gradient(to right, rgb(0, 0, 0), rgb(255, 0, 0), rgb(0, 0, 0));
        width: 100%;
    }

    h1::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -8px;
        transform: translateX(-50%);
        width: 80%;
        height: 4px;
        background: linear-gradient(to right, rgb(0, 0, 0), rgb(255, 0, 0), rgb(0, 0, 0));
        border-radius: 2px;
        transition: width 0.3s ease;
    }

    h1:hover::after {
        width: 100%;
    }

    #mailto {
        display: flex;
    }

    #tel {
        display: none;
    }
}