
/* Variables */
:root {
    /* Text Variables */
    --text-dark: #000;
    /* While this is just default black and white if a user wants to change between light and dark mode we have the infrastructure to change the webpage.*/
    --text-light: #fff;
    --text-grey: #adbdcc;
    --body-font: "Roboto", sans-serif;
    --heading-font: "Anek Teluga", sans-serif;
    --h1-size: 90px;
    --h1-line-height: 108px;
    --h2-size: 50px;
    --h2-line-height: 75px;  
    --h3-size: 40px;
    --h4-size: 32px;
    --h5-size: 28px;
    --h6-size: 22px;
    --subtitle-size: 17px;
    --subtitle-height: 26px;
    --p-size: 18px;
    --p-line-height: 26px;
    --secondary-text-size: 14px;
    --secondary-text-line-height: 18px;
    --button-size: 16px;

    /* Spacing */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;
    --standard-width: 1144px;

    /* Colour Variables */
    --purple-1: #6962f7;
    --purple-2: #7000ff;
    --blue-1: #00d4ff;
    --primary-accent: #0a2540;
    --btn-hover-color: #6d7a88;
    --bg-white: #fff;
    --bg-light: #f7f9fc;

    --standard-box-shadow: 0px 2px 40px rgba(0,0,0,0.15);
    --primary-gradient: linear-gradient(
        101.33deg,
        #08209a 0.76%,
        #6563ff 33.33%,
        #36c5f0 76.92%,
        #83e2ff 96.96%
    );
    --standard-border-radius: 20px;
}

/* Use variables for properties you might want to reuse or change when changing screen sizes.*/


/* General Element Styles */

/* Making it so you can't scroll outside the webpage. No extra space.*/
html, body {
    width: 100%;
    position: relative;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--body-font);
    color: var(--text-dark);
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    padding: var(--spacing-sm) 0 0 0;
    background-color: var(--bg-white);
}

h1 {
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: var(--h1-size);
    margin: 0;
    width: 100%;
    letter-spacing: -1px;
    line-height: var(--h1-line-height);
}

h2 {
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: var(--h3-size);
    margin: 0;
    width: 100%;
}

h3 {
    font-family: var(--heading-font);
    font-weight: 500;
    font-size: var(--h3-size);
    margin: 0;
    width: 100%;
}

h4 {
    font-family: var(--heading-font);
    font-weight: 500;
    font-size: var(--h4-size);
    margin: 0;
    width: 100%;
    letter-spacing: -1px;
    letter-spacing: 0.25px;
}

h5 {
    font-family: var(--heading-font);
    font-weight: 500;
    font-size: var(--h5-size);
    margin: 0;
    width: 100%;
}

h6 {
    font-family: var(--heading-font);
    font-weight: 500;
    font-size: var(--h6-size);
    margin: 0;
    width: 100%;
    letter-spacing: -1px;
}

a {
    text-decoration: none;
    color: var(--purple-1);
    font-weight: 500;
    transition: color 0.25s ease;

}

a:hover {
    color: var(--primary-accent);
}

p {
    font-size: var(--p-size);
    line-height: var(--p-line-height);
    font-weight: 400;
    margin: var(--spacing-md) 0;
}

.subtitle, .subtitle2 {
    color: var(--purple-1);
    font-family: var(--heading-font);
    font-weight: 500;
    font-size: var(--subtitle-size);
    line-height: var(--subtitle-height);
}

.subtitle2 {
    color: var(--blue-1);
}

.secondary-text {
    font-size: var(--secondary-text-size);
    line-height: var(--secondary-text-line-height);
    color: var(--text-grey);
    letter-spacing: 0.25px;
}

/* Button Styles */

.primary-button {
    font-family: var(--body-font);
    font-size: var(--button-size);
    letter-spacing: 1.25px;
    font-weight: bold;
    border-radius: var(--standard-border-radius);
    background-color: var(--primary-accent);
    border: none;
    color: var(--text-light);
    padding: var(--spacing-sm) var(--spacing-md);
    transition: all 0.15s ease;
}

.primary-button:hover {
    background-color: var(--btn-hover-color);
    cursor: pointer;
}

.secondary-button {
    font-family: var(--body-font);
    font-size: var(--button-size);
    letter-spacing: 1.25px;
    font-weight: bold;
    border-radius: var(--standard-border-radius);
    background-color: transparent;
    border: none;
    color: var(--primary-accent);
    transition: all 0.15s ease;   
}

.secondary-button:hover {
    opacity: 0.75;
    cursor: pointer;
}

.with-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.with-icon > img {
    transition: transform 0.25s ease;
}

.with-icon:hover > img {
    transform: translateX(4px);
    /* How you animate a descendant of the element you are hovering on.*/
}

/* Layout Styles */

.section-container {
    width: 100%;
    max-width: var(--standard-width);
}

.two-column {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
}

.two-column > .col-left {
    width: 50%;
    box-sizing: border-box;
    padding: 0 var(--spacing-md) 0 0;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
}

.two-column > .col-right {
    width: 50%;
    padding: 0 0 0 var(--spacing-md);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: var(--spacing-sm) var(--spacing-md) var(--spacing-sm) 0;
}

.card .icon {
    height: 50px;
    margin: 0 0 var(--spacing-sm) 0;
}

.card h3 {
    font-family: var(--heading-font);
    font-weight: 500;
    font-size: var(--h6-size);
    margin: 0;
    width: 100%;
    letter-spacing: -1px;    
}

/* Navbar */

nav {
    width: 100%;
    max-width: var(--standard-width);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-md);
    margin: 0 0 var(--spacing-xl) 0;
    box-sizing: border-box;
}

.menu {
    display: inline;
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
}

.menu a {
    color: var(--text-light);
    margin: 0 var(--spacing-md);
    font-weight: bold;
}

.menu a:hover {
    text-decoration: underline;
}

.navbar-button {
    background-color: rgba(250,250,250,0.25);
}

.navbar-button:hover {
    background-color: rgba(250,250,250,0.5);
}

.navbar .hamburger {
    display: none;
}

/* Main */

main {
    margin: var(--spacing-xl) 0 0 0;
    width: 100%;
}

/* Animated Gradient */

#gradient-canvas {
    width: 200%;
    height: 970px;
    transform: rotate(-10deg);
    position: absolute;
    top: -600px;
    left: -50%;
    z-index: -1;
    --gradient-color-1: #ef008f;
    --gradient-color-2: #6ec3f4;
    --gradient-color-3: #7038ff;
    --gradient-color-4: #ffba27;
}

/* Hero */

.hero {
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero .hero-phone-container {
    height: 564px;
    align-items: flex-end;
}

.hero-phone {
    height: 628px;
    transform: translate(32px,-32px);
}

.hero p {
    max-width: 480px;
}

.button-container {
    display: flex;
    flex-direction: row;
    margin: var(--spacing-md) 0;
}

.button-container button:nth-of-type(2) {
    margin: 0 0 0 var(--spacing-md);
    color: var(--purple-2);
}

/* Partners section */

.partners-section {
    width: 100%;
    display: flex;
    justify-content: center;
}

.partners-grid {
    margin: var(--spacing-xl) 0;
    display: grid;
    grid-template: repeat(2,1fr) / repeat(4,1fr);
    column-gap: var(--spacing-md);
    row-gap: var(--spacing-lg);
}

.partners-grid img {
    height: 60px;
    place-self: center;
    /* The place-self CSS shorthand property allows you to align an individual item in both the block and inline directions at once (i.e., the align-self and justify-self properties). This property applies to block-level boxes, absolutely-positioned boxes, and grid items. If the second value is not present, the first value is also used for it. */
}

/* Unified Platform Section */

.unified-platform-section {
    padding: var(--spacing-xl) 0;
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: var(--bg-light);
}

.unified-platform-section .primary-button {
    background-color: var(--purple-1);
    margin: var(--spacing-md) 0;
}

.unified-platform-section .primary-button:hover {
    background-color: var(--primary-accent);
}

.unified-platform-section h2 {
    width: 50%;
    margin-bottom: var(--spacing-md);
}

/* Graphic Section */

.graphic-section {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: var(--bg-light);
}

.graphic-grid {
    display: grid;
    grid-template-areas: 
    "credit slack slack"
    "phone slack slack"
    "phone dash dash";
    grid-gap: var(--spacing-lg);
    padding: var(--spacing-lg) 0;
}

#credit-card {
    grid-area: credit;
    width: 100%;
    box-shadow: var(--standard-box-shadow);
    border-radius: var(--standard-border-radius);
}

#slack-invoice {
    grid-area: slack;
    width: 100%;
    box-shadow: var(--standard-box-shadow);
    border-radius: var(--standard-border-radius);
}

#phone {
    grid-area: phone;
    width: 100%;
}

#dash {
    grid-area: dash;
    width: 100%;
    box-shadow: var(--standard-box-shadow);
    border-radius: var(--standard-border-radius);
}

/* Integrations section */

.integrations-section {
    color: var(--text-light);
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    padding: calc(var(--spacing-xl) * 3) 0;
    z-index: 1;
}
  
.integrations-section::before {
    content: "";
    width: 100%;
    height: 1100px;
    background-color: var(--primary-accent);
    position: absolute;
    top: -32px;
    left: 0;
    z-index: -1;
    transform: skewY(-10deg);
}

.integrations-section::after {
    content: "";
    height: 50%;
    width: 100%;
    background-color: var(--bg-light);
    position: absolute;
    top: 0;
    left: 0;
    z-index: -2;
}
  
.integrations-section .primary-button {
    background-color: var(--blue-1);
    color: var(--primary-accent);
    margin: var(--spacing-md) 0 0 0;
}

.integrations-section .primary-button:hover {
    background-color: var(--bg-white);
}

.integrations-section .secondary-button {
    color: var(--blue-1);
}
  
.integrations-section .card-container {
    display: flex;
    margin: var(--spacing-lg) 0;
}
  
.integrations-section .card-container .card {
    width: 50%;
}
  
#api-code {
    max-width: 470px;
    margin: 0 0 var(--spacing-md) 0;
    border-radius: var(--standard-border-radius);
}
  
#terminal-code {
    max-width: 470px;
    border-radius: var(--standard-border-radius);
}

/* Why Swipe Section */

.why-swipe-section {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: calc(var(--spacing-xl) * 3) 0;
}

.why-swipe-section .card-container {
    display: flex;
    margin: var(--spacing-lg) 0;
}


.why-swipe-section .card-container .card {
    width: 25%;
    padding: 0 var(--spacing-sm) 0 0;
    margin: 0 var(--spacing-md) 0 0;
    box-sizing: border-box;

}

.why-swipe-section .secondary-text {
    color: var(--text-dark);
}

/* Global Section */

.global-section {
    color: var(--text-light);
    display: flex;
    justify-content: center;
    position: relative;
    padding: calc(var(--spacing-xl) * 3) 0 0 0 ;
}

.global-section::before {
    content: "";
    width: 100%;
    height: 1200px;
    background-color: var(--primary-accent);
    position: absolute;
    transform: skewY(-10deg);
    left: 0;
    top: -32px;
    z-index: -1;
}

.global-section a {
    color: var(--blue-1);
}

.global-section a:hover {
    color: var(--text-light);
    width: 100%;
}

.global-section .card-container {
    margin: calc(var(--spacing-xl) * 2) 0;
    display: flex;
}

.global-section .card-container .card {
    width: 25%;
    box-sizing: border-box;
    padding: 0 var(--spacing-sm) 0 0;
    margin: 0 var(--spacing-sm) 0 0;
}


.global-section .card-container .card h3 {
    border-left: var(--blue-1) solid 2px;
    padding: 0 0 0 var(--spacing-sm);
    line-height: 28px;
}

#globe {
    position: absolute;
    max-width: 844px;
    opacity: 25%;
    top: 10%;
}

/* Virtual Events Section */

.virtual-events-section {
    display: flex;
    justify-content: center;
    padding: calc(var(--spacing-xl) * 2) 0;
    background-color: var(--bg-white);
}

.virtual-events-section .primary-button {
    background-color: var(--purple-1);
    margin-top: var(--spacing-md);
}

.swipe-sessions-card {
    width: 540px;
    height: 446px;
    box-shadow: var(--standard-box-shadow);
    border-radius: var(--standard-border-radius);
    overflow: hidden;
    /* overflow has to be set on the parent.*/
}

.swipe-sessions-card .card-top {
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.swipe-sessions-card .card-top::before {
    content: "";
    background: var(--primary-gradient);
    width: 100%;
    height: 150%;
    position: absolute;
    transform: skewY(-5deg);
    /* The skew transformation is a shear mapping (transvection) that distorts each point within an element by a certain angle in the horizontal and vertical directions. The effect is as if you grabbed each corner of the element and pulled them along a certain angle. */
    top: -40%;
}

#sessions-logo {
    z-index: 2;
    width: 338px;
}

.virtual-events-section .avatars {
    position: absolute;
    /* width: 140px;
    height: 80px; */
    bottom: -70px;
    left: var(--spacing-xl);
    z-index: 3;
}

.virtual-events-section .avatars img {
    width: 80px;
}

.swipe-sessions-card .card-bottom {
    width: 100%;
    height: 50%;
    box-sizing: border-box;
    padding: var(--spacing-xl);
}

.virtual-events-section .avatars img:nth-of-type(2) {
    position: absolute;
    left: 55px;
}

.virtual-events-section .card-bottom .secondary-text {
    color: var(--text-dark);
    width: 50%;
    font-weight: 700;
}

.virtual-events-section .card-bottom .subtitle {
    margin: var(--spacing-lg) 0 0 0;
}

.virtual-events-section .col-left {
    height: 446px;
    padding: 0 var(--spacing-lg) 0 0;
}

/* Getting Started Section */

.getting-started-section {
    display: flex;
    justify-content: center;
    padding: var(--spacing-xl) 0;
}
.getting-started-section .col-left {
    padding: 0 var(--spacing-xl) 0 0;
}

.getting-started-section .primary-button {
    background-color: var(--purple-1);
    margin: var(--spacing-md) 0;
}

.getting-started-section .primary-button:hover {
    background-color: var(--primary-accent);
}

.getting-started-section .col-right {
    display: flex;
    flex-direction: row;
}

.getting-started-section .col-right .card {
    width: 50%;
    box-sizing: border-box;
    padding: 0 var(--spacing-sm) 0 0;
    margin: 0 var(--spacing-md) 0 0;
}
.getting-started-section .col-right .card .secondary-button {
    color: var(--purple-2);
    padding-left: 0;
}

/* Footer */

.footer {
    display: flex;
    justify-content: center;
    background-color: var(--bg-light);
    padding: var(--spacing-xl) 0;
}

.footer .section-container {
    display: flex;
}

#footer-logo {
    max-width: 108px;
    margin: 0 0 var(--spacing-md) 0;
}

.footer .col {
    width: 25%;
}

.footer .col ul {
    list-style: none;
    padding: 0;
}

.footer .col ul li {
    margin: var(--spacing-md) 0;
}

.footer .col a {
    color: var(--text-dark);
    font-weight: normal;
}

.footer .col a:hover {
    color: var(--purple-1);
    text-decoration: underline;
}

.footer .icon-link {
    display: flex;
    align-items: center;
    margin: var(--spacing-sm) 0;
}

.footer .icon-link img {
    width: 24px;
}

.footer h3 {
    font-size: var(--h6-size);
    font-weight: 700;

}

/* Custom Breakpoints */

/* Custom Breakpoint (1144px) */
@media only screen and (max-width: 1144px) {
    .section-container {
        padding: 0 var(--spacing-md);
    }

    :root {
        --h1-size: 75px;
        --h1-height: 85px;
    }

    /* Hero */

    .hero-phone {
        height: 550px;
        transform: translateY(-60px);
    }

    .hero .col-left {
        width: 60%;
    }

    .hero .col-right {
        width: 40%;
    }

    /* Partners Grid Section */

    .partners-section {
        margin: -40px 0 0 0;
    }

    .partners-grid {
        margin: 0 0 var(--spacing-xl) 0;
    }
}

/* Custom Breakpoint (850px) */
@media only screen and (max-width: 850px) {

    /* General Styles */
    :root {
        --h1-size: 70px;
        --h1-height: 75px;
    }

    /* Herp */
    .hero-phone {
        transform: translateY(-85px);
    }

    /* Partners Grid */

    .partners-grid img {
        width: 100%;
        height: auto;
    }

    .integrations-section .col-left {
        width: 60%;
    }

    .integrations-section .col-right {
        width: 40%;
    }
}




/* Tablet Size */
/* When using variables change those variables when making the site responsive.*/

@media only screen and (max-width: 768px) {

    /* General Styles */
    :root {
        --h1-size: 58px;
        --h1-line-height: 65px;
        --h3-size: 34px;
    }

    /* Navbar */

    .navbar {
        margin: var(--spacing-sm) 0 var(--spacing-lg) 0;
    }

    .navbar .menu, .navbar .navbar-button {
        display: none;
    }

    .navbar .hamburger {
        background-color: rgba(250,250,250,0.25);
        height: 30px;
        width: 50px;
        border-radius: var(--standard-border-radius);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .navbar .hamburger .bar {
        background-color: var(--bg-white);
        height: 2px;
        width: 18px;
        margin: 1px 0;
    }

    /* Hero */

    main {
        margin: 0;
    }

    #gradient-canvas {
        height: 820px;
    }

    .hero .col-left {
        width: 60%;
    }

    .hero .col-right {
        width: 40%;
    }

    .hero-phone {
        height: 450px;
        transform: translateX(32px);
    }

    .two-column {
        align-items: center;
    }

    /* Partners Grid Section */

    .partners-section {
        margin: -20px 0 0 0;
    }

    /* Unified Platform Section */

    .unified-platform-section h2 {
        width: 100%;
    }

    /* Integrations Section */
    .integrations-section .card-container {
        flex-direction: column;
    }

    .integrations-section .card-container .card {
        width: 100%;
    }

    /* Why Swipe */

    .why-swipe-section .card-container {
        flex-wrap: wrap;
    }

    .why-swipe-section .card-container .card {
        width: 50%;
        margin: var(--spacing-md) 0;
    }

    .why-swipe-section {
        padding: var(--spacing-md) 0 var(--spacing-xl) 0;
    }

    /* Global Section */

    .global-section .card-container {
        flex-wrap: wrap;
        margin: var(--spacing-xl) 0;
    }

    .global-section .card-container .card {
        width: 50%;
        margin: var(--spacing-md) 0;
    }

    /* Getting-Started-Section */

    .getting-started-section .col-right {
        flex-wrap: wrap;
    }    

    .getting-started-section .col-right .card {
        width: 100%;
        margin: var(--spacing-md) 0;
    }

    .getting-started-section .section-container {
        align-items: center;
    }
}


/* Custom Breakpoint (650px) */
@media only screen and (max-width: 630px) {
    /* General Styles */
    :root {
        --h1-size: 50px;
        --h1-height: 63px;
    } 
}



/* Mobile Size 550px */

@media only screen and (max-width: 550px) {

    /* General Styles */
    :root {
        --h1-size: 58px;
        --h1-line-height: 65px;
    }

    .two-column {
        flex-direction: column;
    }

    .two-column .col-left {
        width: 100%;
    }

    .two-column .col-right {
        width: 100%;
        padding: 0;
    }

    /* Hero */

    main {
        margin: var(--spacing-lg) 0;
    }

    #gradient-canvas {
        height: 820px;
    }

    .hero .hero-phone-container {
        display: none;
    }

    /* Partners Grid */

    .partners-section {
        margin: var(--spacing-xl) 0 var(--spacing-sm) 0;
    }

    .partners-grid {
        grid-template-columns: repeat(2,1fr);
    }

    /* Unified Platform Section */

    .unified-platform-section {
        padding: var(--spacing-md) 0;
    }

    /* Integrations Section */

    .integrations-section .col-right {
        display: none;
    }

    .integrations-section {
        padding: var(--spacing-xl) 0;
    }

    .integrations-section::before {
        content: "";
        width: 100%;
        height: 900px;
        background-color: var(--primary-accent);
        position: absolute;
        top: -32px;
        left: 0;
        z-index: -1;
        transform: skewY(-10deg);
    }

    /* Why Swipe Section */

    .why-swipe-section .card-container .card {
        width: 100%;
        margin: var(--spacing-sm) 0;
    }

    .why-swipe-section .card .icon {
        height: 40px;
    }

    .why-swipe-section {
        padding: var(--spacing-lg) 0;
    }

    /* Global Section */

    .global-section {
        padding: var(--spacing-xl) 0 0 0;
    }

    .global-section .card-container {
        margin: var(--spacing-md) 0;
    }

    .global-section .card-container .card {
        width: 100%;
        margin: var(--spacing-sm) 0;
    }

    #globe {
        opacity: 10%;
    }

    /* Virtual Events Section */

    .virtual-events-section {
        padding: 0;
    }

    .virtual-events-section .swipe-sessions-card {
        width: 100%;
        margin: var(--spacing-lg) 0;
    }

    .virtual-events-section .card-bottom .secondary-text {
        width: 100%;
    }

    #sessions-logo {
        width: 300px;
    }

    .swipe-sessions-card .card-top {
        height: 40%;
    }

    .virtual-events-section .col-left {
        padding: 0;
    }

    /* Getting Started Section */

    .getting-started-section {
        padding: var(--spacing-md) 0;
    }

    /* Footer */

    .footer .section-container {
        flex-wrap: wrap;
    }

    .footer .col {
        width: 50%;
        margin: var(--spacing-md) 0;
    }

    .footer .col a {
        font-size: 12px;
    }

    #footer-logo {
        width: 70px;
    }

    .footer .icon-link img {
        width: 18px;
    }
}












