/* =========================================================
   git.crille.org
   Custom start page
   ========================================================= */

.page-content.home {
    --crille-accent: #2dd4bf;
    --crille-accent-2: #60a5fa;
    --crille-border: rgba(255, 255, 255, 0.10);

    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px 60px;
}


/* =========================================================
   HERO
   ========================================================= */

.page-content.home > .ui.grid:first-child {
    position: relative;
    overflow: hidden;

    margin-top: 32px !important;
    margin-bottom: 42px !important;

    padding: 80px 30px !important;

    border: 1px solid var(--crille-border);
    border-radius: 22px;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(45, 212, 191, 0.22),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 70%,
            rgba(96, 165, 250, 0.20),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #111827 0%,
            #0f172a 45%,
            #111827 100%
        );

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.22);
}


/* diskret developer-grid */

.page-content.home > .ui.grid:first-child::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.035) 1px,
            transparent 1px
        );

    background-size: 32px 32px;

    mask-image:
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.75),
            transparent
        );

    pointer-events: none;
}


/* innehållet framför bakgrunden */

.page-content.home > .ui.grid:first-child > .column {
    position: relative;
    z-index: 1;
}


/* =========================================================
   HERO TITLE
   ========================================================= */

.page-content.home h1.ui.header {
    color: #ffffff;

    font-size: clamp(2.7rem, 6vw, 5rem);
    font-weight: 800;

    letter-spacing: -0.05em;

    margin-bottom: 20px;
}


.page-content.home h1.ui.header > i.icon {
    color: var(--crille-accent);

    display: block;

    font-size: 0.7em;

    margin-bottom: 20px;
}


.page-content.home h1.ui.header .sub.header {
    margin-top: 12px;

    color: #94a3b8;

    font-size: 1.15rem;
    font-weight: 500;

    letter-spacing: 0;
}


/* ingress */

.page-content.home > .ui.grid:first-child p.large {
    max-width: 720px;

    margin: 0 auto 30px;

    color: #cbd5e1;

    font-size: 1.22rem;
    line-height: 1.7;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.page-content.home .ui.button {
    border-radius: 10px;

    font-weight: 600;

    padding: 14px 22px;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}


.page-content.home .ui.button:hover {
    transform: translateY(-2px);
}


.page-content.home .ui.primary.button {
    background:
        linear-gradient(
            135deg,
            var(--crille-accent),
            #14b8a6
        );

    color: #062c29;

    box-shadow:
        0 8px 24px rgba(45, 212, 191, 0.22);
}


.page-content.home .ui.primary.button:hover {
    background:
        linear-gradient(
            135deg,
            #5eead4,
            #2dd4bf
        );

    box-shadow:
        0 10px 28px rgba(45, 212, 191, 0.32);
}


/* =========================================================
   SEPARATOR
   ========================================================= */

.page-content.home > .ui.divider {
    margin: 45px 0;

    opacity: 0.5;
}


/* =========================================================
   CARDS
   ========================================================= */

.page-content.home .ui.cards {
    gap: 18px;

    justify-content: center;
}


.page-content.home .ui.cards > .card {
    flex: 1 1 320px;

    max-width: 360px;

    margin: 0 !important;

    border-radius: 14px;

    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}


.page-content.home .ui.cards > .card:hover {
    transform: translateY(-5px);

    border-color:
        color-mix(
            in srgb,
            var(--crille-accent) 45%,
            transparent
        );

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.14);
}


.page-content.home .card > .content {
    padding: 27px !important;
}


.page-content.home .card .header {
    margin-bottom: 14px !important;

    font-size: 1.2rem !important;
    font-weight: 700 !important;
}


.page-content.home .card .header i.icon {
    color: var(--crille-accent);

    margin-right: 8px;
}


.page-content.home .card .description {
    line-height: 1.65;

    opacity: 0.8;
}


/* =========================================================
   FOOTER / PERSONAL INFO
   ========================================================= */

.page-content.home > .ui.basic.segment {
    margin-top: 55px;

    padding-top: 35px;

    border-top: 1px solid var(--crille-border);
}


.page-content.home > .ui.basic.segment p {
    line-height: 1.7;
}


.page-content.home > .ui.basic.segment strong {
    font-size: 1.1rem;
}


.page-content.home > .ui.basic.segment a {
    color: var(--crille-accent);

    font-weight: 600;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {

    .page-content.home {
        padding:
            0 14px
            40px;
    }

    .page-content.home > .ui.grid:first-child {
        margin-top: 15px !important;

        padding:
            55px 18px !important;

        border-radius: 14px;
    }

    .page-content.home h1.ui.header {
        font-size: 2.5rem;
    }

    .page-content.home > .ui.grid:first-child p.large {
        font-size: 1.05rem;
    }

    .page-content.home .ui.button {
        display: block;

        max-width: 280px;

        margin:
            10px auto !important;
    }

    .page-content.home .ui.cards > .card {
        max-width: none;
    }

}
