:root {
    --bg: #08070d;
    --bg-soft: #0e0b18;
    --panel: #12101c;
    --panel-light: #191527;
    --purple: #7d16ff;
    --purple-bright: #9d46ff;
    --purple-soft: #ba76ff;
    --pink: #dc3dff;
    --text: #f8f5ff;
    --muted: #a69bb8;
    --line: rgba(185, 133, 255, 0.15);
    --green: #59f3af;
    --radius: 20px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", Arial, sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.background-glow {
    position: fixed;
    z-index: -3;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.28;
    border-radius: 999px;
}

.glow-one {
    width: 380px;
    height: 380px;
    top: 100px;
    right: -140px;
    background: #6a00ff;
}

.glow-two {
    width: 450px;
    height: 450px;
    top: 820px;
    left: -200px;
    background: #45009e;
    opacity: 0.18;
}

.grid-background {
    position: fixed;
    z-index: -4;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(155, 92, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(155, 92, 255, 0.025) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, black, transparent 75%);
}

/* HEADER */

.header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(167, 93, 255, 0.09);
    background: rgba(8, 7, 13, 0.78);
    backdrop-filter: blur(18px);
}

.navbar {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand {
    display: flex;
    min-width: max-content;
    align-items: center;
    gap: 11px;
}

.brand-logo {
    width: 43px;
    height: 43px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(125, 22, 255, 0.3);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.brand-name span {
    color: var(--purple-soft);
}

.brand-subtitle {
    margin-top: 4px;
    color: #837695;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 3.3px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 31px;
    margin-left: auto;
}

.nav-link {
    position: relative;
    color: #a99fb7;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
}

.nav-link::after {
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 0;
    height: 2px;
    content: "";
    background: var(--purple-bright);
    border-radius: 5px;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-button {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    background: transparent;
    border-radius: 12px;
    color: #d8cde5;
    transition: 0.2s ease;
}

.search-button:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.search-button svg {
    width: 20px;
    height: 20px;
}

.discord-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    background: linear-gradient(135deg, #7921e8, #5d14c5);
    border: 1px solid rgba(190, 133, 255, 0.38);
    border-radius: 11px;
    box-shadow: 0 8px 26px rgba(85, 15, 185, 0.3);
    color: white;
    font-size: 13px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.discord-button:hover {
    box-shadow: 0 12px 30px rgba(111, 33, 230, 0.48);
    transform: translateY(-2px);
}

.discord-dot {
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--green);
}

.admin-panel-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 13px;
    background: rgba(135, 37, 235, 0.11);
    border: 1px solid rgba(184, 112, 255, 0.25);
    border-radius: 10px;
    color: #d9b6ff;
    font-size: 12px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.admin-panel-button:hover {
    background: rgba(139, 38, 242, 0.23);
    border-color: rgba(202, 142, 255, 0.55);
    transform: translateY(-2px);
}

.admin-panel-icon {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    background: rgba(184, 86, 255, 0.25);
    border-radius: 5px;
    color: #f1d7ff;
    font-size: 12px;
}

.mobile-menu-button,
.mobile-menu {
    display: none;
}

/* HERO */

.hero {
    position: relative;
    display: flex;
    min-height: 680px;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    position: absolute;
    width: 700px;
    height: 700px;
    top: -140px;
    right: -160px;
    content: "";
    background: radial-gradient(circle, rgba(122, 17, 255, 0.22), transparent 65%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 30px;
    padding-top: 48px;
    padding-bottom: 68px;
}

.badge,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #bd88ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.35px;
}

.badge {
    padding: 9px 13px;
    background: rgba(115, 25, 221, 0.09);
    border: 1px solid rgba(160, 78, 255, 0.25);
    border-radius: 50px;
}

.badge-pulse {
    width: 7px;
    height: 7px;
    background: #c577ff;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(190, 111, 255, 0.11);
}

.hero h1,
.section-heading h2,
.about-text h2,
.discord-inner h2 {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    letter-spacing: -2.2px;
}

.hero h1 {
    max-width: 620px;
    margin-top: 20px;
    font-size: clamp(42px, 5vw, 71px);
    line-height: 1.04;
}

.hero h1 span,
.section-heading h2 span,
.about-text h2 span,
.discord-inner h2 span {
    background: linear-gradient(100deg, #8e27ff, #d67bff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    max-width: 550px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 13px;
    margin-top: 31px;
}

.button {
    display: inline-flex;
    min-height: 51px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    background: linear-gradient(135deg, #942cff, #6815d8);
    border: 1px solid rgba(219, 172, 255, 0.33);
    box-shadow: 0 12px 32px rgba(104, 21, 216, 0.37);
}

.primary-button:hover,
.discord-join-button:hover {
    box-shadow: 0 18px 38px rgba(128, 27, 255, 0.5);
    transform: translateY(-3px);
}

.secondary-button {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.11);
    color: #e9dff5;
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-3px);
}

.button-arrow {
    font-size: 21px;
    line-height: 0;
}

.play-icon {
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    padding-left: 1px;
    border: 1px solid #9876bf;
    border-radius: 50%;
    color: #bd83ff;
    font-size: 8px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 53px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat strong {
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 21px;
}

.stat span {
    color: #8c819b;
    font-size: 11px;
    font-weight: 600;
}

.stat-line {
    width: 1px;
    height: 30px;
    background: rgba(210, 176, 255, 0.19);
}

/* HERO LOGÓ */

.hero-right {
    position: relative;
    display: grid;
    min-height: 500px;
    place-items: center;
}

.hexagon-showcase {
    position: relative;
    display: grid;
    width: min(430px, 100%);
    aspect-ratio: 1;
    place-items: center;
}

.hexagon-ring {
    position: absolute;
    inset: 25px;
    border: 1px solid rgba(162, 89, 255, 0.19);
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    transform: rotate(30deg);
}

.ring-2 {
    inset: 66px;
    border-color: rgba(191, 131, 255, 0.23);
    transform: rotate(0deg);
}

.main-logo-container {
    position: relative;
    z-index: 3;
    width: 210px;
    height: 210px;
    padding: 13px;
    background: linear-gradient(140deg, rgba(159, 54, 255, 0.8), rgba(48, 10, 110, 0.4));
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    filter: drop-shadow(0 24px 35px rgba(79, 11, 184, 0.42));
}

.main-logo-container::before {
    position: absolute;
    z-index: -1;
    inset: -8px;
    content: "";
    background: #8d25f7;
    clip-path: inherit;
    filter: blur(17px);
    opacity: 0.26;
}

.main-logo-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}

.hero-orbit {
    position: absolute;
    border: 1px dashed rgba(194, 135, 255, 0.19);
    border-radius: 50%;
    animation: spin 24s linear infinite;
}

.orbit-one {
    width: 350px;
    height: 350px;
}

.orbit-two {
    width: 465px;
    height: 465px;
    border-style: dotted;
    animation-direction: reverse;
    animation-duration: 34s;
}

.floating-card {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    background: rgba(21, 16, 34, 0.8);
    border: 1px solid rgba(196, 142, 255, 0.2);
    border-radius: 13px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
    animation: float 4s ease-in-out infinite;
    backdrop-filter: blur(12px);
}

.floating-card strong,
.floating-card small {
    display: block;
}

.floating-card strong {
    font-size: 12px;
}

.floating-card small {
    margin-top: 3px;
    color: #91869f;
    font-size: 9px;
}

.card-icon {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 800;
}

.card-icon.purple {
    background: rgba(132, 35, 241, 0.33);
    color: #d5a3ff;
}

.card-icon.pink {
    background: rgba(245, 45, 181, 0.25);
    color: #ffb1f2;
}

.card-icon.blue {
    background: rgba(39, 125, 255, 0.25);
    color: #a7d5ff;
    font-size: 11px;
}

.card-script {
    top: 63px;
    left: -5px;
}

.card-plugin {
    top: 154px;
    right: -8px;
    animation-delay: 1.1s;
}

.card-code {
    bottom: 59px;
    left: 20px;
    animation-delay: 2.1s;
}

.hero-bottom-fade {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none;
}

/* KÖZÖS SZEKCIÓK */

.categories-section,
.featured-section,
.about-section {
    position: relative;
    padding: 95px 0;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 37px;
}

.section-heading h2,
.about-text h2,
.discord-inner h2 {
    margin-top: 9px;
    font-size: clamp(30px, 3.5vw, 42px);
    line-height: 1.12;
}

.section-heading > p {
    max-width: 410px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

/* KATEGÓRIÁK */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.category-card {
    position: relative;
    min-height: 218px;
    padding: 22px;
    overflow: hidden;
    background: linear-gradient(140deg, rgba(25, 20, 39, 0.92), rgba(13, 10, 22, 0.92));
    border: 1px solid rgba(187, 132, 255, 0.11);
    border-radius: var(--radius);
    transition: transform 0.25s ease, border 0.25s ease, box-shadow 0.25s ease;
}

.category-card::before {
    position: absolute;
    width: 150px;
    height: 150px;
    top: -85px;
    right: -80px;
    content: "";
    background: rgba(132, 25, 255, 0.15);
    border-radius: 50%;
    filter: blur(20px);
    transition: 0.25s ease;
}

.category-card:hover {
    border-color: rgba(186, 112, 255, 0.4);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.2);
    transform: translateY(-6px);
}

.category-card:hover::before {
    background: rgba(143, 40, 255, 0.3);
}

.category-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 13px;
    font-size: 20px;
    font-weight: 800;
}

.script-icon {
    background: rgba(132, 26, 255, 0.26);
    color: #ce9aff;
}

.plugin-icon {
    background: rgba(254, 44, 173, 0.2);
    color: #ffa4df;
}

.menu-icon {
    background: rgba(59, 135, 255, 0.19);
    color: #98c9ff;
}

.bot-icon {
    background: rgba(52, 224, 185, 0.16);
    color: #79f8d4;
}

.web-icon {
    background: rgba(255, 157, 42, 0.16);
    color: #ffca8a;
    font-size: 15px;
}

.texture-icon {
    background: rgba(240, 79, 255, 0.17);
    color: #ffb1ff;
}

.category-count {
    color: #867a94;
    font-size: 10px;
    font-weight: 700;
}

.category-card h3 {
    margin-top: 28px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 19px;
}

.category-card p {
    max-width: 285px;
    margin-top: 9px;
    color: #9c91aa;
    font-size: 12px;
    line-height: 1.6;
}

.category-arrow {
    position: absolute;
    right: 22px;
    bottom: 19px;
    color: #ba7bff;
    font-size: 21px;
    transition: transform 0.2s ease;
}

.category-card:hover .category-arrow {
    transform: translateX(5px);
}

/* KIEMELT RESOURCE-OK */

.featured-section {
    background: linear-gradient(180deg, transparent, rgba(81, 18, 138, 0.06), transparent);
}

.featured-heading {
    align-items: center;
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #c18aff;
    font-size: 13px;
    font-weight: 700;
}

.view-all span {
    font-size: 19px;
    transition: transform 0.2s ease;
}

.view-all:hover span {
    transform: translateX(5px);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.resource-card {
    overflow: hidden;
    background: #11101a;
    border: 1px solid rgba(189, 141, 255, 0.12);
    border-radius: 18px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.resource-card:hover {
    border-color: rgba(190, 133, 255, 0.4);
    transform: translateY(-7px);
}

.resource-visual {
    position: relative;
    display: grid;
    height: 166px;
    place-items: center;
    overflow: hidden;
}

.resource-visual-purple {
    background: linear-gradient(135deg, #2f0967, #7921d1);
}

.resource-visual-pink {
    background: linear-gradient(135deg, #5d104e, #cb267d);
}

.resource-visual-blue {
    background: linear-gradient(135deg, #132d64, #2c70c6);
}

.resource-symbol {
    position: relative;
    z-index: 2;
    color: white;
    font-family: "Space Grotesk", sans-serif;
    font-size: 58px;
    font-weight: 700;
    text-shadow: 0 8px 25px rgba(0, 0, 0, 0.28);
}

.resource-type {
    position: absolute;
    bottom: 13px;
    left: 16px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.resource-shape {
    position: absolute;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transform: rotate(35deg);
}

.shape-one {
    width: 140px;
    height: 140px;
    top: -50px;
    left: -38px;
}

.shape-two {
    width: 180px;
    height: 180px;
    right: -65px;
    bottom: -105px;
    border-radius: 25px;
}

.shape-three {
    width: 125px;
    height: 125px;
    top: -35px;
    right: 10px;
    border-radius: 50%;
}

.shape-four {
    width: 170px;
    height: 170px;
    bottom: -85px;
    left: -84px;
}

.shape-five {
    width: 160px;
    height: 160px;
    top: -55px;
    left: -58px;
    border-radius: 50%;
}

.shape-six {
    width: 100px;
    height: 100px;
    right: 24px;
    bottom: -47px;
}

.resource-content {
    padding: 19px;
}

.resource-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.resource-label,
.free-label {
    padding: 5px 9px;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.script-label {
    background: rgba(139, 45, 245, 0.19);
    color: #d2a0ff;
}

.plugin-label {
    background: rgba(255, 49, 162, 0.14);
    color: #ffabd4;
}

.bot-label {
    background: rgba(45, 127, 255, 0.16);
    color: #9ed4ff;
}

.free-label {
    background: rgba(42, 215, 145, 0.1);
    color: #77f4ba;
}

.resource-content h3 {
    margin-top: 14px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
}

.resource-content p {
    min-height: 41px;
    margin-top: 8px;
    color: #9b90a8;
    font-size: 12px;
    line-height: 1.55;
}

.resource-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: #7f758b;
    font-size: 10px;
    font-weight: 600;
}

.resource-footer a {
    color: #bc81ff;
    font-size: 11px;
    font-weight: 800;
}

.resource-footer a span {
    padding-left: 4px;
    font-size: 15px;
}

/* RÓLUNK */

.about-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 100px;
}

.about-visual {
    position: relative;
    display: grid;
    min-height: 340px;
    place-items: center;
}

.about-visual::before {
    position: absolute;
    width: 300px;
    height: 300px;
    content: "";
    border: 1px solid rgba(176, 112, 255, 0.16);
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}

.about-logo-wrap {
    width: 190px;
    height: 190px;
    padding: 10px;
    background: linear-gradient(135deg, #9328ff, #3c087d);
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    filter: drop-shadow(0 17px 26px rgba(102, 17, 215, 0.45));
}

.about-logo-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}

.about-mini-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    background: rgba(24, 19, 39, 0.9);
    border: 1px solid rgba(203, 151, 255, 0.19);
    border-radius: 11px;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.25);
    font-size: 11px;
}

.about-mini-card span {
    color: #d29bff;
    font-size: 17px;
}

.mini-card-one {
    top: 47px;
    left: 4px;
}

.mini-card-two {
    right: 0;
    bottom: 48px;
}

.about-text > p {
    max-width: 600px;
    margin-top: 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.about-points {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.about-point {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d6cedf;
    font-size: 13px;
}

.about-point span {
    display: grid;
    width: 19px;
    height: 19px;
    place-items: center;
    background: rgba(135, 43, 238, 0.21);
    border-radius: 50%;
    color: #c990ff;
    font-size: 11px;
    font-weight: 900;
}

/* DISCORD */

.discord-section {
    padding: 52px 0;
}

.discord-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 47px 55px;
    overflow: hidden;
    background:
        radial-gradient(circle at 91% 5%, rgba(221, 77, 255, 0.35), transparent 29%),
        linear-gradient(120deg, #2e0870, #5212ad 55%, #311070);
    border: 1px solid rgba(200, 137, 255, 0.35);
    border-radius: 24px;
    box-shadow: 0 18px 55px rgba(62, 8, 150, 0.3);
}

.discord-inner p {
    max-width: 570px;
    margin-top: 12px;
    color: #d4c3e4;
    font-size: 13px;
    line-height: 1.65;
}

.discord-join-button {
    flex: 0 0 auto;
    background: #fff;
    box-shadow: 0 12px 25px rgba(20, 0, 59, 0.24);
    color: #3c1375;
}

.discord-join-button:hover {
    box-shadow: 0 18px 32px rgba(18, 0, 53, 0.35);
    color: #2d0b62;
}

.discord-logo-text {
    font-size: 17px;
}

/* FOOTER */

.footer {
    padding: 34px 0;
    border-top: 1px solid rgba(193, 136, 255, 0.1);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.footer-brand .brand-logo {
    width: 35px;
    height: 35px;
    border-radius: 10px;
}

.footer-content p {
    color: #786e85;
    font-size: 11px;
}

.footer-links {
    display: flex;
    gap: 17px;
}

.footer-links a {
    color: #9e91af;
    font-size: 11px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #c689ff;
}

/* SEARCH MODAL */

.search-modal {
    position: fixed;
    z-index: 500;
    inset: 0;
    display: none;
    padding: 115px 20px 20px;
    place-items: start center;
    background: rgba(3, 2, 8, 0.75);
    backdrop-filter: blur(9px);
}

.search-modal.open {
    display: grid;
}

.search-box {
    position: relative;
    width: min(620px, 100%);
    padding: 26px;
    background: #151120;
    border: 1px solid rgba(194, 133, 255, 0.25);
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
}

.search-title {
    display: block;
    margin-bottom: 18px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 19px;
    font-weight: 700;
}

.close-search {
    position: absolute;
    top: 12px;
    right: 16px;
    background: transparent;
    color: #a99bb9;
    font-size: 27px;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    background: #0c0a12;
    border: 1px solid rgba(192, 134, 255, 0.19);
    border-radius: 11px;
}

.search-input-wrap svg {
    width: 18px;
    color: #aa74eb;
}

.search-input-wrap input {
    width: 100%;
    padding: 15px 0;
    outline: none;
    background: transparent;
    border: 0;
    color: white;
    font-size: 13px;
}

.search-input-wrap input::placeholder {
    color: #71657d;
}

.search-results {
    min-height: 60px;
    padding-top: 16px;
    color: #a79aad;
    font-size: 13px;
}

.search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.search-result-item strong {
    color: #f1e9fa;
    font-size: 13px;
}

.search-result-item span {
    color: #b77cfb;
    font-size: 11px;
}

/* ANIMATIONS */

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-11px);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* TABLET */

@media (max-width: 1080px) {
    .desktop-nav {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 70px;
        text-align: center;
    }

    .hero-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-right {
        min-height: 420px;
        margin-top: -25px;
    }

    .hero-stats {
        margin-top: 39px;
    }

    .categories-grid,
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-visual {
        min-height: 300px;
    }

    .about-text {
        text-align: center;
    }

    .about-points {
        justify-items: center;
    }
}

/* MOBILE */

@media (max-width: 700px) {
    .container {
        width: min(100% - 30px, var(--container));
    }

    .navbar {
        min-height: 70px;
    }

    .discord-button,
    .admin-panel-button {
        display: none;
    }

    .mobile-menu-button {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 7px;
        background: transparent;
    }

    .mobile-menu-button span {
        display: block;
        width: 22px;
        height: 2px;
        background: #d6c3eb;
        border-radius: 10px;
    }

    .mobile-menu {
        max-height: 0;
        padding: 0 20px;
        overflow: hidden;
        background: rgba(13, 10, 20, 0.98);
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .mobile-menu.open {
        max-height: 340px;
        padding: 12px 20px 19px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .mobile-menu a {
        display: block;
        padding: 11px 0;
        color: #b5a8c3;
        font-size: 14px;
        font-weight: 600;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        padding-top: 55px;
        padding-bottom: 42px;
    }

    .hero h1 {
        font-size: 45px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-stats {
        justify-content: center;
        gap: 15px;
    }

    .stat strong {
        font-size: 18px;
    }

    .stat span {
        font-size: 9px;
    }

    .hero-right {
        width: 100%;
        min-height: 350px;
        margin-top: -10px;
    }

    .hexagon-showcase {
        width: 340px;
    }

    .main-logo-container {
        width: 165px;
        height: 165px;
    }

    .orbit-one {
        width: 270px;
        height: 270px;
    }

    .orbit-two {
        width: 340px;
        height: 340px;
    }

    .floating-card {
        padding: 8px 10px;
    }

    .card-icon {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .floating-card strong {
        font-size: 10px;
    }

    .floating-card small {
        font-size: 8px;
    }

    .card-script {
        top: 45px;
        left: -2px;
    }

    .card-plugin {
        top: 132px;
        right: -3px;
    }

    .card-code {
        bottom: 35px;
        left: 7px;
    }

    .categories-section,
    .featured-section,
    .about-section {
        padding: 66px 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 26px;
    }

    .section-heading h2,
    .about-text h2,
    .discord-inner h2 {
        font-size: 32px;
    }

    .section-heading > p {
        font-size: 13px;
    }

    .categories-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        min-height: 190px;
    }

    .featured-heading {
        flex-direction: row;
        align-items: flex-end;
    }

    .view-all {
        white-space: nowrap;
        font-size: 11px;
    }

    .resource-visual {
        height: 155px;
    }

    .about-visual {
        margin: -14px 0;
        transform: scale(0.9);
    }

    .about-text > p {
        font-size: 13px;
    }

    .about-point {
        align-items: flex-start;
        text-align: left;
        font-size: 12px;
    }

    .discord-section {
        padding: 35px 0;
    }

    .discord-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 35px 25px;
    }

    .discord-join-button {
        width: 100%;
    }

    .footer-content {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .search-modal {
        padding-top: 90px;
    }

    .search-box {
        padding: 22px 17px;
    }
}

@media (max-width: 390px) {
    .brand-logo {
        width: 38px;
        height: 38px;
    }

    .brand-name {
        font-size: 14px;
    }

    .hero h1 {
        font-size: 39px;
    }

    .hero-buttons {
        width: 100%;
    }

    .button {
        width: 100%;
    }

    .hero-stats {
        gap: 10px;
    }

    .stat-line {
        height: 25px;
    }

    .hexagon-showcase {
        transform: scale(0.88);
    }
}