/*==============================
=   JavaScript From Scratch - CSS
=   Page: Contact
=   File: contact.css
==============================*/

/*======================================
=   CSS VARIABLES (Custom Properties)
======================================*/

:root {
    --color-primary: #A9F00F;
    --color-secondary: #152025;
    --color-tertiary: #97b8ffbf;
    --color-quaternary: #0D0326;
    --color-quinary: #334805;
    --color-senary: #fff;
    --color-septenary: #000;
    --color-octonary: #D7E5D8;
    --color-nonary: #F0F4F1;
    --color-denary: #caff3a;
    --color-undecimary: #232e36;
    --color-duodecimary: #eaf2ff;
    --color-tridecimary: #333;
    --font-main: 'Syne', Arial, sans-serif;
    --font-secondary: Arial, sans-serif;
    --shadow: 0 0.25rem 2rem 0 rgba(0,0,0,0.18);

    /* Background colors as variables */
    --bg-primary: #A9F00F;
    --bg-secondary: #152025;
    --bg-tertiary: #97b8ffbf;
    --bg-quaternary: #0D0326;
    --bg-quinary: #334805;
    --bg-senary: #fff;
    --bg-septenary: #000;
    --bg-octonary: #D7E5D8;
    --bg-nonary: #F0F4F1;
    --bg-denary: #caff3a;
    --bg-undecimary: #232e36;
    --bg-duodecimary: #eaf2ff;
    --bg-tridecimary: #333;
}



/*======================================
=   RESET STYLES
======================================*/

html {
    scroll-behavior: smooth;
}

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



/*======================================
=   BODY AND BASE STYLES
======================================*/

body {
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    overflow-x: hidden;
    word-wrap: break-word;
    text-rendering: optimizeLegibility;
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: var(--font-main);
    background: url('https://imgproxy.gamma.app/resize/quality:80/resizing_type:fit/width:2400/https://cdn.gamma.app/zc87vhr30n8uf3n/f98b42d8e16844b0a93c848818d04ee3/original/no-star-3.png') center/cover no-repeat fixed;
    color: var(--color-octonary);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}


/*---------- Animations ----------*/

/*--- Animation from small to large ---*/
.fade__scale {
    opacity: 0;
    transform: scale(0.85);
}

.fade__scale.visible {
    animation: fadeScaleIn 0.6s cubic-bezier(.4,0,.2,1) forwards;
}

@keyframes fadeScaleIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/*--- Animation from right to left ---*/
.fade__right {
    opacity: 0;
}

.fade__right.visible {
    animation: slideFromRight .7s ease-out forwards;
}

@keyframes slideFromRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/*--- Animation from bottom to top ---*/
.fade__bottom {
    opacity: 0;
}

.fade__bottom.visible {
    animation: slideFromBottom .7s ease-out forwards;
}

@keyframes slideFromBottom {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/*======================================
=   HEADER SECTION
======================================*/

.header {
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 100%;
    height: 80px;
    padding-inline: 20px;
    background-color: rgba(21,32,37,0.85);
    box-shadow: 0 0 10px var(--bg-septenary);
}


/*--- Header Logo ---*/
.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--color-primary);
    cursor: pointer;
    padding: 0;
}

.header__logo--img {
    width: 48px;
    height: auto;
}

.header__brand {
    font-family: var(--font-main);
    font-size: 1.1rem;
    letter-spacing: .1rem;
    color: var(--color-primary);
}



/*==============================
=   MAIN
==============================*/

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-inline: 25px;
    background-color: rgba(21,32,37,0.85);
}

/* Contact section card */
.contact__section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 710px;
}

.contact__title {
    width: 100%;
    margin-top: 50px;
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    color: var(--color-primary);
}

.contact__section p {
    width: 100%;
    margin-top: 10px;
    font-size: 1rem;
    text-align: center;
}

.contact__main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}


/*---------- Contact Form ----------*/
.contact__form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: clamp(300px, 75vw, 500px);
}

.form__group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    width: 100%;
}


.form__group label {
    font-size: 1.1rem;
    color: var(--color-primary);
}

.form__group input,
.form__group textarea {
    width: 100%;
    height: auto;
    padding: 15px 10px;
    border: 2px solid var(--color-undecimary);
    border-radius: 8px;
    outline: none;
    resize: none;
    font-size: 1rem;
    color: var(--color-denary);
    background-color: transparent;
}

.form__group input:focus,
.form__group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 5px var(--color-tertiary);
}

.input__error {
    color: #ff4d4f;
    font-size: 0.9rem;
}

.btn__primary {
    width: 50%;
    padding-block: 15px;
    border: none;
    border-radius: 0.5rem;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    color: var(--color-septenary);
    cursor: pointer;
    background-color: var(--bg-primary);
    transition: background-color .4s;
}


.btn__primary:hover {
    background-color: var(--bg-denary);
}


/*--- Contact Information ---*/
.contact__info {
    width: 100%;
    text-align: center;
}


.contact__info h2 {
    color: var(--color-nonary);
}

.contact__info ul {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}

.contact__info ul li {
    color: var(--color-denary);
}

.contact__info ul li > a {
    color: var(--color-primary);
}

.contact__info ul li a:hover {
    text-decoration: underline;
}

footer {
    padding: 100px 15px 20px;
    font-size: .9rem;
    text-align: center;
    color: var(--color-octonary);
    background-color: rgba(21,32,37,0.85);
}

footer p strong {
    font-weight: 700;
    color: var(--color-primary);
}


/*------------- MEDIA QUERIES: MAIN TABLET AND DESKTOP -------------*/
@media (min-width: 992px) {
    .contact__title,
    .contact__section p {
        text-align: start;
    }

    .contact__main {
        flex-direction: row;
        align-items: flex-start;
        gap: 30px;
    }

    .contact__info {
        width: auto;
        text-align: start;
    }
}
/*------------- END MEDIA QUERIES -------------*/