:root {
    --bg: #05070d;
    --bg2: #081225;
    --card: rgba(8, 12, 24, 0.75);

    --accent: #3d6eff;
    --accent2: #7ca2ff;

    --text: #ffffff;
    --text-soft: #cfd9ff;

    --border: rgba(61, 110, 255, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(
        circle at top,
        #102149 0%,
        #05070d 60%
    );

    color: var(--text);
    font-family: "Segoe UI", sans-serif;
        position: relative;
    overflow-x: hidden;

    #bgCanvas {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    z-index: -1;
    pointer-events: none;
}

}

/*.particles {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    z-index: -1;

    pointer-events: none;
}*/
.hero {
    height: 55vh;
    min-height: 520px;

    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;

    background: url("images/banner.jpg")
    center center / cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        rgba(0,0,0,.55),
        rgba(0,0,0,.8)
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.avatar {
    width: 140px;
    height: 140px;

    object-fit: cover;

    border-radius: 50%;
    border: 3px solid var(--accent);

    margin-bottom: 20px;

    box-shadow:
        0 0 30px rgba(61,110,255,.8);
}

.hero h1 {
    font-size: 4rem;
    letter-spacing: 2px;

    text-shadow:
        0 0 25px rgba(61,110,255,.8);
}

.jp-text {
    color: var(--accent2);

    font-size: 1.2rem;

    letter-spacing: 4px;

    margin-top: 10px;
}

.subtitle {
    color: var(--text-soft);
    margin-top: 10px;
}

/* ========================= */
/* Hero Buttons */
/* ========================= */

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;

    margin-top: 25px;

    flex-wrap: wrap;
}

.hero-buttons a {
    display: flex;
    align-items: center;
    gap: 8px;

    text-decoration: none;

    color: #ffffff;

    padding: 12px 24px;

    border-radius: 14px;

    border: 1px solid rgba(61,110,255,.4);

    background: rgba(61,110,255,.12);

    backdrop-filter: blur(10px);

    transition: .3s ease;
}

.hero-buttons a:hover {
    transform: translateY(-3px);

    box-shadow:
        0 0 25px rgba(61,110,255,.7);
}

/* ========================= */
/* Hero Stats */
/* ========================= */

.hero-stats {

    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 15px;

    margin-top: 25px;
}

.hero-stat {

    min-width: 140px;

    padding: 14px;

    border-radius: 16px;

    background: rgba(8,12,24,.75);

    border: 1px solid rgba(61,110,255,.3);

    backdrop-filter: blur(10px);

    text-align: center;
}

.hero-stat span {

    display: block;

    font-size: .75rem;

    color: #8ea7ff;

    letter-spacing: 2px;
}

.hero-stat strong {

    display: block;

    margin-top: 6px;

    color: white;

    font-size: 1rem;
}


/* ========================= */
/* Sections */
/* ========================= */

.section {
    width: min(1400px, 95%);
    margin: 80px auto;
}

.section-header {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.section-header span {
    padding: 10px 22px;

    border-radius: 999px;

    background: rgba(61,110,255,.15);

    border: 1px solid rgba(61,110,255,.3);

    color: var(--accent2);

    font-weight: 700;
    letter-spacing: 2px;
}

/* ========================= */
/* Universal Grid */
/* ========================= */

.grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 20px;
}

/* ========================= */
/* Cards */
/* ========================= */

.card {
    background: var(--card);

    backdrop-filter: blur(14px);

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 25px;

    text-align: center;

    min-height: 180px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    transition: .3s;

    box-shadow:
        0 0 20px rgba(61,110,255,.15);

    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card:hover {
    transform:
        translateY(-6px)
        scale(1.03);

    box-shadow:
        0 0 45px rgba(61,110,255,.35);
}

.card h3 {
    color: var(--accent2);
    margin-bottom: 10px;
}

.card p {
    color: var(--text-soft);
}

/* ========================= */
/* Icons */
/* ========================= */

.icon {
    font-size: 42px;

    margin-bottom: 15px;

    color: var(--accent2);

    text-shadow:
        0 0 15px rgba(61,110,255,.8);
}

/* ========================= */
/* About */
/* ========================= */

.about-list {
    list-style: none;

    display: flex;
    flex-direction: column;

    gap: 10px;

    color: var(--text-soft);

    justify-content: center;
}

/* ========================= */
/* Setup Photo */
/* ========================= */

.setup-photo {
    padding: 12px;
}

.setup-photo img {
    width: 100%;
    display: block;

    border-radius: 16px;

    border: 1px solid rgba(61,110,255,.3);

    box-shadow:
        0 0 40px rgba(61,110,255,.25);
}
/* ========================= */
/* Socials */
/* ========================= */

.socials {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.socials a {
    text-decoration: none;

    color: white;

    padding: 14px 20px;

    border-radius: 12px;

    border: 1px solid var(--accent);

    background: rgba(61,110,255,.12);

    transition: .3s;
}

.socials a:hover {
    transform: translateY(-3px);

    box-shadow:
        0 0 25px rgba(61,110,255,.7);
}

/* ========================= */
/* Footer */
/* ========================= */

footer {
    text-align: center;
    padding: 60px 20px;

    color: #7c89b3;
}

/* ========================= */
/* Scrollbar */
/* ========================= */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #05070d;
}

::-webkit-scrollbar-thumb {
    background: #3d6eff;
    border-radius: 999px;
}

/* ========================= */
/* Scroll Animation */
/* ========================= */

.hidden {
    opacity: 0;
    transform: translateY(40px);

    transition:
        opacity .8s ease,
        transform .8s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* ========================= */
/* Mouse Glow */
/* ========================= */

.card::before {
    content: "";

    position: absolute;

    left: var(--x);
    top: var(--y);

    width: 250px;
    height: 250px;

    transform: translate(-50%, -50%);

    background:
        radial-gradient(
            rgba(61,110,255,.18),
            transparent 70%
        );

    opacity: 0;

    transition: opacity .25s;

    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
}

/* ========================= */
/* PERFECT GRID */
/* ========================= */

/* PC SPECS */

.section:nth-of-type(3) .grid {
    grid-template-columns: repeat(3, 1fr);
}

/* GEAR */

.peripherals-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}

/* MONITORS */

.section:nth-of-type(5) .grid {
    grid-template-columns: repeat(3, 1fr);
}

/* VALORANT */

.section:nth-of-type(6) .grid {
    grid-template-columns: repeat(3, 1fr);
}

/* одинаковая высота */

.grid .card,
.peripherals-grid .card {
    min-height: 220px;
}

/* ========================= */
/* Mobile */
/* ========================= */

@media (max-width: 1000px) {

    .peripherals-grid,
    .section:nth-of-type(3) .grid,
    .section:nth-of-type(5) .grid,
    .section:nth-of-type(6) .grid {

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

@media (max-width: 768px) {

    .hero {
        min-height: 450px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .avatar {
        width: 110px;
        height: 110px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .grid,
    .peripherals-grid,
    .section:nth-of-type(3) .grid,
    .section:nth-of-type(5) .grid,
    .section:nth-of-type(6) .grid {

        grid-template-columns: 1fr;
    }

   
}