/* general page styling */
* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;

    font-family: 'Courier New', monospace;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;

    font-family: 'Courier New', monospace;
    font-size: 16px;
    line-height: 1.6;

    color: #302532;

    background: linear-gradient(
        135deg,
        #f8d7e6 0%,
        #f0b2cc 50%,
        #cd7da5 100%
    );

    overflow-x: hidden;
    position: relative;
}


/* particals */

#particles-js {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 0;
    pointer-events: none;
}


/* content */

nav,
main,
footer {
    position: relative;
    z-index: 1;
}


/* nav bar*/

nav {
    text-align: center;
    padding: 15px 10px;

    position: relative;
    z-index: 2;
}

#nav_bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 15px;

    list-style: none;
    padding: 0;
    margin: 0;
}

#nav_bar .nav_button {
    display: inline-block;
    list-style: none;
    margin: 0;
}

nav a {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: bold;

    color: #553653;
    text-decoration: none;

    transition: color 0.3s ease,
                opacity 0.3s ease;
}

nav a:hover {
    color: #FFFFFF;
    opacity: 0.85;
}


/* headings */

h1,
h2,
h3 {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-align: center;

    color: #553653;
}

h1 {
    font-size: 38px;

    margin: 20px 0 10px;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 22px;
}


/* main */

main {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 10px 20px 50px;
    margin: 0;
}

main p {
    max-width: 550px;

    font-family: 'Courier New', monospace;
    font-size: 17px;
    font-weight: normal;
    line-height: 1.7;

    color: #553653;

    text-align: center;

    padding: 0 10px;
    margin: 0 0 25px;
}


/* =contact form*/

.form-container {
    display: block;

    width: 100%;
    max-width: 450px;

    margin: 15px auto 30px;
    padding: 35px;

    background: rgba(248, 237, 242, 0.85);

    border: 1px solid rgba(85, 54, 83, 0.15);
    border-radius: 18px;

    box-shadow:
        0 10px 35px rgba(85, 54, 83, 0.15);

    backdrop-filter: blur(8px);

    transition: box-shadow 0.3s ease,
                transform 0.3s ease;
}

.form-container:hover {
    box-shadow:
        0 14px 40px rgba(85, 54, 83, 0.22);

    transform: translateY(-2px);
}


/* contact form layout */

#contactForm {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    width: 100%;
    gap: 10px;
}


/* form lables*/

#contactForm label {
    display: block;

    width: 100%;

    font-family: 'Courier New', monospace;
    font-size: 15px;
    font-weight: bold;

    color: #553653;

    text-align: left;

    margin: 0;
}


/* form input */

.form-control,
#contactForm input,
#contactForm textarea {
    display: block;

    width: 100%;

    box-sizing: border-box;

    padding: 13px 15px;
    margin: 0 0 12px;

    border: 1px solid #D8A8C0;
    border-radius: 9px;

    background: rgba(255, 255, 255, 0.85);

    color: #302532;

    font-family: 'Courier New', monospace;
    font-size: 15px;

    outline: none;

    transition: border 0.3s ease,
                box-shadow 0.3s ease,
                background 0.3s ease;
}


/* Input focus effect */

.form-control:focus,
#contactForm input:focus,
#contactForm textarea:focus {
    border-color: #553653;

    background: #FFFFFF;

    box-shadow:
        0 0 0 3px rgba(85, 54, 83, 0.12);
}


/* Placeholder text */

.form-control::placeholder,
#contactForm input::placeholder,
#contactForm textarea::placeholder {
    color: #947C90;
    opacity: 0.8;
}


/* Textarea */

#contactForm textarea {
    min-height: 140px;
    resize: vertical;
}


/* submit button */

.submitButton,
#contactForm button {
    display: block;

    width: 100%;

    margin-top: 8px;
    padding: 14px;

    background: #553653;

    color: #FFFFFF;

    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: bold;

    border: 2px solid #553653;
    border-radius: 9px;

    cursor: pointer;

    transition: background 0.3s ease,
                color 0.3s ease,
                transform 0.3s ease,
                box-shadow 0.3s ease;
}


/* Button hover */

.submitButton:hover,
#contactForm button:hover {
    background: #C987A8;
    color: #FFFFFF;

    border-color: #C987A8;

    transform: translateY(-2px);

    box-shadow:
        0 6px 15px rgba(85, 54, 83, 0.2);
}


/* Disabled button */

.submitButton:disabled,
#contactForm button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}


/* footer */

footer {
    text-align: center;

    padding: 20px 10px;

    position: relative;
    z-index: 2;

    width: 100%;
}

.home-buttons {
    display: inline-block;

    margin: 0 8px;

    color: #553653;

    transition: transform 0.3s ease,
                opacity 0.3s ease;
}


/* Footer icon colours */

.home-buttons i {
    color: #553653 !important;
}


/* Footer hover */

.home-buttons:hover {
    transform: scale(1.2);
    opacity: 0.7;
}


/* scrollbar */

::-webkit-scrollbar {
    width: 0.4em;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(85, 54, 83, 0.45);
    border-radius: 10px;
}


/* tablet response*/

@media screen and (max-width: 900px) {

    .form-container {
        max-width: 450px;
    }

    h1 {
        font-size: 35px;
    }
}


/* mobike reponse  */

@media screen and (max-width: 600px) {

    /* Navigation */

    nav {
        padding: 15px 8px;
    }

    #nav_bar {
        gap: 10px;
    }

    #nav_bar a {
        font-size: 14px;
    }


    /* Headings */

    h1 {
        font-size: 30px;
        margin: 10px 0;
    }

    h2 {
        font-size: 23px;
    }


    /* Main content */

    main {
        padding: 5px 15px 35px;
    }

    main p {
        font-size: 15px;
        padding: 0 5px;
        margin-bottom: 15px;
    }


    /* Form */

    .form-container {
        width: 100%;

        padding: 25px 20px;

        margin: 10px auto 20px;
    }

    #contactForm label {
        font-size: 14px;
    }

    #contactForm input,
    #contactForm textarea {
        font-size: 16px;
    }


    /* Footer */

    footer {
        padding: 20px 5px;
    }

    .home-buttons {
        margin: 5px 7px;
    }
}


/* small screens  */
@media screen and (max-width: 400px) {

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 21px;
    }

    main p {
        font-size: 14px;
    }

    .form-container {
        padding: 22px 16px;
    }

    #nav_bar {
        gap: 7px;
    }

    #nav_bar a {
        font-size: 13px;
    }
}


/* accessability */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
