/* main.css */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    padding: 2rem;
}

/* Header */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

header img {
    max-width: 200px;
    height: auto;
}

/* Main Content */
main {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1rem;
}

/* Card Grid Section */
.card-grid {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
    flex-direction: row;
}

/* Individual Card */
.card {
    flex: 0 0 auto;
    width: 300px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.2s;
    position: relative; /* required for layering */
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Shopify-specific card with bright monochrome SVG background */
.card::before {
    content: '';
    position: absolute;
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 0;
}

.card.shopify::before {
    top: 0;
    left: 35px;
    margin-top: -130px;
    width: 300%;
    height: 300%;
    background-position: center;
    background-image: url("../images/logos/shopify-logo.svg");
    opacity: 0.45;
}
.card.youtrack::before {
    width: 250%;
    height: 250%;
    margin-top: -110px;
    background-position: center;
    /*filter: brightness(1) invert(.7) grayscale(.6) contrast(1.4);*/
    opacity: 0.1;
    background-image: url("../images/logos/youtrack-logo.svg");
}
.card.freshdesk::before {
    top: 0;
    left: 35px;
    width: 270%;
    height: 270%;
    margin-top: -90px;
    background-position: center;
    /*filter: brightness(1) invert(.7) grayscale(.6) contrast(1.4);*/
    opacity: 0.25;
    background-image: url("../images/logos/freshdesk-logo.svg");
}
.card.hootsuite::before {
    top: 0;
    left: -405px;
    width: 670%;
    height: 670%;
    margin-top: -460px;
    background-position: top;
    /*filter: brightness(1) invert(.7) grayscale(.6) contrast(1.4);*/
    opacity: 0.25;
    background-image: url("../images/logos/hootsuite-logo.svg");
}

.card * {
    position: relative;
    z-index: 1; /* ensures content appears above background */
}


.card h2 {
    font-size: 1.25rem;
    margin: 0.5rem 0;
}

.card p {
    flex-grow: 1;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.15rem;
}


/* Button */
.card-btn {
    margin: 1rem auto 0 auto;
    width: fit-content;
    display: inline-block;
    padding: .2rem .7rem .3rem .7rem;
    background-color: #678eac;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.2s;
    cursor: pointer;
}

.card-btn:hover {
    background-color: #1270b8;
}
