/* ----------CSS BY ANGELA ROQUE---------- */
/* GIT 337: WEB CONTENT DESIGN */
/* ASSIGNMENT 4: VAANGUARD */
/* For educational purposes only. */

/* IMPORTED FONTS*/
/* IMPORT "INTER" FROM GOOGLE FONTS"                                DONE*/
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* ----------CSS RESET---------- */
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {                          /*GIVEN*/
    margin: 0;  
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {        /*GIVEN*/
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ----------ROOT VARIABLES---------- */
:root {                                             /*GIVEN*/
    --blue: #007BFF;
    --red: #FF4500;
    --white: #EAEAEA;
    --black: #000000;
    --charcoal: #333333;
    --font: "Inter", sans-serif;
}

/* ----------GLOBAL STYLES (MOBILE FIRST (SMALL)---------- */
            /*----------whole page----------*/
body {
    text-align: left;
    font-family: var(--font);
    animation: fadeDown 0.9s ease-out forwards;
}

    .Strategic, .Investment, .Business, .Digital, .Exclusive, .Corporate {
        display: inline-block;
        transition: transform 0.5s ease, box-shadow 0.5s ease;
    }

    .Strategic:hover, .Investment:hover, .Business:hover, .Digital:hover, .Exclusive:hover, .Corporate:hover {
        transform: translateY(-5px);
    }

@keyframes stepDown {
    0%  {
            transform: scaleY(0);
            opacity: 0;
        }
    100%{
            transform: scaleY(1);
            opacity: 1;
        }
}

@keyframes gradientReveal {
    from {
        background-position: 0% 50%;
    }
    to {
        background-position: 100% 50%;
    }
}

h2, h3, .text-background a, .Contact-Form label {
    transform-origin: top;
    animation: stepDown .5s ease-in-out forwards, gradientReveal .5s ease-in-out forwards;
}


/* ADD ANIMATION ON stepUp for 1s ease-in-out forwards          DONE*/
.bar {                      /*GIVEN         DONE*/
    animation: stepUp 1s ease-in-out forwards;
}

body p {
    opacity: 1;
    transform: none;
    translate: none;
}

            /*----------HEADER----------*/
header {
    display: block;
    padding: 0;
    margin: 0;
    font-family: var(--font);
}

.title {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 20px 0;
    margin: 0;
    background-color: var(--black);
    color: var(--blue);
    width: 100%;
}

    .logo-and-title {
        display: flex;
        padding-left: 20px;
        align-items: center;
        justify-content: flex-start;
    }

    .logo-and-title h1 {
        font-weight: bolder;
        font-size: 35px;
    }


            /*----------NAV----------*/
.navigation {
    font-size: 20px;
    justify-self: end;
    position: relative;
    padding-right: 20px;
    text-align: center;
}

    .navigation ul {
        display: none;
        list-style: none;
        margin: 0;
        justify-content: flex-end;
    }

    .navigation li {
        list-style: none;
        padding: 5px 20px;
    }

    .navigation a, .navigation a:visited, .navigation a:active {
        display: block;
        padding: 10px 30px;
        text-decoration: none;
        text-transform: uppercase;
        font-weight: bold;
        color: var(--blue);
        transition: background-color 0.5s;
    }

    .navigation li:hover, .navigation a:hover {
        color: var(--black);
        background-color: var(--blue);
    }

#hamburger {
    display: none;
}

    .navigation label {
        display: block;
        order: 2;
        cursor: pointer;
        margin-right: 10px;
        z-index: 101;
        position: relative;
        top: 0;
        right: 0;
        position: absolute;
    }

    .navigation a {
        text-align: center;
    }

    .dropdown-nav {
        display: none;
        flex-direction: column;
        position: static;
        width: 100%;
        max-width: 400px;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--black);
        padding: 20px 0;
        z-index: 100;
        box-sizing: border-box;
    }

    .dropdown-nav a {
        display: block;
        padding: 10px 0;
        text-transform: uppercase;
        text-decoration: none;
        font-weight: bold;
        color: var(--blue);
        text-align: center;
    }

    #hamburger:checked ~ .dropdown-nav {
        display: flex;
        visibility: visible;
        opacity: 1;
        background-color: var(--black);
    }

    label span {
        background-color: white;
        display: block;
        height: .25rem;
        position: relative;
        transition: background-color .3s ease-out;
        width: 2rem;
    }

    label span:before, label span:after {
        background: white;
        content: '';
        display: block;
        height: 100%;
        position: absolute;
        transition: all .2s ease-out;
        width: 100%;
    }

    label span:before {
        top: .75rem;
        left: 0;
    }

    label span:after {
        top: -.75rem;
        left: 0;
    }


            /*----------MAIN----------*/
            /*----------INNOVATION-INVESTMENT----------*/

.text-background {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(5px);
    min-width: 300px;
    max-width: 800px;
    color: var(--white);
}

    .text-background h2 {
        padding: 20px;
        font-size: 35px;
        font-weight: bold;
    }

    .text-background p {
        font-size: 17px;
        padding-bottom: 20px;
        margin: 5px;
        line-height: 25px;
    }

    .text-background a {
        display: inline-block;
        font-size: 20px;
        font-weight: bold;
        text-decoration: none;
        background-color: var(--blue);
        border-radius: 10px;
        color: var(--white);
        padding: 20px 10px;
    }

    .text-background a:hover {
        background-color: var(--red);
        transform: scale(1.05);
    }

            /*----------OUR EXPERTISE AND WHAT WE OFFER----------*/
.expertise-offers {
    background-color: var(--white);
    display: grid;
    gap: 20px;
    line-height: 1.5;
}

    .expertise-offers h2 {
        font-size: 35px;
        font-weight: bold;
        padding-left: 25px;
    }

    .expertise-offers h3 {
        font-size: 20px;
        font-weight: bold;
        padding-bottom: 15px;
    }

    .expertise-offers p {
        font-size: 17px;
    }

    #Our-Expertise-Intro, #What-We-Offer {
        padding: 40px 30px;
    }

    #Our-Expertise-Intro {
        padding-bottom: 0;
    }

    #What-We-Offer {
        display: grid;
        gap: 20px;
        padding-top: 0;
    }

        .Strategic, .Investment, .Business, .Digital, .Exclusive, .Corporate {
            background-color: var(--blue);
            color: #F8F4EC;
            text-align: left;
            padding: 20px;
            margin: 0;
            border-radius: 10px;
        }

        .Strategic h3, .Investment h3, .Business h3, .Digital h3, .Exclusive h3, .Corporate h3 {
            padding-left: 10px;
        }


            /*----------PROVEN RESULTS, PROFITS, GROWTH----------*/
.results {
    background-color: var(--blue);
    line-height: 1.5;
    color: var(--white);
}

#Proven-Results {
    padding: 40px 30px;
}

    .results h2 {
            font-size: 35px;
            font-weight: bold;
            padding-left: 25px;
        }

    .results h3 {
            font-size: 35px;
            font-weight: bold;
            padding-left: 25px;
            padding-bottom: 10px;
        }

    .Proven-Results-Intro p {
        font-size: 17px;
        padding: 10px 0;
    }

    .results table {
        font-size: 18px;
    }

    .Profits {
        display: flex;
        flex-direction: column;
        height: 95%
    }

        .Profits table {
            border-collapse: separate;
            margin: 0 auto;
            text-align: center;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            background-color: var(--charcoal);
            align-self: center;
            margin-top: auto;
        }

            .Profits table th, .Profits table td {
                border: 1px solid var(--charcoal);
                line-height: 1.5;
                padding: 10px 30px;
            }

            .Profits table tr + tr {
                border: 1px solid var(--charcoal);
            }

            .Profits table tr:nth-child(1) {
                background-color: var(--black);
                font-weight: bold;
            }

            .Profits table tr:nth-child(2), .Profits table tr:nth-child(4), .Profits table tr:nth-child(6) {
                background-color: var(--black);
            }

            .Profits table tr:nth-child(3), .Profits table tr:nth-child(5) {
                background-color: var(--charcoal);
            }

    .Growth {
        margin: 0 auto;
        display: flex;
        flex-direction: column;
    }

            /*----------CONTACT----------*/
.contact {
    background-color: var(--black);
    display: grid;
    line-height: 1.5;
    color: var(--white);
}

#Contact {
    padding: 40px 30px;
}

    .Contact-Intro h2{
        font-size: 35px;
        font-weight: bold;
        padding-left: 25px;
    }

    .Contact-Intro p {
        font-size: 17px;
        padding: 10px 0;
    }

    .Contact-Form form {
        display: grid;
        grid-template-columns: 1fr;
        margin: 0 auto;
        gap: 20px;
        border-color: #007BFF;
    }

        .Contact-Form input, .Contact-Form textarea {
            box-sizing: border-box;
            border: 3px solid var(--blue);
            padding: 10px;
            background-color: var(--white);
        }

        .form-group {
            display: flex;
            flex-direction: column;
            padding-left: 10px;
            padding-right: 10px;
        }

        .Contact-Form button {
            display: inline-block;
            font-size: 20px;
            font-weight: bold;
            text-decoration: none;
            background-color: var(--blue);
            border-radius: 10px;
            color: var(--white);
            padding: 20px 10px;
            width: 100%;
            margin-top: 20px;
            margin-bottom: 50px;
        }

        .Contact-Form button:hover {
            background-color: var(--red);
            transform: scale(1.05);
        }

    .Contact-Info {
        text-align: center;
    }

        .Contact-Info a {
            text-decoration: none;
            color: var(--blue);
        }

                    /* vvvvvvvvvvSTART of GIVEN SECTIONS for GLOBAL STYLESvvvvvvvvvv */
/* MIN-WIDTH OF THE PAGE SHOULD NOT GO BELOW 400PX */
html {                      /*GIVEN         DONE*/
    min-width: 400px;
}

/* ADD A DIV WITH THE CLASS OF CONTAINER TO EVERY CONTENT CONTAINER THIS IS ALLOW THE BASE ELEMENTS TO BE 100% WIDTH, BUT CONSTRAIN THE ACTUAL CONTENT TO 90%       DONE*/
.container {                /*GIVEN            DONE*/
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ADD TO "INNOVATION & INVESTMENT SECTION (Photo by Kevin Matos on Unsplash)               DONE*/
#Innovation-Investment{     /*GIVEN*/
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('images/vanguard-hero.jpg') no-repeat center center/cover;
    height: 80vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 1rem;
    overflow: hidden;
    /*my add ons are below this*/
    margin: 0;
    color: var(--white);   
}

@keyframes floatUpDown {
    0%      {transform: translateY(0);}
    50%     {transform: translateY(-10px);}
    100%    {transform: translateY(0);}
}

/* ADD FLOATING SVG LOGO BEFORE THE H1                          Double check*/
header .logo {              /*GIVEN          DONE*/
    content: "";
    left:-.5rem;
    width: 3.75rem;
    height: 3.75rem;
    background: url('images/vanguard-logo.svg') no-repeat center/contain;
    margin-right: 10px;
    float: left;
    animation: floatUpDown 4s ease-in-out infinite;
}



/* THIS ONE IS DONE FOR YOU                                     DONE*/
#bar-chart {                /*GIVEN*/
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: flex-end;
    justify-content: space-around;
    gap: 1rem;
    height: 300px;
    width: 100%;
    max-width: 800px;
    /* padding: 1rem; */
    position: relative;
}
/* ADD ON TRANSITION ON HEIGHT                                  DONE*/
.bar {                      /*GIVEN          DONE*/
    width: 50px;
    background: var(--charcoal);
    border-radius: 10px;
    position: relative;
    transition: height 1s ease-in;
    height: 0;
}
/* THIS ONE IS DONE FOR YOU                                     DONE*/
.bar::after {               /*GIVEN*/
    content: attr(data-year);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    font-weight: bold;
    color: var(--white);
}

@keyframes stepUp {         /*GIVEN*/
    0% {
        height: 0;
    }
    100% {
        height: var(--height);
    }
}


/* ADD ANIMATION ON stepUp for 1s ease-in-out forwards */
.bar {                      /*GIVEN          DONE*/
    animation: stepUp 1s ease-in-out forwards;
}



/* ----------MEDIA QUERIES (MEDIUM)---------- */ 
    
    #results {              /*GIVEN*/
        grid-template-columns: 1fr 1fr;
    }
    .results-container {    /*GIVEN*/
        flex-direction: row;
        justify-content: space-between;
    }
    .results-table {        /*GIVEN*/
        width: 50%;
    }
    .bar-chart {            /*GIVEN*/
        width: 50%;
    }

@media screen and (min-width: 600px){
    .page {
        padding: 0;
        margin: 0;
    }

    .navigation ul {
        display: flex;
        justify-content: flex-end;
        margin: 0;
        padding: 0 30px;
    }

        .navigation li {
            margin-left: 0;
            margin-bottom: 0;
        }

        .navigation a {
            display: inline-block;
            padding: 10px 20px;
            color: var(--blue);
            text-decoration: none;
            font-weight: bold;
            text-transform: uppercase;
        }

        .navigation label {
            display: none;
        }

        .navigation a:hover {
            background-color: var(--blue);
            color: var(--black)
        }

        #hamburger, .navigation label {
            display: none;
        }

        .dropdown-nav {
            display: flex !important;
            position: static;
            flex-direction: row;
            background: none;
            width: auto;
        }

    .expertise-offers, .results, .contact {
        display: grid;
    }

    #Our-Expertise-Intro, #What-We-Offer h2 {
        grid-column: 1/-1;
    }

    #What-We-Offer {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    #Proven-Results {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .Proven-Results-Intro {
        grid-column: 1/-1;
    }

    .Contact-Intro, .Contact-Info {
            grid-column: 1/-1;
            gap: 20px;
        }

    .Profits table th, .Profits table td {
                border: 1px solid var(--charcoal);
                line-height: 1.5;
                padding: 10px 20px;
            }
    
    .Contact-Form form {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding-bottom: 30px;
        padding-top: 30px;
    }

    .Contact-Form textarea, .Contact-Form button {
        grid-column: 1/-1;
    }

}


/* ----------MEDIA QUERIES (LARGE)---------- */
@media screen and (min-width: 900px){
    .page {
        min-width: 400px;
        padding: 0;
        margin: 0;
    }

    #hamburger, .navigation label {
        display: none;
    }

    .dropdown-nav {
        position: static;
        flex-direction: row;
        background: none;
        width: auto;
        padding: 0;
    }

    .expertise-offers, .results, .contact {
        display: grid;
    }

    #Our-Expertise-Intro, #Contact-Intro {
        grid-column: 1/-1;
    }

    #What-We-Offer {
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }

    #Proven-Results, #Contact {
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }
}
