/* Import Inter font family from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

/* Overall Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

/* Custom CSS Variables */
:root {
    --bg-main-color: white;
    --text-main-color: black;
    --footer-color: black;
    --custom-green: #5d9c69;
    --translucent-black: rgba(0, 0, 0, .15);
    --bg-gradient-color: #e6dc82;
}

/* Body Styling */
body {
    min-height: 100vh;
    background: linear-gradient(white, var(--bg-gradient-color));
    background-size: cover;
    background-attachment: fixed;
    overflow-x: hidden;
    overflow-y: scroll;
}

/* Start Navigation Bar Styling */
nav {
    position: fixed;
    top: 0;
    z-index: 100;
    display: flex;
    width: 100%;
    height: 5rem;
    justify-content: space-between;
    align-items: center;
    padding: 1rem calc((100vw - 1300px) / 2);
    box-shadow: 0 0 .3rem rgba(0, 0, 0, .2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    user-select: none;
}

/* TOM Text Styling */
.logo {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-main-color);
    text-decoration: none;
    transition: .2s ease;
    user-select: none;
}

.logo:hover {
    color: var(--custom-green); /* Title text turns green on hover */
}

/* Menu Styling */
.top-menu {
    position: relative;
    margin: 0 .3rem;
    padding: .6rem .9rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main-color);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.3s;
    user-select: none;
}

.top-menu:hover {
    background-color: rgba(220, 220, 220, 0.5);
}

.top-menu.active {
    background: var(--custom-green); /* Active green button */
    color: var(--bg-main-color); /* White text */
    transition: box-shadow .2s ease; 
}

.top-menu.active:hover {
    box-shadow: 0 0 .3rem var(--custom-green); /* Green box shadow on button of active page when active */
}

.icon {
    display: none; /* Keep icon hidden when wide screen */
    color: white;
    transition: 0.25s;
    background: var(--nav-bar-color);
}

.icon:hover {
    color: black;
    background: var(--nav-bar-color);
}
/* End Navigation Bar Styling */

/* Start Footer Styling */
footer {
    position: fixed;
    z-index: 100;
    bottom: 0;
    display: flex;
    flex-direction: column;
    padding: .4rem 0 .6rem;
    width: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--footer-color);
    color: var(--bg-main-color);
    user-select: none;
}

/* Footer Link Styling */
footer a {
    display: flex;
    margin-bottom: .2rem;
    width: 3rem;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--bg-main-color);
    text-decoration: none;
}

/* Footer Github Icon Styling */
footer .github {
    width: 3rem;
    height: 3rem;
    fill: var(--bg-main-color);
    transition: 0.1s;
}

footer .github:hover {
    fill: var(--custom-green);
}

footer p {
    font-size: 0.75rem;
    margin: 0;
    background-color: transparent;
}
/* End Footer Styling */

/* Start About TOM Styling */
.title {
    margin: 8rem 1rem 1rem;
    text-align: center;
    color: var(--text-main-color);
}

.title:nth-child(2) {
    transition-delay: 360ms;
}

.title h1 {
    font-size: 2.5rem;
    font-weight: 600;
}

.title p {
    font-size: 1.3rem;
    font-weight: 400;
}

.meet-tom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem;
}

.meet-image {
    user-select: none;
}

.meet-description, .contact-us{
    margin: 0.75rem;
    text-align: center;
    color: var(--text-main-color);
}

.contact-us {
    margin: 2.5rem;
}

.creation-description, .details-description, .features-description {
    margin: 3rem;
    text-align: center;
}

.meet-description h1,
.contact-us h1, .creation-description h1, .details-description h1, .features-description h1 {
    margin: 0.75rem;
    font-size: 2rem;
}

.meet-description p,
.contact-us p {
    margin: 0 auto;
    max-width: 35rem;
    font-size: 1.3rem;
}

.tom-creation, .tom-features-title {
    margin: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.7rem;
}

.tom-details {
    margin: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.7rem;
}

.creation-description p, .features-description p {
    margin: 0 auto;
    max-width: 35rem;
    font-size: 1.3rem;
    text-align: center;
}

.details-description p {
    margin: 0 auto;
    max-width: 45rem;
    font-size: 1.3rem;
    text-align: center;
}

.meet-description p {
    text-align: left;
}

.contact-us p {
    max-width: 45rem;;
    text-align: center;
}

#tom-home {
   width: 15rem;
   margin: 1rem;
}

.three-features, .form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.form {
    padding-bottom: 10rem;
}

.card {
    padding: 2rem;
    max-width: 70rem; 
    border-radius: 35px;
    box-shadow: 0 0 .2rem var(--translucent-black);
    background: var(--translucent-black);
    color: black;
    transition: .2s ease;
}

.card-right {
    padding: 2rem;
    max-width: 70rem; 
    border-radius: 35px;
    text-align: right;
    box-shadow: 0 0 .2rem var(--translucent-black);
    background: var(--translucent-black);
    color: black;
    transition: .2s ease;
}

.card:hover,
.card-right:hover {
    box-shadow: 0 0 .8rem var(--translucent-black);
}

.card h1, 
.card-right h1 {
    font-size: 1.75rem;
}

.card span,
.card-right span {
    font-weight: 500;
}

.feature {
    display: flex;
    align-items: top;
    justify-content: center;
    gap: 2rem;
}

.feature p {
    padding-top: 2rem;
    font-size: 1.3rem;
    max-width: 25rem;
}

.feature img {
    width: 20rem;
    height: auto;
    user-select: none;
}

.form-content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

label p {
    margin-bottom: .5rem;
}

.form-container {
    padding: 3rem;
    width: 45rem; 
    height: 100%;
    border-radius: 35px;
    box-shadow: 0 0 .2rem rgba(0, 0, 0, .8);
    background: rgba(0, 0, 0, .7);
    color: white;
    transition: .2s ease;
}

.form-container:hover {
    box-shadow: 0 0 .5rem rgba(0, 0, 0, .8);
}

.form-container h1 {
    font-size: 1.5rem;
}

.left input,
.right input,
.left textarea,
.right textarea {
    margin-bottom: 1rem;
    padding: 1rem;
    width: 100%;
    height: 2.5rem;
    border-radius: 20px;
    font-size: 1.1rem;
    background: #F4F3EA;
    color: black;
    resize: none;
}

.left,
.right {
    flex: 1;
    max-width: 70%;
}

#message {
    padding: 1.2rem 1rem 12rem;
    height: 10rem;
    font-size: 1rem;
}

.right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#send-button {
    display: flex;
    padding: 0;
    height: 2.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 20px;
    box-shadow: 0 0 .2rem var(--bg-main-color);
    background: var(--bg-main-color);
    color: black;
    transition: .2s ease;
    cursor: pointer;
}

#send-button:hover {
    box-shadow: 0 0 .2rem black;
    background: black;
    color: var(--bg-main-color);
}

.hidden {
    opacity: 0;
    transition: all 1.5s;
}

.show {
    opacity: 1;
}

.hidden-tom {
    opacity: 0;
    filter: blur(5px);
    transform: translateX(100%);
    transition: all 1s;
}

.show-tom {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

.hidden-type {
    opacity: 0;
}

.visible {
    opacity: 1;
}
/* End About TOM Styling */

/* Start Animation Styling */
.exit {
    opacity: 0;
    transition: all 1s ease-in-out;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        filter: blur(5px);
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        filter: blur(5px);
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateX(0);
    }
}

@media(prefers-reduced-motion) {
    .hidden {
        transition: none;
    }
}
/* End Animation Styling */

/* Start Responsiveness Styling */
@media screen and (max-width: 768px) {
    .tom-container2 {
        grid-template-columns: 1fr;
    }
}

/* Collapsed menu visible once screen width under 1182px */
@media screen and (max-width: 1182px) { 
    nav {
        flex-direction: row;
        align-items: flex-start;
        background: var(--nav-bar-color);
    }

    .logo {
        margin: 0.75rem 0rem 0rem 1rem;
    }

    .top-menu {
        display: none; 
    }

    .icon {
        display: block;
        float: right;
        padding: 14px 16px;
        background: var(--nav-bar-color);
        border-radius: 50%;
        color: black;
    }

    .icon:hover {
        background: rgb(186, 186, 186);
    }

    .nav-items.responsive .top-menu {
        display: block;
        background-color: var(--bg-main-color);
        margin: 1rem;
    }

    .nav-items.responsive {
        position: relative;
        background-color: white;
        color: black;
        z-index: 1;
        border-radius: 15px;
        box-shadow: 0px 8px 16px rgba(28, 28, 28, 0.288);
        position: absolute;
        right: 0; 
        top: 60px; 
        width: auto;
        border: 2px solid var(--custom-green);
    }

    .nav-items.responsive a {
        float: none;
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        text-align: left;
        background-color: var(--bg-main-color);
    }

    .nav-items.responsive a:hover {
        background-color: var(--custom-green);
        color: white;
    }

    .nav-items.responsive {
        display: block;
    }
}
/* End Responsiveness Styling */